359
16.5 Flash Memory Access Modes
16.5 Flash Memory Access Modes
The following two types of access mode are available for the FR-CPU:
• ROM mode: One word (32 bits) can be read in one cycle, but not written.
• Programming mode: Access to data with a length in words (32 bits) is inhibited but
writing data with a length in half-words (16 bits) is enabled.
■
FR-CPU ROM Mode (32 Bits, Read only)
In this mode, the flash memory serves as FR-CPU internal ROM. This mode enables to read
one word (32 bits) in one cycle but does not enable to write to flash memory or to start the
automatic algorithm.
❍
Mode specification
When specifying this mode, set the "WE" bit of the flash memory status register to "0".
This mode is always set after a reset occurs at CPU run time.
This mode can be set only when the CPU is running.
❍
Detailed operation
In this mode, one word (32 bits) can be read from the flash memory area in one cycle.
Depending on the read operation, two cycles may be required per word (when 1 wait cycle is
included), thereby making it possible to issue instructions to the FR-CPU with no wait.
❍
Restrictions
Address assignment and endians in this mode differ from those for writing with the ROM writer.
In this mode, commands and data cannot be written to flash memory together.
■
FR-CPU Programming Mode (16 Bits, Read/Write)
This mode enables data to be written and erased. As one word (32 bits) cannot be accessed in
one cycle, program execution in flash memory is disabled in this mode.
❍
Mode specification
When specifying this mode, set the "WE" bit of the flash memory status register to "1".
When a reset occurs at CPU run time, the "WE" bit indicates "0". When setting this mode, set
the "WE" bit to "1". If the "WE" bit is set again to "0" through a writing operation or because of a
reset, the device enters ROM mode.
When the "RDY" bit of the flash memory status register is "0", the "WE" bit cannot be
overwritten. When overwriting the "WE" bit, ensure that the "RDY" bit is set to "1".
❍
Detailed operation
One half-word (16 bits) can be read from the flash memory area in one cycle.
Depending on the read operation, two cycles can be required for reading a half-word (when 1
wait cycle is included).
The automatic algorithm can be started by writing a command to flash memory.
When the automatic algorithm starts, data can be written to or erased from flash memory.
Содержание MB91F109
Страница 2: ......
Страница 3: ...FUJITSU LIMITED FR30 32 Bit Microcontroller MB91F109 Hardware Manual ...
Страница 4: ......
Страница 10: ...vi ...
Страница 24: ...xx ...
Страница 95: ...71 2 10 Operation Mode MODR writing RSTX reset MD2 1 0 BW1 and BW0 of AMD0 to AMD5 Bus width specification ...
Страница 96: ...72 CHAPTER 2 CPU ...
Страница 224: ...200 CHAPTER 4 BUS INTERFACE ...
Страница 234: ...210 CHAPTER 5 I O PORTS ...
Страница 268: ...244 CHAPTER 9 U TIMER ...
Страница 290: ...266 CHAPTER 10 UART ...
Страница 314: ...290 CHAPTER 12 16 BIT RELOAD TIMER ...
Страница 322: ...298 CHAPTER 13 BIT SEARCH MODULE ...
Страница 392: ...368 CHAPTER 16 FLASH MEMORY ...
Страница 432: ...408 APPENDIX E Instructions F Table E 2 Instruction Formats OP rel11 5 11 ...
Страница 448: ...424 APPENDIX E Instructions ...
Страница 449: ...425 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 458: ...434 INDEX ...
Страница 460: ......
Страница 461: ...FUJITSU SEMICONDUCTOR FR30 32 Bit Microcontroller MB91F109 Hardware Manual ...