AnsweredAssumed Answered

How do I connect CT_INP3 to CT0_CAP1 on LPC55S69

Question asked by Safiullah Hussaini on Jun 16, 2019
Latest reply on Jun 19, 2019 by Alice_Yang

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?

Outcomes