Epson S1C33210 Technical Manual page 312

Cmos 32-bit single chip microcomputer
Table of Contents

Advertisement

III PERIPHERAL BLOCK: CLOCK TIMER
Register name
Address
Bit
Clock timer
0040159
D7–6
minute
(B)
D5
comparison
D4
register
D3
D2
D1
D0
Clock timer
004015A
D7–5
hour
(B)
D4
comparison
D3
register
D2
D1
D0
Clock timer
004015B
D7–5
day
(B)
D4
comparison
D3
register
D2
D1
D0
Clock timer
004026B
D7–3
interrupt
(B)
D2
priority register
D1
D0
Port input 4–7,
0040277
D7–6
clock timer,
(B)
D5
A/D interrupt
D4
enable register
D3
D2
D1
D0
Port input 4–7,
0040287
D7–6
clock timer, A/D
(B)
D5
interrupt factor
D4
flag register
D3
D2
D1
D0
TCRST: Clock timer reset (D1) / Clock timer Run/Stop register (0x40151)
Resets the clock timer.
Write "1": The clock timer is reset
Write "0": Invalid
Read: Always "0"
The clock timer is reset by writing "1" to TCRST when the timer is inactive. All timer counters are cleared to "0".
The clock timer cannot be reset when in the RUN state, nor can it be reset at the same time it is made to RUN
through the execution of one write to address 0x40151. (The clock timer is started, but not reset.) In this case, first
reset the clock timer and then use another instruction to RUN the clock timer. When the counters are cleared as the
clock timer is reset, an interrupt may be generated, depending on the register settings. Therefore, before resetting the
clock timer, first disable the clock timer interrupt, and after resetting the clock timer, reset the interrupt factor flag
and the interrupt factor and alarm factor generation flags.
Writing "0" to TCRST results in No Operation. Since this TCRST is a write-only bit, its value when read is always
"0".
The clock timer is not reset by an initial reset.
B-III-7-8
Name
Function
reserved
TCCH5
Clock timer minute comparison
TCCH4
data
TCCH3
TCCH5 = MSB
TCCH2
TCCH0 = LSB
TCCH1
TCCH0
reserved
TCCD4
Clock timer hour comparison data
TCCD3
TCCD4 = MSB
TCCD2
TCCD0 = LSB
TCCD1
TCCD0
reserved
TCCN4
Clock timer day comparison data
TCCN3
TCCN4 = MSB
TCCN2
TCCN0 = LSB
TCCN1
TCCN0
reserved
PCTM2
Clock timer interrupt level
PCTM1
PCTM0
reserved
EP7
Port input 7
EP6
Port input 6
EP5
Port input 5
EP4
Port input 4
ECTM
Clock timer
EADE
A/D converter
reserved
FP7
Port input 7
FP6
Port input 6
FP5
Port input 5
FP4
Port input 4
FCTM
Clock timer
FADE
A/D converter
Setting
0 to 59 minutes
(Note) Can be set within 0–63.
0 to 23 hours
(Note) Can be set within 0–31.
0 to 31 days
0 to 7
1 Enabled
0 Disabled
1 Factor is
0 No factor is
generated
generated
EPSON
Init. R/W
Remarks
0 when being read.
X
R/W
X
X
X
X
X
0 when being read.
X
R/W
X
X
X
X
0 when being read.
X
R/W
Compared with
X
TCND[4:0].
X
X
X
Writing 1 not allowed.
X
R/W
X
X
0 when being read.
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0 when being read.
X
R/W
X
R/W
X
R/W
X
R/W
X
R/W
X
R/W
S1C33210 FUNCTION PART

Advertisement

Table of Contents
loading

Table of Contents