beautypg.com

Stack pointer compatibility, Reset compatibility, Interrupt compatibility – Zilog Z8F0130 User Manual

Page 31

background image

eZ8

CPU Core

User Manual

UM012820-0810

Z8

®

Compatibility

16

Stack Pointer Compatibility

The stack pointer is now 12 bits in length and provided by {SPH[3:0],
SPL[7:0]}. This change allows the origin of the stack to be placed at any
address from

000h

to

EFFh

where general-purpose registers are available.

Refer to the Zilog Product Specification specific to your Z8 Encore!
device for available Register File addresses. All stack pointer operations
occur within the Register File address space.

Reset Compatibility

Unlike the Z8 CPU which uses a fixed reset address of

00Ch

, the

eZ8 CPU uses a vectored reset. Program Memory stores the RESET vec-
tor at addresses

0002h

and

0003h

(most significant byte at

0002h

and

least significant byte at

0003h

). When the eZ8 CPU is reset it fetches the

RESET vector at addresses

0002h

and

0003h.

The eZ8 CPU writes the

RESET factor to the Program Counter and executes code at the new Pro-
gram Counter address.

Interrupt Compatibility

The interrupt table now resides at starting address

0008h

in Program

Memory to accommodate the increased number of interrupts available
with the eZ8 CPU.