C.4 Automatic Algorithm Initiation Method
To start the Automatic Algorithm in the flash memory, there are five types of commands, 2 types of
read/reset, programming, chip erase and sector erase. For sector erase, there are the sector erase
suspend and the sector erase resume command.
Table C.4a shows the commands used during programming/erasing the flash memory. Although the data
shown in the command are all in byte, it is necessary to use word access to write the data. At this time,
the upper byte of the data will be ignored.
Command
Bus
Sequence
Write
Cycle
Req'd
Read/Reset*
1
Read/Reset*
3
Programming
4
Chip Erase
6
Sector Erase
6
Sector Erase Suspend
Sector Erase Resume
Note: The address Fx in Table C.4a is either FE or FF for MB90F583. When using above commands, the
accessible bank value for the device must be used to replaced Fx
The address found in the Table C.4a is corresponding to the CPU memory address. All address and
data written in hexadecimal and "X" is arbitrary value.
RA: Read address
PA: Program address , only even number address can be selected
SA: Sector address, refer to Section C.2, Sector Structure of 1M Bit Flash Memory.
RD: Read data
PD: program data, only word data can be selected
* : The 2 types of read/reset command can be reset the flash memory to read mode.
MB90580 Series
Table C.4a Command Sequence Definitions
1st Bus Write
2nd Bus Write
Cycle
Cycle
Addr
Data
Addr
—
FxXXXX XXF0
FxAAAA XXAA
Fx5554
XX55 FxAAAA XXF0
FxAAAA XXAA
Fx5554
XX55 FxAAAA XXA0
FxAAAA XXAA
Fx5554
XX55 FxAAAA XX80 FxAAAA XXAA
FxAAAA XXAA
Fx5554
XX55 FxAAAA XX80 FxAAAA XXAA
Sector erase is suspend by inputting the address "FxXXXX", data "xxB0
Sector erase is resumed by inputting the address "FxXXXX", data "xx30
C.4 Automatic Algorithm Initiation Method
3rd Bus Write
4th Bus Write
Cycle
Data
Addr
Data
Addr
—
—
—
—
RA
PA
(even)
Appendix C: The Flash Memory in the MB90F583
5th Bus Write
Cycle
Cycle
Data
Addr
Data
—
—
—
—
—
RD
PD
—
—
(word)
Fx5554
XX55 FxAAAA XX10
Fx5554
XX55
"
H
"
H
6th Bus Write
Cycle
Addr
Data
—
—
—
—
—
—
SA
XX30
(even)
361