D-Bug12 Startup Code
M68HC12A4EVB Evaluation Board — Rev. 1
User’s Manual
MOTOROLA
D-Bug12 Startup Code
133
FDB7 CEFE00
ldx
#$fe00
; point to the table of user
; accessible routines.
FDBA 05E30000
jmp
[0,x]
; the first entry is a pointer
; to main. GO.........
;
The following subroutine produces a delay of approximately
;
20 ms, based on the following conditions:
;
1.) An 8.00 MHz E-clock
;
2.) Subroutine located in external EPROM - selected by CSP0
;
3.) CSP0 programmed for 1 E-clock stretch
;
;
This routine is called by D-Bug12's WriteEEByte() function
;
through a pointer stored in the Customization Data Table.
FDBE
_EEDelay:
FDBE CE2710
ldx
#10000
; load delay count into x
FDC1 09
DlyLoop:
dex
; decrement count
FDC2 26FD
bne
DlyLoop
; loop till done.
FDC4 3D
rts
; return.
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.