emios _pwm

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

emios _pwm

跳至解决方案
782 次查看
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 解答
766 次查看
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 回复数
643 次查看
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 项奖励
回复
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 项奖励
回复