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.
Solved! Go to Solution.
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
Hello @ttahut
They can flexible to configuration, you can refer to the fig78:
For example, CTIMER_INP9 can configured to CTIMER0 capture0, also can configured to CTIMER2 capture 3. You can use config tool to check:
BR
Alice
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