Simulated I2C slave machine and implementation method thereof, terminal equipment and storage medium

The invention provides a simulated I2C slave machine and an implementation method thereof, terminal equipment and a storage medium. The method comprises: after power-on, carrying out initialization setting on hardware peripherals; each time when the I2C host sends data, triggering the DMA controller...

Full description

Saved in:
Bibliographic Details
Main Authors LOU FANGCHAO, CHEN HUI, LIU XIANGUAN, WU ZHONGJIE
Format Patent
LanguageChinese
English
Published 28.04.2020
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention provides a simulated I2C slave machine and an implementation method thereof, terminal equipment and a storage medium. The method comprises: after power-on, carrying out initialization setting on hardware peripherals; each time when the I2C host sends data, triggering the DMA controller to transmit the data sent by the I2C host through input capture of the timer; entering a receivinginterruption process after data transmission of one byte is completed every time, and analyzing the data transmitted every time; and performing data validity judgment according to the analysis result,and feeding back corresponding response information to the I2C host according to the judgment result. According to the invention, while the I2C slave machine is simulated, the CPU resource occupationof the chip is reduced, the real-time performance of data transmission is improved, and the communication speed is greatly improved. 本发明提供了一种模拟I2C从机及其实现方法、终端设备和存储介质,其方法包括:上电后对硬件外设进行初始化设置;每当I2C主机发送数据时,通过计时器的输入捕获来触发DMA控制器传输I2C主机
Bibliography:Application Number: CN201911127894