I want to generate dual inverter, where in two 3 phase sine wave will be generated.
ETPU A0 etpu A2 etpu A4 will be in phase shift of 120 degree and 240 degree and its respective compliment will be Etpu A1, etpu A3, etpu A5.
Similarily another 3 phase sine wave will be for etpu engine B
etpyB0, B2 and B4 will be in phase shift of 120 degree and 240 degree and its respective compliment will be etpub1 etpub3 etpub5.
I want to generate a phase shift between following pairs
etpu a0 - etpu b0
etpu a1 - etpub1. and so on.
All the pairs will have common phase shift alpha.
Can you please let me know if this is possible using below api, if not then is there any other apis to generate phase shift.
/* Initialization of PWMMAC channel and 3 phases. */
int32_t fs_etpu_pwmmac_init_3ph( uint8_t channel,
Yes the listed functions are suitable for your purpose.
You will initialize the 2 functions, one for each inverter. eTPU channel A and B.
You need just to configure start offset for second inverter and it will start with shifted period against A channel.
However there is already a new set of eTPU funcitons:
For this purpose you can use pwmm function. You can download it from address above.