emios pwm

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

emios pwm

1,891 Views
Ayaz
Contributor IV

I am using eMIOS to generate PWM signal by using OPWMB mode, I am using an external counter bus, and I have some questions for configuration:

what is the Default period,  will the value for the  Default period have an effect if the period will also be defined using the function below ?

and what is the alternative master prescaler used for ? 

Skærmbillede 2024-01-29 101920.pngSkærmbillede 2024-01-29 101456.png

0 Kudos
Reply
6 Replies

1,871 Views
Ayaz
Contributor IV

so the master prescale can only be utilized once but the Alternative can be utilized  frequently using the API you send ?

 

0 Kudos
Reply

1,881 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Ayaz,

Yes, the PWM period in the OPWMB mode is given by the period of the selected external timebase.

The default period is set during the initialization of the driver, it can be change using the API you mentioned.

Master Bus Alternative Prescaler of the MCB can be set using this API:

Emios_Mcl_Ip_SetClockMode()

 

Regards,

Daniel

 

0 Kudos
Reply

1,876 Views
Ayaz
Contributor IV

what is the Master Bus Alternative Prescaler role ?

 

0 Kudos
Reply

1,874 Views
danielmartynek
NXP TechSupport
NXP TechSupport

This is a feature if the driver.

The prescaler can be changed using this function:

void Emios_Mcl_Ip_SetClockMode(uint8 Instance, const Emios_Mcl_Ip_ConfigType* const ConfigPtr, Emios_Ip_SelectPrescalerType Prescaler)

Take a look at the function in Emios_Mcl_Ip.c

It takes this parameter:

danielmartynek_0-1706539737754.png

 

Regards,

Daniel

 

0 Kudos
Reply

1,871 Views
Ayaz
Contributor IV

I cannot find the function in the RTD. My RTD version is 3,0,0. I am using the S32K344 microcontroller

Could you please let me know the version of RTD that includes the above function? 

0 Kudos
Reply

1,861 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Ayaz,

It is included since RTD 4.0.0.

 

Regards,

Daniel

 

0 Kudos
Reply