M68HC12A4EVB Evaluation Board — Rev. 1
User’s Manual
MOTOROLA
D-Bug12 Startup Code
131
User’s Manual — M68HC12A4EVB Evaluation Board
Appendix C. D-Bug12 Startup Code
The D-Bug12 startup code is located in the EPROMs, U7 and U9A, in the
address range $FD80 to $FDFF, as shown in
Table 3-5.
Factory-Configuration Memory Map
.
To customize this startup code, it is necessary to reprogram the EPROMs. For
more information, refer to
Appendix E. Customizing the EPROMs
.
The following D-Bug12 startup code is distilled from the source listing for
clarity. To assemble the startup code for programming into the EPROMs, the
.DEFINEs must be included ahead of the code listed here.
opt
lis
; assembler directive to turn
; listing on
0A00
MonRAMStart equ
$0A00
0200
MonRAMSize
equ
$0200
0800
RAM_START
equ
$0800
0400
RAMSize
equ
$0400
0C00
STACKTOP
equ
RARAMSize ; stack at top of int RAM
1000
EE_START
equ
$1000
; 4K EEPROM located here out
; of reset(in expanded modes)
FD80
org
$fd80
;*****************************************************************
; INITIALIZATION
;
; Initialization code for the M68HC12A4EVB D-Bug12 monitor program
;*****************************************************************
FD80
CODE_START:
;
set Port E bit 7 to an output to eliminate possible noise
;
problems associated with unterminated input pins.
FD80 4C0980
bset
DDRE,80h
; set the data direction to
; configure Port E, bit 7 as an
; output.
FD83 4C0880
bset
PORTE,80h
; set Port E, bit 7 to logic 1.
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..
AR
CH
IVE
D B
Y F
RE
ES
CA
LE
SE
MI
CO
ND
UC
TO
R,
IN
C.