HI,
I'm using a PIC16F877A to communicate with my LCD. I can send text to the LCD, however, when I try sending commands (e.g. clear display) nothing happens. Here is what i have for writing to the display:
movlw 0x50 ;LK162-12 address (write)
banksel SSPBUF
movwf SSPBUF
movlw 0xFE ;FE=command prefix, 0x58 (clear display)
banksel SSPBUF
movwf SSPBUF
movlw b'01011000'
banksel SSPBUF
movwf SSPBUF
I have ommitted the I2C initialization code. Can anyone tell me if there is something wrong with the way I'm sending the command.
Thanks,
Mark
LK162-12
Hi,
If you email me at support@matrixorbital.com, I will send you a sample I2C C code you can use. There is also a guide for developing or using I2C with our displays at http://www.lcdforums.com/forums/viewtopic.php?t=910.
Best Regards,
If you email me at support@matrixorbital.com, I will send you a sample I2C C code you can use. There is also a guide for developing or using I2C with our displays at http://www.lcdforums.com/forums/viewtopic.php?t=910.
Best Regards,
