
423
CHAPTER 21 FLASH MEMORY
21.4 Automatic Algorithm of Flash Memory
Commands for activating the automatic algorithms of the flash memory can be divided
into four types: Read/Reset, Write, Chip Erase, and Sector Erase. The Sector Erase
command is further divided into a Sector Erase Temporary Stop command and a
Sector Erase Restart command.
■
Command sequence
To activate the automatic algorithm, write half word data (16 bits) to the flash memory
continuously one to six times. This is called a command.
If incorrect addresses and data are written or if addresses and data are written in incorrect
order, the flash memory is reset to read mode.
Table 21.4-1 "Command sequence" lists the commands used when data is written to, or erased
from the flash memory. (The item "Address" in this table means a CPU address.)
Table 21.4-1 Command sequence
Command
sequence
Bus
write
cycle
1st bus write
cycle
2nd bus write
cycle
3rd bus write
cycle
4th bus read/
write cycle
5th bus write
cycle
6th bus write
cycle
Ad-
dress
Data
Ad-
dress
Data
Ad-
dress
Data
Ad-
dress
Data
Ad-
dress
Data
Ad-
dress
Data
Read/Reset
1
XXXXX
H
F0
H
-
-
-
-
-
-
-
-
-
-
Read/Reset
4
D5555
H
AA
H
CAAAB
H
55
H
D5555
H
F0
H
(RA)
(RD)
-
-
-
-
Write
4
D5555
H
AA
H
CAAAB
H
55
H
D5555
H
A0
H
(PA)
(PD)
-
-
-
-
Chip Erase
6
D5555
H
AA
H
CAAAB
H
55
H
D5555
H
80
H
D5555
H
AA
H
CAAAB
H
55
H
D5555
H
10
H
Sector Erase
6
D5555
H
AA
H
CAAAB
H
55
H
D5555
H
80
H
D5555
H
AA
H
CAAAB
H
55
H
(SA)
30
H
Sector Erase Temporary
Stop
Entering address XXXXX
H
, data (B0) temporarily stops sector erase processing.
Sector Erase Restart
Entering address XXXXX
H
, data (30) temporarily stops sector erase processing and then restarts it.
Auto Select
3
D5555
H
AA
H
CAAAB
H
55
H
D5555
H
90
H
-
-
-
-
-
-
Continuation
Mode
3
D5555
H
AA
H
CAAAB
H
55
H
D5555
H
20
H
-
-
-
-
-
-
Continuous
Write
2
XXXXX
H
A0
H
(PA)
(PD)
-
-
-
-
-
-
-
-
Continuous
Mode Reset
2
XXXXX
H
90
H
XXXXX
H
F0
H
or
00
H
-
-
-
-
-
-
-
-
The commands used in word mode are the same as those in byte mode. Bits not listed in this table can have any value.
All addresses and data are represented in hexadecimal numbers.
(RA): Read address
(PA): Write address
(SA): Sector address (specification of any address in the sector)
(RD): Read data
(PD): Write data
The Sector Erase Temporary Stop command (B0H) and Sector Erase Restart command (30H) are valid only when a sector is being erased.
Both Reset commands can reset the flash memory to read mode.
Summary of Contents for MB91150 Series
Page 1: ......
Page 2: ......
Page 3: ...FUJITSU LIMITED FR30 32 BIT MICROCONTROLLER MB91150 Series HARDWARE MANUAL ...
Page 4: ......
Page 10: ...vi ...
Page 112: ...96 CHAPTER 3 MEMORY SPACE CPU AND CONTROL UNIT ...
Page 178: ...162 CHAPTER 5 I O PORTS ...
Page 214: ...198 CHAPTER 7 16 BIT RELOAD TIMER ...
Page 240: ...224 CHAPTER 8 PPG TIMER ...
Page 310: ...294 CHAPTER 13 8 10 BIT A D CONVERTER ...
Page 318: ...302 CHAPTER 14 8 BIT D A CONVERTER ...
Page 362: ...346 CHAPTER 15 UART ...
Page 420: ...404 CHAPTER 19 PERIPHERAL STOP CONTROL ...
Page 428: ...412 CHAPTER 20 CALENDAR MACROS ...
Page 503: ...487 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 510: ...494 INDEX ...
Page 512: ......