EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

I2C multimaster. Switching PIC between Master and Slave.

Started by Nick Alexeev January 14, 2008
Colleagues,

Is it possible to choose between Master and Slave modes on the fly by
writing to the SSPCON register?

I will have two PICs in the system. One will handle the display,
another one will control the process. When the process isn’t running,
the display PIC should be the Master. When the process is running,
the display PIC should display the parameters. But the problem is
that I have a requirement from the guy, who developed the current
version of the control PIC firmware, that the control PIC shouldn’t
be interrupted for serial communication. I’m contemplating about
making a multimaster bus, where the process control PIC is a Master,
when the process is running, and the display PIC is a Master for the
rest of the time. I’ll probably add a handshaking line too. Do you
think that this is a good approach?

Another option would be to replace I2C with CAN, which is a peer-to-
peer bus to begin with.

Cheers,
- Nick

to unsubscribe, go to http://www.yahoogroups.com and follow the instructions


The 2024 Embedded Online Conference