mc68hc908gr8vp Freescale Semiconductor, Inc, mc68hc908gr8vp Datasheet - Page 114

no-image

mc68hc908gr8vp

Manufacturer Part Number
mc68hc908gr8vp
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Flash Memory
11.7 FLASH 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 a block of memory from unintentional erase or program
operations due to system malfunction. This protection is done by using of a FLASH Block Protect Register
(FLBPR). The FLBPR determines the range of the FLASH memory which is to be protected. The range
of the protected area starts from a location defined by FLBPR and ends at the bottom of the FLASH
memory ($FFFF). When the memory is protected, the HVEN bit cannot be set in either ERASE or
PROGRAM operations.
When the FLBPR is programmed with all 0s, the entire memory is protected from being programmed and
erased. When all the bits are erased (all 1s), the entire memory is accessible for program and erase.
When bits within the FLBPR are programmed, they lock a block of memory with address ranges as shown
in
or program of the FLBPR or the protected block of FLASH memory is prohibited. Mass erase is disabled
whenever any block is protected (FLBPR does not equal $FF). The presence of a V
will bypass the block protection so that all of the memory included in the block protect register is open for
program and erase operation.
11.7.1 FLASH Block Protect Register
The FLASH block protect register (FLBPR) is implemented as a byte within the FLASH memory, and
therefore can only be written during a programming sequence of the FLASH memory. The value in this
register determines the starting location of the protected range within the FLASH memory.
BPR[7:0] — FLASH Block Protect Bits
114
FLASH Block Protect
These eight bits represent bits [13:6] of a 16-bit memory address. Bits [15:14] are 1s and bits [5:0]
are 0s.
Address:
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
The FLASH block protect register is not protected with special hardware or
software. Therefore, if this page is not protected by FLBPR, the register is
erased by either a page or mass erase operation.
Reset:
Read:
Write:
U = Unaffected by reset. Initial value from factory is 1.
Write to this register is by a programming sequence to the FLASH memory.
$FF7E
BPR7
Register. Once the FLBPR is programmed with a value other than $FF, any erase
Bit 7
Figure 11-3. FLASH Block Protect Register (FLBPR)
U
MC68HC908GR8 • MC68HC908GR4 Data Sheet, Rev. 7
BPR6
U
6
BPR5
U
5
NOTE
NOTE
BPR4
U
4
BPR3
U
3
BPR2
U
2
BPR1
U
1
Freescale Semiconductor
TST
BPR0
Bit 0
U
on the IRQ pin

Related parts for mc68hc908gr8vp