CAI_Support
Senior Member
We start this topic for PCF8574 based IO expander chip and LCD module support for WC8.
PCF8574 is a I2C remote 8 bit IO expander IC. That is being widely used in a lot of parallel LCD module to I2C converter.
That chip's datasheet can be viewed here:
http://www.nxp.com/documents/data_sheet/PCF8574.pdf
Those module's default I2C address is 0x20. This chip seems can be easily write to that address with write flag, then followed with data, or read from the address with read flag, then following the byte being read.
Most LCD requires writing the configuration first, wait for a long delay, then write in four bits at a time, so that each byte will need to write two bytes, first lower nibble shift up, then higher nibble.
PCF8574 is a I2C remote 8 bit IO expander IC. That is being widely used in a lot of parallel LCD module to I2C converter.
That chip's datasheet can be viewed here:
http://www.nxp.com/documents/data_sheet/PCF8574.pdf
Those module's default I2C address is 0x20. This chip seems can be easily write to that address with write flag, then followed with data, or read from the address with read flag, then following the byte being read.
Most LCD requires writing the configuration first, wait for a long delay, then write in four bits at a time, so that each byte will need to write two bytes, first lower nibble shift up, then higher nibble.