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)
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.
-------------------------------------------------------------------------------
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。