摘要
介绍了以PC机为上位机,以单片机MSP430F169为下位机的串口通信。PC机上用软件编写界面,界面可以通过串口控制数据收发和数据数量。单片机控制温度传感器DS18B20采集数据并处理,经过接口芯片FT245BM将数据传送给PC机并在编写的界面中显示,同时PC机也可通过界面发送数据给单片机,进而控制单片机外围设备,从而实现上下位机的双向通信。
This article introduces how to make serial communication by using PC as the host computer and SCM MSP430F169 as lower machine. The interface is written With software on personal computers and the interface can be controlled by serial port to receive data and the amount of data. The SCM controls temperature sensor DS18B20 to collect data and deal with it. Then, it sends data to PC through chip FT245BM which is displayed on the interface. At the same time, the PC sends data to SCM by the interface, and controls the peripheral of SCM. At last, the two-way communication between PC and SCM is realized.
出处
《山西电子技术》
2012年第6期86-88,共3页
Shanxi Electronic Technology
关键词
串口通信
FT245BM芯片
界面
单片机
serial communication
FT245 BM chip
interface
monolithic integrated circuit