Subsection 9.1.2 Timers Are Not the Only Source
A timer reaching its auto-reload value is one thing that can request an interrupt on the STM32C031C6, and we used it last week. The chip can also interrupt on reset; on the watchdog timer, a circuit whose job is to notice that software has stopped responding and restart it; on the serial peripherals (USART, SPI, I2C) when a byte has arrived or a transmission has finished; on the ADC when a conversion completes; on the DMA controller, which moves blocks of data without the processor’s involvement, when a transfer is done; and on the flash memory.
And finally, the chip can interrupt on a pin changing state, and that is this chapter’s subject. GPIO interrupts need extra hardware, for a reason worth understanding before class.
