MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor 15
Chapter 17
Flash Memory
17.1 Introduction ...................................................................................................................................307
17.2 Platform Flash controller ...............................................................................................................307
17.2.1 Introduction ..................................................................................................................307
17.2.1.1 Overview ........................................................................................................308
17.2.1.2 Features ..........................................................................................................308
17.2.2 Modes of operation .......................................................................................................309
17.2.3 External signal descriptions ..........................................................................................309
17.2.4 Memory map and registers description ........................................................................309
17.2.4.1 Memory map ..................................................................................................310
17.2.5 Functional description ..................................................................................................311
17.2.6 Basic interface protocol ................................................................................................312
17.2.7 Access protections ........................................................................................................312
17.2.8 Read cycles — buffer miss ...........................................................................................312
17.2.9 Read cycles — buffer hit ..............................................................................................313
17.2.10 Write cycles ..................................................................................................................313
17.2.11 Error termination ..........................................................................................................313
17.2.12 Access pipelining ..........................................................................................................314
17.2.13 Flash error response operation ......................................................................................314
17.2.14 Bank0 page read buffers and prefetch operation ..........................................................314
17.2.14.1 Instruction/data prefetch triggering ................................................................316
17.2.14.2 Per-master prefetch triggering ........................................................................316
17.2.14.3 Buffer allocation .............................................................................................316
17.2.14.4 Buffer invalidation .........................................................................................316
17.2.15 Bank1 temporary holding register ................................................................................317
17.2.16 Read-While-Write functionality ...................................................................................317
17.2.17 Wait state emulation .....................................................................................................319
17.2.18 Timing diagrams ...........................................................................................................320
17.3 Flash memory ................................................................................................................................327
17.3.1 Introduction ..................................................................................................................327
17.3.2 Main features ................................................................................................................327
17.3.3 Block diagram ..............................................................................................................327
17.3.3.1 Data Flash ......................................................................................................327
17.3.3.2 Code Flash ......................................................................................................328
17.3.4 Functional description ..................................................................................................329
17.3.4.1 Macrocell structure ........................................................................................329
17.3.4.2 Flash module sectorization .............................................................................330
17.3.5 Operating modes ...........................................................................................................333
17.3.5.1 Reset ...............................................................................................................333
17.3.5.2 User mode ......................................................................................................333
17.3.5.3 Low-power mode ...........................................................................................334
17.3.5.4 Power-down mode .........................................................................................335
17.3.6 Registers description ....................................................................................................336
17.3.7 Register map .................................................................................................................337