English
Language : 

MC9S12XD256MAL Datasheet, PDF (659/1348 Pages) Freescale Semiconductor, Inc – Freescale’s Scalable Controller Area Network
Chapter 18 Memory Mapping Control (S12XMMCV3)
18.3.2.2 Mode Register (MODE)
Address: 0x000B PRR
7
6
5
4
3
2
1
0
R
0
0
0
0
0
MODC
MODB
MODA
W
Reset MODC1
MODB1
MODA1
0
0
0
0
0
1. External signal (see Table 18-2).
= Unimplemented or Reserved
Figure 18-4. Mode Register (MODE)
Read: Anytime. In emulation modes read operations will return the data read from the external bus. In all
other modes the data are read from this register.
Write: Only if a transition is allowed (see Figure 18-5). In emulation modes write operations will be also
directed to the external bus.
The MODE bits of the MODE register are used to establish the MCU operating mode.
CAUTION
XGATE write access to this register during an CPU access which makes use
of this register could lead to unexpected results.
Table 18-7. MODE Field Descriptions
Field
7–5
MODC,
MODB,
MODA
Description
Mode Select Bits — These bits control the current operating mode during RESET high (inactive). The external
mode pins MODC, MODB, and MODA determine the operating mode during RESET low (active). The state of
the pins is latched into the respective register bits after the RESET signal goes inactive (see Figure 18-5).
Write restrictions exist to disallow transitions between certain modes. Figure 18-5 illustrates all allowed mode
changes. Attempting non authorized transitions will not change the MODE bits, but it will block further writes to
these register bits except in special modes.
Both transitions from normal single-chip mode to normal expanded mode and from emulation single-chip to
emulation expanded mode are only executed by writing a value of 3’b101 (write once). Writing any other value
will not change the MODE bits, but will block further writes to these register bits.
Changes of operating modes are not allowed when the device is secured, but it will block further writes to these
register bits except in special modes.
In emulation modes reading this address returns data from the external bus which has to be driven by the
emulator. It is therefore responsibility of the emulator hardware to provide the expected value (i.e. a value
corresponding to normal single chip mode while the device is in emulation single-chip mode or a value
corresponding to normal expanded mode while the device is in emulation expanded mode).
MC9S12XDP512 Data Sheet, Rev. 2.21
Freescale Semiconductor
659