Program Mode - Hitachi H8/3022 Hardware Manual

H8/3022 series hitachi single-chip microcomputer
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.
1.
: Normal mode
2. Do not make a state transition by setting/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 15-10 State Transitions Caused by FLMCR1 Bit Settings
15.7.1

Program Mode

When writing data or programs to flash memory, the program/program-verify flowchart shown in
figure 15-11 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.
Following the elapse of (t
register 1 (FLMCR1), 128-byte program data is stored in the program data area and reprogram
data area, and the 128-byte data in the program data area in RAM is written consecutively to the
program address (the lower 8 bits of the first address written to must be H'00 or H'80). 128
consecutive byte data transfers are performed. The program address and program data are latched
in the flash memory. A 128-byte data transfer must be performed even if writing fewer than 128
bytes; in this case, H'FF data must be written to the extra addresses.
ESU = 1
*2
SWE = 1
Software
programming
enable
SWE = 0
state
PV = 0
: On-board programming mode
) µs or more after the SWE bit is set to 1 in flash memory control
sswe
*3
Erase setup
state
ESU = 0
Erase-verify
EV = 1
mode
EV = 0
PSU = 1
*4
PSU = 0
Program setup
state
PV = 1
Program-verify
mode
E = 1
Erase mode
E = 0
P = 1
Program mode
P = 0
459

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3021H8/3020H8/3022 f-ztat

Table of Contents