21. I2C_pressure_test
21.1. Function description:
This demo randomly configure the transceiver and dma and cpu modes of the master and slave. The transmitter and receiver and the sending & receiving method of the master-slave device, and the size of the transmitted data are all determined by the random number generated by the rand() function.
21.2. Test result:
If the data received by receiver is equal to data sent by the transmitter, print pass, if not print fail.
21.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.