I2c 28X1 Slaves

craig008

New Member
seeing that we can no use 28X1 as a slave that will 120 of th mto be connected together how will they be addressed and will there be any clash between current i2c slaves such as eeproms and rtc clocks. the system has massive potential for data loging from many sensors
________
Marijuana Vaporizers
 
Last edited:

Technical

Technical Support
Staff member
You can use any slave address (1 to 127) for the 'slave X1 devices' this is set by the hi2csetup command - look it up in the manual.

So as long as you don't use the same address as the eeprom / rtc etc you can easily combine them on the same bus.

The 'master' talks to the slaves via the hi2cin/hi2cout commands and this has a new structure to enable easy swapping between slave addresses (Which we must remember to document in the manual!)

hi2cout memory_address,(data,data,...)
hi2cout (data,data,...)
hi2cout [change_slave_address],memory_address,(data,data,...)






Edited by - Technical on 22/04/2007 22:26:37
 

hippy

Ex-Staff (retired)
Not saying it won't work, but it would be nice to know it does work as there have been reports that PICmicro I2C hardware does not necessarily behave the same for addresses $01-$10 as for $11-$7F.

I don't have any further details, and don't know if the 28X1's would be affected by this.
 
Top