Download Print this page

ST STM32F301 6 Series Reference Manual page 181

Advanced arm-based 32-bit mcus

Advertisement

RM0366
Hardware interrupt selection
To configure a line as interrupt source, use the following procedure:
Configure the corresponding mask bit in the EXTI_IMR register.
Configure the Trigger Selection bits of the Interrupt line (EXTI_RTSR and EXTI_FTSR)
Configure the enable and mask bits that control the NVIC IRQ channel mapped to the
EXTI so that an interrupt coming from one of the EXTI lines can be correctly
acknowledged.
Hardware event selection
To configure a line as event source, use the following procedure:
Configure the corresponding mask bit in the EXTI_EMR register.
Configure the Trigger Selection bits of the Event line (EXTI_RTSR and EXTI_FTSR)
Software interrupt/event selection
Any of the external lines can be configured as software interrupt/event lines. The following is
the procedure to generate a software interrupt.
Configure the corresponding mask bit (EXTI_IMR, EXTI_EMR)
Set the required bit of the software interrupt register (EXTI_SWIER)
RM0366 Rev 5
Interrupts and events
181/874
192

Advertisement

loading
Need help?

Need help?

Do you have a question about the STM32F301 6 Series and is the answer not in the manual?

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series