Chapter 17 Flash Memory
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
319
For example timing diagrams of the stall-while-write and terminate-while-write operations, see
17.2.17 Wait state emulation
Emulation of other memory array timings are supported by the platform Flash controller on read cycles to
the Flash. This functionality may be useful to maintain the access timing for blocks of memory that were
used to overlay Flash blocks for the purpose of system calibration or tuning during code development.
The platform Flash controller inserts additional wait states according to the values of haddr[28:24],where
haddr represents the Flash address. When these inputs are non-zero, additional cycles are added to AHB
read cycles. Write cycles are not affected. In addition, no page read buffer prefetches are initiated, and
buffer hits are ignored.
and
show the relationship of haddr[28:24] to the number of additional primary wait
states. These wait states are applied to the initial access of a burst fetch or to single-beat read accesses on
the AHB system bus.
Note that the wait state specification consists of two components: haddr[28:26] and haddr[25:24] and
effectively extends the Flash read by (8 × haddr[25:24] + haddr[28:26]) cycles.
Table 17-3. Platform Flash controller stall-while-write interrupts
MIR[
n
]
Interrupt description
ECSM.MIR[7]
Platform Flash bank0 termination notification, MIR[FB0AI]
ECSM.MIR[6]
Platform Flash bank0 stall notification, MIR[FB0SI]
ECSM.MIR[5]
Platform Flash bank1 termination notification, MIR[FB1AI]
ECSM.MIR[4]
Platform Flash bank1 stall notification, MIR[FB1S1]
Table 17-4. Additional wait state encoding
Memory address
haddr[28:26]
Additional wait states
000
0
001
1
010
2
011
3
100
4
101
5
110
6
111
7