Program Mode - Renesas H8S/2633 Series Hardware Manual

Hide thumbs Also See for H8S/2633 Series:
Table of Contents

Advertisement

Normal mode
*1
FWE = 1
FWE = 0
On-board
programming mode
Software programming
disable state
Notes: In order to perform a normal read of flash memory, SWE must be cleared to 0. Also note that verify-reads
can be performed during the programming/erasing process.
: Normal mode
*1
*2 Do not make a state transition by setting or clearing multiple bits simultaneously.
*3 After a transition from erase mode to the erase setup state, do not enter erase mode without passing
through the software programming enable state.
*4 After a transition from program mode to the program setup state, do not enter program mode without
passing through the software programming enable state.
Figure 22-11 FLMCR1 Bit Settings and State Transitions
22.7.1

Program Mode

When writing data or programs to flash memory, the program/program-verify flowchart shown in
figure 22-12 should be followed. Performing program operations according to this flowchart will
enable data or programs to be written to flash memory without subjecting the device to voltage
stress or sacrificing program data reliability. Programming should be carried out 128 bytes at a
time.
The wait times after bits are set or cleared in the flash memory control register 1 (FLMCR1) and
the maximum number of programming operations (N1 + N2) are shown in table 25-13 and 26-13
in section 25.6 and 26.6, Flash Memory Characteristics.
924
ESU1 = 1
*2
SWE1 = 1
Software
programming
enable
SWE1 = 0
state
PV1 = 0
: On-board programming mode
*3
Erase setup
state
ESU1 = 0
Erase-verify
EV1 = 1
mode
EV1 = 0
PSU1 = 1
*4
Program
PSU1 = 0
setup state
PV1 = 1
Program-verify
mode
E1 = 1
Erase mode
E1 = 0
P1 = 1
Program mode
P1 = 0

Advertisement

Table of Contents
loading

Table of Contents