29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

.<br />

RM0008<br />

Interrupts <strong>and</strong> events<br />

9.2.1 Main features<br />

The EXTI controller main features are the following:<br />

●<br />

●<br />

●<br />

●<br />

9.2.2 Block diagram<br />

Independent trigger <strong>and</strong> mask on each interrupt/event line<br />

Dedicated status bit for each interrupt line<br />

Generation of up to 20 software event/interrupt requests<br />

Detection of external signal with pulse width lower than APB2 clock period. Refer to the<br />

electrical characteristics section of the datasheet for details on this parameter.<br />

The block diagram is shown in Figure 20.<br />

Figure 20.<br />

External interrupt/event controller block diagram<br />

AMBA APB bus<br />

PCLK2<br />

Peripheral interface<br />

20<br />

20<br />

20 20<br />

20<br />

Interrupt<br />

mask<br />

register<br />

Pending<br />

request<br />

register<br />

Software<br />

interrupt<br />

event<br />

register<br />

Rising<br />

trigger<br />

selection<br />

register<br />

Falling<br />

trigger<br />

selection<br />

register<br />

To NVIC Interrupt<br />

Controller<br />

20<br />

20<br />

20<br />

20<br />

20<br />

20<br />

Pulse<br />

20 generator 20<br />

20<br />

Edge detect<br />

circuit<br />

Input<br />

Line<br />

Event<br />

mask<br />

register<br />

ai15801<br />

9.2.3 Wakeup event management<br />

The STM32F10xxx is able to h<strong>and</strong>le external or internal events in order to wake up the core<br />

(WFE). The wakeup event can be generated either by:<br />

● enabling an interrupt in the peripheral control register but not in the NVIC, <strong>and</strong> enabling<br />

the SEVONPEND bit in the Cortex-M3 System Control register. When the MCU<br />

resumes from WFE, the peripheral interrupt pending bit <strong>and</strong> the peripheral NVIC IRQ<br />

channel pending bit (in the NVIC interrupt clear pending register) have to be cleared.<br />

● or configuring an external or internal EXTI line in event mode. When the CPU resumes<br />

from WFE, it is not necessary to clear the peripheral interrupt pending bit or the NVIC<br />

IRQ channel pending bit as the pending bit corresponding to the event line is not set.<br />

Doc ID 13902 Rev 9 175/995

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!