Wohn Guest
|
16F887 and serial LCD |
Posted: Thu Feb 12, 2009 8:52 pm |
|
|
I'm having a problem getting my LCD to work. NHD-0216K3Z-NSW-BBW and here is my code. Im just trying to get the backlight to turn on, and nothing is happening at all. Any help would be appreciated.
Code: | #include "16F887.h"
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_A0,invert, BITS=8, PARITY=N)
#fuses INTRC_IO,NOWDT,PUT,NOMCLR,NOPROTECT,NOCPD,NOBROWNOUT,NOIESO,NOFCMEN,NOLVP,NOWRT,BORV40
void main()
{
delay_ms(1000);
putc(0xFE);
delay_ms(2);
putc(0x53);
delay_ms(2);
putc(0x04);
while(1);
} |
|
|