Z08617 NMOS Z8
®
8-B
IT
MCU
K
EYBOARD
C
ONTROLLER
16
Z8
®
CONTROL REGISTER DIAGRAMS
D7
D6
D5
D4
D3
D2
D1
D0
0 = Disable T0 Count
1 = Enable T0 Count
0 = No Function
1 = Load T0
0 = No Function
1 = Load T1
0 = Disable T1 Count
1 = Enable T1 Count
TIN Modes
00 = External Clock Input
01 = Gate Input
10 = Trigger Input
(Non-retriggerable)
11 = Trigger Input
(Retriggerable)
TOUT Mode
00 = Not Used
01 = T0 OUT
10 = T1 OUT
11 = Internal Clock Out
R241 TMR
Figure 18. Timer Mode Register
(F1H: Read/Write)
D7
D6 D5
D4
D3
D2
D1
D0
T1 Initial Value
(When WRITE)
(Range 1-256 Decimal
01-00 HEX)
T1 Current Value
(When READ)
R242 T1
Figure 19. Counter Timer 1 Register
(F2H: Read/Write)
D7
D6
D5
D4
D3
D2
D1
D0
Count Mode
0 = T1 Single Pass
1 = T1 Modulo N
Clock Source
1 = T0 Internal
0 = T0 External Timing Input
(TIN) Mode
Prescaler Modulo
(Range: 1-64 Decimal
01-00 HEX)
R243 PRE1
Figure 20. Prescaler 1 Register
(F3H: Write Only)
D7 D6
D5
D4
D3
D2
D1
D0
T0 Initial Value
(When WRITE)
(Range: 1-256 Decimal
01-00 HEX)
T0 Current Value
(When READ)
R244 T0
Figure 21. Counter/Timer 0 Register
(F4H: Read/Write)
D7
D6
D5
D4
D3
D2
D1
D0
Count Mode
0 = T0 Single Pass
1 = T0 Modulo N
Reserved (Must be 0)
Prescaler Modulo
(Range: 1-64 Decimal
01-00 HEX)
R245 PRE0
D7
D6
D5
D4
D3
D2
D1
D0
P20-P27 I/O Definition
0 Defines Bit as OUTPUT
1 Defines Bit as INPUT
R246 P2M
Figure 22. Prescaler 0 Register
(F5H: Write Only)
Figure 23. Port 2 Mode Register
(F6H: Write Only)
Figure 24. Port 3 Mode Register
(F7H: Write Only)
D7
D6
D5
D4
D3
D2
D1
D0
0 Port 2 Pull-Ups Open-Drain
1 Port 2 Pull-Ups Active
Reserved (Must be 0)
R247 P3M