How to use timer to capture on JN5189

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

How to use timer to capture on JN5189

跳至解决方案
2,355 次查看
lvdp
Contributor III

Hi:

    We need to use the JN5189 timer to capture the width of the PWM. I saw this API CTIMER_SetupCapture() in the SDK, but there is no driver_examples. I don’t know how to use this function. At the same time, the datasheet does not indicate which PIN can be used to timer capture,and which capture channel corresponds to. Can you tell me?

标签 (3)
0 项奖励
回复
1 解答
2,318 次查看
nxf56274
NXP Employee
NXP Employee

Hi,

You can read the CR register.

1.PNG

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 days 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 项奖励
回复
3 回复数
2,346 次查看
nxf56274
NXP Employee
NXP Employee

Hi,

The pin description is in chapter 8 of RM. You can refer this link CTIMER to know how to capture. 

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 days 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 项奖励
回复
2,337 次查看
lvdp
Contributor III

Yes, we found the pin description on datasheet later,but I did not find the CTIMER_GetCAPCounter()  in the SDK of JN5189

0 项奖励
回复
2,319 次查看
nxf56274
NXP Employee
NXP Employee

Hi,

You can read the CR register.

1.PNG

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