Renesas H8S/2437 Hardware Manual page 639

Renesas 16-bit single-chip microcomputer h8s family / h8s / 2600 series
Table of Contents

Advertisement

When there are less than 128 bytes of data to be programmed, the host should fill the rest with
H'FF.
Sending the 128-byte programming command with the address of H'FFFFFFFF will stop the
programming operation. The boot program will interpret this as the end of the programming and
wait for selection of programming or erasing.
Command
H'50
• Command, H'50, (one byte): 128-byte programming
• Programming address (four bytes): End code is H'FF, H'FF, H'FF, H'FF.
• SUM (one byte): Checksum
Response
H'06
• Response, H'06, (one byte): Response to 128-byte programming
On completion of programming, ACK will be returned.
Error Response
H'D0
• Error response, H'D0, (one byte): Error response for 128-byte programming
• ERROR: (one byte): Error code
H'11:
Checksum error
H'53:
Programming error
An error has occurred in programming and programming cannot be continued.
(10) Erasure
Erasure is performed with the erasure selection and block erasure commands.
Firstly, erasure is selected by the erasure selection command and the boot program then erases the
specified block by a block-erasure command. The block-erasure command should be repeatedly
executed if two or more blocks are to be erased. Sending a block-erasure command from the host
with the block number H'FF will stop the erasure operating. On completion of erasing, the boot
program will wait for selection of programming or erasing.
The sequences of erasure selection commands and block erasure commands are shown in figure
20.24.
Address
ERROR
SUM
Rev. 1.00, 09/03, page 601 of 704

Advertisement

Table of Contents
loading

Table of Contents