摘要
在分析单片机串行口及定时器特性的基础上,提出两种单片机与PC机之间波特率自动检测的设计方案,即查表法和计算法。这两种方案简单、易行、可靠,尤其计算法不受系统主频的影响,在工程实际中具有较高的实用价值。
With the wide application of the distributed data acquisition system with multi - baud rate in industry, it is absolutely necessary to study a simple and reliable method to detect the transmission rate automatically. On the basis of analyzing characteristics of the SCM's (Single -Chip Microcomputer) serial port and timer, the paper presents two methods -table search and calculation, which automatically detect the baud rate of communication between SCM and PC. These two methods are all simple, reliable and feasible. In particular, the latter is not susceptible to the system oscillator and possesses high value in practice.
出处
《大连民族学院学报》
CAS
2008年第1期31-34,共4页
Journal of Dalian Nationalities University
关键词
串行通信
波特率
自动检测
serial communication
baud rate
automatic detection