I/O Memory Of Stopwatch Timer - Epson S1C63666 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Stopwatch Timer)

4.10.7 I/O memory of stopwatch timer

Table 4.10.7.1 shows the I/O addresses and the control bits for the stopwatch timer.
Register
Address
D3
D2
FOUTE SWDIR FOFQ1 FOFQ0
FF06H
R/W
EDIR
DKM2
DKM1
FF78H
R/W
LCURF CRNWF SWRUN SWRST
FF79H
R
SWD3
SWD2
SWD1
FF7AH
R
SWD7
SWD6
SWD5
FF7BH
R
SWD11 SWD10 SWD9
FF7CH
R
EIRUN
EILAP
EISW1 EISW10
FFE6H
R/W
IRUN
ILAP
ISW1
FFF6H
R/W
*1 Initial value at initial reset
*2 Not set in the circuit
*3 Constantly "0" when being read
SWD0–SWD3: Stopwatch timer data 1/1,000 sec (FF7AH)
Data (BCD) of the 1/1,000 sec column of the capture buffer can be read out.
The hold function of the capture buffer works by reading this data.
These 4 bits are read-only, and cannot be used for writing operations.
At initial reset, the timer data is set to "0".
SWD4–SWD7: Stopwatch timer data 1/100 sec (FF7BH)
Data (BCD) of the 1/100 sec column of the capture buffer can be read out. These 4 bits are read-only, and
cannot be used for writing operations.
At initial reset, the timer data is set to "0".
SWD8–SWD11: Stopwatch timer data 1/10 sec (FF7CH)
Data (BCD) of the 1/10 sec column of the capture buffer can be read out. These 4 bits are read-only, and
cannot be used for writing operations.
At initial reset, the timer data is set to "0".
Note: Be sure to data reading in the order of SWD0–3 → SWD4–7 → SWD8–11.
74
Table 4.10.7.1 Control bits of stopwatch timer
∗1
D1
D0
Name Init
FOUTE
0
SWDIR
0
FOFQ1
0
FOFQ0
0
EDIR
0
DKM0
DKM2
0
DKM1
0
DKM0
0
LCURF
0
CRNWF
0
SWRUN
0
R/W
W
∗3
SWRST
Reset
SWD3
0
SWD0
SWD2
0
SWD1
0
SWD0
0
SWD7
0
SWD4
SWD6
0
SWD5
0
SWD4
0
SWD11
0
SWD8
SWD10
0
SWD9
0
SWD8
0
EIRUN
0
EILAP
0
EISW1
0
EISW10
0
IRUN
0
ISW10
ILAP
0
ISW1
0
ISW10
0
1
0
Enable Disable FOUT output enable
Stopwatch direct input switch
0: K00=Run/Stop, K01=Lap 1: K00=Lap, K01=Run/Stop
FOUT
frequency
selection
Enable Disable Direct input enable
Key mask
selection
Request
No
Lap data carry-up request flag
Renewal
No
Capture renewal flag
Run
Stop
Stopwatch timer Run/Stop
Reset
Invalid
Stopwatch timer reset (writing)
Stopwatch timer data
BCD (1/1000 sec)
Stopwatch timer data
BCD (1/100 sec)
Stopwatch timer data
BCD (1/10 sec)
Enable
Mask
Interrupt mask register (Stopwatch direct RUN)
Enable
Mask
Interrupt mask register (Stopwatch direct LAP)
Enable
Mask
Interrupt mask register (Stopwatch timer 1 Hz)
Enable
Mask
Interrupt mask register (Stopwatch timer 10 Hz)
(R)
(R)
Interrupt factor flag (Stopwatch direct RUN)
Yes
No
Interrupt factor flag (Stopwatch direct LAP)
(W)
(W)
Interrupt factor flag (Stopwatch timer 1 Hz)
Reset
Invalid
Interrupt factor flag (Stopwatch timer 10 Hz)
EPSON
Comment
[FOFQ1, 0]
0
1
Frequency
f
/64
f
/8
OSC1
OSC1
[DKM2, 1, 0]
0
1
2
Key mask
None
K02
K02–03
[DKM2, 1, 0]
4
5
6
Key mask
K10
K10–11
K10–12
S1C63666 TECHNICAL MANUAL
2
3
f
f
OSC1
OSC3
3
K02–03,10
7
K10–13

Advertisement

Table of Contents
loading

Table of Contents