This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1231H6PGE: Interrupt pin and corresponding ISR Execution

Part Number: TM4C1231H6PGE
Other Parts Discussed in Thread: EK-TM4C123GXL

Hi

We have a requirement to implement a time critical function using (high priority) interrupt input pin [as the maximum time to complete the execution of function & to take action is 10 msec].

Does the MCU part (TM4C1231H6PGE), we are using supports interrupt pin (rising/failing edges) and corresponding ISR execution.?

What are the available interrupt pins that we can use.?

Kindly respond us and let us know if you need more data on this.

Regards,

Felix.

  • Hi Felix,

      Yes, all GPIO pins are interrupt capable and you can specify rise or fall edge for interrupts. TivaWare has an example showing how the interrupts can be prioritized. Please go to C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c123gxl\interrupts for the example. 

  • Hi Charles,

    Please let us know how to configure GPIO as Interrupt (INT)? 

    We need to configure negative edge INT.

    We prefer to have this with MCU IO Pin#33 (PC7) & Pin#34(PC6).

    Do you see any specific constraint on this implementation.

    Kindly direct us to get this done.

    Regards,

    Felix.

  • Hi,

      This will be an example to configure PC7 negative edge interrupt.

    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);
    while(!(SysCtlPeripheralReady(SYSCTL_PERIPH_GPIOC)));
    GPIOPinTypeGPIOInput(GPIO_PORTC_BASE, GPIO_PIN_7);
    GPIOPadConfigSet(GPIO_PORTC_BASE, GPIO_PIN_7, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU);
    GPIOIntTypeSet(GPIO_PORTC_BASE, GPIO_PIN_7, GPIO_FALLING_EDGE);
    GPIOIntRegister(GPIO_PORTC_BASE, SW1Handler);
    GPIOIntEnable(GPIO_PORTC_BASE, GPIO_INT_PIN_7);
    IntEnable(INT_GPIOC);
    IntMasterEnable();