We can see that there are five possible clock sources in this architecture:
FXOSC: Fast External Crystal Oscillator, between 4-16MHz (8 MHz on TRK-
MPC5604B),
FIRC: Fast Internal RC Oscillator, 16MHz,
SXOSC: Slow External Crystal Oscillator, 32kHz,
SIRC: Slow Internal RC Oscillator, 128kHz,
FMPLL: Frequency Modulated Phase Locked Loop allows delivering a high speed clock
up to 64MHz using FXOSC.
Slow clocks are mostly used for the real time clock module and we will focus more on the fast
ones that are used for system clock generation.
System clock can be selected among FXOSC, FIRC or their division by 1 to 32, or by FMPLL. This
clock drives the core of the microcontroller, it can be gated to different peripheral sets, and can
be divided for power saving. We can also generate an output clock from pin PA [0] called CLOCK
OUT using these fast oscillators.
2.2.
Clock Out
In this section we will review the registers used to generate an output clock. It can be controlled
using two registers.
Figure 11 : Output Clock Enable Register (Reference Manual Rev8 – Fig. 7-2)
Figure 12 : Output Clock Division Select Register (Reference Manual Rev8 – Fig. 7-2)
Use of the enable register is obvious; write 1 to enable the output clock. For the other one,
SELDIV is the amount of division (clock divided by 2
SELDIV
) and SELCTL is the selection of the
source clock among FXOSC (0000), FIRC (0001) and FMPLL (0010).
Here’s an example of using the Output Clock with FMPLL after dividing it by 8:
CGM
.OCDS_SC.R = 0x32000000; /* Select FMPLL and divide by
2
3
*/
CGM
.OC_EN.B.EN = 1; /* Write 1 to enable bit */
/* Here insert GPIO code that selects CLOCKOUT functionality for the pin
PA[0]: SIU.PCR[0].R = 0x0800;, see chapter on SIUL and pad configurations.*/
Содержание MPC5604B
Страница 1: ...LAAS CNRS Quick Start to MPC5604B Embedded Development Sahin Serdar 21 06 2013...
Страница 31: ...Figure 33 INTC SW HW mode comparison Freescale Tutorial...
Страница 87: ......
Страница 132: ......
Страница 133: ...127 Appendix 2 Pad Configurations...
Страница 134: ......
Страница 135: ......
Страница 136: ......
Страница 137: ......
Страница 138: ......
Страница 139: ......
Страница 140: ......
Страница 141: ...Appendix 3 Peripheral input pin selection...
Страница 142: ......
Страница 143: ...137 Appendix 4 Interrupt Vector Table...
Страница 144: ......
Страница 145: ......
Страница 146: ......
Страница 147: ......
Страница 148: ...Appendix 5 I C Baud Rate Prescaler Values...
Страница 149: ......
Страница 150: ......