Software Protection - Hitachi H8/3062 Hardware Manual

Single-chip microcomputer
Hide thumbs Also See for H8/3062:
Table of Contents

Advertisement

3. All blocks are unerasable and block-by-block specification is not possible.
4. See section 4.2.2, Reset Sequence, and section 19.11, Flash Memory Programming
and Erasing Precautions. The H8/3062F-ZTAT A-mask version requires a minimum of
20 system clock cycles for a reset during operation.
19.7.2

Software Protection

Software protection can be implemented by setting the erase block register (EBR) and the RAMS
bit in the RAM control register (RAMCR). With software protection, setting the P or E bit in the
flash memory control register 1 (FLMCR1) does not cause a transition to program mode or erase
mode. (See table 19.10.)
Table 19.10
Software Protection
Item
Description
Block
Erase protection can be set for individual
protection
blocks by settings in erase block register
(EBR)*
is disabled.
• Setting EBR to H'00 places all blocks in the
erase-protected state.
Emulation
Setting the RAMS bit 1 in RAMCR places
protection
all blocks in the program/erase-protected
state.
Notes: 1. The RAM area overlapping flash memory can be written to.
2. When not erasing, set EBR to H'00.
3. All blocks are unerasable and block-by-block specification is not possible.
19.7.3
Error Protection
In error protection, an error is detected when MCU runaway occurs during flash memory
programming/erasing*
algorithm, and the program/erase operation is aborted. Aborting the program/erase operation
prevents damage to the flash memory due to overprogramming or overerasing.
If the MCU malfunctions during flash memory programming/erasing, the FLER bit is set to 1 in
the flash memory status register (FLMSR2) and the error protection state is entered. FLMCR1,
FLMCR2, and EBR settings*
point at which the error occurred. Program mode or erase mode cannot be re-entered by re-setting
the P or E bit in FLMCR. However, PV and EV bit setting is enabled, and a transition can be made
2
to verify mode*
.
2
. However, programming protection
1
, or operation is not performed in accordance with the program/erase
3
are retained, but program mode or erase mode is aborted at the
Functions
Program
Erase
Not
possible
Not
Not
1
possible*
possible*
Verify
Possible
Possible
3
605

Advertisement

Table of Contents
loading

Table of Contents