Datasheet

Section 20 Flash Memory (0.18-μm F-ZTAT Version)
Rev.6.00 Mar. 18, 2009 Page 805 of 980
REJ09B0050-0600
(b) Block Erasure
The boot program will erase the contents of the specified block.
Command H'58 Size Block number SUM
Command, H'58, (one byte): Erasure
Size (one byte): The number of bytes that represents the erasure block number
This is fixed to 1.
Block number (one byte): Number of the block to be erased
SUM (one byte): Checksum
Response H'06
Response, H'06, (one byte): Response to Erasure
After erasure has been completed, the boot program will return ACK.
Error Response H'D8 ERROR
Error Response, H'D8, (one byte): Response to Erasure
ERROR (one byte): Error code
H'11: Sum check error
H'29: Block number error
Block number is incorrect.
H'51: Erasure error
An error has occurred during erasure.
On receiving block number H'FF, the boot program will stop erasure and wait for a selection
command.
Command H'58 Size Block number SUM
Command, H'58, (one byte): Erasure
Size, (one byte): The number of bytes that represents the block number
This is fixed to 1.
Block number (one byte): H'FF
Stop code for erasure
SUM (one byte): Checksum
Response H'06
Response, H'06, (one byte): Response to end of erasure (ACK)
When erasure is to be performed after the block number H'FF has been sent, the procedure
should be executed from the erasure selection command.