Datasheet

Section 7 ROM
REJ09B0465-0300 Rev. 3.00 Page 201 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
The specified address should be on a boundary corresponding to the unit of programming
(programming size). For example, when the programming size is 128 bytes, the lower 8 bits of the
address should be either H'00 or H'80. When less than 128 bytes of data are to be programmed, the
host should transmit the data after padding the vacant bytes with H'FF.
To terminate programming, send the 128-byte programming command with H'FFFFFFFF in the
address-for-programming field. This informs the boot program that the data has been completely
sent; the boot program then waits for the next programming/erasure selection command.
Command H'50 Address SUM
Command H'50 (1 byte): 128-byte programming
Address for programming (4 bytes): Terminating code (H'FF, H'FF, H'FF, H'FF)
SUM (1 byte): Checksum
Response H'06
Response H'06 (1 byte): Response to a 128-byte programming command.
The ACK code is returned upon termination of the programming process.
Error response
H'D0 ERROR
Error response H'D0 (1 byte): Error response to a 128-byte programming command
ERROR (1 byte): Error code
H'11: Checksum error
H'53: Programming error (programming failed because of an error in programming)
(c) Erasure Selection
In response to an erasure selection command, the boot program transfers the relevant erasure-
control program. The data in the user ROM area is erased using the transferred erasure-control
program.
Command H'48
Command H'48 (1 byte): Erasure selection
Response H'06