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 CCS Technical Support

I2C and RS-232

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







I2C and RS-232
PostPosted: Mon Mar 01, 2004 7:16 am     Reply with quote

Hi all, how is possible use simultaneusly RS-232 and I2C comunication.
Help????
agrj



Joined: 26 Sep 2003
Posts: 48

View user's profile Send private message

PostPosted: Mon Mar 01, 2004 7:20 am     Reply with quote

Peter,

first of all, we need some information:

which PIC are you using?
What are you trying to do?
could you post your code?

thanks

Dinho
Peter
Guest







RS232 and I2C
PostPosted: Mon Mar 01, 2004 7:31 am     Reply with quote

Hi all, I use a 16F876.How use simultaneusly I2C and RS-232 comunications.
Help???
agrj



Joined: 26 Sep 2003
Posts: 48

View user's profile Send private message

PostPosted: Mon Mar 01, 2004 7:37 am     Reply with quote

Peter,

I just check the datasheet and, yes it's possible to use both interfaces.

I2C is tied to PINs 23 an 18 and RS232 to 25 and 26.

to use I2C you have to connect all your devices to SCL and SDA, and put a pull up resistor in each line.

to use RS232 you will need a MAX232 or alike and connect RX to TX and vice-versa.

I don't know exactly what you want to know. If I can help you with something else, let me know, but explaim better your doubts.

thanks

Dinho
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