Hi,
We are using 3 PWM pins with EMIOS0 as instance in the S32k312 MCU using the S32 DS 3.5 IDE, we are getting an output frequency of 1.8k Hz for the PWM signal, but we need 10k Hz output frequency. Our core clock is running with PLL of 120M Hz.
PWM channel configuration:
- clock prescaler is DIV_1
- prescaler clock source is EMIOS_PWM_IP_PS_SRC_PRESCALED_CLOCK
- The period is 65534
The frequency of this channel should be calculated by below formula:output frequency = 120000000 / 1 / 65534 = 1.8k Hz
According to the formula, we have changed the default period to 12000, expecting an output frequency of 10k Hz but we are getting the same 1.8k Hz signal.
output frequency = 120000000 / 1 / 12000 = 10k Hz
Help us to get the desired frequency. -

