433
Section 20 ROM
(60-kbyte Dual-Power-Supply Flash Memory Version)
20.1
Flash Memory Overview
20.1.1
Flash Memory Operating Principle
Table 20.1 illustrates the principle of operation of the H8/3337YF’s on-chip flash memory.
Like EPROM, flash memory is programmed by applying a high gate-to-drain voltage that draws
hot electrons generated in the vicinity of the drain into a floating gate. The threshold voltage of a
programmed memory cell is therefore higher than that of an erased cell. Cells are erased by
grounding the gate and applying a high voltage to the source, causing the electrons stored in the
floating gate to tunnel out. After erasure, the threshold voltage drops. A memory cell is read like
an EPROM cell, by driving the gate to the high level and detecting the drain current, which
depends on the threshold voltage. Erasing must be done carefully, because if a memory cell is
overerased, its threshold voltage may become negative, causing the cell to operate incorrectly.
Section 20.4.6 shows an optimal erase control flowchart and sample program.
Table 20.1
Principle of Memory Cell Operation
Program
Erase
Read
Memory
cell
Vd
Vg = V
PP
Open
Vs = V
PP
Vd
Vg
Memory
array
Vd
0 V
V
PP
0 V
0 V
Open
Open
0 V
V
PP
0 V
Vd
0 V
V
CC
0 V
0 V