17
Z08617 NMOS Z8
®
8-B
IT
MCU
K
EYBOARD
C
ONTROLLER
D7 D6
D5 D4
D3 D2
D1
D0
P00 - P03 Mode
00 = Output
01 = Input
R248 P01M
Stack Selection
1 = Internal (Must be 1)
P10-P17 Mode
0 = Byte Output
1 = Byte Input
Reserved (Must be 0)
P04 - P07 Mode
00 = Output
01 = Input
Figure 25. Port 0 and 1 Mode Register
(F8H: Write Only)
D7 D6
D5
D4
D3
D2
D1
D0
Interrupt Group Priority
Reserved = 000
C > A > B = 001
A > B > C = 010
A > C > B = 011
B > C > A = 100
C > B > A = 101
B > A > C = 110
Reserved = 111
IRQ3, IRQ5 Priority (Group A)
0 = IRQ5 > IRQ3
1 = IRQ3 > IRQ5
IRQ0, IRQ2 Priority (Group B)
0 = IRQ2 > IRQ0
1 = IRQ0 > IRQ2
IRQ1, IRQ4 Priority (Group C)
0 = IRQ1 > IRQ4
1 = IRQ4 > IRQ1
Reserved (Must be 0)
R249 IPR
Figure 26. Interrupt Priority Register
(F9H: Write Only)
D7
D6
D5
D4
D3
D2
D1
D0
Reserved (Must be 0)
1 Enables IRQ0-IRQ5
(D0 = IRQ0)
1 Enables Interrupts
R251 IMR
Figure 28. Interrupt Mask Register
(FBH: Read/Write)
Figure 27. Interrupt Request Register
(FAH: Read/Write)
Z8
®
CONTROL REGISTER DIAGRAMS
(Continued)
D7
D6
D5
D4
D3
D2
D1
D0
IRQ0 = P32 Input (D0 = IRQ0)
IRQ1 = P33 Input
IRQ2 = P31 Input
IRQ3 = P30 Input
IRQ4 = T0
IRQ5 = T1
Reserved (Must be 0)
R250 IRQ
WDT Hot Bit
0 = POR*
1 = WDT TIME OUT
*
Default setting after setup.