Hi,
I am struggle with the InputMux feature on the LPC55S69.
I was able to find the example where an pin interrupt is connected.
/* Connect trigger sources to PINT */
INPUTMUX_Init(INPUTMUX);
INPUTMUX_AttachSignal(INPUTMUX, kPINT_PinInt0, DEMO_PINT_PIN_INT0_SRC);
INPUTMUX_AttachSignal(INPUTMUX, kPINT_PinInt1, DEMO_PINT_PIN_INT1_SRC);
INPUTMUX_AttachSignal(INPUTMUX, kPINT_PinInt2, DEMO_PINT_PIN_INT2_SRC);
INPUTMUX_AttachSignal(INPUTMUX, kPINT_PinInt0, DEMO_SEC_PINT_PIN_INT0_SRC);
/* Turnoff clock to inputmux to save power. Clock is only needed to make changes */
INPUTMUX_Deinit(INPUTMUX);
However I am trying to attach CT_INP3 to CT0_CAP1.
So I intend to write something like this.
INPUTMUX_Init(INPUTMUX);
INPUTMUX_AttachSignal(INPUTMUX, 0, kINPUTMUX_CtimerInp1ToTimer0Captsel);
INPUTMUX_Deinit(INPUTMUX);
the index parameter of the INPUTMUX_AttachSignal() function is where I am confused. What Index value should I put there?
Hello Safiullah Hussaini ,
If you want to attach CT_INP3 to CT0_CAP1, please config as below:
INPUTMUX_AttachSignal(INPUTMUX, 1, kINPUTMUX_CtimerInp3ToTimer0Captsel);
Hope it helps,
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 weeks 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.
-------------------------------------------------------------------------------
Thank you Alice!
This does help!
Hi Safiullah Hussaini ,
Welcome, it my pleasure! :smileyhappy:
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 weeks 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.
-------------------------------------------------------------------------------