Datasheet

Section 7 ROM
REJ09B0465-0300 Rev. 3.00 Page 221 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
(5) Lock-Bit Program
When H'77 is written in the first command cycle and H'D0 is written to any address in the block in
the second command cycle, lock-bit programming of the specified block is started.
Completion of lock-bit programming is indicated by the FMRDY bit in FLMSTR. The FMRDY
bit is read as 0 during lock-bit programming, and read as 1 after lock-bit programming completion.
After lock-bit programming completion, the lock-bit programming result can be checked by
reading the FMPRSF bit in FLMSTR. (See the description in (9) below, Full Status Checking.)
Figure 7.18 shows the lock-bit programming flowchart.
The FMRDY bit in FLMSTR changes to 0 when lock-bit programming is started, and changes to 1
when completed.
No
Write software command H'77.
Write H'D0 to an address
in the specified block.
Start
Full status check
Lock-bit programming end
Yes
FMRDY = 1?
Figure 7.18 Lock-Bit Programming Flowchart