RX
4571 LC
Page - 13
ETM18E-04
13. Description of Functions
13.1. Description of registers
13.1.1. Clock counter ( Reg - 0[h]
2[h] )
Address [h]
Function
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
0
SEC
40
20
10
8
4
2
1
MIN
40
20
10
8
4
2
1
2
HOUR
20
10
8
4
2
1
The clock counter counts seconds, minutes, and hours.
The data format is BCD format. For example, when the "seconds" register value is "0101 1001" it indicates 59
seconds.
Note with caution that writing non-existent time data may interfere with normal operation of the clock counter.
1) Second counter ( Reg - 0[h] )
This counter counts seconds.
Count values are updated as: 00 seconds, 01 second, 02 to 59 seconds, 00 seconds, 01 second, etc. in
that order. When writing is performed to this registor, Internal-count-down-chain less than one second is
cleared to 0.
2) Minute counter ( Reg - 1[h] )
This counter counts minutes.
Count values are updated as: 00 minutes, 01 minute, 02 to 59 minutes, 00 minutes, 01 minute, etc. in that
order.
3) Hour counter ( Reg - 2[h] )
This counter counts hours.
Count values are updated as: 00 hours, 01 hour, 02 to 23 hours, 00 hours, 01 hour, etc. in that order.
13.1.2. . Day counter ( Reg - 3[h] )
Address [h]
Function
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
3
WEEK
6
5
4
3
2
1
0
The day (of the week) is indicated by 7 bits, bit 0 to bit 6.
The day data values are counted as: Day 01h
→ Day 02h → Day 04h → Day 08h → Day 10h → Day 20h → Day
40h
→ Day 01h → Day 02h, etc.
The correspondence between days and count values is shown below.
[ WEEK ]
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
Day
Data [h]
0
1
Sunday
01 h
0
1
0
Monday
02 h
0
1
0
Tuesday
04 h
0
1
0
Wednesday
08 h
0
1
0
Thursday
10 h
0
1
0
Friday
20 h
Write / Read
0
1
0
Saturday
40 h
Write prohibit
Do not set "1" to more than one day at the same time.
Also, note with caution that any setting other than the
seven shown above should not be made as it may
interfere with normal operation.