摘要
详细介绍了通过飞思卡尔单片机TPM(Timer/PWM Module)模块实现频率脉宽可调SPWM波形的控制原理;通过在主程序中进行数据计算和脉宽表格建立并在中断程序中查脉宽表的方法将查表法和实时计算法的优点结合在一起,克服了单片机运算能力不足而导致SPWM波输出频率无法连续变化的缺陷,使单片机片内资源合理利用,从而在电机调速控制系统应用中提高控制波形的灵活可调性。实验证明该方法实用可靠。
Introduced the method of generating SPWM wave by the TPM module of freescale MCU in detail. In order to combine the advantages of the table look-up method and real time calculation method, data calculation and plus-width table establishing were done in the main function and searching table was done in the interruption function. The disadvantage that the output wave cannot change continuously which was caused by the low calculation power of the MCU was avoided by this method. And the output wave can be more flexible controlled by effectively using the resource of the MCU. The symmetry rules sampling method is used in SPWM generation in order to be used in electronic motor control. Experimental result has verified the presented.
出处
《微电机》
北大核心
2009年第6期55-58,共4页
Micromotors
关键词
单片机
正弦脉宽调制
感应电动机
实验
MCU
Sine pulse width modelation
Induction motor
Experiment