English
Language : 

MC68HC908AZ60 Datasheet, PDF (48/480 Pages) Motorola, Inc – HCMOS Microcontroller Unit
FLASH-1 Memory
FLASH Block Protection
NOTE:
In performing a program or erase operation the FLASH Block Protect
Register must be read after setting the PGM or ERASE bit and before
asserting the HVEN bit.
Due to the ability of the on-board charge pump to erase and program the
FLASH memory in the target application, provision is made for protecting
blocks of memory from unintentional erase or program operations due to
system malfunction. This protection is done by reserving a location in the
memory for block protect information and requiring that this location be
read from to enable setting of the HVEN bit. When the block protect
register is read, its contents are latched by the FLASH control logic. If
the address range for an erase or program operation includes a
protected block, the PGM or ERASE bit is cleared which prevents the
HVEN bit in the FLASH control register from being set so that no high
voltage is allowed in the array.
When the block protect register is erased (all 0s), the entire memory is
accessible for program and erase. When bits within the register are
programmed, they lock blocks of memory address ranges as shown in
FLASH-1 Block Protect Register on page 47. The block protect register
itself can be erased or programmed only with an external voltage VHI
present on the IRQ pin. The presence of VHI on the IRQ pin also allows
entry in to monitor mode out of reset. Therefore, the ability to change the
block protect register is voltage dependent and can occur in either user
or monitor modes.
MC68HC908AZ60 — Rev 2.0
46
FLASH-1 Memory
12-flash-1
MOTOROLA