FTM counter synchronization

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

FTM counter synchronization

987 次查看
frankschuetz
Contributor I

Hello,

I have an additional question to FTM. I want to use the FTM synchronization (via hardware trigger 2) mode to update the FTM counter value to CNTIN register value on synchronization event. I have set up a FTM3 channel 2 to generate a signal (test signal 1KHz, square wave, 50% duty cycle). There is an input signal that is connected to the pin FTM3_FLT0 (FTM3 hardware trigger 2). This input signal should influence the FTM counter value that the output signal is also influenced and will get another duty cycle.

Unfortunately, it doesn't work! The test input signal is has 1500Hz, 50% duty cycle and square wave.

Is something not complete for the FTM3 setup or is my imagination wrong?

For pin FTM3_FLT0, I have setup the PTC12 and PTD12 with ALT6. The input signal was connected to TWR-K65F180 on extension plug (C43, B77 and B48). But nothing happens.

Here are 2 screenshots that shows the FTM3 configuration:

141889_141889.pngTWR-K65F180M_FTM3_part1.png

141896_141896.pngTWR-K65F180M_FTM3_part2.png

Thanks in advance!

标签 (1)
0 项奖励
回复
1 回复

713 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Frank Schuetz,

    About the FTM synchronization, please follow this application note: PWM Synchronization Using Kinetis Flextimers

http://cache.nxp.com/files/microcontrollers/doc/app_note/AN4560.pdf?fsrch=1&sr=1&pageNum=1

    In the application note, there has some sample code about how to do FTM sychronization and it's configuration.

Wish it helps you, if you still have question after you check the reference manual, please let me know!


Have a great day,
Jingjing

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

0 项奖励
回复