PWM with device initialization

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

PWM with device initialization

1,017件の閲覧回数
Juls
Contributor III

Hi im using a MC9s08QE32

I want to have a constant pwm

So in device initialization I set the right timer and channel for the pin im using

Set it to edge aligned

Set modulo to 99 and compare value to 50 for now

and set output on compare

 

but the thing doesnt seem to work

I must use ovf interruption to clear the pin??

and another thing is how do i increase or decrease the pwm

simply writing c0vl and c0vh at any moment?

ラベル(1)
0 件の賞賛
1 返信

235件の閲覧回数
ProcessorExpert
Senior Contributor III

Hello,

 

settings on attached screenshot should help you to solve your problem.

 

best regards
Vojtech Filip
Processor Expert Support Team

 

 

0 件の賞賛