In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: The I2C bus is by definition half duplex. On a single I2C bus only one chip can be addressed at any time. If you want to address multiple chips simultaneously, you must have multiple I2C buses that are serviced simultaneously. You could dedicate an SX28 chip as follows: port A (pins ra.0 to ra.3) = serial port with TX,RX,RTS,CTS Use a max232 to connect to PC comport. This can connect to a USB to serial adapter to allow control via USB port B (pins rb.0 to rb.7) = 4x I2C bus port C (pins rc.0 to rc.7) = 4x I2C bus This gives you 8 independent I2C buses so you can connect 16 of your chips. The code for the SX chip would consist of 8 master I2C routines, plus a command routine that accepts commands via the serial port and dispatches them along the 8 I2C buses. This can be done. The whole would be command driven, meaning each I2C bus gets serviced when a command for that bus arrives. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79857#m80114 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)