Changing PWM Duty Cycles

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Changing PWM Duty Cycles

2,333 次查看
admin
Specialist II
Hi all,
 
I'm using an MC9S08AW16 and doing some stuff with the PWM output off of timer 2.  In my app, I need to change the duty cycle on the fly.  I consulted some Freescale app notes similar to my application, and found that they updated the PWM duty cycle (the timer channel's value register) using an interrupt generated by the timer channel that I'm using (TPM2CH1).  I've tried this several different ways, and the only way I've gotten this to work is if I update the duty cycle using the timer 2 overflow interrupt rather than the channel's interrupt.  Anyone experience anything similar?
 
Thanks,
Tomahawk
标签 (1)
0 项奖励
回复
1 回复

630 次查看
admin
Specialist II
Anyone?  Anyone?
0 项奖励
回复