S32K312 PWM OUTPUT

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K312 PWM OUTPUT

215 次查看
NITHYANANTHVS
Contributor II

Hi @Senlent 

Thank you for your continuous support.

I'm using the API Emios_Pwm_Ip_SetPeriod for setting the period for instance 0 and 1 with the following configurations.

NITHYANANTHVS_0-1712656300119.png

NITHYANANTHVS_1-1712656412413.png

 

NITHYANANTHVS_2-1712656448790.png

 

In autogenerated code it mentioned as Set period is only working in OPWFMB mode. For instance 0 OPWFMB mode is supporting, and it is working as per we expected. 

But for instance 1, OPWFMB mode is not supporting, and we tried with the following configurations for instance 1.

NITHYANANTHVS_3-1712656620395.pngNITHYANANTHVS_4-1712656629229.pngNITHYANANTHVS_5-1712656644335.png

 

Using with this configuration, all EMIOS 1 instance channels are not working as expected. 

Could you please give the guidance to resolve this.

Awaiting for your response.

Thank you

 

0 项奖励
3 回复数

148 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@NITHYANANTHVS

Emios_Pwm_Ip_SetPeriod->Set PWM using internal counter to a new period. Only DAOC and OPWFMB support.

Please call Emios_Mcl_Ip_SetCounterBusPeriod() for those PWM using master timer bus.

0 项奖励

141 次查看
NITHYANANTHVS
Contributor II

Hi @Senlent 

If I use this API  Emios_Mcl_Ip_SetCounterBusPeriod(), it will work for first pin only. If i configure more than one pin then the last pin only working remaining pin was not working as expected.

 

0 项奖励

136 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@NITHYANANTHVS

Isn't this the expected result? Because several of your channels use the same Counter bus.

0 项奖励