Calendar Counter ( Reg 05 [H] , 07 [H] , 08 [H] ); Day Counter ( Reg 6[H] ) - Epson RX-8564LC Applications Manual

Real time clock module
Table of Contents

Advertisement

RX
8564 LC
13.1.4. Calendar counter ( Reg
Address [h]
05
07
Months / Century
08
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
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.
[ Days ]
Write / Read
2) [ Months / Century ] register ( Reg
This is the month counter.
It is updated in annual cycles of regularly ordered months (January, February, March, etc.).
3) [ YEAR ] register ( Reg
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.
4) C bit ( Century bit )
This bit indicates change of century.
When the year digit data overflows from 99 to 00, this bit is set. By presetting it to 0 while still in the 20th
century, it will be set in year 2000, but in fact the first year in the 21 century should be 2001.
13.1.5. Day counter ( Reg
Address [h]
06
The day (of the week) is indicated by 3 bits, bit 0 to bit 2.
Note with caution that any settings other than the seven listed above may prevent normal operation.
05 [h] , 07 [h] , 08 [h] )
Function
bit 7
Days
C
Years
80
05 [h] )
1, 3, 5, 7, 8, 10, or 12
4, 6, 9, or 11
February in normal year
February in leap year
07 [h] )
08 [h] )
6[h] )
Function
bit 7
Weekdays
[ Weekdays ]
bit 7
Write / Read
bit 6
bit 5
bit 4
20
10
10
40
20
10
Month
bit 6
bit 5
bit 4
bit 6
bit 5
bit 4
bit 3
Page
15
bit 3
bit 2
bit 1
8
4
2
8
4
2
8
4
2
Date update pattern
01, 02, 03
30, 31, 01
01, 02, 03
30, 01, 02
01, 02, 03
28, 01, 02
01, 02, 03
28, 29, 01
bit 3
bit 2
bit 1
4
2
bit 2
bit 1
bit 0
0
0
0
Sunday
0
0
1
Monday
0
1
0
Tuesday
0
1
1
Wednesday
1
0
0
Thursday
1
0
1
1
1
0
Saturday
ETM12E-01
bit 0
1
1
1
bit 0
1
Day
Friday

Advertisement

Table of Contents
loading

Table of Contents