LPC55S06 How do you Map Capture Inputs to CTimer Channels

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

LPC55S06 How do you Map Capture Inputs to CTimer Channels

跳至解决方案
1,506 次查看
ttahut
Contributor III

I want to use a CTimer on the LPC55S06 in timer mode and capture a signal on a Capture input.  The users manual (and data sheet for that matter) show capture inputs as CTIMER_INP0 - CTIMER_INP16 in the pin mux tables.  The CTIMER section of the manual indicates "The capture signal is generated by one
of the pins with a capture function. Each capture signal is connected to one capture
channel of the timer."  I do not see a way in the register descriptions to map a CTIMER_INPxx to a specific CTIMER and channel.  Are they just mapped sequentially so for example CTIMER_INP0 - CTIMER_INP3 are on CTIMER0 channels 0-3 respectively?  And following that, CTIMER_INP9 would be on CTIMER2 channel 1.  Or am I missing something in the manual?

 

Thanks in advance.

0 项奖励
回复
1 解答
1,478 次查看
ttahut
Contributor III

I saw that diagram, but unfortunately that chapter does not indicate how to map them in code.  Nor does the IOCON chapter.  However, diving deeper into the manual, the chapter that does provide information on how to map them is the INPUTMUX chapter (chapter 18). At least that chapter, along with the fsl_inputmux driver source, I was able to decipher how to get a CTIMER_INPxx mapped to a specific timer and channel (test case of 1, but I think I have figured it out

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,482 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @ttahut 

They can flexible to configuration, you can refer to the fig78:

Alice_Yang_0-1698311948782.png

For example, CTIMER_INP9 can configured to CTIMER0 capture0, also can configured to CTIMER2 capture 3. You can use config tool to check:

Alice_Yang_1-1698312110491.png

 

 

BR

Alice

 

0 项奖励
回复
1,479 次查看
ttahut
Contributor III

I saw that diagram, but unfortunately that chapter does not indicate how to map them in code.  Nor does the IOCON chapter.  However, diving deeper into the manual, the chapter that does provide information on how to map them is the INPUTMUX chapter (chapter 18). At least that chapter, along with the fsl_inputmux driver source, I was able to decipher how to get a CTIMER_INPxx mapped to a specific timer and channel (test case of 1, but I think I have figured it out

0 项奖励
回复