FTM input capture mode, CnV value

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FTM input capture mode, CnV value

1,256 Views
perryjagger
Contributor I

I'm using KV31F FTM1 ch1, FTM2 ch0, FTM3 ch1 as an input capture on both edges. The channels are generating interrupts, however the CnV value is only loading 0's. Is there a required command to start the CNT with input capture mode or a required way to read the Cnv?

Please see attached FTM1 ch1 Initialization code.

Tags (1)
0 Kudos
Reply
1 Reply

1,108 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Perry Jagger,

I strongly recommend you first check the input capture demo under MCUXpresso SDK.

Download from https://mcuxpresso.nxp.com/en/select ,

pastedImage_3.png

it support MCUXpresso IDE, IAR and KEIL.

There is a demo named "ftm_input_capture" under "driver_examles" folder:

pastedImage_4.png

Hope it helps,


Have a great day,
TIC

-------------------------------------------------------------------------------
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 Kudos
Reply