Update pwm duty cycle at rising edge

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Update pwm duty cycle at rising edge

470件の閲覧回数
christophosterl
Contributor I

Hello,

I have a problem with the settings of my pwm (K27). I'm updating the duty-cycle periodically. But even if the old and new duty cycle are the same, I see a jitter on my scope. Here, the "high" phase of the output signal is longer than it should be (e.g. 22us inset of 13us). So it seems that the couter is always started during a "high" phase. Is there any possibility to adopt the new duty cycle at a rising edge? I've tried several combinations of SWRSTCNT, SYNCMODE a.s.o, but did not find the correct combination.  

Do you have any ideas?

ラベル(1)
タグ(3)
0 件の賞賛
1 返信

411件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Have you refer the methods in ftm example of MCUXpresso SDK_2.5.0_MK27FN2M0Axxx15?

ftm_simple_pwm.png
Try to find examples that are similar to what you need then test.

SDK_2.5.0_MK27FN2M0Axxx15 ftm.png

For more detail, please read the "44.5.11.4 MOD register synchronization".

44.5.11.6 C(n)V and C(n+1)V register synchronization.png

44.5.11.4 MOD register synchronization.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
----------------------------------------------------------------------------------------------------------------------

0 件の賞賛