
Obsolete
Product(s)
- Obsolete
Product(s)
8/82
ST6388, ST63E88, ST63T88
1.3 MEMORY SPACES
The MCU operates in three different memory
spaces: Stack Space, Program Space and Data
Space.
1.3.1 Stack Space
The stack space consists of six 12 bit registers that
are used for stacking subroutine and interrupt re-
turn addresses plus the current program counter
register.
1.3.2 Program Space
The program space is physically implemented in
the ROM and includes all the instructions that are
to be executed, as well as the data required for the
immediate addressing mode instructions, the re-
served test area and the user vectors. It is ad-
dressed thanks to the 12-bit Program Counter reg-
ister (PC register) and the ST6 Core can directly
address up to 4K bytes of Program Space. Never-
theless, the Program Space can be extended by
the addition of 2Kbyte memory banks as it is
shown in Figure 4, in which the 20K bytes memory
is described. These banks are addressed by point-
ing to the 000h-7FFh locations of the Program
Space thanks to the Program Counter, and by writ-
ing the appropriate code in the Program ROM
Page Register (PRPR) located at address CAh in
the Data Space. Because interrupts and common
subroutines should be available all the time only
the lower 2K byte of the 4K program space are
bank switched while the upper 2K byte can be
seen as static space.
Table 3 gives the different
codes that allows the selection of the correspond-
ing banks. Note that, from the memory point of
view, the Page 1 and the Static Page represent
the same physical memory: it is only a different
way of addressing the same location. On the
ST6388, a total of 20480 bytes of ROM have been
implemented; 20140 bytes are available as User
ROM while 340 bytes are reserved for testing.
PA0- PA3
I/ O, Push- Pull, Software Input Pull- up, Schmitt Trigger Input 5mA
PA4- PA5
I/ O, Open- Drain, 12V, No Input Pull- up, Schmitt Trigger Input
PA6- PA7
I/ O, Open- Drain, 12V, No Input Pull- up, Schmitt Trigger Input, High Drive 25mA
PB0- PB6
I/ O, Push- Pull/Open Drain, Software Input Pull- up, Schmitt Trigger Input, Analog input
PC0- PC3
I/ O, Open- Drain, 5V, Software Input Pull- up, Schmitt Trigger Input 5mA
PC4- PC7
I/ O, Open- Drain, 12V, No Input Pull- up, Schmitt Trigger Input 5mA
VDD, VSS
Power Supply Pins