摘要
针对CPU外围芯片增多、芯片间通信要求增高,接口短缺、通信繁复等问题,以I2C在三相电参数采集模块中的应用为例,阐述STM32F37系列微控制器I2C的工作原理及工作流程。介绍了I2C接口的硬件设计、接口初始化及数据传输实现方式,并通过详述其时序、滤波器设置及数据重装载工作原理,分析它在数据传输中的优势和特点。结果表明:此I2C接口在使用中可灵活设置、准确传输,具有接口程序可移植性强、硬件设计简单等优点。
Aiming at the problems such as the increase of CPU peripheral chips, chip communication requirements, the shortage of communication interface, the communication complexity etc, this paper elaborates the I2C work principle and work process of STM32F37 series microcontroller, with the application of I2C in the multifunctional electrical transducer. It introduces the hardware design, the initialization and the implementation of the data transmission of the STM32F37XX's I2C interface, analyzes the advantages and characteristics of the interface in data transmission by detailing its sequence, filter set and data reload works. The results show that the I2C interface can transmit data accurately, and it can be set flexibly, with the advantage of interface program portability, simple hardware design etc.
出处
《兵工自动化》
2014年第9期72-75,共4页
Ordnance Industry Automation