Hi Team,
In our motor control development with the S32K312 100-pin MCU, we are considering the below two PWM output mapping approaches.
Method-1 uses eMIOS channels along with LCU-based outputs:
Method-2 uses another PWM mapping option:
We need some more clarity from the NXP side regarding which PWM mapping approach should be selected and what the practical effects or limitations are for each method.
Please advise on the following points:
Please share your recommendations based on your experience and reference designs.
Regards,
Shiva
Hi @VaneB,
For the S32K312 100-pin MCU, we are considering the below PWM pin mapping option:
Pin Net Name Phase Side eMIOS Channel LCU Output
PTA0 PWMU_HS - U High-side eMIOS_1_CH[6]_H LCU0_OUT6
PTA1 PWMU_LS - U Low-side eMIOS_1_CH[15]_H LCU0_OUT11
PTA2 PWMV_HS - V High-side eMIOS_1_CH[19]_Y LCU0_OUT3
PTA3 PWMV_LS - V Low-side eMIOS_1_CH[20]_Y LCU0_OUT2
PTD2 PWMW_HS - W High-side eMIOS_1_CH[21]_Y LCU0_OUT1
PTD3 PWMW_LS - W Low-side eMIOS_1_CH[22]_X LCU0_OUT0
In this method, all six PWM outputs are mapped through the same eMIOS_1 instance. We believe this may be beneficial for synchronization and motor-control PWM generation.
Please confirm if this understanding is correct.
Also, please clarify the meaning and impact of the eMIOS channel types H, Y, and X in this configuration. We would like to understand whether these channel types have any major impact on PWM generation, synchronization, dead-time control, ADC triggering, or LCU TRGMUX usage.
Please review and guide us on whether this PWM pin mapping is suitable for our motor-control application.
Regards,
Shiva
Method 2 keeps all PWM channels within a single eMIOS instance, which gives you a shared time base and makes it much easier to achieve clean phase alignment and simpler timing overall.
On the other hand, Method 1 spreads the channels across multiple eMIOS instances and routes them through the LCU, following a structure similar to the eMIOS → TRGMUX → LCU approach used in the S32K344 3‑phase sensorless PMSM motor control reference design. This setup can be very helpful if you need more flexibility, such as advanced output conditioning, dead-time control, or adding fault-handling features later on.
That said, Method 1 does come with a bit more configuration effort and less synchronization because it uses multiple eMIOS instances. In practice, a good approach is to start with Method 2 for its simplicity and solid timing behavior, and only move to an LCU-based solution like Method 1 if your design later requires more advanced control or safety features.
For additional guidance, it is recommended to refer to the 3‑phase Sensorless PMSM Motor Control Kit with S32K344 application notes and associated software:
BR, VaneB