摘要
本文详细阐述基于STM32F103VB单片机与ST3232ECTR电平转换芯片,使用DB9针串口数据线,实现了按照RS232标准的单片机与PC间的串口通信。在IAR Embedded Workbench开发环境下,建立串口通信的项目工程,并对该工程的建立和管理做了介绍。调用STM32库函数,编写串行通信程序,提高了应用程序的准确性、高效性和可移植性。借助串口调试助手验证了单片机与PC间的串口通信,方便了单片机的开发。
This paper elaborates that based on STM32FlO3VB MCU and level conversion chip ST3232ECTR, the serial commu- nication of RS232 standard between the MCU and the PC is realized by using DB9-pin serial data line. A serial communication project is established in the development environment of IAR Embedded Workbench, and also the establishment and the management of the project are introduced. Calling STM32 library functions to write serial communication program, it improves accuracy, high efficiency and transportability of the application program. The serial communication between the microcontroller unit and the PC is verified by means of the "serial debugging assistant", so it facilitates the development of microcontroller unit.
出处
《自动化信息》
2010年第9期48-49,42,共3页
Automation Information