AnsweredAssumed Answered

MPC5744P FlexPWM 0 and 1 synchronization

Question asked by ali meraj on Oct 17, 2018
Latest reply on Oct 23, 2018 by ali meraj

Hi,

 

I am trying to synchronize FlexPWM1 output with FlexPWM0 using EXT_SYNC interface to initialize the INIT_SEL counter but when I look at the scope I can see that there is about 40ns delay in generation of PWM of FlexPWM1 from FlexPWM0.

 

FlexPWM0

            (*l_flexpwm_ptr).SUB[0].CTRL2.B.INIT_SEL = 0;
            (*l_flexpwm_ptr).SUB[1].CTRL2.B.INIT_SEL = 2;
            (*l_flexpwm_ptr).SUB[2].CTRL2.B.INIT_SEL = 2;
            (*l_flexpwm_ptr).SUB[3].CTRL2.B.INIT_SEL = 2;

 

FlexPWM1

            (*l_flexpwm_ptr).SUB[0].CTRL2.B.INIT_SEL = 3;
            (*l_flexpwm_ptr).SUB[1].CTRL2.B.INIT_SEL = 2;
            (*l_flexpwm_ptr).SUB[2].CTRL2.B.INIT_SEL = 2;
            (*l_flexpwm_ptr).SUB[3].CTRL2.B.INIT_SEL = 2;

 

 

 

Why there is a delay of 40ns, what I could be doing wrong for PWM initialization.

 

Thanks,

Ali

Outcomes