PWM with device initialization

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

PWM with device initialization

1,009 次查看
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 回复

227 次查看
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 项奖励