How to use timer to capture on JN5189

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use timer to capture on JN5189

ソリューションへジャンプ
1,011件の閲覧回数
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 解決策
974件の閲覧回数
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 返答(返信)
1,002件の閲覧回数
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 件の賞賛
993件の閲覧回数
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 件の賞賛
975件の閲覧回数
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 件の賞賛