MC68HC908AS60ACFN FREESCALE [Freescale Semiconductor, Inc], MC68HC908AS60ACFN Datasheet - Page 54

no-image

MC68HC908AS60ACFN

Manufacturer Part Number
MC68HC908AS60ACFN
Description
M68HC08 Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
FLASH-1 Memory
Decreasing the value in FL1BPR by one increases the protected range by one page (128 bytes).
However, programming the block protect register with $FE protects a range twice that size, 256 bytes, in
the corresponding array. $FE means that locations $FF00–$FFFF are protected in FLASH-1.
The FLASH memory does not exist at some locations. The block protection range configuration is
unaffected if FLASH memory does not exist in that range. Refer to the memory map and make sure that
the desired locations are protected.
4.4 FLASH-1 Block Protection
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 using the FLASH-1 Block Protection
Register (FL1BPR). FL1BPR determines the range of the FLASH-1 memory which is to be protected. The
range of the protected area starts from a location defined by FL1BPR and ends at the bottom of the
FLASH-1 memory ($FFFF). When the memory is protected, the HVEN bit can not be set in either ERASE
or PROGRAM operations.
When the FLASH-1 Block Protect Register is programmed with all 0’s, the entire memory is protected
from being programmed and erased. When all the bits are erased (all 1’s), the entire memory is accessible
for program and erase.
When bits within FL1BPR are programmed (logic 0), they lock a block of memory address ranges as
shown in
the protected block of FLASH memory can not be erased or programmed.
54
4.3.2 FLASH-1 Block Protect
In performing a program or erase operation, the FLASH-1 Block Protect
Register must be read after setting the PGM or ERASE bit and before
asserting the HVEN bit.
The vector locations and the FLASH Block Protect Registers are located in
the same page. FL1BPR and FL2BPR are not protected with special
hardware or software; therefore, if this page is not protected by FL1BPR
and the vector locations are erased by either a page or a mass erase
operation, both FL1BPR and FL2BPR will also get erased.
MC68HC908AZ60A • MC68HC908AS60A • MC68HC908AS60E Data Sheet, Rev. 6
Register. If FL1BPR is programmed with any value other than $FF,
NOTE
NOTE
Freescale Semiconductor

Related parts for MC68HC908AS60ACFN