GMS81C1102 / GMS81C1202
12.2 Program Memory
A 16-bit program counter is capable of addressing up to
64K bytes, but this device has 2K bytes program memory
space only the physically implemented. Accessing a loca-
tion above FFFFH will cause a wrap-around to 0000H.
spaced at 2-byte interval : FFC0H for TCALL15, FFC2H
for TCALL14, etc.
The interrupt causes the CPU to jump to specific location,
where it commences execution of the service routine. The
External interrupt 0, for example, is assigned to location
FFFAH. The interrupt service locations are spaced at 2-
byte interval : FFF8H for External Interrupt 1, FFFAH for
External Interrupt 0, etc.
Figure 12-4 shows a map of the upper part of the Program
Memory. After reset, the CPU begins execution from reset
vector which is stored in address FFFEH, FFFFH.
As shown in Figure 12-4, each area is assigned a fixed lo-
cation in Program Memory. Program Memory area con-
tains the user program, Page Call (PCALL) area contains
subroutine program, to reduce program byte length be-
cause of using by 2 bytes PCALL instead of 3 bytes CALL
instruction. If it is frequently called, more useful to save
program byte length.
Address
TCALL Name
TCALL15
TCALL14
TCALL13
TCALL12
TCALL11
TCALL10
TCALL9
TCALL8
TCALL7
TCALL6
TCALL5
TCALL4
TCALL3
TCALL2
TCALL1
FFC0H
FFC2H
FFC4H
FFC6H
FFC8H
FFCAH
FFCCH
FFCEH
FFD0H
FFD2H
FFD4H
FFD6H
FFD8H
FFDAH
FFDCH
FFDEH
0F50H
ID
ID
0F50H
0F60H
0F70H
0F80H
0F90H
0FA0H
0FB0H
0FC0H
0FD0H
0FE0H
0FF0H
DEVICE
CONFIGURATION
AREA
ID
0FF0H
F800H
ID
NOT USED
ID
ID
ID
TCALL0 / BRK 1
ID
PROGRAM
MEMORY
Table 12-1 TCALL Vectors
ID
1.
The BRK software interrupt is using same address
with TCALL0.
ID
CONFIG
FEFFH
FF00H
As for the area from FF00H to FFFFH, if any area of them
is not going to be used, its service location is available as
general purpose Program Memory.
PCALL
AREA
FFBFH
FFC0H
TCALL
AREA
Address
Vector Name
FFDFH
FFE0H
FFE0H
FFE2H
FFE4H
FFE6H
FFE8H
FFEAH
FFECH
FFEEH
FFF0H
FFF2H
FFF4H
FFF6H
FFF8H
FFFAH
FFFCH
FFFEH
Not Used
Not Used
Not Used
Basic Interval Timer
Watchdog Timer
A/D Converter
Not Used
Not Used
Not Used
INTERRUPT
VECTOR AREA
FFFFH
Figure 12-4 Program Memory Map
The Device Configuration Area can be programmed or left
unprogrammed to select device configuration such as RC
oscillation option. This area is not accessible during nor-
mal execution but is readable and writable during program
/ verify.
Not Used
Timer / Counter 1
Timer / Counter 0
External Interrupt 1
External Interrupt 0
Not Used
More detail informations are explained in device configu-
ration area section.
RESET
Table Call (TCALL) causes the CPU to jump to each
TCALL address, where it commences execution of the
service routine. The Table Call service locations are
Table 12-2 Interrupt Vectors
Page Call (PCALL) area contains subroutine program to
28
Jan. 2002 ver 2.0