361
16.6 Starting the Automatic Algorithm
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.
❍
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
Table 16.6-1 Commands
Command
sequen ce
First wr ite cy cle
Second wr ite cyc le
Thir d writ e cycle
Fourth wr it e or
read cyc le
Fifth read cycle
Sixt h write cyc le
Data
Data
Data
Data
Data
Data
Read/
Reset
1
xxxxxxxxh
F0F0h
Read/
Reset
4
AAAAh
5555h
F0F0h
RA
RD
Program
4
AAAAh
5555h
A0A0h
PA
PD
Chip Erase
6
AAAAh
5555h
8080h
AAAAh
1010h
Sector
Erase
6
AAAAh
5555h
8080h
AAAAh
SA
3030h
Temporarily Stop
Sector Erase
B0B0h
Start Sector Erase
3030h
Access
count
xxxxxxxxh
xxxxxxxxh
Address
Address
Address
Address
Address
Address
000D5556h
000D5556h
000D5556h
000D5556h
000EAAAAh
000EAAAAh
000EAAAAh
000EAAAAh
000D5556h
000D5556h
000D5556h
000D5556h
000D5556h
000D5556h
000EAAAAh
000EAAAAh
000D5556h
5555h
5555h
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.
Summary of Contents for MB91F109
Page 2: ......
Page 3: ...FUJITSU LIMITED FR30 32 Bit Microcontroller MB91F109 Hardware Manual ...
Page 4: ......
Page 10: ...vi ...
Page 24: ...xx ...
Page 96: ...72 CHAPTER 2 CPU ...
Page 224: ...200 CHAPTER 4 BUS INTERFACE ...
Page 234: ...210 CHAPTER 5 I O PORTS ...
Page 268: ...244 CHAPTER 9 U TIMER ...
Page 290: ...266 CHAPTER 10 UART ...
Page 314: ...290 CHAPTER 12 16 BIT RELOAD TIMER ...
Page 322: ...298 CHAPTER 13 BIT SEARCH MODULE ...
Page 392: ...368 CHAPTER 16 FLASH MEMORY ...
Page 432: ...408 APPENDIX E Instructions F Table E 2 Instruction Formats OP rel11 5 11 ...
Page 448: ...424 APPENDIX E Instructions ...
Page 449: ...425 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 458: ...434 INDEX ...
Page 460: ......
Page 461: ...FUJITSU SEMICONDUCTOR FR30 32 Bit Microcontroller MB91F109 Hardware Manual ...