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
