Datasheet

Section 7 ROM
Page 204 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
Response H'52 Reading size
Data
SUM
Response H'52 (1 byte): Response to a memory read command
Reading size (4 bytes): The amount of data to be read
Data (128 bytes): The specified amount of data to be read out starting at the specified address
SUM (1 byte): Checksum
Error response
H'D2 ERROR
Error response H'D2 (1 byte): Error response to a memory read command
ERROR (1 byte): Error code
H'11: Checksum error
H'2A: Address error (the specified address for reading is not in the MAT)
H'2B: Size error (the specified size (amount) is greater than the size of the MAT)
(f) Programmable ROM Sum Check
In response to a programmable ROM sum check command, the boot program adds all the data
bytes in the user ROM area and returns the result.
Command H'4B
Command H'4B (1 byte): Programmable ROM sum check
Response H'5B Size Checksum for the MAT SUM
Response H'5B (1 byte): Response to a programmable ROM sum check command
Size (1 byte): The number of characters in the checksum-for-the-MAT field (fixed to 4)
Checksum for the MAT (4 bytes): Result of checksum calculation for the programmable ROM
area; the total of all the data in the MAT, in byte units.
SUM (1 byte): Checksum (for this response)