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.

TM4C1290NCPDT: Port A GPIO interrupt

Part Number: TM4C1290NCPDT


Looking at Table 2-9 from the data sheet on page 111, there is only one interrupt for Port A.

Does this mean there can be only one GPIO from port A that services an interrupt?

Thank you,

Priya

  • Hi Priya,
    This mean all 8 bits within port A are mapped to the same interrupt vector. In the ISR you will need to use GPIOIntStatus to find out which bit is active and service the corresponding bit accordingly.
  • When I need multiple external interrupts, I try to design my board so that each of these is located on a different GPIO port. That way you have a "dedicated" interrupt vector.
  • Hi Priya,
    I have not heard back from you. I assume you are clear now that for portA all 8 pins in this port share the same interrupt vector. Our community contributor twelve12pm also offers a suggestion for you to consider. I will close this thread for now. If you have new questions you can open a new thread or you can reopen this thread if you need further resistance.
  • A related question to this topic:
    To use an interrupt on a GPIO, it can be picked from any port? For eq., port G interrupt is currently unused. But some GPIOs from port G are being used. Can I assign the port G interrupt to an unused GPIO and use it for a different section in the PCB?

    Thanks,
    Priya
  • Hi,
    I'm not too clear what you meant by use it for a different section in the PCB. Yes, you can use port G interrupt to an unused GPIO pin in the same port if you enable the interrupt for the respective pin. For example, if you are currently using PG0/1/2/3 as a GPIO output and if you want to use GP4 to generate interrupt when a certain edge is detected on this pin then you just configure GP4 as an input with its interrupt enabled.