CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

LCD expand I/o pcf8574

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
plainas



Joined: 22 Mar 2010
Posts: 4
Location: Portugal -> Aveiro

View user's profile Send private message MSN Messenger

LCD expand I/o pcf8574
PostPosted: Wed Dec 07, 2011 5:45 pm     Reply with quote

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: 9162
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Dec 08, 2011 6:43 am     Reply with quote

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: 1923
Location: Norman, OK

View user's profile Send private message

PostPosted: Thu Dec 08, 2011 7:07 am     Reply with quote

It's in the Code Library. Please try search before you ask!
_________________
Google and Forum Search are some of your best tools!!!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group