5. I2C_interrupt
5.1. Function description:
This demo shows the I2Cn master and I2Cm slave transmitting, receiving and end of transmit interrupt in cpu mode.
5.2. Test result:
If the data of receiving is equal to transmitting, and corresponding interrupt is triggered, print pass, if not print fail.
5.3. IO connection:
PAD |
PAD |
|---|---|
pad_i2cn_scl |
pad_i2cm_scl |
pad_i2cn_sda |
pad_i2cm_sda |
Note
The ‘m’ and ‘n’ in “i2cm” and “i2cn” indicate the peripheral number.