LPC55S06 How do you Map Capture Inputs to CTimer Channels

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

LPC55S06 How do you Map Capture Inputs to CTimer Channels

Jump to solution
830 Views
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 Kudos
Reply
1 Solution
802 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
806 Views
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 Kudos
Reply
803 Views
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 Kudos
Reply