![Freescale Semiconductor MPC5604B Quick Start Manual Download Page 14](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5604b/mpc5604b_quick-start-manual_2330604014.webp)
To ensure that the operation was successful, you need to use the read only Global Status Register
to check the current mode.
Figure 9 : Global Status Register (Reference Manual Rev8 – Fig. 8-2)
Here’s an example code for a transition towards RUN0 mode:
2.
CGM: Clock Generation Module
2.1.
Clock Architecture
In this section we will discuss different ways to setup the system clock and peripheral clocks in
this microcontroller. The clocking structure is represented on the figure below.
Figure 10 : The Clock Architecture (MC_CGM) (Freescale Lecture)
There are three sets of peripherals in this architecture that can have independent clocks as
noted in the figure above, all peripherals not mentioned there are in the core platform.
ME
.MCTL.R = 0x40005AF0; /* Enter RUN0 Mode & Key */
ME
.MCTL.R = 0x4000A50F; /* Enter RUN0 Mode & Inverted Key */
while (
ME
.GS.B.S_MTRANS == 1) {} /* Wait for mode transition to complete */
while (
ME
.GS.B.S_CURRENTMODE != 4) {} /* Verify RUN0 is the current mode */
div 1 to 16
div 1 to 16
div 1 to 16
Summary of Contents for MPC5604B
Page 1: ...LAAS CNRS Quick Start to MPC5604B Embedded Development Sahin Serdar 21 06 2013...
Page 31: ...Figure 33 INTC SW HW mode comparison Freescale Tutorial...
Page 87: ......
Page 132: ......
Page 133: ...127 Appendix 2 Pad Configurations...
Page 134: ......
Page 135: ......
Page 136: ......
Page 137: ......
Page 138: ......
Page 139: ......
Page 140: ......
Page 141: ...Appendix 3 Peripheral input pin selection...
Page 142: ......
Page 143: ...137 Appendix 4 Interrupt Vector Table...
Page 144: ......
Page 145: ......
Page 146: ......
Page 147: ......
Page 148: ...Appendix 5 I C Baud Rate Prescaler Values...
Page 149: ......
Page 150: ......