I2C with two picaxes

russbow

Senior Member
The attached is an idea of using an 08m2 to write to an eeprom and a 18m2 to read from the eeprom.
I have used multiple devices on an I2C bus before -> picaxe, RTC, eeprom, but never two picaxe chips.

Is this possible and are there any pitfalls.
 

Attachments

nick12ab

Senior Member
PICAXE doesn't support multi-mastered i2c so you would have problems doing it like that. You'd have even more of a problem if the clock line on the PICAXEs stay as outputs when they are not using the bus.

You would have to at the very lease#t implement some extra handshaking between the two PICAXEs, or check whether the bus is in use by the other PICAXE before the first PICAXE uses the bus.
 

russbow

Senior Member
Thought so.

Thanks Nick. Guessed it wasn't straightforward hence the question.
Stick with the 18m2 to do both tasks
 

russbow

Senior Member
Yes, I think I've got to try that. Was just hoping to use existing program with minor mods.
A total re-write and clean up wouldn't be a bad thing though. Nowt else to do with this constant rain is there. :eek:
 
Top