![Freescale Semiconductor MPC5604B Quick Start Manual Download Page 11](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5604b/mpc5604b_quick-start-manual_2330604011.webp)
1.2.
Enabling modes
The first thing to be done once the device enters in DRUN is to enable the modes that are going
to be used by the software. This is done using the Mode Enable Register (MER). This register
allows all modes to be enabled/disabled except for RESET, DRUN, SAFE, and RUN0 which are
always enabled.
Figure 2 : Mode Enable Register (MER) (Reference Manual Rev8 – Fig. 8-4)
For instance, enabling all the normal user modes can be done with:
1.3.
Configuring modes
We then need to configure the modes we will need in the software using configuration registers
(‘ME.<mode>.R’). In regular embedded software with no power saving specifications, we will
only need configuring RUN0…3.
Figure 3 : Mode Configuration Register for RUN 0…3 (Reference Manual Rev8 – Fig. 8-13)
Quick explanation of modifiable fields of this register:
•
DFLAON : Data flash power-down control, leave it at 11 (normal mode)
•
CDFLAON : Code flash power-down control, leave it at 11 (normal mode)
•
FMPLLON: Frequency Modulated PLL control, 0 if not needed, 1 if used
•
FXOSCON: Fast External Crystal Oscillator control, 0 if not needed, 1 if used
•
FIRCON: Fast Internal RC Oscillator control, always needed in case of failure
•
SYSCLK: System clock switch control, specify the clock used by system (see next chapter
for details on oscillators and their configuration)
ME
.MER.R = 0x000000FD; /* Enable all RUNx modes along with default modes */
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: ......