FTM input capture mode, CnV value

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

FTM input capture mode, CnV value

1,260 次查看
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.

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

1,112 次查看
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 项奖励
回复