Chapter 21 64 KB Flash Module (S12ZFTMRZ64K2KV2)
S12ZVHY/S12ZVHL Family Reference Manual Rev. 1.05
Freescale Semiconductor
691
21.3
Memory Map and Registers
This section describes the memory map and registers for the Flash module. Read data from unimplemented
memory space in the Flash module is undefined. Write access to unimplemented or reserved memory space
in the Flash module will be ignored by the Flash module.
CAUTION
Writing to the Flash registers while a Flash command is executing (that is
indicated when the value of flag CCIF reads as ’0’) is not allowed. If such
action is attempted, the result of the write operation will be unpredictable.
Writing to the Flash registers is allowed when the Flash is not busy
executing commands (CCIF = 1) and during initialization right after reset,
despite the value of flag CCIF in that case (refer to
for a
complete description of the reset sequence).
.
21.3.1
Module Memory Map
The S12Z architecture places the P-Flash memory between global addresses 0xFF_0000 and 0xFF_FFFF
as shown in
The P-Flash memory map is shown in
The FPROT register, described in
, can be set to protect regions in the Flash memory from
accidental program or erase. Three separate memory regions, one growing upward from global address
0xFF_8000 in the Flash memory (called the lower region), one growing downward from global address
0xFF_FFFF in the Flash memory (called the higher region), and the remaining addresses in the Flash
Table 21-2. FTMRZ Memory Map
Global Address (in Bytes)
Size
(Bytes)
Description
0x0_0000 – 0x0_0FFF
4,096
Register Space
0x10_0000 – 0x10_07FF
2,048
EEPROM memory
0x1F_4000 – 0x1F_FFFF
49,152
NVM Resource Area
(1)
(see
1. See NVM Resource area description in
0xFF_0000 – 0xFF_FFFF
65,536
P-Flash Memory
Table 21-3. P-Flash Memory Addressing
Global Address
Size
(Bytes)
Description
0xFF_0000 – 0xFF_FFFF
64 K
P-Flash Block
Contains Flash Configuration Field
(see