emios _pwm

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
783件の閲覧回数
Ayaz
Contributor III

Hi

I am using the example code for emios_pwm to get a pwm output at 400KHz.

configuration :

emios clock = 160MHz

pwm mode : OPWMB

the formular :

Ayaz_1-1710415581159.png

I conducted a lab test to measure the (PWM) output on an oscilloscope. The problem I'm having is that the delta frequency between the expected PWM output and the PWM output on the oscilloscope increases over 11 kHz, reaching 1000 kHz difference  at 400 kHz. 

 

what do i miss here ?

I am using s32k344 evaluation board.

 

0 件の賞賛
返信
1 解決策
767件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Note: Clock prescaler(Internal Prescaler) Will only have an effect in OPWFMB and OPMCB modes.(Shown in S32 Configuration Tool). If OPWMB mode is selected, only global prescaler(Master Bus Prescaler) is active by using S32CT.

Clock prescaler Will only have an effect in OPWFMB and OPMCB modes.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
644件の閲覧回数
Salomi
Contributor I

Hi @Robin_Shen ,

I am trying to generate the PWN frequency using EMIOS_pwm for two sets Set '0' ( TOH - 0.4ns,TOL - 0.85ns) and Set '1' (T1H - 0.8ns,T1L - 0.45ns )which is given below,

Salomi_1-1713166137827.png

 

Salomi_2-1713166137918.png

 

Note: Using the following pattern ,to control the LED strip (WS2812B).

          Core_CLk - 160MHz ,  EMIOS_0_CH17 , Mode: OPWMB , Counter Bus : A

kindly help me .

Thanks.

0 件の賞賛
返信
768件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Note: Clock prescaler(Internal Prescaler) Will only have an effect in OPWFMB and OPMCB modes.(Shown in S32 Configuration Tool). If OPWMB mode is selected, only global prescaler(Master Bus Prescaler) is active by using S32CT.

Clock prescaler Will only have an effect in OPWFMB and OPMCB modes.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信