摘要
在单片机应用中,常用的通信协议有CAN通信、I^(2)C、UART、SPI、Lin等方式,尤其是单片机与单片机、单片机与外设模块之间的通信都需要通信协议实现信息交换和资源共享。本文以SPI通信为例,阐述双MCU间的通信高效性和稳定性,当前设计SPI传输速率为1 Mb/s,经过测试验证,在高低温环境(-40~80℃)下能保持误码率为0,适用于汽车电子或家用电子产品。
In the application of single chip microcomputer,the common communication protocols include CAN communication,I^(2)C,UART,SPI,Lin,etc.Especially,communication protocols are required to realize information exchange and resource sharing between single chip microcomputer and single chip microcomputer,and between single chip microcomputer and peripheral modules.This paper takes SPI communication as an example to illustrate the efficiency and stability of communication between two MCUs.The current design SPI transmission rate is 1 Mb/s,and the test results show that the bit error rate can be kept at 0 under high and low temperature environments(-40 to 80℃).It can be used in automotive electronics or household electronic products.
作者
向小华
叶源
陈洋
童伟
柳文杰
Xiang Xiaohua;Ye Yuan;Chen Yang;Tong Wei;Liu Wenjie(Automotive Electronics Department,Wuxi Huapu Microelectronics Co.,Ltd.,Wuhan 430200,China)
出处
《单片机与嵌入式系统应用》
2023年第4期54-56,60,共4页
Microcontrollers & Embedded Systems
关键词
MCU
同步通信
SPI
主设备
从设备
MCU
synchronous communication
SPI
master device
slave device