
Z86C02/E02/L02
Low-Cost, 512-Byte ROM Microcontrollers
1-20
P R E L I M I N A R Y
DS96DZ80301 (11/96)
FUNCTIONAL DESCRIPTION
(Continued)
Program Memory.
The Z8 addresses up to 512 bytes of
internal program memory (Figure 12). The first 12 bytes of
program memory are reserved for the interrupt vectors.
These locations contain six 16-bit vectors that correspond
to the six available interrupts. Bytes 0-511 are on-chip one-
time programmable ROM.
Register File.
The Register File consists of three I/O port
registers, 61 general-purpose registers, and 12 control
and status registers R0-R3, R4-R127 and R241-R255, re-
spectively (Figure 13). General-purpose registers occupy
the 04H to 7FH address space. I/O ports are mapped as
per the existing CMOS Z8. The instructions can access
registers directly or indirectly through an 8-bit address
field. This allows short 4-bit register addressing using the
Register Pointer. In the 4-bit mode, the register file is divid-
ed into eight working register groups, each occupying 16
continuous locations. The Register Pointer (Figure 14) ad-
dresses the starting location of the active working-register
group.
Figure 12. Program Memory Map
12
11
10
9
8
7
6
5
4
3
2
1
0
On-Chip
ROM
Location of
First Byte of
Instruction
Executed
After RESET
Interrupt
Vector
(Lower Byte)
Interrupt
Vector
(Upper Byte)
IRQ5
IRQ4
IRQ4
IRQ3
IRQ3
IRQ2
IRQ2
IRQ1
IRQ1
IRQ0
IRQ0
IRQ5
1024
Figure 13. Register File
SPL
Stack Pointer (Bits 7-0)
Reserved
Register Pointer
Program Control Flags
Interrupt Mask Register
Interrupt Request Register
Interrupt Priority Register
Ports 0-1 Mode
Port 3 Mode
Port 2 Mode
To Prescaler
Timer/Counter0
T1 Prescaler
Timer/Counter1
Timer Mode
Not Implemented
General Purpose
Registers
Port 3
Port 2
Reserved
Port 0
RP
IMR
IRQ
IPR
P3M
P2M
PRE0
T0
PRE1
T1
TMR
P3
P2
P1
P0
P01M
Flags
Indentifiers
Location
255
254
253
252
251
250
249
248
247
246
245
244
243
242
241
240
4
3
2
1
0
128
127