PWM Output Frequency

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PWM Output Frequency

Jump to solution
739 Views
SasiKumar_Vengam
Contributor II

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:

  1. clock prescaler is DIV_1
  2. prescaler clock source is EMIOS_PWM_IP_PS_SRC_PRESCALED_CLOCK
  3. 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.
  4.  
  5. SasiKumar_Vengam_1-1732110168664.png

     

    SasiKumar_Vengam_0-1732110138762.png

     

0 Kudos
Reply
1 Solution
718 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @SasiKumar_Vengam 

Check the following threads, it has information related to the topic that may be useful to you.

s32k312 emios pwm period

emios pwm configuration for 40% duty cycle of 1 second

Example S32K344 eMIOS DS3.5 RTD500

 

BR, VaneB

View solution in original post

0 Kudos
Reply
1 Reply
719 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @SasiKumar_Vengam 

Check the following threads, it has information related to the topic that may be useful to you.

s32k312 emios pwm period

emios pwm configuration for 40% duty cycle of 1 second

Example S32K344 eMIOS DS3.5 RTD500

 

BR, VaneB

0 Kudos
Reply