Hi @Sambasiva
First, there are two types of counter buses: global buses and local buses.
- Global: Bus A (Channel 23) and Bus F (Channel 22).
- Local: Bus B (Channel 0), Bus C (Channel 8), and Bus D (Channel 16).
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