LCD going crazy!!!


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    bjsunbeam's Avatar
    bjsunbeam Guest


    Did you find this post helpful? Yes | No

    Default Re: LCD going crazy!!!

    try a pause between each lcd out
    Some of the cheaper LCD's are not good with fast transfers
    You can also try adjusting the LCD commandUs etc

  2. #2
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: LCD going crazy!!!

    I did try using define, same thing happens. I have been using this LCD for a couple of years now. This is happening since I upgraded to windows7 64 bit. and using microcode studio

    K

  3. #3
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: LCD going crazy!!!

    I also changed pic, used different pins for RS RE LCDout. I just have not changed the LCD module with a new one.. maybe its the LCD ...

  4. #4
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: LCD going crazy!!!

    How about:
    Code:
    Mainloop:
    
            LCDOUT $FE,1    ' Clear display
            PAUSE 50 
            LCDOUT $FE,2," This is a test"       ' Move to 1st line, writes 15 CHAR
            LCDOUT $FE,$C0,"Next or Select"     ' Move to 2nd line, writes 14 CHAR
            PAUSE 200
                
    GOTO Mainloop
    End
    Louie

  5. #5
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    967


    Did you find this post helpful? Yes | No

    Default Re: LCD going crazy!!!

    taking a cue from Louie, I'd say, you're writing too fast for the lcd to keep pace.

    You can try this
    Code:
    Mainloop:          
                     LCDOUT $FE,1    ' Clear display         
                     LCDOUT $FE,2," This is a test"       ' Move to 1st line, writes 15 CHAR         
                     LCDOUT $FE,$C0,"Next or Select"     ' Move to 2nd line, writes 14 CHAR 
    STOP 
    End

  6. #6
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: LCD going crazy!!!

    I think the revolution of the earth might of affected my chip. no but seriously I did not touch anything and it is working now...
    even with pause 100 after the LCDout...
    Althought i do not understand why I need these two line for my frequency:
    OSCCON = %01110000 '8 Mhz
    Define OSC 8


    the OSCCON = %01110000 says that is is running at 8Mhz...

    The program is not stable if I do not have BOTH of these lines... why ??


    ken

  7. #7
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: LCD going crazy!!!

    OSCCON = %01110000 '8 Mhz
    Define OSC 8
    OSSCON=%0111000 ... configures the actual PIC hardware

    Define OSC 8 ... is a directive to the COMPILER to notifiy it that you have set the PIC hardware for 8 MHz
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

Members who have read this thread : 0

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