![Freescale Semiconductor MPC5604B Quick Start Manual Download Page 19](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5604b/mpc5604b_quick-start-manual_2330604019.webp)
Figure 19 : FMPLL Modulation Register (Reference Manual Rev8 – Fig. 6-8)
Different fields of this register are defined as:
STRB_BYPASS: Strobe bypass; when this bit is set to ‘0’, it allows to change other fields
while FM is not enabled, but if it is set to ‘1’, other fields has to be static while FMPLL is
powered on,
SPRD_SEL: spread selection, if it is ‘0’, the FM is centre spread, if it is ‘1’, the FM is down
spread (see Figure 18),
MOD_PERIOD[12:0]: binary value of
𝑓
𝑟𝑒𝑓
4𝑓
𝑚𝑜𝑑
, where
𝑓
𝑟𝑒𝑓
=
𝑃𝐻𝐼
.
𝑂𝐷𝐹
𝑁𝐷𝐼𝑉
and
𝑓
𝑚𝑜𝑑
is the
modulation frequency,
INC_STEP[14:0]: binary value of
𝑖𝑛𝑐𝑠𝑡𝑒𝑝
=
𝑟𝑜𝑢𝑛𝑑 �
�2
15
−1�
×
𝑚𝑑
×
𝑁𝐷𝐼𝑉
100
×
5
×
𝑀𝑂𝐷𝑃𝐸𝑅𝐼𝑂𝐷
�
,
FM_EN: enable FM by writing ‘1’.
MOD_PERIOD and INC_STEP have to be calculated using selected values of
𝑓
𝑚𝑜𝑑
and
𝑚𝑑
in order
to respect the following limitation:
𝐼𝑁𝐶
_
𝑆𝑇𝐸𝑃
×
𝑀𝑂𝐷
_
𝑃𝐸𝑅𝐼𝑂𝐷 ≤
(2
15
−
1).
Recommended modulation depths are ±0.25% to±4% for center spread and
−
0.5% to
−
8% for
down spread.
3.
A device initialisation procedure
We’ve seen different steps to follow for initialising the microcontroller, we can now write a
generic initialisation function that could be used for a lot of embedded applications.
The structure of the code will remain the same for most of the embedded applications:
Enable modes that may be used.
Make the clock configuration.
Mode configuration.
Peripheral configuration.
Transition towards a user mode.
CGM
.FMPLL_MR.B.MOD_PERIOD = 20;
/* fmod=50kHz
*/
CGM
.FMPLL_MR.B.INC_STEP = 29;
/* md = 0.1%
*/
CGM
.FMPLL_MR.B.FM_EN = 1;
/* enable FM
*/
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: ......