mc68hc908jw32 Freescale Semiconductor, Inc, mc68hc908jw32 Datasheet - Page 101

no-image

mc68hc908jw32

Manufacturer Part Number
mc68hc908jw32
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc908jw32FAE
Manufacturer:
FREESCALE
Quantity:
20 000
7.5 ROM-Resident Routines
Five routines stored in the monitor ROM area (thus ROM-resident) are provided for FLASH memory
manipulation. They are intended to simplify FLASH program, erase and load operations.
shows a summary of the ROM-resident routines.
The routines are designed to be called as stand-alone subroutines in the user program or monitor mode.
The parameters that are passed to a routine are in the form of a contiguous data block, stored in RAM.
The index register (H:X) is loaded with the address of the first byte of the data block (acting as a pointer),
and the subroutine is called (JSR). Using the start address as a pointer, multiple data blocks can be used,
any area of RAM be used. A data block has the control and data bytes in a defined order, as shown in
Figure
During the software execution, it does not consume any dedicated RAM location, the run-time heap will
extend the system stack, all other RAM location will not be affected.
Freescale Semiconductor
7-8.
MON_PRGRNGE
MON_ERARNGE
Routine Name
PRGRNGE
ERARNGE
LDRNGE
ADDRESS AS POINTER
FILE_PTR
Figure 7-8. Data Block Format for ROM-Resident Routines
Table 7-10. Summary of ROM-Resident Routines
Program a range of locations
Erase a page or the entire array
Loads data from a range of locations
Program a range of locations in monitor
mode
Erase a page or the entire array in monitor
mode
ARRAY
DATA
MC68HC908JW32 Data Sheet, Rev. 5
$XXXX
Routine Description
START ADDRESS HIGH (ADDRH)
START ADDRESS LOW (ADDRL)
BUS SPEED (BUS_SPD)
DATA SIZE (DATASIZE)
R
DATA N
DATA 0
DATA 1
A
M
Address
$FE10
$FE13
$FA31
$FF24
$FF28
Call
BLOCK
DATA
ROM-Resident Routines
Stack Used
(bytes)
Table 7-10
16
10
10
18
12
101

Related parts for mc68hc908jw32