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.

Setting up a hardware interrupt and GPIO with SSI2?



I am planning on having 3 SPI devices connected to my tiva tm4c123gxl.

I have a ST7735R with SD card interface and a wireless RF chip (NRF2401+).

Currently I have it wired as follows (as per an online library i found):

Tiva -> ST7735R
Vcc -> Lite
PB6 -> Miso
PB4 -> SCK
PB7 -> MOSI
PA4 -> TFT_CS
PE4 -> DC
Reset -> Reset
Vcc -> Vcc
Gnd -> Gnd

PA3 -> SD_CS
PA2 -> NRF2401 _CS

I need to add a pin to serve as an input hardware interrupt and and a pin to act as a GP output. The RF chip will pull one of it's pins low once it has received something and it has an enable pin that is different to the SPI pin that I have to toggle for specific times.

Which pins would be suitable for these two applications ( out of the ones remaining) and how do I set up a hardware interrupt?

Thanks in advance.

  • Hello,

    The GPIO output you need is NOT the Chip select, AKA: Frame select pin?

    Any GPIO can be generate input interrupts. The interrupt can be generated by sensing a rising edge, falling edge, both edge, sense low and sense high.
    And of course any GPIO pin can act as a simple output as the name implies "General Purpose Input/Output"

    Edit:

    Check here how to use a simple input interrupt:
    https://sites.google.com/site/luiselectronicprojects/tutorials/tiva-tutorials/tiva-gpio/digital-input-with-interrupt