![NXP Semiconductors MPC5605BK Reference Manual Download Page 163](http://html.mh-extra.com/html/nxp-semiconductors/mpc5605bk/mpc5605bk_reference-manual_1721852163.webp)
Chapter 8 Mode Entry Module (MC_ME)
MPC5606BK Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
163
8.4
Functional description
8.4.1
Mode transition request
The transition from one mode to another mode is normally handled by software by accessing the mode
control ME_MCTL register. But in case of special events, mode transition can be automatically managed
by hardware. In order to switch from one mode to another, the application should access ME_MCTL
register twice by writing
•
The first time with the value of the key (0x5AF0) into the KEY bit field and the required target
mode into the TARGET_MODE bit field, and
•
The second time with the inverted value of the key (0xA50F) into the KEY bit field and the
required target mode into the TARGET_MODE bit field.
Once a valid mode transition request is detected, the target mode configuration information is loaded from
the corresponding ME_
<mode>
_MC register. The mode transition request may require a number of cycles
depending on the programmed configuration, and software should check the S_CURRENT_MODE bit
field and the S_MTRANS bit of the global status register ME_GS to verify when the mode has been
correctly entered and the transition process has completed. For a description of valid mode requests, please
see
Section 8.4.5, Mode transition interrupts
Any modification of the mode configuration register of the currently selected mode will not be taken into
account immediately but on the next request to enter this mode. This means that transition requests such
as RUN0…3
RUN0…3, DRUN
DRUN, SAFE
SAFE, and TEST
TEST are considered valid
mode transition requests. As soon as the mode request is accepted as valid, the S_MTRANS bit is set till
the status in the ME_GS register matches the configuration programmed in the respective
ME_
<mode>
_MC register.
NOTE
It is recommended that software poll the S_MTRANS bit in the ME_GS
register after requesting a transition to HALT, STOP, or STANDBY modes.
Summary of Contents for MPC5605BK
Page 2: ...This page is intentionally left blank...
Page 20: ...MPC5606BK Microcontroller Reference Manual Rev 2 20 Freescale Semiconductor...
Page 103: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 103 Clocks and power...
Page 645: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 643 Timers...
Page 715: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 713 ADC system...
Page 787: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 787 Memory...
Page 893: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 893 Integrity...
Page 943: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 943 Debug...