RX
4571 LC
Page - 14
ETM18E-04
13.1.3. Calendar counter ( Reg - 04[h]
06[h] )
Address [h]
Function
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
4
DAY
20
10
8
4
2
1
5
MONTH
10
8
4
2
1
6
YEAR
80
40
20
10
8
4
2
1
The auto calendar function updates all dates, months, and years from January 1, 2001 to December 31, 2099.
The data format is BCD format. For example, a date register value of "0011 0001" indicates the 31st.
Note with caution that writing non-existent date data may interfere with normal operation of the calendar counter.
1) [ DAY ] register ( Reg 04 [h] )
This is the date counter.
Updating of this counter varies depending on the month.
A leap year is set whenever the year value is a multiple of four (such as 04, 08, 12, 88, 92, or 96). In
February of a leap year, the counter counts dates from "01," "02," "03," to "28," "29," "01," etc.
DAY
Month
Date update pattern
1, 3, 5, 7, 8, 10, or 12
01, 02, 03
30, 31, 01
4, 6, 9, or 11
01, 02, 03
30, 01, 02
February in normal year
01, 02, 03
28, 01, 02
Write/Read
February in leap year
01, 02, 03
28, 29, 01
2) [ MONTH ] register ( Reg 05 [h] )
This is the month counter.
It is updated in annual cycles of regularly ordered months (January, February, March, etc.).
3) [ YEAR ] register ( Reg
06 [h] )
This is the year counter.
It is updated in 100-year cycles of regularly ordered years (00, 01, 02 to 99, etc.).
Any year that is a multiple of four (04, 08, 12, 88, 92, 96, etc.) is handled as a leap year.
13.1.4. RAM register ( Reg - 7[h] )
Address [h]
Function
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
7
RAM
This RAM register is read/write accessible for any data in the range from 00 h to FF h.