English
Language : 

HMS87C1304A Datasheet, PDF (19/70 Pages) Hynix Semiconductor – CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
HYUNDAI MicroElectronics
HMS87C1304A/HMS87C1302A
8.2 Program Memory
A 16-bit program counter is capable of addressing up to
64K bytes, but these devices have 4K/2K bytes program
memory space only physically implemented. Accessing a
location above FFFFH will cause a wrap-around to 0000H.
Figure 8-4 , shows a map of Program Memory. After reset,
the CPU begins execution from reset vector which is stored
in address FFFEH and FFFFH as shown in Figure 8-5 .
As shown in Figure 8-4 , each area is assigned a fixed lo-
cation in Program Memory. Program Memory area con-
tains the user program.
F000H
Example: Usage of TCALL
LDA
#5
TCALL 0FH
:
:
;
;TABLE CALL ROUTINE
;
FUNC_A: LDA LRG0
RET
;
FUNC_B: LDA LRG1 2
RET
;
;TABLE CALL ADD. AREA
;
ORG 0FFC0H
DW FUNC_A
DW FUNC_B
;1BYTE INSTRUCTION
;INSTEAD OF 3 BYTES
;NORM AL CALL
1
;TCALL ADDRESS AREA
HMS87C1304A
F800H
HMS87C1302A
ry FEFFH
FF00H
a FFC0H
in FFDFH
FFE0H
FFFFH
TCALL
AREA
INTERRUPT
VECTOR AREA
PROGRAM
MEMORY
PCALL
AREA
elim Figure 8-4 Program Memory Map
r Page Call (PCALL) area contains subroutine program to
P reduce program byte length by using 2 bytes PCALL in-
The interrupt causes the CPU to jump to specific location,
where it commences the execution of the service routine.
The External interrupt 0, for example, is assigned to loca-
tion 0FFFAH. The interrupt service locations spaces 2-byte
interval: 0FFF8H and 0FFF9H for External Interrupt 1,
0FFFAH and 0FFFBH for External Interrupt 0, etc.
As for the area from 0FF00H to 0FFFFH, if any area of
them is not going to be used, its service location is avail-
able as general purpose Program Memory.
Address
0FFE0H
E2
E4
Vector Area Memory
-
-
-
stead of 3 bytes CALL instruction. If it is frequently called,
E6
Basic Interval Interrupt Vector Area
it is more useful to save program byte length.
Table Call (TCALL) causes the CPU to jump to each
TCALL address, where it commences the execution of the
service routine. The Table Call service area spaces 2-byte
for every TCALL: 0FFC0H for TCALL15, 0FFC2H for
TCALL14, etc., as shown in Figure 8-6 .
E8
Watchdog Timer Interrupt Vector Area
EA
A/D Converter Interrupt Vector Area
EC
-
EE
-
F0
-
F2
-
F4
Timer/Counter 1 Interrupt Vector Area
F6
Timer/Counter 0 Interrupt Vector Area
F8
External Interrupt 1 Vector Area
FA
External Interrupt 0 Vector Area
FC
-
FE
RESET Vector Area
NOTE:
“-” means reserved area.
Figure 8-5 Interrupt Vector Area
Jan. 2001
Preliminary
19