09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

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.

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

Bit 3 TSEDGE: Timestamp event active edge<br />

0: TIMESTAMP rising edge generates a timestamp event<br />

1: TIMESTAMP falling edge generates a timestamp event<br />

TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting<br />

Bits 2:0 WUCKSEL[2:0]: Wakeup clock selection<br />

000: RTC/16 clock is selected<br />

001: RTC/8 clock is selected<br />

010: RTC/4 clock is selected<br />

011: RTC/2 clock is selected<br />

10x: ck_spre (usually 1 Hz) clock is selected<br />

11x: ck_spre (usually 1 Hz) clock is selected and 2 16 is added to the WUT counter value<br />

(see note below)<br />

Note: WUT = Wakeup unit counter value. WUT = (0x0000 to 0xFFFF) + 0x10000 added when<br />

WUCKSEL[2:1 = 11].<br />

Bits 7, 6 and 4 of this register can be written in initialization mode only (RTC_ISR/INITF = 1).<br />

Bits 2 to 0 of this register can be written only when RTC_CR WUTE bit = 0 and RTC_ISR<br />

WUTWF bit = 1.<br />

It is recommended not to change the hour during the calendar hour increment as it could<br />

mask the incrementation of the calendar hour.<br />

ADD1H and SUB1H changes are effective in the next second.<br />

This register is write protected. The write access procedure is described in RTC register<br />

write protection on page 625.<br />

23.6.4 RTC initialization and status register (RTC_ISR)<br />

Address offset: 0x0C<br />

Power-on reset value: 0x0000 0007<br />

System reset value: Not affected except INIT, INITF and RSF which are cleared to 0.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16<br />

Reserved<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Res.<br />

TAMP<br />

2F<br />

TAMP<br />

1F<br />

TSOVF TSF WUTF ALRBF ALRAF INIT INITF RSF INITS SHPF WUT<br />

WF<br />

rc_w0 rc_w0 rc_w0 rc_w0 rc_w0 rc_w0 rc_w0 rw r rc_w0 r rc_w0 r r r<br />

Bits 31:17 Reserved<br />

641/1416 Doc ID 018909 Rev 3<br />

ALRB<br />

WF<br />

RECAL<br />

PF<br />

Bit 16 RECALPF: Recalibration pending Flag<br />

The RECALPF status flag is automatically set to ‘1’ when software writes to the RTC_CALR<br />

register, indicating that the RTC_CALR register is blocked. When the new calibration<br />

settings are taken into account, this bit returns to ‘0’. Refer to Section : Re-calibration on-thefly.<br />

Bit 15 Reserved, must be kept at reset value.<br />

r<br />

ALRA<br />

WF

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

Saved successfully!

Ooh no, something went wrong!