Datasheet
Section 7 ROM
Page 212 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
7.6 Programming/Erasing
The CPU reprogramming method is employed to program and erase flash memory on board, in
which the CPU executes software commands.
7.6.1 Software Commands
Table 7.10 shows a list of software commands through word instructions and table 7.11 shows a
list of software commands through byte instructions. Whether an instruction is to be byte-length or
word-length is specified by the FMWUS bit in FLMCR1.
Table 7.10 Software Commands (in Word Instructions: FMWUS = 1)
First Command
Cycle
Second
Command Cycle
Third Command
Cycle
Command Use in
Modes
Software
Command Mode Addr. Data Mode Addr. Data Mode Addr. Data EW0 EW1
Erasure Write × H'2020 Write BA H'D0D0 Possible Possible
Programming Write WA H'4141 Write WA WD1 Write WA WD2 Possible Possible
Blank checking Write × H'2525 Write BA H'D0D0 Possible Possible
Lock-bit program Write × H'7777 Write BA H'D0D0 Possible Possible
Read-array Write × H'FFFF Possible ⎯
Clear-status Write × H'5050 Possible Possible
Lock-bit reading Write × H'7171 Read BA H'xxxx Possible Impossible
[Legend]
×: Arbitrary address in the user ROM area
xx: Eight-bit arbitrary data
BA: Arbitrary address in a block
WA: Programming address. (The lower two bits of an address are ignored. WA should be the
same in each command cycle.)
WDn: Programming data (16 bits)