AnsweredAssumed Answered

PWM generation using MPC5744P FlexPWM - Bit numbering while debugging in S32DS

Question asked by on Mar 7, 2019
Latest reply on Mar 8, 2019 by Petr Stancik


I am working on PWM generation using MPC5744P FlexPWM. As seen in the datasheet (see the image 2 attached) the INDEP bit comes at bit 2 of the control register 'FlexPWM_SUBn_CTRL2'.


However, when I debug using S32 Design Studio, the INDEP bit is shown at bit 13 (see image 1). This is confusing to me.


Hence I am forced to configure the register as below,


FlexPWM_0.SUB[0].CTRL2.R    = 0x2000; // independent outputs


Could anyone please help to understand this?