Erase Block Register 1 (Ebr1); Erase Block Register 2 (Ebr2) - Hitachi H8S/2646 Hardware Manual

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

20.5.3

Erase Block Register 1 (EBR1)

EBR1 is an 8-bit register that specifies the flash memory erase area block by block. EBR1 is
initialized to H'00 by a reset, in hardware standby mode and software standby mode, when a low
level is input to the FWE pin, and when a high level is input to the FWE pin and the SWE bit in
FLMCR1 is not set. When a bit in EBR1 is set to 1, the corresponding block can be erased. Other
blocks are erase-protected. Only one of the bits of EBR1 and EBR2 combined can be set. Do not
set more than one bit, as this will cause all the bits in both EBR1 and EBR2 to be automatically
cleared to 0. When on-chip flash memory is disabled, a read will return H'00, and writes are
invalid.
The flash memory block configuration is shown in table 20-3.
Bit:
Initial value:
R/W:
20.5.4

Erase Block Register 2 (EBR2)

EBR2 is an 8-bit register that specifies the flash memory erase area block by block. EBR2 is
initialized to H'00 by a reset, in hardware standby mode and software standby mode, when a low
level is input to the FWE pin. Bit 0 will be initialized to 0 if bit SWE of FLMCR1 is not set, even
though a high level is input to pin FWE. When a bit in EBR2 is set to 1, the corresponding block
can be erased. Other blocks are erase-protected. Only one of the bits of EBR1 and EBR2
combined can be set. Do not set more than one bit, as this will cause all the bits in both EBR1 and
EBR2 to be automatically cleared to 0. Bits 7 to 2 are reserved and must only be written with 0.
When on-chip flash memory is disabled, a read will return H'00, and writes are invalid.
The flash memory block configuration is shown in table 20-3.
Bit:
Initial value:
R/W:
670
7
6
EB7
EB6
EB5
0
0
R/W
R/W
R/W
7
6
0
0
R/W
R/W
R/W
5
4
3
EB4
EB3
0
0
0
R/W
R/W
5
4
3
0
0
0
R/W
R/W
2
1
EB2
EB1
EB0
0
0
R/W
R/W
R/W
2
1
EB9
EB8
0
0
R/W
R/W
R/W
0
0
0
0

Advertisement

Table of Contents
loading

Table of Contents