Hi
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?
Regards
Az
Hi,
the S32DS only uses reversed bit numbering. The RM shows standard PowerPC bit numbering: bit 0 is the most significant bit, and bit 15 is the least significant bit.
However position of the INDEP bit is same in the register.
FlexPWM_0.SUB[0].CTRL2.R = 0x2000; is correct usage.
BR, Petr