PWM with device initialization

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PWM with device initialization

984 Views
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?

Labels (1)
0 Kudos
1 Reply

202 Views
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 Kudos