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
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
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
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 ...
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
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
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
OSSCON=%0111000 ... configures the actual PIC hardwareOSCCON = %01110000 '8 Mhz
Define OSC 8
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.
Bookmarks