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
已解决! 转到解答。
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
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...
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