eTimer PWM Generation

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

eTimer PWM Generation

1,490 次查看
flofa
Contributor II

Hello

i am using the eTimer peripheral for generating a PWM signal.

I use the "variable frequency mode" with "OUTMODE = toogle OFLAG O/P using alternating compare reg" and i can generate a PWM signal with duty cyles 1% to 99%.

I do not know how to generate a duty cyle of 0% (output signal = low) and a duty cycle of 100% (output signal = high).

How to generate these signals in variable frequency mode?

Maybe i have to switch the "OUTMODE" to "software controlled mode"?

Best regards,

Florian

标签 (1)
标记 (3)
0 项奖励
回复
4 回复数

1,256 次查看
flofa
Contributor II

I resolved it the following way for the VARIBALE-FREQUENCY-PWM-Mode:

If (DC = 0% or 100%)

Then OUTMODE = Software Controlled, VAL = 0 or 1, FORCE = 1

Else (0% < DC < 100%)

Then OUTMODE = toogle OFLAG O/P using alternating compare reg, CMPLD1 = off time, CMPLD2 = on time

Best regards,

Florian

0 项奖励
回复

1,256 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I have discussed it with my colleague and the only way to implement it like you do.

Peter

0 项奖励
回复

1,256 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

actually this is the way i would use it.

However I can on Monday ask colleague who has deep knowledge on it if there is any other way.

Peter

0 项奖励
回复

201 次查看
archanab1
Contributor I

Hi all,

I want to generate pwm with complementary and phase shift functionality using etimer module.

is it possible to achieve this? how?

 

Thanks

Archana

0 项奖励
回复