S32K312 PWM OUTPUT

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

S32K312 PWM OUTPUT

323件の閲覧回数
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 返答(返信)

256件の閲覧回数
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 件の賞賛

249件の閲覧回数
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 件の賞賛

244件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@NITHYANANTHVS

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

0 件の賞賛