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 ?
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
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