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

Can I share SPI MISO pin for SPI peripheral and GPIO interrupt generating?

I got some SPI flash memory that is capable of generating interrupts in order to save some program/erase time and power consumption. The only drawback is that interrupt is generated on SPI MISO pin. I wonder if I can implement interrupt driven communication with that external flash memory without the need of reconfiguring peripherals every time I want to send some command or wait for interrupt.

In other words, Can I configure pin to work as SPI MISO pin and pin interrupt source simultaneously? I imagine that I only enable and disable pin interrupt when needed without the need for reconfiguring peripherals. (nRF51822)

Related