摘要
以电能计量芯片ATT7022B为例,详细分析了SPI总线接口的工作原理和特点。并运用软件模拟SPI总线时序的方法,解决电能计量芯片ATT7022B与ARM7系列中的EP7312的通信接口时序不匹配的问题,并成功实现两者的通信。文中将ATT7022B与EP7312直接相连,方便地实现了高速串行数据的传输,并给出了SPI的接口电路及软件设计流程图。设计完成后经测试证明,该方案完全满足SPI协议串行数据传输的要求,结构简单、性能可靠、具有较高的应用价值。
The paper takes energy metering IC ATT7022B as an example to analyze characteristics and theory of SPI bus interface in details. It provides how to use software to resolve the time sequence mismatching problem and implement the communication between ATT7022B and the chip of EP7312. The ATT7022B and EP7312 can be connected directly through SPI bus, and conveniently realizes high speed serial data transmission. The interface circuit and software design of SPI are also offered in this paper. The test results indicate that the design meets the demand of SPI protocol for serial data transfer, has the characteristics of simple hardware architecture, and is reliable in performance. It has high practical value.
出处
《电子测量技术》
2008年第5期88-90,94,共4页
Electronic Measurement Technology
关键词
SPI接口
时序逻辑
电量采集
SPI interface logical time sequence
electric energy collection