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 />

23.6 RTC registers<br />

Refer to Section 1.1 of the reference <strong>manual</strong> for a list of abbreviations used in register<br />

descriptions.<br />

The peripheral registers can be accessed by words (32 bits).<br />

23.6.1 RTC time register (RTC_TR)<br />

The RTC_TR is the calendar time shadow register. This register must be written in<br />

initialization mode only. Refer to Calendar initialization and configuration on page 625 and<br />

Reading the calendar on page 626.<br />

Address offset: 0x00<br />

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

System reset: 0x0000 0000 when BYPSHAD = 0. Not affected when BYPSHAD = 1<br />

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

Reserved<br />

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

write protection on page 625.<br />

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

PM HT[1:0] HU[3:0]<br />

rw rw rw rw rw rw rw<br />

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

Reserv<br />

ed<br />

MNT[2:0] MNU[3:0] Reserv<br />

ST[2:0] SU[3:0]<br />

rw rw rw rw rw rw rw ed rw rw rw rw rw rw rw<br />

Bits 31-24 Reserved<br />

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

Bit 22 PM: AM/PM notation<br />

0: AM or 24-hour format<br />

1: PM<br />

Bits 21:20 HT[1:0]: Hour tens in BCD format<br />

Bit 16:16 HU[3:0]: Hour units in BCD format<br />

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

Bits 14:12 MNT[2:0]: Minute tens in BCD format<br />

Bit 11:8 MNU[3:0]: Minute units in BCD format<br />

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

Bits 6:4 ST[2:0]: Second tens in BCD format<br />

Bit 3:0 SU[3:0]: Second units in BCD format

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

Saved successfully!

Ooh no, something went wrong!