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

3种基于HCS12定时器的PWM波形发生器的设计
引用本文:冯道宁,刘昭度,叶阳.3种基于HCS12定时器的PWM波形发生器的设计[J].武汉理工大学学报,2012,34(2):140-143.
作者姓名:冯道宁  刘昭度  叶阳
作者单位:1. 北京理工大学机械与车辆工程学院,北京100081;广西机电职业技术学院电气工程系,南宁530007
2. 北京理工大学机械与车辆工程学院,北京,100081
基金项目:国家“十一五”预研项目(40401040302)
摘    要:在车辆ASR系统开发中,提出了基于HCS12单片机增强型定时器复用I/O输出PWM信号的开发方案,解决了由于硬件限制导致PWM输出通道的不足的问题。介绍了单片机增强定时器通过输出比较寄存器、输出比较中断、TCNT输出翻转实现PWM波形输出的3种方法,详述了各方法中重要寄存器的设置和逻辑对应关系,并给出了相应的波形输出图和程序流程图,通过理论分析和实验结果探讨了不同设计方案的优缺点。

关 键 词:PWM  输出比较寄存器  占空比  TCNT

Three Designs of PWM Generator Based on HCS12 Timer
FENG Dao-ning , LIU Zhao-du , YE Yang.Three Designs of PWM Generator Based on HCS12 Timer[J].Journal of Wuhan University of Technology,2012,34(2):140-143.
Authors:FENG Dao-ning  LIU Zhao-du  YE Yang
Affiliation:1(1.School of Mechanical and Vehicular Engineering,Beijing Institute of Technology,Beijing 100081,China; 2.Department of Electrical Engineering,Guangxi Vocational College of Mechanical & Electrical Technology, Nanning 530007,China)
Abstract:The development of multiplex I/O output PWM waveform based on enhanced capture timer module of HSC12 single-chip is proposed in vehicle ASR system,to solves PWM output channels shortage due to hardware limitation led to the problem.Three approaches taken in the investigation is called output-compare register,interrupt caused by output-compare and TCNT output flip.Details of the methods set the single-chip registers and logical corresponding relation is introduced,the waveform output map and the procedure-flow chart is given.The character of different designs is proposed and the limitation is researched according to theory analysis the experimental results.
Keywords:PWM  output-compare register  duty  TCNT
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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