beautypg.com

53 real-time clock second register (rtcs), 54 real-time clock minute register (rtcm), 55 real-time clock hour register (rtch) – Maxim Integrated High-Speed Microcontroller User Manual

Page 57: Real-time clock subsecond register (rtcss), Rtcs, Rtcm, Rtch, Gister, Against the rtc minute register, Fch). the

background image

High-Speed Microcontroller User’s Guide

Rev: 062210

57 of 176

4.2.53

Real-Time Clock Second Register (RTCS)

7 6 5 4 3 2 1 0

SFR FBh

0

0

RTCS.5

RTCS.4 RTCS.3 RTCS.2 RTCS.1 RTCS.0

R*-0 R*-0 R*W*-* R*W*-* R*W*-* R*W*-* R*W*-* R*W*-*

R = Unrestricted Read, W = Unrestricted Write, -n = Value after Reset, * = See Description

Bits 7, 6

Reserved. These bits will be 0 when read.

RTCS.5–RTCS.0
Bits 5–0

Real-Time Clock Seconds. This register represents the second value of the RTC. This
register can be read only when the RTCRE bit is set, and can only be modified when the
RTCWE bit is set. Consult the description of the RTCWE bit for the programming
protocol for this register. This register counts from 0h to 3Bh (0 to 59 seconds), and any
writes to this register out-side of that range will generate an inaccurate count.

4.2.54

Real-Time Clock Minute Register (RTCM)

7

6 5 4 3 2 1 0

SFR FCh

0

0

RTCM.5

RTCM.4 RTCM.3 RTCM.2 RTCM.1 RTCM.0

R*-0

R*-0 R*W*-* R*W*-* R*W*-* R*W*-* R*W*-* R*W*-*

R = Unrestricted Read, W = Unrestricted Write, -n = Value after Reset, * = See Description

Bits 7, 6

Reserved. These bits will be 0 when read.

RTCM.5–RTCM.0
Bits 5–0

Real-Time Clock Minutes. This register represents the minute value of the RTC. This
register can be read only when the RTCRE bit is set, and can only be modified when the
RTCWE bit is set. Consult the description of the RTCWE bit for the programming
protocol for this register. This register counts from 0h to 3Bh (0 to 59 minutes), and any
writes to this register out-side of that range will generate an inaccurate count.

4.2.55

Real-Time Clock Hour Register (RTCH)

7 6 5 4 3 2 1 0

SFR FDh

DOW.2

DOW.1

DOW.0

RTCH.4 RTCH.3 RTCH.2

RTCH.1 RTCH.0

R*W*-* R*W*-* R*W*-* R*W*-* R*W*-* R*W*-*

R*W*-* R*W*-*

R = Unrestricted Read, W = Unrestricted Write, -n = Value after Reset, * = See Description

DOW.2–DOW.0
Bits 7, 6, 5

Real-Time Clock Day of the Week. These bits represent the current day of the week.
This register can be read only when the RTCRE bit is set, and can only be modified
when the RTCWE bit is set. Consult the description of the RTCWE bit for the
programming protocol for this register. This register counts from 1h to 7h, and
increments when the hour value of the RTC (

RTCH

.4-0) rolls over from 17h to 0h.

Writing a 0h to these bits will disable the day of week function and the count will
remain 0. No alarm corresponds to these bits.

RTCH.4–RTCH.0
Bits 4–0

Real-Time Clock Hours. These bits represent the hour value of the RTC. This register
can be read only when the RTCRE bit is set, and can only be modified when the
RTCWE bit is set. Consult the description of the RTCWE bit for the programming
protocol for this register. This register counts from 0h to 17h (0 to 23 hours), and any
writes outside of that range will generate an inaccurate count.