Graphic LCD with PICbasic pro


Closed Thread
Results 1 to 40 of 42

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94

    Default Graphic LCD with PICbasic pro

    Hi,i want to learn how can i write on graphic LCD? How can i make custom characters? How can i make new fonts in other languages? This is may first time. I bought TS12864A-2 v1.1 graphic LCD.I use PICbasic pro 2.5 and PIC16F877A.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    first of all, you need to know which controller type your LCD use, here, it seems to be a KS0108.

    From there, you download the usual datasheet, and try to understand how it works.

    A swear jar is recommended, not a so easy task... have done it before... still trying to recover it, or redoing it from scratch next week or so.
    Last edited by mister_e; - 6th November 2008 at 21:56.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    I can not find the complete datasheet of the LCD.could you send me a PDF file or website that can help me with graphic LCD in PICBasic(PIC projects with graphic LCD)?

  4. #4
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default

    Search for CrystalFontz LCD. They have the range of monochrome LCD panels with data sheets if thats what you're using.

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Default

    Hi, Jerson

    I'd better bet on : " SHENZHEN TECHSTAR ELECTRONICS CO.,LTD "

    Alain

    http://www.datasheet4u.com/download.php?id=553270
    Last edited by Acetronics2; - 7th November 2008 at 13:11.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default

    Yes ofcourse Alain. Most stuff comes from China anyway

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amindzo View Post
    I can not find the complete datasheet of the LCD.could you send me a PDF file or website that can help me with graphic LCD in PICBasic(PIC projects with graphic LCD)?
    Assuming I'm right, KS0108 controller, 128x64 GLCD type, the following datasheet should be handy
    http://circuit-ed.com/uplds/GDM12864B.pdf

    and then maybe this link too
    http://www.compsys1.com/workbench/On...ontroller.html
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by mister_e View Post
    Assuming I'm right, KS0108 controller, 128x64 GLCD type, the following datasheet should be handy
    http://circuit-ed.com/uplds/GDM12864B.pdf

    and then maybe this link too
    http://www.compsys1.com/workbench/On...ontroller.html
    May be A types have a different pinout ... ( A -2 means w/backlight ! )

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  9. #9
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Maybe, but the above also have it !
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  10. #10
    tomyhony's Avatar
    tomyhony Guest


    Did you find this post helpful? Yes | No

    Default Re: Graphic LCD with PICbasic pro

    hello
    can one show me small program as example using ks0108 lcd desplay word and how can i interfacing it

  11. #11
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Default Probe these ;-)

    Maybe is bad ....maybe it help you.
    Regards
    Code:
    @ Device pic16F877, HS_OSC, BOD_ON, PWRT_OFF, WDT_ON, PROTECT_OFF
        Define osc 20
        ADCON1 = 7
        trisc = $00 
        trisd = $00 
        en var portd.0 
        rw var portd.1 
        rs var portd.2 
        cs1 var portd.3 
        cs2 var portd.4 
        reset var portd.5
        rs = 1 
        rw = 0 
        en = 0 
        cs1 = 1 
        cs2 = 1
        temp var byte 
        x var byte
        y var byte
        z var byte
        h var byte
        x = 0
        y = 0
        z = 0
        h = 0
        gosub rst
        pause 500
        gosub brisanje
        
    gosub levo 
    gosub nulti
    temp = 184
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$01,$01,$01,$01,$01,$01,$01,$01,$01,$09,$09,$09,$09,$09,$09,$89,$69,$19,$09,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$f9,$89,$89,$89,$89,$89,$89,$89,$89,$f9,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff],temp
    gosub podatak
    next z 
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 184
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$01,$01,$01,$01,$01,$01,$01,$01,$01,$f9,$09,$09,$09,$09,$09,$09,$f9,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff,$01,$01,$01,$01,$81,$81,$c1,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$81,$e1,$f1,$e1,$81,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo
    gosub komanda
    gosub nulti
    temp = 185
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$90,$88,$86,$81,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$9f,$90,$90,$90,$90,$90,$90,$90,$90,$9f,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z 
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 185
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$91,$91,$91,$91,$91,$91,$91,$9f,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff,$80,$80,$80,$81,$83,$83,$87,$81,$81,$81,$81,$81,$81,$80,$80,$80,$80,$80,$80,$80,$80,$9f,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo 
    gosub komanda
    temp = 186
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$80,$c0,$a0,$90,$88,$84,$fc,$80,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$7c,$44,$44,$44,$44,$44,$44,$44,$c4,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 186
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$fc,$84,$84,$84,$84,$84,$84,$84,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$00,$80,$00,$c0,$00,$80,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$f0,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo 
    gosub komanda
    temp = 187
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$1f,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$20,$20,$20,$20,$20,$20,$20,$20,$3f,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 187
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$1f,$10,$10,$10,$10,$10,$10,$1f,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$00,$0a,$07,$1f,$07,$0a,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$04,$1c,$3f,$1c,$04,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    gosub levo 
    gosub nulti
    temp = 188
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$21,$31,$f9,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$79,$09,$09,$09,$09,$89,$79,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff],temp
    gosub podatak
    next z 
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 188
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$01,$01,$01,$01,$01,$01,$01,$01,$01,$09,$09,$09,$09,$89,$89,$89,$89,$f9,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo
    gosub komanda
    gosub nulti
    temp = 189
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$90,$90,$9f,$90,$90,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$90,$98,$94,$92,$91,$90,$90,$90,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z 
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 189
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$90,$90,$90,$90,$90,$90,$90,$90,$9f,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$81,$81,$81,$81,$81,$81,$81,$81,$81,$81,$81,$81,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo 
    gosub komanda
    temp = 190
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$fc,$04,$04,$04,$04,$04,$fc,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$c0,$40,$c0,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 190
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$f8,$88,$88,$88,$88,$00,$00,$f8,$88,$88,$88,$88,$98,$00,$00,$f8,$08,$08,$08,$08,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$f8,$88,$88,$08,$00,$f8,$00,$00,$f8,$00,$08,$08,$f8,$08,$08,$00,$f8,$88,$88,$08,$00,$f8,$88,$88,$88,$f8,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo 
    gosub komanda
    temp = 191
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$9f,$90,$90,$90,$90,$90,$9f,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$81,$81,$81,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 191
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$8f,$88,$88,$88,$88,$80,$80,$8c,$88,$88,$88,$88,$8f,$80,$80,$8f,$88,$88,$88,$88,$80,$80,$80,$80,$80,$ff,$80,$80,$80,$8f,$88,$88,$88,$80,$8f,$82,$84,$8f,$80,$80,$80,$8f,$80,$80,$80,$8f,$88,$88,$88,$80,$8f,$80,$81,$86,$88,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z
    
    goto kraj
    
    
    
    '*************************************************************
    'komande za GLCD                                             *
    '************************************************************* 
    
     rst:
       reset = 0 
       pause 1000 
       reset = 1
       temp = $3e 
       gosub komanda
       pause 100 
       temp = $3f 
       gosub komanda
       pause 100
       
    nulti:
    temp = $40'+55
    gosub komanda 
    return
       
    brisanje:
        for x = 0 to 7 
        temp = $b8 + x 
        gosub komanda
        for y = 0 to 63 
        temp = $00 
        gosub podatak
        next y 
        next x
        pause 1000
        return 
    komanda:
        rw = 0 
        rs = 0 
        portc = temp 
        en = 1 
        pause 5 
        en = 0
        return  
        
    podatak:
        rw = 0 
        rs = 1 
        portc = temp 
        en = 1 
        pause 5 
        en = 0 
        return    
        
    razmak:
        temp = $00 
        return
    
    levo:
    cs1 = 0
    cs2 = 1
    return
    
    desno:
    cs1 = 1
    cs2 = 0
    return 
    kraj:
    pause 1000
    goto kraj 
    end
    Last edited by ScaleRobotics; - 6th February 2011 at 14:04. Reason: added code tags

  12. #12
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    i have copied that code to picbsic pro 2.5 but it has some errors in compiling.

  13. #13
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amindzo View Post
    i have copied that code to picbsic pro 2.5 but it has some errors in compiling.
    Jeeze...WHATEVER you do, don't tell us what the errors you got are. Let us guess at them...no wait...Let's have a lottery, or maybe we can draw pieces of paper out of a hat and guess the errors.

    But since you are using PBP 2.50, look in your manual on page 30 at the bottom, then compare those comments with every one of those LOOKUP statements in the code above...
    Notice anything?
    Last edited by skimask; - 13th December 2008 at 07:12.

  14. #14
    pash48's Avatar
    pash48 Guest


    Did you find this post helpful? Yes | No

  15. #15
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by phoenix_1 View Post
    Maybe is bad ....maybe it help you.
    Regards
    Hi, Phoenix

    Really a nice screen ...

    I should learn Serbian language ...

    Code:
    '****************************************************************
    '*  Name    : GLCD Test.BAS                                     *
    '*  Author  : Phoenix_1                   *
    '*  Notice  : Copyright (c) 2010 [select VIEW...EDITOR OPTIONS] *
    '*          : All Rights Reserved                               *
    '*  Date    : 12/04/2010                                        *
    '*  Version : 1.1                                              *
    '*  Notes   : Easy Pic5 Modified  !!!                              *
    '*          :                                                   *
    '****************************************************************
    
    @ Device pic16F877a, HS_OSC, BOD_ON, PWRT_OFF, WDT_ON, PROTECT_OFF
    
    Define osc 8
    
    ADCON1 = 7
    CMCON  = 7
    
    trisB = $00 
    trisD = $00
     
    en      var portB.4 
    rw      var portB.3 
    rs      var portB.2 
    cs1     var portB.0 
    cs2     var portB.1 
    reset   var portB.5
    
    rs  = 1 
    rw  = 0 
    en  = 0 
    cs1 = 1 
    cs2 = 1
    
    temp    var byte 
    x       var byte
    y       var byte
    z       var byte
    h       var byte
    
    x   = 0
    y   = 0
    z   = 0
    h   = 0
    
    gosub rst
    pause 500
    gosub brisanje
    
    gosub levo 
    gosub nulti
    temp = 184
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$01,$01,$01,$01,$01,$01,$01,$01,$01,$09,$09,$09,$09,$09,$09,$89,_
    $69,$19,$09,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff,$01,$01,$01,$01,$01,_
    $01,$01,$01,$01,$01,$f9,$89,$89,$89,$89,$89,$89,$89,$89,$f9,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff],temp
    gosub podatak
    next z 
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 184
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$01,$01,$01,$01,$01,$01,$01,$01,$01,$f9,$09,$09,$09,$09,$09,$09,_
    $f9,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff,$01,$01,$01,$01,$81,$81,$c1,_
    $01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$81,$e1,$f1,$e1,$81,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo
    gosub komanda
    gosub nulti
    temp = 185
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$90,$88,$86,$81,$80,_
    $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff,$80,$80,$80,$80,$80,_
    $80,$80,$80,$80,$80,$9f,$90,$90,$90,$90,$90,$90,$90,$90,$9f,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z 
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 185
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$91,$91,$91,$91,$91,$91,$91,_
    $9f,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff,$80,$80,$80,$81,$83,$83,$87,_
    $81,$81,$81,$81,$81,$81,$80,$80,$80,$80,$80,$80,$80,$80,$9f,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo 
    gosub komanda
    temp = 186
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$80,$c0,$a0,$90,$88,$84,$fc,_
    $80,$00,$00,$00,$00,$00,$00,$00, $00,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$00,$00,_
    $00,$00,$00,$00,$00,$7c,$44,$44,$44,$44,$44,$44,$44,$c4,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 186
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$fc,$84,$84,$84,$84,$84,$84,_
    $84,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$00,$80,$00,$c0,_
    $00,$80,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$f0,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo 
    gosub komanda
    temp = 187
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$1f,_
    $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$00,$00,_
    $00,$00,$00,$00,$00,$20,$20,$20,$20,$20,$20,$20,$20,$3f,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 187
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$1f,$10,$10,$10,$10,$10,$10,_
    $1f,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$00,$0a,$07,$1f,_
    $07,$0a,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$04,$1c,$3f,$1c,$04,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    gosub levo 
    gosub nulti
    temp = 188
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$21,$31,$f9,$01,_
    $01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff,$01,$01,$01,$01,$01,_
    $01,$01,$01,$01,$01,$01,$01,$79,$09,$09,$09,$09,$89,$79,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff],temp
    gosub podatak
    next z 
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 188
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$01,$01,$01,$01,$01,$01,$01,$01,$01,$09,$09,$09,$09,$89,$89,$89,_
    $89,$f9,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff,$01,$01,$01,$01,$01,$01,$01,_
    $01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$01,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo
    gosub komanda
    gosub nulti
    temp = 189
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$90,$90,$9f,$90,_
    $90,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff,$80,$80,$80,$80,$80,_
    $80,$80,$80,$80,$80,$80,$80,$90,$98,$94,$92,$91,$90,$90,$90,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z 
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 189
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$90,$90,$90,$90,$90,$90,$90,_
    $90,$9f,$80,$80,$80,$80,$80,$80, $80,$80,$80,$80,$ff,$80,$80,$80,$80,$80,$80,$80,_
    $80,$80,$80,$81,$81,$81,$81,$81,$81,$81,$81,$81,$81, $81,$81,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo 
    gosub komanda
    temp = 190
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$fc,$04,$04,$04,$04,_
    $04,$fc,$00,$00,$00,$00,$00,$00, $00,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$00,$00,_
    $00,$00,$00,$00,$00,$00,$00,$00,$00,$c0,$40,$c0,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 190
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$00,$00,$00,$f8,$88,$88,$88,$88,$00,$00,$f8,$88,$88,$88,$88,$98,_
    $00,$00,$f8,$08,$08,$08,$08,$00,$00,$00,$00,$00,$ff,$00,$00,$00,$f8,$88,$88,$08,_
    $00,$f8,$00,$00,$f8,$00,$08,$08,$f8,$08,$08,$00,$f8,$88,$88,$08,$00,$f8,$88,$88,$88,$f8,$00,$00,$00,$00,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub levo 
    gosub komanda
    temp = 191
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$9f,$90,$90,$90,$90,_
    $90,$9f,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff,$80,$80,$80,$80,$80,_
    $80,$80,$80,$80,$80,$80,$80,$80,$80,$81,$81,$81,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z
    
    temp = 0
    gosub desno 
    gosub komanda
    temp = 191
    gosub komanda
    for z = 0 to 63
    lookup z,[$ff,$80,$80,$80,$8f,$88,$88,$88,$88,$80,$80,$8c,$88,$88,$88,$88,$8f,_
    $80,$80,$8f,$88,$88,$88,$88,$80, $80,$80,$80,$80,$ff,$80,$80,$80,$8f,$88,$88,$88,_
    $80,$8f,$82,$84,$8f,$80,$80,$80,$8f,$80,$80,$80,$8f,$88,$88,$88,$80,$8f,$80,$81,$86,$88,$80,$80,$80,$80,$ff],temp
    gosub podatak
    next z
    
    goto kraj
    
    
    
    '************************************************* ************
    'komande za GLCD *
    '************************************************* ************ 
    
    rst:
    reset = 0 
    pause 1000 
    reset = 1
    temp = $3e 
    gosub komanda
    pause 100 
    temp = $3f 
    gosub komanda
    pause 100
    
    nulti:
    temp = $40'+55
    gosub komanda 
    return
    
    brisanje:
    for x = 0 to 7 
        temp = $b8 + x 
        gosub komanda
        
        for y = 0 to 63 
            temp = $00 
            gosub podatak
        next y
         
    next x
    pause 1000
    return 
    
    komanda:
    rw = 0 
    rs = 0 
    portD = temp 
    en = 1 
    pause 1 '5 
    en = 0
    return 
    
    podatak:
    rw = 0 
    rs = 1 
    portD = temp 
    en = 1 
    pause 1 '5 
    en = 0 
    return 
    
    razmak:
    temp = $00 
    return
    
    levo:
    cs1 = 0
    cs2 = 1
    return
    
    desno:
    cs1 = 1
    cs2 = 0
    return
     
    kraj:
    pause 1000
    goto kraj
     
    end
    Congratulations, Robert

    I just sped it a bit, as datasheet enable cycle time is specified @ 1 ms ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  16. #16
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Wink it was a test in start...

    Hi Alain,
    It was only test for some my project .....
    Yes it was slow but work and it was in my start to play with graphic display with touch screen from Mikro Elektronika.....
    It cost 20EUR but there is much faster GLCD in market...

    The best regards
    /Robert

  17. #17
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default what design software

    Hello,

    May I ask some of you what designing software* you use to create the graphics?

    I'm starting using a EADOGL128-6 display (http://www.lcd-module.com/products/dog.html). At the bottom of this website, there's a soft I may use.

    Nevertheless, is there a program most people use?

    *I'm using Windows XP
    Roger

  18. #18
    Join Date
    Jan 2011
    Location
    Skopje,Macedonia
    Posts
    71


    Did you find this post helpful? Yes | No

    Default

    Can you post a tutorial or something like that,so I can made my own picture on GLCD?And how to put a text line,from mesurments with DS18B20?

Similar Threads

  1. PICBASIC PRO 16F84 with 16X02 LCD
    By Marin in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th August 2007, 02:13
  2. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 18:31
  3. Replies: 6
    Last Post: - 4th April 2007, 07:33
  4. Using LCD 40 x 4 with Picbasic pro
    By pcaccia in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th January 2006, 17:31
  5. PICBasic Pro interfacing with graphic LCDs
    By Demon in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 30th April 2005, 05:34

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts