Starting The Automatic Algorithm; Table 16.6-1 Commands - Fujitsu MB91F109 FR30 Hardware Manual

Fr30 series 32-bit microcontroller
Table of Contents

Advertisement

16.6 Starting the Automatic Algorithm

For writing data to or erasing data from flash memory, start the automatic algorithm
stored in flash memory.
Command Operation
At the start of the automatic algorithm, one to six half-words (16 bits) are written. This data is
called the command.
If the address and data to be written are invalid or are written in an incorrect sequence, the flash
memory is reset to read mode.
Table 16.6-1 lists the commands of the automatic algorithm.

Table 16.6-1 Commands

Command
Access
First wr ite cy cle
sequen ce
count
Address
Read/
1
xxxxxxxxh
Reset
Read/
4
000D5556h
Reset
Program
4
000D5556h
Chip Erase
6
000D5556h
Sector
6
000D5556h
Erase
Temporarily Stop
xxxxxxxxh
Sector Erase
Start Sector Erase
xxxxxxxxh
In FR-CPU programming mode, always issue the command in half-word write mode.
RA: read address; RD: read data
PA: write address; PD: write data
SA: sector address (specify one sector address arbitrarily. See Table 16.4-1.)
The Temporarily Stop Sector Erase or Temporarily Stop Erase command (B0H) and the Start Sector Erase
or Restart Erase command (30H) are valid only during a sector erase operation.
Both Reset commands can reset flash memory to the read mode.
Read/Reset command
When returning to the read mode after the time limit was exceeded, a Read/Reset command
sequence can be issued. Data is read from the flash memory in the next read cycle.
The flash memory remains in reading state until another command is entered.
When the power is turned on, flash memory is automatically set to the read or reset state. In
Second wr ite cyc le
Data
Address
Data
F0F0h
AAAAh
000EAAAAh
5555h
AAAAh
000EAAAAh
5555h
000EAAAAh
AAAAh
5555h
AAAAh
5555h
000EAAAAh
B0B0h
3030h
16.6 Starting the Automatic Algorithm
Thir d writ e cycle
Fourth wr it e or
read cyc le
Address
Data
Address
000D5556h
F0F0h
RA
A0A0h
PA
000D5556h
000D5556h
8080h
000D5556h
8080h
000D5556h
000D5556h
Fifth read cycle
Address
Data
Data
Address
RD
PD
AAAAh
000EAAAAh
5555h
000D5556h
AAAAh
000EAAAAh
5555h
Sixt h write cyc le
Data
1010h
SA
3030h
361

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91f109

Table of Contents