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 :
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.
解決済! 解決策の投稿を見る。
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.
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.
-------------------------------------------------------------------------------
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,
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.
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.
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.
-------------------------------------------------------------------------------