![Hitachi H8/3152 Скачать руководство пользователя страница 88](http://html.mh-extra.com/html/hitachi/h8-3152/h8-3152_hardware-manual_140481088.webp)
85
Table 8.2
EEPMOV Instruction Parameters and Their Valid Ranges
Register
Name
Description
Valid Range*
1
Final Value
R4L
Byte counter
Byte length of block to be
written in EEPROM
1 to 64
(H'01 to H'40)
H'00
R5
RAM address
register
Starting address of source
block in RAM
H'FBC0 to H'FFBF
R5 + R4L
R6
EEPROM address
register
Starting address of
destination block in
EEPROM
H'8000 to H'C1FF
R6 + R4L*
Notes: 1. The valid range is for the H8/3153.
2. When an EEPROM write operation ends at the last address on a page, the EEPROM
address register (R6) reverts to the first address on that page.
Example: If R6 = H'8000 and R4L = H'40, the final value of R6 is H'8000.
If R6 = H'807F and R4L = H'01, the final value of R6 is H'8040.
If the parameters are set to values outside the valid ranges in table 8.2 when the EEPMOV
instruction is executed, or if the byte counter (R4L) and EEPROM address register (R6) are set so
as to cross a page boundary, the write or erase operation may not be performed as intended. In
addition, the final values left in the registers after instruction execution may not be the values
indicated in table 8.2.
Figure 8.9 shows the sequence to be performed by software for writing to or erasing the
EEPROM.