
MB91460P Series
84
DS07-16615-2E
3.
Data Flash Operation Modes
The data flash is located in the top address space of external bus area. Per default (after software reset RST),
the data flash is disabled and does not accept any read/write access. The data flash can be enabled by setting
the bit DFCS:FLASHEN (DFCS is the Data Flash Control/Status register).
3.1.
Direct Access mode:
The Direct Access mode provides data flash access similar to the access of the embedded program/data flash
(main flash). For write/program operations, the flash command sequences must be written by the CPU. The
command sequences are the same as used for the embedded program/data flash (main flash).
CPU reads data in byte, halfword or word (8/16/32-bit) length units, whereas 16- or 32-bit read operations are
split into 2 or 4 sequential 8-bit flash macro read accesses by hardware.
CPU writes data in byte (8-bit) width units.
For write/program operations, the flash command sequences must be written by the CPU.
The flash macro auto algorithms (Chip Erase, Sector Erase, Sector Erase Suspend,...) can only be activated
in direct access mode.
Direct access mode is the default mode after software reset (RST).
3.2.
Command Sequencer Mode:
In command sequencer mode, the flash macro command sequences for data write operation are generated by
hardware.
CPU reads data in byte, halfword or word (8/16/32-bit) length units (same as in direct access mode).
CPU writes data in byte, halfword or word (8/16/32-bit) length units using normal “store” instructions. The flash
macro command sequences are generated by internal command sequencer hardware. For 16- or 32-bit write,
2 or 4 command sequences are generated, respectively.
The data flash interface will not issue wait states after a command sequencer write operation was started. The
CPU can continue working during data flash programming.
If a command sequencer write operation is ongoing, and the CPU writes data again, this second write
request is ignored! The error flag DFWS:PAERF is set in case of such a prohibited access. It is recommended
to use the data flash interrupts, which indicate that the proceeding write sequence was finished and successful.
If a command sequencer write operation is ongoing, and the CPU tries to read data, 0x00 is returned
and the error flag DFWS:PAERF is set.
The flash macro auto algorithms (Chip Erase, Sector Erase, Sector Erase Suspend,...) cannot be activated.
Command Sequencer mode is enabled by setting the bit DFWC:WE (Data Flash Write Control register).
After software reset (RST), the command sequencer mode is disabled.
3.3.
Parallel Programming mode:
The parallel programming mode works similar to the main flash memory. The function/timing of some external
control lines are different.
In parallel programming mode, it is not necessary to set the Data Flash enable bit (DFCS:FLASHEN).
Data Flash Memory access is performed in byte (8-bit) length units.