论文部分内容阅读
使用2片C8051F020微控制器,通过其自身的SMBus总线进行扩展,实现了多路模拟量和数字量的输入与输出的应用系统。应用系统使用了USB-UART桥接电路,实现了虚拟串口的USB传输。文中首先简要介绍了C8051F020 MCU与CP2101桥接电路的特点,然后详细阐述了SMBus的总线协议,并说明了上下位机的通信协议以及两片下位机的基于SMBus的数据通信,最后给出了主下位机的程序流程图。
Using two C8051F020 microcontrollers, it expands through its own SMBus bus, enabling multiple analog and digital input and output applications. The application system uses the USB-UART bridge circuit to realize the USB transmission of the virtual serial port. The paper first briefly introduces the characteristics of C8051F020 MCU and CP2101 bridge circuit, and then elaborates the SMBus bus protocol, and describes the upper and lower computer communication protocol and two lower computer based SMBus data communication, and finally gives the main subordinate Machine program flow chart.