09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>RM0090</strong> Real-time clock (RTC)<br />

To enable the RTC Tamper interrupt, the following sequence is required:<br />

1. Configure and enable the EXTI Line 21 in interrupt mode and select the rising edge<br />

sensitivity.<br />

2. Configure and Enable the TAMP_STAMP IRQ channel in the NVIC.<br />

3. Configure the RTC to detect the RTC tamper event.<br />

To enable the RTC TimeStamp interrupt, the following sequence is required:<br />

1. Configure and enable the EXTI Line 21 in interrupt mode and select the rising edge<br />

sensitivity.<br />

2. Configure and Enable the TAMP_STAMP IRQ channel in the NVIC.<br />

3. Configure the RTC to detect the RTC timestamp event.<br />

Table 96. Interrupt control bits<br />

Interrupt event Event flag<br />

Enable<br />

control<br />

bit<br />

Exit the<br />

Sleep<br />

mode<br />

Exit the<br />

Stop<br />

mode<br />

Alarm A ALRAF ALRAIE yes yes (1)<br />

Alarm B ALRBF ALRBIE yes yes (1)<br />

Wakeup WUTF WUTIE yes yes (1)<br />

TimeStamp TSF TSIE yes yes (1)<br />

Tamper1 detection TAMP1F TAMPIE yes yes (1)<br />

Tamper2 detection (2)<br />

TAMP2F TAMPIE yes yes (1)<br />

1. Wakeup from STOP and Standby modes is possible only when the RTC clock source is LSE or LSI.<br />

2. If RTC_TAMPER2 pin is present. Refer to device datasheet pinout.<br />

Exit the<br />

Standby<br />

mode<br />

yes (1)<br />

yes (1)<br />

yes (1)<br />

yes (1)<br />

yes (1)<br />

yes (1)<br />

Doc ID 018909 Rev 3 636/1416

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

Saved successfully!

Ooh no, something went wrong!