Rtc Month/Day Register; Rtc Year/Week Register - Epson S1C17M20 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

Bits 6–4
RTCMIH[2:0]
Bits 3–0
RTCMIL[3:0]
The RTCHUR.RTCMIH[2:0] bits and the RTCHUR.RTCMIL[3:0] bits are used to set and read the
10-minute digit and the 1-minute digit of the minute 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 RTCHUR.RTCMIH[2:0]/RTCMIL[3:0] bits while the RTCCTL.
RTCBSY bit = 1.

RTC Month/Day Register

Register name
Bit
RTCMON
15–13 –
12
11–8 RTCMOL[3:0]
7–6 –
5–4 RTCDH[1:0]
3–0 RTCDL[3:0]
Bits 15–13 Reserved
Bit 12
RTCMOH
Bits 11–8 RTCMOL[3:0]
The RTCMON.RTCMOH bit and the RTCMON.RTCMOL[3:0] bits are used to set and read the
10-month digit and the 1-month digit of the month counter, respectively. The setting/read values are a
BCD code within the range from 1 to 12.
Note: Be sure to avoid writing to the RTCMON.RTCMOH/RTCMOL[3:0] bits while the RTCCTL.
RTCBSY bit = 1.
Bits 7–6
Reserved
Bits 5–4
RTCDH[1:0]
Bits 3–0
RTCDL[3:0]
The RTCMON.RTCDH[1:0] bits and the RTCMON.RTCDL[3:0] bits are used to set and read the 10-
day digit and the 1-day digit of the day counter, respectively. The setting/read values are a BCD code
within the range from 1 to 31 (to 28 for February in a common year, to 29 for February in a leap year,
or to 30 for April/June/September/November).
Note: Be sure to avoid writing to the RTCMON.RTCDH[1:0]/RTCDL[3:0] bits while the RTCCTL.
RTCBSY bit = 1.

RTC Year/Week Register

Register name
Bit
RTCYAR
15–11 –
10–8 RTCWK[2:0]
7–4 RTCYH[3:0]
3–0 RTCYL[3:0]
Bits 15–11 Reserved
Bits 10–8 RTCWK[2:0]
These bits are used to set and read day of the week.
The day of the week counter is a base-7 counter and the setting/read values are 0x0 to 0x6. Table 9.6.2
lists the correspondence between the count value and day of the week.
S1C17M20/M21/M22/M23/M24/M25
TECHNICAL MANUAL (Rev. 1.0)
Bit name
Initial
0x0
RTCMOH
0
0x1
0x0
0x0
0x1
Bit name
Initial
0x00
0x0
0x0
0x0
Seiko Epson Corporation
9 REAL-TIME CLOCK (RTCA)
Reset
R/W
R
H0
R/W
H0
R/W
R
H0
R/W
H0
R/W
Reset
R/W
R
H0
R/W
H0
R/W
H0
R/W
Remarks
Remarks
9-11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17m25S1c17m21S1c17m22S1c17m23S1c17m24

Table of Contents