S32K312 PWM OUTPUT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K312 PWM OUTPUT

256 Views
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 Kudos
3 Replies

189 Views
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 Kudos

182 Views
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 Kudos

177 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@NITHYANANTHVS

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

0 Kudos