PWM23(Output polarity Inverted) channel masked,PWM23 output 1.
Can PWM23 output 0 ( PWM23 Output polarity Inverted & channel masked )?
And what should I do ?
Thanks.
Solved! Go to Solution.
Hi,
Pls refer to the above figure, in default, the POLA bit is cleared, in the case, if you set the MASK bit, PWM_A output signal will be logic 0.
If the POLA is set, in the case, if you set the MASK bit, PWM_A output signal will be logic 1.
The only way I think is that you clear the IPOL bit before you set mask bit so that the PWM_A output signal will be logic 0 after masking.
Hope it can help you
BR
XiangJun Rong
Hi,
Pls refer to the above figure, in default, the POLA bit is cleared, in the case, if you set the MASK bit, PWM_A output signal will be logic 0.
If the POLA is set, in the case, if you set the MASK bit, PWM_A output signal will be logic 1.
The only way I think is that you clear the IPOL bit before you set mask bit so that the PWM_A output signal will be logic 0 after masking.
Hope it can help you
BR
XiangJun Rong
Thanks
Thanks for your advice .
when set PWM1A Output polarity Inverted:
PWMA->SM1OCTRL |=0X0400; // PWM1A Output polarity Inverted
We write the MASK register to mask the PWM signals .
The PWM1A output always high ( 1 logic ).
Hi Zhang,
Could you please specify which part number is your question related to?
Best regards,
Tomas
MC56F83763
Thanks for your reminder .
Hi, Zhang,
Of course, you can write the MASK register to mask the PWM signals. If you want to update the PWM signals immediately after you write, pls set the corresponding UPDATE_MASK bit, then write the corresponding MASKA, MASKB or MASKX, the corresponding PWMA_xA, PWMA_xB, PWMA_xX will update immediately.
Hope it can help you
BR
XiangJun Rong