Introduction
This example demonstrates writing data to & reading data from the EEPROM connected to the I2C controller. Application writes 10 Bytes to the EEPROM in interrupt mode and then reads back the same 10 Bytes.
The application makes use of the I2C LLD driver and it's memory read/write interrupt APIs.
Supported Combinations
Parameter | Value |
CPU + OS | r5fss0-0 nortos |
Toolchain | ti-arm-clang |
Boards | am273x-evm |
Example folder | examples/drivers/i2c/i2c_memory_read_interrupt_lld |
Steps to Run the Example
See Also
I2C Low Level Driver
Sample Output
Shown below is a sample output when the application is run,
[I2C] LLD Memory Read test Started ... !!!
[I2C] Application will write 10 consecutive bytes in interrupt Mode to EEPROM memory address 0x30 ...
[I2C] Application will read 10 consecutive bytes in interrupt Mode from EEPROM memory address 0x30 ...
[I2C] Data at address 0x30 : 0x0
[I2C] Data at address 0x31 : 0x1
[I2C] Data at address 0x32 : 0x2
[I2C] Data at address 0x33 : 0x3
[I2C] Data at address 0x34 : 0x4
[I2C] Data at address 0x35 : 0x5
[I2C] Data at address 0x36 : 0x6
[I2C] Data at address 0x37 : 0x7
[I2C] Data at address 0x38 : 0x8
[I2C] Data at address 0x39 : 0x9
All tests have passed!!