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 ?
so the master prescale can only be utilized once but the Alternative can be utilized frequently using the API you send ?
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
what is the Master Bus Alternative Prescaler role ?
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:
Regards,
Daniel
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?