10 REAL-TIME CLOCK (RTCA)
S1C31D50/D51 TECHNICAL MANUAL
Seiko Epson Corporation
10-9
(Rev. 2.00)
Bits 15–12 BCD10[3:0]
Bits 11–8 BCD100[3:0]
The 1/10-second and 1/100-second digits of the stopwatch counter can be read as a BCD code from
the RTCASWCTL.BCD10[3:0] bits and the RTCASWCTL.BCD100[3:0] bits, respectively.
Note: The counter value may not be read correctly while the stopwatch counter is running. The RT-
CASWCTL.BCD10[3:0]/BCD100[3:0] bits must be read twice and assume the counter value
was read successfully if the two read results are the same.
Bits 7–5
Reserved
Bit 4
SWRST
This bit resets the stopwatch counter to 0x00.
1 (W):
Reset
0 (W):
Ineffective
0 (R):
Always 0 when being read
When the stopwatch counter in running status is reset, it continues counting from count 0x00. The
stopwatch counter retains 0x00 if it is reset in idle status.
Bits 3–1
Reserved
Bit 0
SWRUN
This bit starts/stops the stopwatch counter.
1 (R/W): Running/start control
0 (R/W): Idle/stop control
When the stopwatch counter stops counting by writing 0 to this bit, the counter retains the value when
it stopped. Writing 1 to this bit again resumes counting from the value retained.
Note: The stopwatch counter stops in sync with the stopwatch clock after 0 is written to the RT-
CASWCTL.SWRUN bit. Therefore, the counter value may be incremented (+1) from the
value at writing 0.
RTCA Second/1Hz Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
RTCASEC
15 –
0
–
R
–
14–12 RTCSH[2:0]
0x0
H0
R/W
11–8 RTCSL[3:0]
0x0
H0
R/W
7
RTC1HZ
0
H0
R
Cleared by setting the
RTCACTLL.RTCRST bit to 1.
6
RTC2HZ
0
H0
R
5
RTC4HZ
0
H0
R
4
RTC8HZ
0
H0
R
3
RTC16HZ
0
H0
R
2
RTC32HZ
0
H0
R
1
RTC64HZ
0
H0
R
0
RTC128HZ
0
H0
R
Bit 15
Reserved
Bits 14–12 RTCSH[2:0]
Bits 11–8 RTCSL[3:0]
The RTCASEC.RTCSH[2:0] bits and the RTCASEC.RTCSL[3:0] bits are used to set and read the
10-second digit and the 1-second digit of the second counter, respectively. The setting/read values are
a BCD code within the range from 0 to 59.
Note: Be sure to avoid writing to the RTCASEC.RTCSH[2:0]/RTCSL[3:0] bits while the RTCACTLL.
RTCBSY bit = 1.