I am using a PIC16F876A. I bought a MELabs serial LCD a while ago. I connected it today to the PIC and loaded the "Hello World" program (hellox2.bas) I modified the mode from T9600 to N9600. I get characters on the LCD and probably would make sense if I spoke Russian, yet I skipped that class in high school. Is this code correct for the LCD and PIC I am using? Could I have damaged the LCD sometime long ago? When I ground out two of the pins on the back of the display to get the default values I get V1.1 N9600. Any ideas?
Code:
Include "modedefs.bas" ' Mode definitions for Serout
loop: Serout PORTC.6,N9600,["Hello",10,13] ' Display "Hello", next line
Pause 500 ' Wait .5 second
Serout PORTC.6,N9600,["World",10,13,10,13] ' Display "World", skip a line
Pause 500 ' Wait .5 second
Goto loop ' Do it forever
End
Bookmarks