View previous topic :: View next topic |
Author |
Message |
hqv
Joined: 21 Sep 2005 Posts: 9
|
multi-Master how do i do it? aswser please |
Posted: Thu Nov 17, 2005 9:13 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
dyeatman
Joined: 06 Sep 2003 Posts: 1924 Location: Norman, OK
|
|
Posted: Thu Nov 17, 2005 9:43 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
|
Posted: Thu Nov 17, 2005 10:04 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
dyeatman
Joined: 06 Sep 2003 Posts: 1924 Location: Norman, OK
|
|
Posted: Thu Nov 17, 2005 10:22 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
|