AM261x MCU+ SDK: I2C Read

| AM261x MCU+ SDK 26.00.00 |

I2C Read

# Introduction

This example demonstrates reading data from I2C based EEPROM devices present in the board. Application reads 20 samples from the EEPROM and exits.

# Supported Combinations

# Steps to Run the Example

- When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
- Launch a CCS debug session and run the executable, see CCS Launch, Load and Run

# See Also

I2C

# Sample Output

Shown below is a sample output when the application is run,

[I2C] Read data ... !!!
[I2C] Sample 0: 49
[I2C] Sample 1: 48
[I2C] Sample 2: 48
[I2C] Sample 3: 49
[I2C] Sample 4: 65
[I2C] Sample 5: 0
[I2C] Sample 6: 0
[I2C] Sample 7: 0
[I2C] Sample 8: 48
[I2C] Sample 9: 49
[I2C] Sample 10: 48
[I2C] Sample 11: 49
[I2C] Sample 12: 51
[I2C] Sample 13: 50
[I2C] Sample 14: 50
[I2C] Sample 15: 51
[I2C] Sample 16: 0
[I2C] Sample 17: 0
[I2C] Sample 18: 0
[I2C] Sample 19: 0
[I2C] Read data ... DONE !!!
All tests have passed!!