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
Solved! Go to Solution.
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
Maybe the PWMAFS field of the OCTRL register (page 669 in MC56F847xx Reference Manual, Rev. 1, 06/2012)
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...
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.
This is a possible work around i think.
I just hoped for a possibility to configure default output state to use OUTEN.
Thank You!
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