emios pwm

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

emios pwm

1,888 次查看
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 项奖励
回复
6 回复数

1,868 次查看
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 项奖励
回复

1,878 次查看
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 项奖励
回复

1,873 次查看
Ayaz
Contributor IV

what is the Master Bus Alternative Prescaler role ?

 

0 项奖励
回复

1,871 次查看
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 项奖励
回复

1,868 次查看
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 项奖励
回复

1,858 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Ayaz,

It is included since RTD 4.0.0.

 

Regards,

Daniel

 

0 项奖励
回复