Hitachi H8/3152 Hardware Manual page 85

Single-chip microcomputer h8/3150 series
Table of Contents

Advertisement

8.2
Register Descriptions
8.2.1
EEPROM Control Register (ECR)
ECR is an 8-bit register that controls the type of write or erase operation performed on the
EEPROM.
Bit:
Initial value:
Read/Write:
Bits 7 to 2—Reserved: Always read as 1 and cannot be written to.
Although not used at present, reserved bits may be used in the future. When writing to ECR, write
0 to these bits.
Bits 1 and 0—Operation Control 1 and 0 (OC1 and OC0): These bits select the type of
EEPROM write/erase operation.
Four operations can be selected by OC1 and OC0 as follows.
Bit 1: OC1
Bit 0: OC0
0
0
1
1
0
1
To prevent unintended writing and erasing, the OC1 and OC0 bits are both set to 1 automatically
at a reset, in sleep mode, and at the end of a write or erase operation. It is accordingly necessary to
clear one or both of these bits before every write or erase operation.
82
7
6
5
1
1
1
R
R
R
Description
Rewrite
Overwrite
Page erase
Write/erase disabled
4
3
2
1
1
1
R
R
R
1
0
OC1
OC0
1
1
R/W
R/W
(Initial value)

Advertisement

Table of Contents
loading

Table of Contents