English
Language : 

SH7059 Datasheet, PDF (885/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
25. ROM (SH7059)
Erasure: Erasure is performed with the erasing selection and block erasing command.
First, erasure is selected by the erasing selection command and the boot program then erases the block specified by the
block erasing command. The command should be repeatedly executed if two or more blocks are to be erased. Sending a
block erasing command from the host with the block number H'FF will stop erasure. On completion of erasing, the boot
program will wait for selection of programming or erasing.
The erasing selection command and sequence for erasing data are shown in figure 25.31.
Host
Repeat
Preparation for erasure (H'48)
Boot program
Transfer of erasure
program
ACK
Erasure (Erased block number)
ACK
Erasure
Erasure (H'FF)
ACK
Figure 25.31 Erasing Sequence
(1) Erasing selection
The boot program will transfer the erasing program. User MAT data is erased by the transferred erasing program.
Command H'48
⎯ Command: H'48 (one byte): Erasing selection
Response H'06
⎯ Response: H'06 (one byte): Response to erasing selection
After the erasing program has been transferred, the boot program will return ACK.
Error response H'C8 ERROR
⎯ Error response: H'C8 (one byte): Error response to erasing selection
⎯ ERROR: (one byte): Error code
H'54: Selection processing error (transfer error occurs and processing is not completed)
(2) Block erasing
The boot program will erase the contents of the specified block.
Command H'58 Size Block number SUM
⎯ Command: H'58 (one byte): Erasing
⎯ Size (one byte): Number of characters that represents the erasure block number (fixed at 1)
⎯ Block number (one byte): Number of the block whose data is to be erased
⎯ SUM (one byte): Checksum
Response H'06
⎯ Response: H'06 (one byte): Response to erasing
After erasure has been completed, the boot program will return ACK.
Rev.3.00 Mar. 12, 2008 Page 795 of 948
REJ09B0177-0300