![Freescale Semiconductor MPC5604B Скачать руководство пользователя страница 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
*/
Содержание 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: ......