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

multi-Master how do i do it? aswser please

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



Joined: 21 Sep 2005
Posts: 9

View user's profile Send private message

multi-Master how do i do it? aswser please
PostPosted: Thu Nov 17, 2005 9:13 pm     Reply with quote

Master-slave:

hello everybody:

my problem is this:
i have two pic's 16f877 and i need to transmit info between them,for this i supose to use the i2c protocol ,but i don't know whether it's possible.
i don't know as to do it?
everything information will be important .

thanks

hqv
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Thu Nov 17, 2005 9:43 pm     Reply with quote

Did you try looking at the FAQ?

CCS provides the hookup diagram and code for a simple comunications setup...

http://www.ccsinfo.com/faq/?23
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Thu Nov 17, 2005 10:04 pm     Reply with quote

dyeatman wrote:
CCS provides the hookup diagram and code for a simple comunications setup...

http://www.ccsinfo.com/faq/?23


I'm curious about the multi-master I2C too (and there have been discussions about it in the forum). The diagram you have given the link to is for RS485. Although multi-master I2C would look pretty much the same, except there will be no bus transceivers.
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Thu Nov 17, 2005 10:22 pm     Reply with quote

Actually, if you look at it more closely RS485 is just one of the types of communications. It also shows a direct single wire buss hookup. You gave no indication of the type of speed you require. For low speed the single wire buss hookup can be used or two lines can be used for higher speed duplex comms by modifying the routines already provided. A third type would be a direct highspeed connection of the two hardware UARTS TX=>RX and vice versa. No bus transceivers are needed there either. Using the UARTS you dont need any "drivers" just standard RS232 serial printf/putc/getc routines. Although more "elegant" I think I2c is a little overkill and complicated for a simple chip to chip hookup like this.
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