摘要
在PIC单片机开发过程中,由于芯片固有的UART(通用异步收发器)硬件模块数量的限制,如何实现可靠的无硬件模块的串行异步通信,成为众多开发者关注的问题。针对该问题,从经典的起止式串行异步通信协议出发,提出了一种可靠、实用的软件串行异步通信方法——三倍速采样法,并对其原理、实现过程进行了分析和描述。应用结果表明,该方法配置灵活、实用可靠,为实现可靠的软件串行异步通信提供了较好的解决方案。
In the process of PIC development, the number of hardware Universal Asynchronous Receiver/Transmitter(UART) is limited. So how to realize reliable serial asynchronous communication without hardware UART has become a critical issue for many PIC developers. Aiming at to that issue, 3-times baud rate sampling method is put forward on the basis of classical start-stop serial asynchronous communication agreement, which is a reliable and practical method for software serial asynchronous communication. Then the method principle is analyzed, and realization process is described. The application results show that the method configuration is flexible, the method is convenient and reliable, which offers a better solution to realize reliable software serial asynchronous communication.
出处
《电子工程师》
2008年第9期40-41,50,共3页
Electronic Engineer
关键词
串行异步通信
UART
起止式协议
三倍速采样法
serial asynchronous communication
UART
start-stop protocol
3-times baud rate sampling