SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
FILE: i2c_ex1_slave_receive_int.c
This program shows how to configure a receive interrupt on the slave module. This includes setting up the I2C0 module for loopback mode as well as configuring the master and slave modules. Loopback mode internally connects the master and slave data and clock lines together. The address of the slave module is set to a value so it can receive data from the master.
This is a 7-bit slave module address sent in the following format: [A6:A5:A4:A3:A2:A1:A0:RS]
A zero in the R/S position of the first byte means that the master transmits (sends) data to the selected slave, and a one in this position means that the master receives data from the slave.
External Connections
Watch Variables