Rtc Hour/Minute Register - Epson S1C17W14 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

9 REAL-TIME CLOCK (RTCA)
Bit 7
RTC1HZ
Bit 6
RTC2HZ
Bit 5
RTC4HZ
Bit 4
RTC8HZ
Bit 3
RTC16HZ
Bit 2
RTC32HZ
Bit 1
RTC64HZ
Bit 0
RTC128HZ
1 Hz counter data can be read from these bits.
The following shows the correspondence between the bit and frequency:
RTCSEC.RTC1HZ bit:
RTCSEC.RTC2HZ bit:
RTCSEC.RTC4HZ bit:
RTCSEC.RTC8HZ bit:
RTCSEC.RTC16HZ bit:
RTCSEC.RTC32HZ bit:
RTCSEC.RTC64HZ bit:
RTCSEC.RTC128HZ bit: 128 Hz
Note: The counter value may not be read correctly while the 1 Hz counter is running. These bits
must be read twice and assume the counter value was read successfully if the two read
results are the same.

RTC Hour/Minute Register

Register name
Bit
RTCHUR
15
14
13–12 RTCHH[1:0]
11–8 RTCHL[3:0]
7
6–4 RTCMIH[2:0]
3–0 RTCMIL[3:0]
Bit 15
Reserved
Bit 14
RTCAP
This bit is used to set and read A.M. or P.M. data in 12H mode (RTCCTL.RTC24H bit = 0).
1 (R/W): P.M.
0 (R/W): A.M.
In 24H mode (RTCCTL.RTC24H bit = 1), this bit is fixed at 0 and writing 1 is ignored. However, if
the RTCHUR.RTCAP bit = 1 when changed to 24H mode, it goes 0 at the next count-up timing of the
hour counter.
Bits 13–12 RTCHH[1:0]
Bits 11–8 RTCHL[3:0]
The RTCHUR.RTCHH[1:0] bits and the RTCHUR.RTCHL[3:0] bits are used to set and read the 10-
hour digit and the 1-hour digit of the hour counter, respectively. The setting/read values are a BCD
code within the range from 1 to 12 in 12H mode or 0 to 23 in 24H mode.
Note: Be sure to avoid writing to the RTCHUR.RTCHH[1:0]/RTCHL[3:0] bits while the RTCCTL.
RTCBSY bit = 1.
Bit 7
Reserved
9-10
1 Hz
2 Hz
4 Hz
8 Hz
16 Hz
32 Hz
64 Hz
Bit name
Initial
0
RTCAP
0
0x1
0x2
0
0x0
0x0
Seiko Epson Corporation
Reset
R/W
R
H0
R/W
H0
R/W
H0
R/W
R
H0
R/W
H0
R/W
S1C17W14/W16 TECHNICAL MANUAL
Remarks
(Rev. 1.2)

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17w16

Table of Contents