
Internal Clock Generator Module (ICG)
MC68HC908KX8 MC68HC908KX2 MC68HC08KX8 Data Sheet, Rev. 2.1
80
Freescale Semiconductor
7.4.4 Quantization Error in DCO Output
The digitally controlled oscillator (DCO) is comprised of three major sub-blocks:
Binary weighted divider
Variable-delay ring oscillator
Ring oscillator fine-adjust circuit
Each of these blocks affects the clock period of the internal clock (ICLK). Since these blocks are controlled
by the digital loop filter (DLF) outputs DDIV and DSTG, the output of the DCO can only change in
quantized steps as the DLF increments or decrements its output. The following subsections describe how
each block will affect the output frequency.
7.4.4.1 Digitally Controlled Oscillator
The digitally controlled oscillator (DCO) is an inaccurate oscillator which generates the internal clock
(ICLK), whose clock period is dependent on the digital loop filter outputs (DSTG[7:0] and DDIV[3:0]).
Because of the digital nature of the DCO, the clock period of ICLK will change in quantized steps. This
will create a clock period difference, or quantization error (Q-ERR) from one cycle to the next. Over
several cycles or for longer periods, this error is divided out until it reaches a minimum error of 0.202% to
0.368%. The dependence of this error on the DDIV[3:0] value and the number of cycles the error is
7.4.4.2 Binary Weighted Divider
The binary weighted divider divides the output of the ring oscillator by a power of 2, specified by the DCO
divider control bits (DDIV[3:0]). DDIV maximizes at %1001 (values of %1010 through %1111 are
interpreted as %1001), which corresponds to a divide by 512. When DDIV is %0000, the ring oscillator’s
output is divided by 1. Incrementing DDIV by one will double the period; decrementing DDIV will halve the
period. The DLF cannot directly increment or decrement DDIV; DDIV is only incremented or decremented
when an addition or subtraction to DSTG carries or borrows.
Table 7-3. Quantization Error in ICLK
DDIV[3:0]
ICLK Cycles
Bus Cycles
τICLK Q-ERR
%0000 (min)
1
NA
6.45% – 11.8%
%0000 (min)
4
1
1.61% – 2.94%
%0000 (min)
≥ 32
≥ 8
0.202% – 0.368%
%0001
1
NA
3.23% – 5.88%
%0001
4
1
0.806% – 1.47%
%0001
≥ 16
≥ 4
0.202% – 0.368%
%0010
1
NA
1.61% – 2.94%
%0010
4
1
0.403% – 0.735%
%0010
≥ 8
≥ 2
0.202% – 0.368%
%0011
1
NA
0.806% – 1.47%
%0011
≥ 4
≥ 1
0.202% – 0.368%
%0100
1
NA
0.403% – 0.735%
%0100
≥ 2
≥ 1
0.202% – 0.368%
%0101 – %1001 (max)
≥ 1
0.202% – 0.368%