节点文献
基于串口提高MCU-51矩形单脉冲脉宽精度的方法
Method Based on Serialport to Improve Pulse Width Precision of Rectangle Single Pulse in by MCU-51 Produced
【摘要】 为提高传统PWM(Pulse Width Modulation)、软件延时方式所产生的矩形单脉冲的精度,提出一种基于51单片机串口产生矩形单脉冲的方法。控制51单片机(MCU-51)的串行通信口工作于方式3(9位异步通信方式),对外发送特定的数码,利用串口通信中数据帧的特殊结构形成宽度可调的矩形单脉冲;设置定时器T2工作于波特率发生器模式,控制串口的波特率,改变每个数据位的时间宽度,实现多个脉冲宽度值。实验数据表明,该方法产生的矩形单脉冲的脉宽精度能达到硬件晶振精度。
【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.
【Key words】 rectangular single pulse; single chip microcomputer(MCU); serial port communication; baud rate;
- 【文献出处】 吉林大学学报(信息科学版) ,Journal of Jilin University(Information Science Edition) , 编辑部邮箱 ,2016年04期
- 【分类号】TN782
- 【被引频次】3
- 【下载频次】36