AM261x MCU+ SDK  10.02.00
I2C Slave Transfer

Introduction

This example shows Master Slave Communication between Two I2C instances.

One of the core is in control of the I2C Master instance and the other core is in control of the I2C Slave instance.

The main core in in control of the Master I2C Instance. The remote cores in in control of the Slave I2C Instance.

Two transactions are carried out in this example.

In the first transaction the Master Reads two bytes from slave in Blocking Mode. In the second transaction the Master Writes two bytes to slave in Blocking Mode.

Supported Combinations

Steps to Run the Example

Note
This is a system or multi-core project, so refer to system project build instructions for CCS project or makefiles whenbuilding the example.

See Also

I2C

Sample Output

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

[I2C SLAVE] I2C Master Slave Transaction Started ... !!!
[I2C MASTER] I2C Master Slave Transaction Started ... !!!
[I2C MASTER] Received Data 3 4 !!!
[I2C SLAVE] Transmitted Data 3 4 !!!
[I2C SLAVE] Received Data 1 2 !!!
[I2C MASTER] Transmitted Data 1 2 !!!
[I2C SLAVE] Transaction Complete !!!
[I2C MASTER] Transaction Complete !!!
All tests have passed!!