English
Language : 

MC9S12XDP512 Datasheet, PDF (676/1348 Pages) Freescale Semiconductor, Inc – Covers S12XD, S12XB & S12XA Families
Chapter 18 Memory Mapping Control (S12XMMCV3)
Table 18-21 shows the address boundaries of each chip select and the relationship with the implemented
resources (internal) parameters.
Table 18-21. Global Chip Selects Memory Space
Chip Selects
Bottom Address
Top Address
CS3
CS2
CS23
0x00_0800
0x10_0000
0x14_0000
0x0F_FFFF minus RAMSIZE1
0x13_FFFF minus EEPROMSIZE2
0x1F_FFFF
CS1
CS04
0x20_0000
0x40_0000
0x3F_FFFF
0x7F_FFFF minus FLASHSIZE5
1 External RPAGE accesses in (NX, EX and ST)
2 External EPAGE accesses in (NX, EX and ST)
3 When ROMHM is set (see ROMHM in Table 18-19) the CS2 is asserted in the space occupied by this
on-chip memory block.
4 When the internal NVM is enabled (see ROMON in Section 18.3.2.5, “MMC Control Register (MMCCTL1))
the CS0 is not asserted in the space occupied by this on-chip memory block.
5 External PPAGE accesses in (NX, EX and ST)
Figure 18-23. Local to Implemented Global Address Mapping (Without GPAGE)
18.4.2.4 XGATE Memory Map Scheme
18.4.2.4.1 Expansion of the XGATE Local Address Map
The XGATE 64 Kbyte memory space allows access to internal resources only (Registers, RAM, and
FLASH). The 2 Kilobyte register address range is the same register address range as for the CPU and the
BDM module (see Table 18-22).
XGATE can access the FLASH in single chip modes, even when the MCU is secured. In expanded modes,
XGATE can not access the FLASH when MCU is secured.
The local address of the XGATE RAM access is translated to the global RAM address range. The XGATE
shares the RAM resource with the CPU and the BDM module (see Table 18-22).
XGATE RAM size (XGRAMSIZE) may be lower or equal to the MCU RAM size (RAMSIZE).
The local address of the XGATE FLASH access is translated to the global address as defined by
Table 18-22.
Table 18-22. XGATE Implemented Memory Space
Internal Resource
$Address
XGATE RAM
XGRAM_LOW = 0x0F_0000 plus (0x1_0000 minus XGRAMSIZE)1
XGATE FLASH
XGFLASH_HIGH = 0x78_0000 plus (0xFFFF minus XGRAMSIZE)
1 XGRAMSIZE is the hexadecimal value of XGATE RAM SIZE in bytes.
Example 18-3. is a general example of the XGATE memory map implementation.
MC9S12XDP512 Data Sheet, Rev. 2.15
678
Freescale Semiconductor