Hitachi H8/3048 Hardware Manual page 617

Single-chip microcomputer
Table of Contents

Advertisement

Hardware Protection: Suspends or disables the programming and erasing of flash memory, and
resets the flash memory control register (FLMCR) and erase block registers (EBR1 and EBR2).
www.DataSheet4U.com
The error-protect function permits the P and E bits to be set, but prevents transitions to program
mode and erase mode. Details of hardware protection are as follows.
Protection
Description
Programing
When V
voltage (V
)
and EBR2 are initialized, disabling
PP
protect
programming and erasing. To obtain this
protection, V
Reset and
When a reset occurs (including a watchdog
standby
timer reset) or standby mode is entered,
protect
FLMCR, EBR1, and EBR2 are initialized,
disabling programming and erasing.
Note that
reset unless the RES pin is held low for
at least 20 ms at power-up (to enable
the oscillator to settle), or at least 10
system clock cycles (
Error protect
If an operational error is detected during
programming or erasing of flash memory
(FLER = 1), the FLMCR, EBR1, and EBR2
settings are preserved, but programming
or erasing is aborted immediately.
This type of protection can be cleared
only by a reset or hardware standby.
Notes: 1. Program-verify, erase-verify, and prewrite-verify modes.
2. All blocks are erase-disabled. It is not possible to specify individual blocks.
3. For details, see section 18.10, Flash Memory Programming and Erasing Precautions.
Error Protect: This protection mode is entered if one of the error conditions that set the FLER bit
in RAMCR is detected while flash memory is being programmed or erased (while the P bit or E
bit is set in FLMCR). These conditions can occur if microcontroller operations do not follow the
programming or erasing algorithm. Error protect is a flash-memory state. It does not affect other
microcontroller operations.
In this state the settings of the flash memory control register (FLMCR) and erase block registers
(EBR1 and EBR2) are preserved,* but program mode or erase mode is terminated as soon as the
error is detected. While the FLER bit is set, it is not possible to enter program mode or erase
mode, even by setting the P bit or E bit in FLMCR again. The PV and EV bits in FLMCR remain
valid, however. Transitions to verify modes are possible in the error-protect state.
is not applied, FLMCR, EBR1,
PP
should not exceed V
PP
RES input does not ensure a
ø
) during operation.
608
Function
Program
Erase
Disabled
Disabled*
3
.*
CC
Disabled
Disabled*
Disabled
Disabled*
1
Verify*
2
Disabled
2
Disabled
2
Enabled

Advertisement

Table of Contents
loading

Table of Contents