How To Start Automatic Algorithm Of Flash Memory - Fujitsu MB90335 Series Hardware Manual

16-bit microcontroller
Table of Contents

Advertisement

MB90335 Series
22.4

How to Start Automatic Algorithm of Flash Memory

There are four commands for starting the automatic algorithm of flash memory: read/
reset, write, chip erase and sector erase. The sector erase command controls
suspension and resumption.
■ Command Sequence Table
Table 22.4-1 lists the commands to be used to program or erase the flash memory. You can write to the
command register both in bytes and in words. The upper byte written by word access is ignored.
Table 22.4-1 Command Sequence Table
Bus
Command
Write
Sequence
Access
Read/
1
Reset*
Read/
4
Reset*
Write
4
program
Chip
6
erase
Sector
6
erase
Sector erase suspend
Sector erase resume
RA: Read address
PA: Write address
SA: Sector address (Specify an arbitrary address in sector)
RD: Read data
PD: Write data
U: The upper 4 bit same as RA, PA, SA
*:
Both 2 types of read/reset command can reset flash memory to read mode.
Notes:
Addresses in the table are the values in the CPU memory map. All addresses and data are hexadecimal
values, where "x" is any value.
The address representations "U" in the table are not arbitrary; the four address bits (bit15 to bit12) must have
the same value as RA, PA, and SA.
Example:
When RA = FFC48E
When SA = FF3000
When PA = FF1024
The chip erase command is accepted only when all sectors have been write-enabled. The chip erase
command is ignored when any of the sector write-enable/protect bits in the flash memory write control
register (FWR0/FWR1) contains "0" (write-protected or accidental write prevented status).
CM44-10137-6E
Write Cycle of
Write Cycle of
First Bus
Second Bus
Address Data
Address
Data
FFXXXX
XXF0
-
-
H
H
FFUAAA
XXAA
FFU554
XX55
H
H
H
FFUAAA
XXAA
FFU554
XX55
H
H
H
FFXAAA
XXAA
FFX554
XX55
H
H
H
FFUAAA
XXAA
FFU554
XX55
H
H
H
Input address"FFUXXX
Input address"FFUXXX
U = C
H
U = 3
H
U = 1
H
FUJITSU MICROELECTRONICS LIMITED
CHAPTER 22 DUAL OPERATION FLASH MEMORY
22.4 How to Start Automatic Algorithm of Flash Memory
Write Cycle of
Write Cycle of
Third Bus
Fourth Bus
Address
Data
Address
Data
-
-
-
FFUAAA
XXF0
RA
RD
H
H
H
FFUAAA
XXA0
PA
PD
H
H
H
FFXAAA
XX80
FFXAAA
XXAA
H
H
H
H
FFUAAA
XX80
FFUAAA
XXAA
H
H
H
H
" Data (XXB0
) suspends sector erasing.
H
H
" Data (XX30
) suspends and resume sector erasing.
H
H
Write Cycle of
Write Cycle of
Fifth Bus
Sixth Bus
Address
Data
Address
-
-
-
-
-
-
-
-
-
-
FFXAAA
FFX554
XX55
H
H
H
H
SA
FFU554
XX55
H
H
H
Data
-
-
-
XX10
H
XX30
H
491

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lxMb90v330aMb90f337Mb90337

Table of Contents