14 REAL-TIME CLOCK (RTC)
14-2
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
RTCSEC[6:0]
Binary mode
0–59
RTCSEC[3:0]
BCD mode
0–9 (1-second digit)
RTCSEC[6:4]
0–5 (10-second digit)
3.1 Second Counter
Figure 14.
Minute counter
This 7-bit counter counts from 0 to 59 minutes with 1 carried over from the second counter. The counter is
cleared to 0 when it reaches 60 minutes and outputs a carry over of 1 to the hour counter. The counter data can
be read/written using the RTCMIN.RTCMIN[6:0] bits.
RTCMIN[6:0]
Binary mode
0–59
RTCMIN[3:0]
BCD mode
0–9 (1-minute digit)
RTCMIN[6:4]
0–5 (10-minute digit)
3.2 Minute Counter
Figure 14.
Hour counter
This 6-bit counter counts from 0 to 23 o’clock (24H mode, RTCCTL.RTC24H bit = 0) or from 1 to 12 (12H
mode, RTCCTL.RTC24H bit = 1) with 1 carried over from the minute counter. The counter data can be read/
written using the RTCHUR.RTCHUR[5:0] bits.
AMPM
0 (AM)/1 (PM)
0/1
AMPM
0/1
RTCHUR[5:0]
24H mode
Binary mode
0–23
RTCHUR[3:0]
BCD mode
0–9 (1-hour digit)
RTCHUR[5:4]
0–2 (10-hour digit)
RTCHUR[5:0]
12H mode
1–12
RTCHUR[3:0]
0–9 (1-hour digit)
RTCHUR[5:4]
0–1 (10-hour digit)
3.3 Hour Counter
Figure 14.
3.1 Hour Counter Values
Table 14.
Time
24H mode
12H mode
RTCHUR[5:0]
(binary)
RTCHUR[5:0]
(BCD)
RTCHUR[5:0]
(binary)
RTCHUR[5:0]
(BCD)
AMPM
0 o'clock (12am)
0x0
0x00
0xc
0x12
0
1 o'clock (1am)
0x1
0x01
0x1
0x01
0
2 o'clock (2am)
0x2
0x02
0x2
0x02
0
3 o'clock (3am)
0x3
0x03
0x3
0x03
0
4 o'clock (4am)
0x4
0x04
0x4
0x04
0
5 o'clock (5am)
0x5
0x05
0x5
0x05
0
6 o'clock (6am)
0x6
0x06
0x6
0x06
0
7 o'clock (7am)
0x7
0x07
0x7
0x07
0
8 o'clock (8am)
0x8
0x08
0x8
0x08
0
9 o'clock (9am)
0x9
0x09
0x9
0x09
0
10 o'clock (10am)
0xa
0x10
0xa
0x10
0
11 o'clock (11am)
0xb
0x11
0xb
0x11
0
12 o'clock (12pm)
0xc
0x12
0xc
0x12
1
13 o'clock (1pm)
0xd
0x13
0x1
0x01
1
14 o'clock (2pm)
0xe
0x14
0x2
0x02
1
15 o'clock (3pm)
0xf
0x15
0x3
0x03
1
16 o'clock (4pm)
0x10
0x16
0x4
0x04
1
17 o'clock (5pm)
0x11
0x17
0x5
0x05
1
18 o'clock (6pm)
0x12
0x18
0x6
0x06
1
19 o'clock (7pm)
0x13
0x19
0x7
0x07
1
20 o'clock (8pm)
0x14
0x20
0x8
0x08
1
21 o'clock (9pm)
0x15
0x21
0x9
0x09
1
22 o'clock (10pm)
0x16
0x22
0xa
0x10
1
23 o'clock (11pm)
0x17
0x23
0xb
0x11
1