EasyManuals Logo

ZiLOG Z8 User Manual

ZiLOG Z8
220 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #27 background imageLoading...
Page #27 background image
Z8 Microcontrollers
ZiLOG Address Space
UM001601-0803 2-7
The upper nibble of the register pointer selects which group of
16 bytes in the Register File, out of the full 256, will be accessed
as working registers.
For example:
(See Figure 2-4)
Since enabling an ERF Bank (C or F) only changes register ad-
dresses 00H to 0FH, the working register pointer can be used to
access either the selected ERF Bank (Bank C or F, Working
Register Group 0) or the Z8 Standard Register File (ERF Bank
0, Working Register Groups 1 through F).
Note: When an ERF Bank other than Bank 0 is enabled, the first
16 bytes of the Z8 Standard Register File (I/O ports 0 to 3,
Groups 4 to F) are no longer accessible (the selected ERF Bank,
Registers 00H to 0FH are accessed instead). It is important to re-
initialize the Register Pointer to enable ERF Bank 0 when these
registers are required for use.
The SPI register is mapped into ERF Bank C. Access is easily
done using the following example:
Please refer to the specific product specification to determine the
above registers are implemented.
R253 RP = 00H ;ERF Bank 0, Working Reg. Group 0.
R0 = Port 0 = 00H
R1 = Port 1 = 01H
R2 = Port 2 = 02H
R3 = Port 3 = 03H
R11 = GPR 0BH
R15 = GPR 0FH
If:
R253 RP = 0FH ;ERF Bank F, Working Reg. Group 0.
R0 = PCON = 00H
R1 = Reserved = 01H
R2 = Reserved = 02H
R11 = SMR = 0BH
R15 = WDTMR = 0FH
If:
R253 RP = FFH ;ERF Bank F, Working Reg. Group F.
00H = PCON
R0 = SI0 01H= Reserved
R1 = TMR 02H= Reserved
...
R2 = T1 0BH = SMR
...
R15 = SPL 0FH = WDTMR
LD RP, #0CH ;Select ERF Bank C working
;register group 0 for access.
LD R2,#xx ;access SCON
LD R1, #xx ;access RXBUF
LD RP, #00H ;Select ERF Bank 0 so I/O ports
;are again accessible.
Table 2-4. Z8 Expanded Register File Bank Layout
Expanded
Register File
Bank ERF
F(H) PCON, SMR, WDT,
(00H, 0BH, 0FH),
Working Register Group 0
only implemented.
E(H) Not Implemented
(Reserved)
D(H) Not Implemented
(Reserved)
C(H) SPI Registers: SCOMP,
RXBUF,
SCON (00H, 01H, 02H),
Working Register Group 0
only implemented.
B(H) Not Implemented
(Reserved)
A(H) Not Implemented
(Reserved)
9(H) Not Implemented
(Reserved)
8(H) Not Implemented
(Reserved)
7(H) Not Implemented
(Reserved)
6(H) Not Implemented
(Reserved)
5(H) Not Implemented
(Reserved)
4(H) Not Implemented
(Reserved)
3(H) Not Implemented
(Reserved)
2(H) Not Implemented
(Reserved)
1(H) Not Implemented
(Reserved)
0(H) Z8 Ports 0, 1, 2, 3,
and General-Purpose Registers
04H to EFH, and control registers
F0H to FFH.

Table of Contents

Other manuals for ZiLOG Z8

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ZiLOG Z8 and is the answer not in the manual?

ZiLOG Z8 Specifications

General IconGeneral
BrandZiLOG
ModelZ8
CategoryDesktop
LanguageEnglish

Related product manuals