MPC5643L Complementary Mode PWMB control

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5643L Complementary Mode PWMB control

598 Views
yaort_amoureux
Contributor II

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 ? 

0 Kudos
3 Replies

574 Views
yaort_amoureux
Contributor II

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

0 Kudos

569 Views
PetrS
NXP TechSupport
NXP TechSupport

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

0 Kudos

586 Views
PetrS
NXP TechSupport
NXP TechSupport

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

0 Kudos