View previous topic :: View next topic |
Author |
Message |
plainas
Joined: 22 Mar 2010 Posts: 4 Location: Portugal -> Aveiro
|
LCD expand I/o pcf8574 |
Posted: Wed Dec 07, 2011 5:45 pm |
|
|
Good people, I am new to forum and would like to start sharing my ideas with you ... I've done several projects, nothing special but I know a few things.
I wanted to do now was to put an LCD connected to a PCF8574 to then turn on the pic for I2C. Anyone have any piece of C code for the PIC to make that communication with the PCF8574?
Thank you for your attention ... |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9226 Location: Greensville,Ontario
|
|
Posted: Thu Dec 08, 2011 6:43 am |
|
|
Yes, it can be done(commerical units available) but since the LCD would be used in 4 bit mode,using I2C will only save you 4 pins.As I2C is a short distance bus( onboard or close to PIC), you'ld probably be better using the 'flex_driver' for the LCD.You can always 'mux' the pins for other uses.
But..if you need the code, let Google find it for you. It is out 'there',though you may have to convert to CCS C. |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1934 Location: Norman, OK
|
|
Posted: Thu Dec 08, 2011 7:07 am |
|
|
It's in the Code Library. Please try search before you ask! _________________ Google and Forum Search are some of your best tools!!!! |
|
|
|