Datasheet

Section 22 Flash Memory
R01UH0309EJ0500 Rev. 5.00 Page 1189 of 1408
Sep 24, 2012
H8S/2456, H8S/2456R, H8S/2454 Group
(9) Programming/Erasing State
A programming selection command makes the boot program select the programming method, an
128-byte programming command makes it program the memory with data, and an erasing
selection command and block erasing command make it erase the block. The programming/
erasing commands are listed below.
Table 22.10 Programming/Erasing Commands
Command Command Name Description
H'43 User-program programming
selection
Transfers the user ROM programming
program
H'50 128-byte programming Programs 128 bytes of data
H'48 Erasure selection Transfers the erasing program
H'58 Block erasure Erases a block of data
H'52 Memory read Reads the contents of memory
H'4B User ROM sum check Executes sum checking of the user ROM area
H'61 Data flash sum check Executes sum checking of the data flash area
H'4D User ROM blank check Executes blank checking of the user ROM
area
H'62 Data flash blank check Executes blank checking of the data flash area
H'4F Boot program status inquiry Inquires into the boot program's status
Programming
Programming is executed by a programming-selection command and a 128-byte programming
command.
Firstly, the host should send the programming-selection command and select the programming
method and programming ROMs. The programming selection command is user ROM
programming selection, regardless of the area and method for programming.
After issuing the programming selection command, the host should send the 128-byte
programming command. The 128-byte programming command that follows the selection
command represents the data programmed according to the method specified by the selection
command. When more than 128-byte data is programmed, 128-byte commands should repeatedly
be executed. Sending a 128-byte programming command with H'FFFFFFFF as the address will
stop the programming. On completion of programming, the boot program will wait for selection of
programming or erasing.