This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI Slave Chip select as an Interrupt

Hi, I am planning to interface nRF51822 SPI( Slave ) port with another microcontroller. to achieve proper SPI synchronization , whenever nRF is ready to transmit data on SPI bus, it makes a GPIO output high ( Interrupt to microcontroller name it as INTERRUPT2CONTROLLER ) . once SPI Master (Microcontroller) ready to read the data by initiating SPI Chipselect, I want to disable or make it low same INTERRUPT2CONTROLLER Gpio pin.

I would like to know ,is it possible to configure a gpio pin as interrupt and spi slave chip select? I will be very much thankful, if share an example code to configure GPIO pin an interrupt. Thanking you very much. Regards, Raju