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

commands over I2c bus

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



Joined: 31 Jul 2009
Posts: 1

View user's profile Send private message

commands over I2c bus
PostPosted: Fri Jul 31, 2009 3:43 am     Reply with quote

Hi

I am new to i2c and have finally got two pic's communicating (one master the other slave). Eventually I want to create an i2c lcd interface.

What I would like to know is receive strings from the master. I can receive bytes but don't know how or if its possible to receive strings.

James
Ttelmah
Guest







PostPosted: Fri Jul 31, 2009 7:20 am     Reply with quote

Strings, _are_ bytes.....
All a 'string' is in C, is a sequence of ASCII bytes, terminated by a '0'. Hence it is commonly referred to as a 'null terminated byte array'.
Such a sequence, can be sent over I2C, just as easily as any other byte sequence.

Best Wishes
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