RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
I2C Eeprom Demo

This demo (i2cEepromDemo directory) demonstrates the usage of the I2C driver to establish communication with the on-board EEPROM device, specifically the AT24C01 that is used in the Trion T120F324 and T120F576 development kit. The UART console serves as an interactive terminal that allows you to select the available operations, specify the address and number of bytes to read/write, and provide the data to be written. This example shows you on the interaction and configuration with the onboard EEPROM using the I2C driver that facilitates the data transfer and its manipulation through the UART console.

For more detail of the driver, refer to I2C Driver

Newlib

By default, newlib-nano is used for this demo.

See also
User Debug Configuration - To learn more about User Debug Configuration.

Execution Sequence:

The following shows the expected execution sequence:

T120F324/T120F576 Dev Kit on-board EEPROM, AT24C01 i2c-demo !
Please make sure you are using the T120F324/T120F576 Dev Kit to run this demo!
Please choose the feature you would like to run (Key in the selection and press enter):
1: Write a byte to EEPROM
2: Read a byte from EEPROM
3: Current Address Read (Last accessed address incremented by 1)
4: Read multiple byte from EEPROM
5: Write multiple byte to EEPROM