S32K116 FTM input capture

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

S32K116 FTM input capture

1,000 次查看
hanchengyu11
Contributor I

I set FTM0_CH4 for input capture(Capture on Rising Edge Only).After ftm initialization is complete, an interrupt occurs,But there is no input change on the FTM0_CH4 pin。(This pin has to do 5v pull-up)

0 项奖励
回复
2 回复数

984 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi 

Which interrupt occurs after ftm initialization is complete? Did you check the flags? 
47.7.1 Timer Overflow Interrupt
The timer overflow interrupt is generated when (TOIE = 1) and (TOF = 1).
47.7.3 Channel (n) Interrupt
The channel (n) interrupt is generated when (CHIE = 1) and (CHF = 1).

Are you testing the code of 3.5. Single-edge capture mode of AN5303 AN5303SW? Or test the examples in the S32K1 SDK?


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 项奖励
回复

960 次查看
hanchengyu11
Contributor I

I use 47.7.3 Channel (n) Interrupt ,and the CHF flag is set.

I've used  the examples in the S32K1 SDK, the phenomenon is the same。

 

 

0 项奖励
回复