beautypg.com

Figure 7 – Rainbow Electronics AT89C5132 User Manual

Page 13

background image

13

AT8xC5132

4173A–8051–08/02

Figure 7. Mode Switching Waveforms

Note:

In order to prevent any incorrect operation while operating in X2 mode, the user must be aware that all peripherals using clock
frequency as time reference (timers…) will have their time reference divided by two. For example, a free running timer generat-
ing an interrupt every 20 ms will then generate an interrupt every 10 ms.

PLL

PLL Description

The AT8xC5132’s PLL is used to generate internal high frequency clock (the PLL Clock)
synchronized with an external low-frequency (the Oscillator Clock). The PLL clock pro-
vides the audio interface, and the USB interface clocks. Figure 8 shows the internal
structure of the PLL.

The PFLD block is the Phase Frequency Comparator and Lock Detector. This block
makes the comparison between the reference clock coming from the N divider and the
reverse clock coming from the R divider and generates some pulses on the Up or Down
signal depending on the edge position of the reverse clock. The PLLEN bit in PLLCON
register is used to enable the clock generation. When the PLL is locked, the bit PLOCK
in PLLCON register (see Table 17) is set.

The CHP block is the Charge Pump that generates the voltage reference for the VCO by
injecting or extracting charges from the external filter connected on PFILT pin (see
Fi g u re 9 ) . V a l u e o f t h e f i l t e r c o m p o n e n t s a r e d e t a i l e d i n th e S e c t i o n “ DC
Characteristics”.

The VCO block is the Voltage Controlled Oscillator controlled by the voltage V

ref

pro-

duced by the charge pump. It generates a square wave signal: the PLL clock.

Figure 8. PLL Block Diagram and Symbol

X1

÷

2

X1

Clock

X2 bi

t

X2 Mode

STD Mode

STD Mode

PLLEN

PLLCON.1

N6:0

N Divider

R Divider

VCO

PLL Clock

PLLclk

OSCclk

R

1

+

(

)

×

N

1

+

-----------------------------------------------

=

OSC

CLOCK

PFLD

PLOCK

PLLCON.0

PFILT

CHP

V

REF

Up

Down

R9:0

PLL

CLOCK

PLL Clock Symbol