Datasheet
Section 7 ROM
REJ09B0465-0300 Rev. 3.00 Page 233 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
The example below is of code for use when the FMCMDEN and FMLBD bits in FLMCR1 are to
be changed from 0 to 1.
MOV.B @FLMCR1,R0L :FLMCR1=H'04 R0L=H'04 R0H=H'xx
MOV.B @FLMCR1,R0H :FLMCR1=H'04 R0L=H'04 R0H=H'04
BSET #0,R0H :FLMCR1=H'04 R0L=H'04 R0H=H'05
BSET #3,R0H :FLMCR1=H'04 R0L=H'04 R0H=H'0D
MOV.B R0L,@FLMCR1 :FLMCR1=H'04 R0L=H'04 R0H=H'0D
MOV.B R0H,@FLMCR1 :FLMCR1=H'0D R0L=H'04 R0H=H'0D
(4) Reprogramming User ROM Area
When it is necessary to reprogram the block containing the reprogramming-control program, use
boot mode. This is because if the power supply voltage drops in EW0 mode while the block
containing the reprogramming-control program is being reprogrammed, the reprogramming-
control program cannot be correctly reprogrammed, and this might disable further reprogramming
of the flash memory. Only proceed with overwriting of the programming-control program after
securing ample stabilization time for the power supply.
(5) Program
Do not program the already-programmed addresses.
(6) LSI Mode Transition
During software command execution, do not cause a transition to standby mode or sleep mode.
(7) Reset during Execution of Software Command in Flash Memory
Do not apply a pin reset, LVD reset, or watchdog timer reset during execution of the
programming, lock-bit programming, blank-checking, and erasure commands. If applied, the
currently executed command is forcibly terminated. In this case, execute the erasure command of
the specified block again and confirm that erasure is completed successfully.
(8) Reading the User ROM Area while the Mode is EW0 and Software Commands are
Enabled
If the user ROM area is to be read while software commands are enabled and the reprogramming
mode is EW0, set the bus master operation clock φs to a frequency below 5 MHz.