PWM Output Frequency

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
803件の閲覧回数
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 解決策
782件の閲覧回数
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 返信
783件の閲覧回数
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 件の賞賛
返信