carrotts
Member level 1

picbasic i2c
I am developing a system that needs to be expandable. The system uses PIC micro (16F876), and simply counts input pulses and stores values to external I2C memory. The system can contain several of these counter devices. One main PIC then collects info from the Counter PICs and/or I2C memory and passes this data to a PC via a RS232 Link. The main PIC is used so that the counter PICs are not stopped counting whilst passing data. I am using PIC basic Plus, and can get a counter PIC to talk to I2C. The difficulty comes when trying to talk between two PIC's, as both want to be master devices. Does anyone have any suggestions?
Thanks in advance
Carrotts
I am developing a system that needs to be expandable. The system uses PIC micro (16F876), and simply counts input pulses and stores values to external I2C memory. The system can contain several of these counter devices. One main PIC then collects info from the Counter PICs and/or I2C memory and passes this data to a PC via a RS232 Link. The main PIC is used so that the counter PICs are not stopped counting whilst passing data. I am using PIC basic Plus, and can get a counter PIC to talk to I2C. The difficulty comes when trying to talk between two PIC's, as both want to be master devices. Does anyone have any suggestions?
Thanks in advance
Carrotts