So how exactly am i suppose to use I2CWRITE or SHIFTOUT to print on LCD using the circuit i had attached earlier ?
Will i have to do some modification to the circuit or will it directly work if i just send the LCD commands to SHIFTOUT ? ? ?
So how exactly am i suppose to use I2CWRITE or SHIFTOUT to print on LCD using the circuit i had attached earlier ?
Will i have to do some modification to the circuit or will it directly work if i just send the LCD commands to SHIFTOUT ? ? ?
Has anyone designed a HD44780 2-wire (or 3-wire) LCD interface?
Has anyone got an example code in picbasic?
TX side - SEROUT directly replaces LCDOUT (pick your serial transmit format, i.e. baud rate, parity, etc)
RX side - SERIN data feeds byte information directly to LCDOUT (again, pick your serial receive format to math the transmit side)
3 wires - power, ground, serial transmit data
2 Wire: The master side may use I2CWRITE. On the slave side, you will need to build your OWN I2C routine, using the MSSP or Bit banging. Maybe you could use some part of the following...
http://www.melabs.com/resources/samp...p/i2cslave.bas
Still possible to set a PIC USART in Synchronous mode.
3 wire: The master side may use SHIFTOUT. On the slave side, same rule apply..
http://www.melabs.com/resources/samp...p/spislave.bas
To me, a 1 wire solution is more valuable. But if your board already have a I2C bus... it's tempting to use it.
Last edited by mister_e; - 5th June 2007 at 14:02.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Can it be done without using a PIC on the slave side?
Like 12F629 --> Shift register --> LCD
Bookmarks