English
Language : 

MC68HC908RK2 Datasheet, PDF (53/232 Pages) Motorola, Inc – Microcontroller Unit
FLASH 2TS Memory
Embedded Program/Erase Routines
By programming the block protect bits, a portion of the memory will be
locked so that no further erase or program operations may be
performed. Programming more than one bit at a time is redundant. If
both bit 1 and bit 2 are set, for instance, the FLASH address ranges
between $7880–$FFFF are locked. If all bits are erased, then all of the
memory is available for erase and program.
The presence of a voltage VHI on the IRQ1 pin will bypass the block
protection so that all of memory, including the block protect register, can
be programmed or erased.
4.10 Embedded Program/Erase Routines
The MC68HC908RK2 monitor ROM contains numerous routines for
programming and erasing the FLASH memory. These embedded
routines are intended to assist the programmer with modifying the
FLASH memory array. These routines will implement the smart
programming algorithm as defined in Figure 4-2. The functions are listed
in Table 4-3.
Table 4-3. Embedded FLASH Routines
Function Description
Call
JSR to Address(1)
Read/verify a range
RDVRRNG
ROMSTRT + 0
Program range of FLASH
PRGRNGE
ROMSTRT + 3
Erase range of FLASH
ERARNGE
ROMSTRT + 6
Redundant program FLASH
REDPROG
ROMSTRT + 9
1. ROMSTRT is defined as the starting address of the monitor ROM in the memory map. This
is address $F000.
The functions shown in Table 4-3 accept data through the CPU registers
and global variables in RAM. Table 4-4 shows the RAM locations that
are used for passing parameters.
MC68HC908RK2 — Rev. 4.0
MOTOROLA
FLASH 2TS Memory
Advance Information
53