Don't understand I2C addresses on Ashling LPC2106 eval board
2004-10-05 by brust@symyx.com
I'm trying to implement I2C communication with my Ashling LPC2106 eval board, and to get started, I've been reviewing the Ashling Full example. That project communicates with two I2C devices on the eval board, a 7-segment LED and a DIP switch. The documentation indicates the 7-segment display is at I2C address 0x01 and the DIP is at I2C address 0x00. However in the code, writes to the 7- segment LED use an address data byte of 0x42, which I interpret as a slave address of 0x21 and a direction bit of 0 (for writing). Similarly, when reading the DIP switch, the address data byte is 0x41, or a slave address of 0x20 and a direction bit of 1 (for reading). Is this an error in the eval kit documenation, or must the high nibble in the address be set to 0x2 for some reason? Thanks! Bill