beautypg.com

Ez8™ cpu control registers, Stack pointer registers, Cpu control registers – Zilog Z8F0130 User Manual

Page 19

background image

eZ8

CPU Core

User Manual

UM012820-0810

Architectural Overview

4

eZ8

CPU Control Registers

The eZ8 CPU contains four CPU control registers that are mapped into
the Register File address space. These four eZ8 CPU control registers are:

Stack Pointer High Byte

Stack Pointer Low Byte

Register Pointer

Flags

The eZ8 CPU register bus can access up to 4K (4096) bytes of register
space. In all eZ8 CPU products, the upper 256 bytes are reserved for con-
trol of the eZ8 CPU, the on-chip peripherals, and the I/O ports. The eZ8
CPU control registers are always located at addresses from

FFCh

to

FFFh

as listed in

Table 1

.

Stack Pointer Registers

The eZ8 CPU allows you to relocate the stack within the Register File.
The stack can be located at addresses from

000h

to

EFFh

. The 12-bit

Stack Pointer value is provided by

{SPH[3:0], SPL[7:0]}

. The Stack

Pointer has a 12-bit increment/decrement capability for stack operations,
allowing the Stack Pointer to operate over more than one page

Table 1. eZ8 CPU Control Registers

Register

Mnemonic

Register Description

Address

(Hex)

FLAGS

Flags

FFC

RP

Register Pointer

FFD

SPH

Stack Pointer High Byte

FFE

SPL

Stack Pointer Low Byte

FFF