English
Language : 

MC908JL8CDWE Datasheet, PDF (102/212 Pages) Freescale Semiconductor, Inc – Microcontrollers
Monitor ROM (MON)
:
FILE_PTR:
BUS_SPD
DATASIZE
START_ADDR
DATAARRAY
ORG
DS.B
DS.B
DS.W
DS.B
RAM
1; Indicates 4x bus frequency
1; Data size to be programmed
1; FLASH starting address
15; Reserved data array
EE_WRITE
EQU
FLASH_START EQU
$FD3F
$EF00
ORG
FLASH
INITIALISATION:
MOV #20, BUS_SPD
MOV #15, DATASIZE
LDHX #FLASH_START
STHX START_ADDR
RTS
MAIN:
BSR INITIALISATION
:
:
LHDX #FILE_PTR
JSR EE_WRITE
NOTE
The EE_WRITE routine is unable to check for incorrect data blocks, such
as the FLASH page boundary address and data size. It is the responsibility
of the user to ensure the starting address indicated in the data block is at
the FLASH page boundary and the data size is 2 to 15. If the FLASH page
is already programmed with a data array with a different size, the
EE_WRITE call will be ignored.
MC68HC908JL8/JK8 • MC68HC08JL8/JK8 • MC68HC908KL8 Data Sheet, Rev. 3.1
102
Freescale Semiconductor