Interrupts
Interrupts allow a microcontroller to respond in real time to an event.
Interrupts can be divided into 2 sections:
* interrupts triggered by signal on external pins
* interrupts triggered by events timer : USART, DMA channel, SPI, I2C, etc
Let’s put together the following experiment for the first section (external event).
The idea is to switch on the L476 nucleo green light whenever the blue user button is pressed.
GPIO module
step #1 – Configure the GPIOA pin 13 as input
First of all, configure the GPIOA clock: see Clock Configuration. Then configure the GPIO: see Input mode configuration.
SYSCFG module
TO BE CONTINUED