3 phase sine wave generation using pwmmac api

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

3 phase sine wave generation using pwmmac api

535件の閲覧回数
vrushalitaklika
Contributor III

Hello,

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,
uint8_t priority,
uint8_t phaseA_channel,
uint8_t phaseA_negate_duty,
uint8_t phaseB_channel,
uint8_t phaseB_negate_duty,
uint8_t phaseC_channel,
uint8_t phaseC_negate_duty,
uint8_t modulation,
uint32_t* p_table,
uint8_t update,
uint8_t alignment,
uint8_t phases_type,
uint8_t swap,
uint8_t base_ch_disable_pin_state,
uint8_t compl_ch_disable_pin_state,
uint24_t start_offset,
uint24_t period,
uint24_t update_time,
uint24_t dead_time,
uint24_t min_pw);

Thanks

Vrushali

0 件の賞賛
1 返信

440件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Yes the listed functions are suitable for your purpose.

You will initialize the 2 functions, one for each inverter. eTPU channel A and B.

CodeWarrior eTPU Function Selector - NXP 

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.

regards,

Peter

 

 

0 件の賞賛