How do I connect CT_INP3 to CT0_CAP1 on LPC55S69

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

How do I connect CT_INP3 to CT0_CAP1 on LPC55S69

638 Views
safiullah_hussa
Contributor III

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?

Labels (2)
3 Replies

524 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

524 Views
safiullah_hussa
Contributor III

Thank you Alice!

This does help!

0 Kudos

524 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 Kudos