首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于串口提高MCU-51矩形单脉冲脉宽精度的方法
引用本文:张新宝,王海璇,周胜利,李宝华.基于串口提高MCU-51矩形单脉冲脉宽精度的方法[J].吉林大学学报(信息科学版),2016,34(4):496-500.
作者姓名:张新宝  王海璇  周胜利  李宝华
作者单位:吉林大学电子科学与工程学院,长春,130012;吉林大学电子科学与工程学院,长春,130012;吉林大学电子科学与工程学院,长春,130012;吉林大学电子科学与工程学院,长春,130012
基金项目:国家自然科学基金青年科学基金资助项目(61204055)
摘    要:为提高传统PWM(Pulse Width Modulation)、软件延时方式所产生的矩形单脉冲的精度, 提出一种基于51单片机串口产生矩形单脉冲的方法。控制51 单片机(MCU-51)的串行通信口工作于方式3(9 位异步通信方式), 对外发送特定的数码, 利用串口通信中数据帧的特殊结构形成宽度可调的矩形单脉冲; 设置定时器T2 工作于波特率发生器模式, 控制串口的波特率, 改变每个数据位的时间宽度, 实现多个脉冲宽度值。实验数据表明, 该方法产生的矩形单脉冲的脉宽精度能达到硬件晶振精度。

关 键 词:矩形单脉冲  单片机  串口通信  波特率
收稿时间:2015-06-03

Method Based on Serialport to Improve Pulse Width Precision of Rectangle Single Pulse in by MCU-51 Produced
ZHANG Xinbao,WANG Haixuan,ZHOU Shengli,LI Baohua.Method Based on Serialport to Improve Pulse Width Precision of Rectangle Single Pulse in by MCU-51 Produced[J].Journal of Jilin University:Information Sci Ed,2016,34(4):496-500.
Authors:ZHANG Xinbao  WANG Haixuan  ZHOU Shengli  LI Baohua
Institution:College of Electronic Science and Engineering, Jilin University, Changchun 130012, China
Abstract:The method of rectangular single pulse based on serial port of MCU-51 is proposed to improve the precision of rectangular single pulse generated by traditional PWM (Pulse Width Modulation) and software delay. Control the MCU-51 serial communication port work in mode 3-nine asynchronous communication mode, send specific digital, use the special data framestructure of the serial communication to formadjustablerectangular single pulse; Set timer T2 in the baud rate generator mode, by controlling the serial port baud rate, to change the duration of each data bit and realize multiple pulse width values. The experimental data shows that the pulse width accuracy of the rectangular single pulse can achieve crystal accuracy.
Keywords:rectangular single pulse  single chip microcomputer(MCU)  serial port communication  baud rate
本文献已被 万方数据 等数据库收录!
点击此处可从《吉林大学学报(信息科学版)》浏览原始摘要信息
点击此处可从《吉林大学学报(信息科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号