Obsolete
Product(s)
- Obsolete
Product(s)
10/82
ST6388, ST63E88, ST63T88
MEMORY SPACES (Cont’d)
Program ROM Page Register (PRPR)
Address: CAh - Write only
Reset Value: XXh
D7-D4. These bits are not used but have to be
written to “0”.
PRPR3-PRPR0. These are the program ROM
banking bits and the value loaded selects the cor-
responding page to be addressed in the lower part
of 4K program address space as specified in
Table4. This register is undefined on reset.
Caution: This register contains at least one write
only bit. Single bit instructions (SET, RES, INC
and DEC) should not be used.
Note. Only the lower part of address space has
been bankswitched because interrupt vectors and
common subroutines should be available all the
time. The reason of this structure is due to the fact
that it is not possible to jump from a dynamic page
to another, unless jumping back to the static page,
changing contents of PRPR and then jumping to a
different dynamic page.
Care is required when handling the PRPR as it is
write only. For this reason, it is not allowed to
change the PRPR contents while executing inter-
rupts drivers, as the driver cannot save and than
restore its previous content. Anyway, this opera-
tion may be necessary if the sum of common rou-
tines and interrupt drivers will take more than 2K
bytes; in this case it could be necessary to divide
the interrupt driver in a (minor) part in the static
page (start and end), and in the second (major)
part in one dynamic page. If it is impossible to
avoid the writing of this register in interrupts driv-
ers, an image of this register must be saved in a
RAM location. Each time the program writes the
PRPR register, the image register should also be
written. The image register must be written first, so
if an interrupt occurs between the two instructions
the PRPR is not affected.
Table 3. Program Memory Page Register coding
Table 4. Program Memory Map
70
-
PRPR3 PRPR2 PRPR1 PRPR0
PRPR3 PRPR2 PRPR1 PRPR0 PC11 Memory Page
XX
1
Static Page
(Page 1)
00
0
Page 0
00
01
0
Page 1 (Static
Page)
00
10
0
Page 2
00
11
0
Page 3
01
00
0
Page 4
01
0
Page 5
01
10
0
Page 6
01
11
0
Page 7
10
00
0
Page 8
10
01
0
Page 9
Program Memory Page
Device Address
Description
PAGE 0
0000h-007Fh
0080h-07FFh
Reserved
User ROM
PAGE 1
“STATIC”
0800h-0F9Fh
0FA0h-0FEFh
0FF0h-0FF7h
0FF8h-0FFBh
0FFCh-0FFDh
0FFEh-0FFFh
User ROM
Reserved
Interrupt Vectors
Reserved
NMI Vector
Reset Vector
PAGE 2
0000h-000Fh
0010h-07FFh
Reserved
User ROM
PAGE 3
0000h-000Fh
0010h-07FFh
Reserved
User ROM
PAGE 4
0000h-000Fh
0010h-07FFh
Reserved
User ROM
PAGE 5
0000h-000Fh
0010h-07FFh
Reserved
User ROM
PAGE 6
0000h-000Fh
0010h-07FFh
Reserved
User ROM
PAGE 7
0000h-000Fh
0010h-07FFh
Reserved
User ROM
PAGE 8
0000h-000Fh
0010h-07FFh
Reserved
User ROM
PAGE 9
0000h-000Fh
0010h-07FFh
Reserved
User ROM (End of 20K ST6388)