English
Language : 

MC68HC908LJ12 Datasheet, PDF (181/413 Pages) Freescale Semiconductor, Inc – 8-bit microcontroller units
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
$FC00
$EF00
NOTE:
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
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.
Technical Data
182
Monitor ROM (MON)
MC68HC908LJ12 — Rev. 2.1
Freescale Semiconductor