In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Rsadeika wrote: Below is the PBASIC command description for I2CIN. It has a SlaveID requirement, my interpretation is that if you have two eeproms on the same line, you specify which eeprom you want to address, by using the eeprom ID. I have the I2C_UART demo board, on the board I have two hardwired I2C lines. On one of the I2C lines there is an eeprom and a two pin connector ( I2C bus). If I had another I2C device on the two pin connector, I would need a SlaveID to get to that device, correct? Now, if I was really ambtious and added more connectors and added more I2C devices, how do I get to them. Thanks Ray I2CIN Pin, SlaveID, Address {\LowAddress}, [InputData] p Function 2 Receive data from a device using the I C protocol. . Pin is a variable/constant/expression (0 or 8) that specifies which 2 I/O pins to use. I C devices require two I/O pins to communicate. The Pin argument serves a double purpose; specifying the first pin (for connection to the chip's SDA pin) and, indirectly, the other required pin (for connection to the chip's SCL pin). See explanation below. Both I/O pins will be toggled between output and input mode during the I2CIN command and both will be set to input mode by the end of the I2CIN command. . SlaveID is a variable/constant/expression (0 - 255) indicating the 2 unique ID of the I C chip. . Address is a variable/constant/expression (0 - 255) indicating the 2 desired address within the I C chip to receive data from. The Address argument may be used with the optional LowAddress argument to indicate a word-sized address value. . LowAddress is a variable/constant/expression (0 - 255) indicating 2 the low-byte of the word-sized address within the I C chip to receive data from. This argument must be used along with the Address argument. . InputData is a list of variables and modifiers that tells I2CIN what to do with incoming data. I2CIN can store data in a variable or array, interpret numeric text (decimal, binary, or hex) and store the corresponding value in a variable, wait for a fixed or variable sequence of bytes, or ignore a specified number of bytes. These actions can be combined in any order in the InputData list. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=141128#m141269 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)