Changing PWM Duty Cycles

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Changing PWM Duty Cycles

1,953件の閲覧回数
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 返信

250件の閲覧回数
admin
Specialist II
Anyone?  Anyone?
0 件の賞賛