Users Manual

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 1738 of 1852
Nov 30, 2020
RX23W Group 50. Flash Memory (FLASH)
50.10.8 Program/Erase Commands
Program/erase commands are used to program or erase the user area or data area based on the response to inquiry
commands.
Table 50.20 lists commands used in each of the program/erase host command wait state, program wait state,
and erase wait state.
Table 50.21 lists commands that can be accepted in each state.
When a command that is not listed in
Table 50.21 is received in each state, the MCU sends a command error response.
50.10.8.1 User/Data Area Program Preparation
This command is used to prepare for accepting the program command and the data area program command.
When the MCU receives this command, it recognizes that an instruction to prepare for the program command is issued
from the host. Then, the MCU enters the program wait state, where only the program command to the user area or data
area can be accepted, and sends a response (06h).
Table 50.20 Program/Erase Commands
Command Function
User/data area program preparation Select the user area or data area to program, and enter the program wait state.
Program Program the specified data to the selected area in the user area or data area.
Or enter the program/erase host command wait state (end of program).
Data area program Program the specified-size data to the selected area in the data area.
Or enter the program/erase host command wait state (end of program).
Erase preparation Enter the erase wait state.
Block erase Erase the selected block, or enter the program/erase host command wait state
(end of erase).
Table 50.21 Acceptable Commands for Each State
State Acceptable Command
Program/erase host command wait state User/data area program preparation command, and erase preparation command
Program wait state Program command, and data area program command
Erase wait state Block erase command
Command 43h
Response 06h