EasyManuals Logo

ST STM32F102 series User Manual

ST STM32F102 series
690 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #127 background imageLoading...
Page #127 background image
RM0008 Interrupts and events
127/690
Figure 16. External interrupt/event controller block diagram
8.2.3 Wakeup event management
Cortexâ„¢-M3 is able to handle external events or internal events in order to wake up the core
(WFE). By configuring the external lines any I/O port, RTC Alarm and USB Wakeup Events
can be used to wake up the CPU (exit from WFE).
To use an external line as a wakeup event, refer to Section 8.2.4: Functional description.
8.2.4 Functional description
To generate the interrupt, the interrupt line should be configured and enabled. This is done
by programming the two trigger registers with the desired edge detection and by enabling
the interrupt request by writing a ‘1’ to the corresponding bit in the interrupt mask register.
When the selected edge occurs on the external interrupt line, an interrupt request is
generated. The pending bit corresponding to the interrupt line is also set. This request is
reset by writing a ‘1’ in the pending register.
To generate the event, the event line should be configured and enabled. This is done by
programming the two trigger registers with the desired edge detection and by enabling the
event request by writing a ‘1’ to the corresponding bit in the event mask register. When the
selected edge occurs on the event line, an event pulse is generated. The pending bit
corresponding to the event line is not set
trigger
selection
Peripheral interface
mask
register
Edge detect
AMBA APB bus
PCLK2
19
19 19
1919
circuit
Pending
register
interrupt
request
.
19
19
To NVIC Interrupt
Software
Controller
trigger
selection
Rising Falling
19
Event
mask
Pulse
generator
19
19
19
19
Input
Line
Interrupt
register register
register
19
19
event
register

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F102 series and is the answer not in the manual?

ST STM32F102 series Specifications

General IconGeneral
BrandST
ModelSTM32F102 series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals