English
Language : 

ELANSC520 Datasheet, PDF (345/440 Pages) Advanced Micro Devices – Microcontroller
Real-Time Clock Registers
RTC Current Day of the Month (RTCCURDOM)
I/O Address 70h/71h
RTC Index 07h
7
6
5
4
3
2
1
0
Bit
DAY_OF_MTH[7–0]
Reset
x
x
x
x
x
x
x
x
R/W
R/W!
Register Description
This register used to initialize and read back the RTC current day of the month.
Bit Definitions
Bit Name
Function
7–0 DAY_OF_MTH RTC Current Day of the Month
[7–0]
Software initializes the day of month value for the RTC by writing data to this bit field in either
binary or binary-coded decimal (BCD) formats.
The RTC logic updates this bit field once per second.
Valid values for this bit field range from 1 to 31. However, a value in this range is considered
invalid if it is inappropriate for the month programmed in the MONTH bit field in the
RTCCURMON register (see page 17-12).
If a value greater than the number of days in the current month is programmed, the bit field
value increments up to FFh, wraps around to 0, and only then does the value remain in the
valid range.
If the MONTH bit field in the RTCCURMON register is 2d (February), and the YEAR bit field
value in the RTCCURYR register (see page 17-13) is a leap year, the DAY_OF_MTH bit field
does leap year compensation automatically.
Programming Notes
Software can suspend updating of the RTC via the SET bit in the RTCCTLB register (see page 17-16).
Software selects binary or BCD format via the DATE_MODE bit in the RTCCTLB register.
Élan™SC520 Microcontroller Register Set Manual
17-11