Hello All, I am currently working for NXPS32K388,RTD 5 version driver with EB tresos.
Can you please help me to understand how the eMIOS Channel master and UC channel selection ?
is single master Bus on eMIOS (0 or 1 or2 ) is enough to refer all the emios channels (eMIOS 0 has 3 Channels used, eMIOS 1 has 5 channels Used)?
Why we are configuring the default period for master ? how it is limiting or affecting the PWM period and Duty?
PWM mode i trying to use is OPWMB.
also Please share any reference document mentioning the step by step procedure for configuring PWM and the dependent Mcl modules.?
Thanks &Regards,
Sambasiva.
Hi @Sambasiva
First, there are two types of counter buses: global buses and local buses.
The main difference is that the local buses can only be used as a time base by specific channels. You can find the supported counter bus for each channel in Table 405 of the S32K3xx Reference Manual, Rev. 12.
Please also keep in mind that a counter bus can only be assigned to channels belonging to the same eMIOS instance. Therefore, if you need to use PWM channels from different eMIOS instances, you will need to configure a counter bus for each instance.
The selection between a global and a local bus depends on your application requirements. If several PWM channels need to share the same time base, you can assign them to the same counter bus, provided that the selected bus is available for those channels.
Regarding how the counter bus configuration affects the PWM frequency, as well as how the clock and prescaler parameters are involved, I recommend checking the thread eMIOS PWM configuration for 40% duty cycle of 1 second. In that thread, I explain in more detail how to calculate the PWM frequency according to the selected configuration.
BR, VaneB