English
Language : 

MC68HC908AS32A Datasheet, PDF (102/280 Pages) Freescale Semiconductor, Inc – Microcontrollers
Clock Generator Module (CGM)
5.3.2.4 Programming the PLL
Use this 9-step procedure to program the PLL. Table 5-1 lists the variables used and their meaning.
Please also reference Figure 5-2
.
Table 5-1. Variable Definitions
Variable
fBUSDES
fVCLKDES
fCGMRCLK
fCGMVCLK
fBUS
fNOM
fCGMVRS
Definition
Desired bus clock frequency
Desired VCO clock frequency
Chosen reference crystal frequency
Calculated VCO clock frequency
Calculated bus clock frequency
Nominal VCO center frequency
Shifted VCO center frequency
1. Choose the desired bus frequency, fBUSDES.
Example: fBUSDES = 8 MHz
2. Calculate the desired VCO frequency, fVCLKDES. fVCLKDES = 4 × fBUSDES
Example: fVCLKDES = 4 × 8 MHz = 32 MHz
3. Using a reference frequency, fRCLK, equal to the crystal frequency, calculate the VCO frequency
multiplier, N. Round the result to the nearest integer.
N = --f--V---C----L---K---D---E----S---
fCGMRCLK
Example: N = 3----2-----M-----H----z-- = 8
4 MHz
4. Calculate the VCO frequency, fCGMVCLK.
fCGMVCLK = N × fCGMRCLK
Example: fCGMVCLK = 8 × 4 MHz = 32 MHz
5. Calculate the bus frequency, fBUS, and compare fBUS with fBUSDES.
fBus = -f--C----G-----M---4--V----C----L---K---
Example:
fBus =
3----2-----M-----H----z--
4
=
8 MHz
6. If the calculated fBus is not within the tolerance limits of your application, select another fBUSDES or
another fRCLK.
MC68HC908AS32A Data Sheet, Rev. 2.0
102
Freescale Semiconductor