Eeprom Write And Erase Operations; Write/Erase Sequence - Hitachi H8/3152 Hardware Manual

Single-chip microcomputer h8/3150 series
Table of Contents

Advertisement

8.4

EEPROM Write and Erase Operations

8.4.1

Write/Erase Sequence

The EEPROM is written or erased using the EEPMOV block data transfer instruction. The
EEPMOV instruction transfers a block of data stored in RAM to a single page in EEPROM. The
data transfer from RAM to EEPROM is controlled by parameters set in CPU registers R4L, R5,
and R6 as shown in figure 8.7. The transfer is made by first setting parameters in registers R4L,
R5, and R6 and control bits in EPR and ECR, then executing the EEPMOV instruction.
Figure 8.8 indicates the contents of the three parameter registers used by the EEPMOV instruction.
Table 8.2 describes the parameters and their valid ranges of values.
15
15
84
Transfer
Figure 8.7 Block Transfer to EEPROM
RAM address register
EEPROM address register
Figure 8.8 EEPMOV Instruction Parameters
RAM
EEPROM
7
Byte counter
R5
R5 + R4L – 1
R6
R6 + R4L – 1
0
R4L
0
R5
0
R6

Advertisement

Table of Contents
loading

Table of Contents