PWM Output Frequency

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PWM Output Frequency

跳至解决方案
743 次查看
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 项奖励
回复
1 解答
722 次查看
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 项奖励
回复
1 回复
723 次查看
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 项奖励
回复