期刊文献+

STC单片机波特率自适应方法 被引量:5

Baud rate adaptive method for STC single-chip microcomputer
下载PDF
导出
摘要 为了缩小电路体积、降低硬件成本,同时又保证串口稳定可靠通信,采用的一种波特率自适应方法,该方法充分利用STC单片机运行速度快、拥有片内振荡器、片内资源丰富的特点,在串行通信程序中,利用单片机I/O口和定时器,对主机发送的固定字符进行测量、计算,得到合适的波特率常数,从而实现波特率自适应。给出了设计原理、实现方法、误差分析、流程图和部分程序,并通过应用实例验证该方法切实可行。 To reduce circuit volume and hardware cost, and at the same time, guarantee the stable and reliable serial port communication, a baud rate adaptive method is proposed. This method makes full use of STC microcontroller's characteristics of high-speed running, on-chip oscillator, rich on-chip resources. In the serial communication program, the microcontroller's I/O port and timer are utilized to detect and calculate the fixed character transmitted by host for getting the right baud rate constant, so as to realize the baud rate self-adaption. The design principle and realization method, error analysis, flow chart and part of the program are also given in this paper. The feasibility of the method was verified by a true example.
作者 赵培宇
出处 《现代电子技术》 2013年第23期41-43,46,共4页 Modern Electronics Technique
关键词 STC单片机 串口通信 波特率选择 自适应方法 STC single-chip microcomputer serial communication baud rate selection self-adaptive method
  • 相关文献

参考文献10

二级参考文献31

  • 1张敏,曹剑中,刘波,唐运刚.PC间实时全双工同步通信的实现[J].计算机应用,2003,23(z2):218-221. 被引量:2
  • 2赵炯,熊肖磊,周奇才.串行数据传输协议的剖析研究[J].计算机工程,2004,30(9):106-108. 被引量:13
  • 3余永权.ATMEL89系列Flash单片机原理及应用[M].北京:电子工业出版社,1997..
  • 4MSDN Library Archive [ EB/OL]. http://msdn.microsoft.com/archive/, 2002.
  • 5fCoder Group Int.. Look-RS232. http://www.lookrs232.com
  • 6HHD Software Serial Monitor. http://www.hhdsoftware.com
  • 7Month Hay Technology. Protocol Analyser. http://www.haytech. com.au
  • 8Flachmann & Heggelbacher. Docklight. http://www.fuh-edv.de
  • 9Moxa Technologies. SCOPE. http://www.moxa.com
  • 10Lightship Inc.. PortView. http://www.lightshipinc.com

共引文献66

同被引文献39

引证文献5

二级引证文献17

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部