Scan the I2C bus for devices and display their addresses.
Supported Platforms: MOD5441x, NANO54415
ScanI2CBus sends out a request on the I2C bus and waits for an ack, scanning each address in the address space. If a device responds, the device address is reported.
This utility is very helpful to:
- Verify the hardware is connected correctly.
- Understanding the addressing in I2C device data sheets. Some data sheets include the read/write bit as part of the address, and some do not.
Notes when using a MOD5441x and the MOD-DEV-70 development board:
- The MOD5441x has up to 5 I2C ports that can be used: 0, 1, 2, 4 and 5.
- I2C0, J2-39 and J2-42: This is the default I2C peripheral. It has 4.7k pull up resistors on SDA and SCL, and is connected to a real time clock chip.
- I2C1, J2-41 and J2-44: Sgnals are not connected to anything, but you will need to add pull up resistors.
- I2C2, J2-17 and J2-18, are used for USB, but can be converted to I2C2 by moving 2 resistors on the MOD5441x. The ordering model number is MOD54415-100IR-I2C2. Refer to PCN 001 on the MOD5441x product page.
- I2C4, J2-3 and J2-4: Signals are used for UART0 serial port
- I2C5, J2-21 and J2-22: Signals are used for UART1 serial port