CDM Registers
MPC5200B Users Guide, Rev. 1
Freescale Semiconductor 5-11
mode. The e300 Core must enable the deep sleep process in the CDM module, then put itself into sleep mode before the e300 Core PLL can
be disabled.
Since MPC5200B clocks are stopped in Deep Sleep mode, the wake-up time is longer than in the e300 Core-only power down modes. A
power-on sequence must occur which re-locks both the MPC5200B system and processor PLLs.
The sequence of events to enter and exit Deep Sleep mode are initiated by the e300 Core under software control and then sequenced in
hardware by the Clock Control Sequencer (CCS) in CDM.

5.4.4.1 Entering Deep Sleep

When entering Deep Sleep mode, the following occurs:
e300 Core prepares the system for Deep Sleep power down.
This could involve disabling peripheral interfaces, waiting for transmit/receive messages to complete, putting the SDRAM into self
refresh mode, etc.
e300 Core finishes instructions in the execution pipeline.
e300 Core software enables the Deep Sleep mode with a write to a MPC5200B control register.
e300 Core Processor software writes sleep mode configuration to e300 Core Processor control register.
e300 Core Processor asserts the QREQ signal indicating that it would like to enter sleep mode.
CCS waits for e300 Core Processor sleep (initiated by QREQ, since QACK is always asserted in MPC5200B).
CCS disables interrupts.
CCS waits for the e300 Core Processor to enter the sleep mode.
CCS disables the OSC, system PLL, e300 Core Processor PLL and gates the system clocks.

5.4.4.2 Exiting Deep Sleep

When exiting Deep Sleep mode, the following occurs:
CCS receives an interrupt from a GPIO pin, RTC or a MSCAN peripheral.
CCS enables the OSC and waits for the OSC to stabilize.
CCS enables the system PLL and waits for the PLL to lock to the OSC clock.
CCS enables system clocks.
CCS enables the e300 Core Processor PLL and waits for the PLL to lock to the system PLL clock.
CCS enables interrupts, which triggers a wakeup interrupt to the e300 Core Processor (from the WakeUp source).
e300 Core Processor wakes up and puts MPC5200B into full power mode and then services the wakeup interrupt
Waking up from Deep Sleep mode does not require the system to be reset or a boot sequence. The functional state of MPC5200B should
remain the same as when it went into Deep Sleep. If the SDRAM was put into self refresh mode, its contents should also remain unchanged.
5.5 CDM Registers
The Clock Distribution Module (CDM) contains 14 32-bit registers. All registers are located at an offset from the value in the Module Base
Address Register (MBAR). The CDM base offset is 0x0200.
Hyperlinks to the CDM registers are provided below:
CDM JTAG ID Number Register—MBAR + 0x0200
(0x0200), read-only
CDM Clock Control Sequencer Configuration Register
(0x021C)
CDM Power On Reset Configuration Register
(0x0204)
CDM Soft Reset Register (0x0220)
CDM Bread Crumb Register—MBAR + 0x0208
(0x0208), never reset
CDM System PLL Status Register (0x0224)
CDM Configuration Register (0x020C) PSC1 Mclock Config Register—MBAR + 0x0228
(0x0228)
CDM 48MHz Fractional Divider Configuration
Register (0x0210)
CDM PSC2 Mclock Config (0x022C)
CDM Clock Enable Register (0x0214) CDM PSC3 Mclock Config (0x0230)
CDM System Oscillator Configuration Register
(0x0218)
(0x0234)