Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Ads

Discussion Groups

Discussion Groups | Piclist | I2C multimaster. Switching PIC between Master and Slave.

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

I2C multimaster. Switching PIC between Master and Slave. - Nick Alexeev - Jan 14 15:31:02 2008

Colleagues,=20

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

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

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

Cheers,=20
- Nick

to unsubscribe, go to http://www.yahoogroups.com and follow the instruction=
s=20

=20


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )