PWM default output

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

PWM default output

跳至解决方案
2,363 次查看
matthiasuhlmann
Contributor II

Hi all,

 

Can somebody tell me how I can configure the default PWM output if i disable output with "PWMx_OUTEN"

I configured output in case of a fault and this works correct, but if i disable output with "PWMx_OUTEN" all outputs are "0". Is there a way to set the state required?

 

Best Regards,

Matthias

标签 (1)
0 项奖励
回复
1 解答
2,131 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Matthias,

If you clear the PWMA_EN/PWMB_EN bits in PWMA_OUTEN register, the PWM output pins will be disabled, in the case, the PWM_A and PWM_B pins will be float(in high impedance), the external pull-up or pull-down resistor will determine the pins state.

Because I am taking vacation, I can not test it, pls test it yourself.

BR

XiangJun Rong

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,131 次查看
cabl
Contributor III

Maybe the PWMAFS field of the OCTRL register (page 669 in MC56F847xx Reference Manual, Rev. 1, 06/2012)

0 项奖励
回复
2,131 次查看
matthiasuhlmann
Contributor II

HI Carlos,

PWMAFS in OCTRL is used to define the output state in fault state. I allready set up this register to define output in case of a fault detection, but if I disable the output using OUTEN the output state is not as defined in the OCTRL register...

0 项奖励
回复
2,131 次查看
cabl
Contributor III

I don´t know. I once did something similar with PWMA_SWCOUT and PWMA_DTSRCSEL when I wanted to stop the PWM output at a desired value.

2,131 次查看
matthiasuhlmann
Contributor II

This is a possible work around i think.

I just hoped for a possibility to configure default output state to use OUTEN.

Thank You!

0 项奖励
回复
2,132 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Matthias,

If you clear the PWMA_EN/PWMB_EN bits in PWMA_OUTEN register, the PWM output pins will be disabled, in the case, the PWM_A and PWM_B pins will be float(in high impedance), the external pull-up or pull-down resistor will determine the pins state.

Because I am taking vacation, I can not test it, pls test it yourself.

BR

XiangJun Rong

0 项奖励
回复