Hello there,
The FlexPWM module seems to be working fine in complementary mode, controlled by PWMA (23), but it seems to be not working when I configure to control by PWMB(45)
The only config that I'm trying to change are VALx registers and IPOL selection.
Is there anything that I'm missing ?
For my situation, I'm not changing the IPOL bits run time, fixed configuration before compiling. It works fine for PWMA case, but not for PWMB
Hi,
then do SW force out during initialization.
- have CTRL2[FRCEN]=1 and CTRL2[FORCE_SEL]=0
- set IPOL bit
- write 1 to CTRL2[FORCE]
BR, Petr
Hi,
The IPOL are buffered bits and do not take effect until a FORCE_OUT event takes place in the appropriate submodule. FORCE_OUT can be generated immediately upon SW FORCE, or based on several other HW signals (local reload/sysnc, master reload/sync, etc).
BR, Petr