Using Nokia LCD


Closed Thread
Results 1 to 40 of 301

Thread: Using Nokia LCD

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Last line don't erase !

    Even with "pause 100" don't work ; still "fleas". And yes, the display with part info printed work good. The last line it's with problem !!!! She don't want to be erased !! I try another program and look at differences. First two foto are with good display; "main" program - and, after LCD_clear , "set" display. The last two are with "fake" display. The last line remain from "main" program display !!!
    Attached Images Attached Images     

  2. #2
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    Quote Originally Posted by fratello View Post
    Even with "pause 100" don't work ; still "fleas". And yes, the display with part info printed work good. The last line it's with problem !!!! She don't want to be erased !! I try another program and look at differences. First two foto are with good display; "main" program - and, after LCD_clear , "set" display. The last two are with "fake" display. The last line remain from "main" program display !!!
    LCD seems to work OK if you can write text to it, to all 6 rows. Try some PAUSE after Lcd_Clear -command if that will make any difference. Could it be so that LCD controller is quite slow and next command will override Lcd_Clear. Just speculations ...

    BR,
    -Gusse-
    Last edited by Gusse; - 18th April 2010 at 21:01.

  3. #3
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    Thanks for repply ! But...with "Pause" (10-200 !) it's worst !
    Attached Images Attached Images  

  4. #4
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    Are you using similar LCD_Clear code as in post #161?

    Would code below make any difference?
    At least it has worked for me very well with several different 3310 LCD modules.
    Code:
    <code><font color="#000000">Lcd_Data        <b>VAR BYTE </b>[6]
    
    Lcd_Clear:
        PosX=0:PosY=0:<b>GOSUB </b>Lcd_GotoXY
        <b>HIGH </b>Lcd_DC
        Lcd_Data(0)=0:Lcd_Data(1)=0:Lcd_Data(2)=0:Lcd_Data(3)=0:Lcd_Data(4)=0:Lcd_Data(5)=0
        <b>FOR </b>Char=1 <b>TO </b>84
        <b>GOSUB </b>Write_LCD
        <b>NEXT </b>Char
        <b>RETURN
    
    </b>Write_LCD:
        <b>SHIFTOUT </b>SDIN,SCK,1,[ Lcd_Data(0),Lcd_Data(1),Lcd_Data(2),Lcd_Data(3),Lcd_Data(4),Lcd_Data(5) ]
        <b>RETURN
    
    </b></code>
    BR,
    -Gusse-
    Last edited by Gusse; - 19th April 2010 at 19:00.

  5. #5
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    She drives me crazzy ! Don't work ; still "fleas"... verry disappointed ... I have now five display useless...

  6. #6
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    Here : http://www.edaboard.com/ftopic324477.html&usg , I find something interesting...

  7. #7
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Default

    So, somebody is selling fake 3310 LCD displays, that are actually with 102*80 controllers. Nice practical joke!
    I bet that those aren't made by Philips, Samsung or Seiko Epson.

    BR,
    -Gusse-
    Last edited by Gusse; - 26th April 2010 at 03:20. Reason: Typo corrections

  8. #8
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Default Workaround ??

    Quote Originally Posted by fratello View Post
    She drives me crazzy ! Don't work ; still "fleas"... verry disappointed ... I have now five display useless...
    Hi Fratello,

    Try this one. It will change row after it has cleared 84 pixels. Old version changed row also after 84, but if you have 102 pixels per row then 502 positions are not enough.

    Code:
    <code><font color="#000000">Lcd_Data        <b>VAR BYTE
    </b>Cursor          <b>VAR BYTE
    
    </b>Lcd_Clear:
        <b>FOR </b>Cursor = 0 <b>TO </b>5
            PosX=0:PosY=Cursor:<b>GOSUB </b>Lcd_GotoXY
            <b>HIGH </b>Lcd_DC
            Lcd_Data = 0
            <b>FOR </b>Char = 1 <b>TO </b>84
                <b>GOSUB </b>LCD_ByteOut
            <b>NEXT </b>Char
        <b>NEXT </b>Cursor
        <b>RETURN
    
    </b></code>
    or

    Code:
    <code><font color="#000000">Lcd_Data        <b>VAR BYTE </b>[6]
    
    Lcd_Clear:
        PosX=0:PosY=0:<b>GOSUB </b>Lcd_GotoXY
        <b>HIGH </b>Lcd_DC
        Lcd_Data(0)=0:Lcd_Data(1)=0:Lcd_Data(2)=0:Lcd_Data(3)=0:Lcd_Data(4)=0:Lcd_Data(5)=0
        <b>FOR </b>Char=1 <b>TO </b>102
        <b>GOSUB </b>Write_LCD
        <b>NEXT </b>Char
        <b>RETURN
    
    </b>Write_LCD:
        <b>SHIFTOUT </b>SDIN,SCK,1,[ Lcd_Data(0),Lcd_Data(1),Lcd_Data(2),Lcd_Data(3),Lcd_Data(4),Lcd_Data(5) ]
        <b>RETURN
    
    
    </b></code>
    BR,
    -Gusse-

  9. #9
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    Thank's ! Of course, You are right ! So simple solution...Great !
    Code:
    Lcd_Clear:
    For cursor = 0 to 5
    	PosX=0:PosY=Cursor:Gosub Lcd_GotoXY
    	High Lcd_DC
    
    	For i= 1 to 84
          	Lcd_Data=0:Gosub Lcd_SentByte
          	Lcd_Data=0:Gosub Lcd_SentByte
    	Next i
    Next cursor
    Return

Similar Threads

  1. Nokia COLOR LCD PicBasicPro 2.50a example code
    By skimask in forum Code Examples
    Replies: 49
    Last Post: - 28th September 2011, 01:43
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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