Phase-Locked-Loop Applications Using CD4046
Phase-Locked-Loop Applications Using CD4046
Contents Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Basic Loop Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Description of the HC/HCT4046A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Phase Comparators (PCs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Operation of Phase Comparator PC1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Operation of Phase Comparator PC2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Operation of Phase Comparator PC3 (HC/HCT4046A Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Lock Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 PCPout of the HC/HCT4046A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Lock Detector of the HC/HCT7046A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Voltage-Controlled Oscillator (VCO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 VCO Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 VCO Frequency Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 VCO Parametric Ranges and Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Design Examples With Measured and Calculated Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Design Examples With and Without Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Example With Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Example Without Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Rules of Thumb for Quick Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Tabulated Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Filter Design for the HC/HCT4046A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Loop Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 LPF Using PC1 (Example 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Using PC2 With a Lag-Lead Filter (Example 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Simple LPF Using PC2 (Example 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Simple LPF Using PC2 With Divide-by-N (Example 4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Simple RC LPF Using Frequency Offset and PC2 (Example 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
1
SCHA003B
LPF Design Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Bibliography and References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Appendix A Phase-Comparator Summary Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Appendix B Loop Parameters and Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Appendix C Basic Program for VCO Frequency Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Appendix D R1, R2, and C1 Values With Calculated fosc PC Solutions From Equations 3, 4, and 5 (VCC = 6 V) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Appendix E HC4046A PLL Layout With Simple RC Filter (R3C2) . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 List of Figures 1 Block Diagram of an HC/HCT4046A in a Typical PLL Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 Block Diagram of an HC/HCT4046A With External Loop Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3 HC/HCT4046A Functional Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4 HC/HCT7046A Functional Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 5 PC1 Average Output Voltage as a Function of Input Phase Difference . . . . . . . . . . . . . . . . . . . . . . . . . 9 6 Typical Waveforms for PLL With PC1 Loop Locked at fo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 7 PC2 Average Output Voltage as a Function of Input Phase Difference . . . . . . . . . . . . . . . . . . . . . . . . 11 8 Typical Waveforms for PLL With PC2 Loop Locked at fo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 9 PC3 Average Output Voltage as a Function of Input Phase Differences . . . . . . . . . . . . . . . . . . . . . . . 12 10 Typical Waveforms for PLL With PC3 Loop Locked at fo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 11 Lock-Detector Circuitry in the HC/HCT7046A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 12 Waveform at Lock-Detector Capacitor When in Lock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 13 Graph For Determining Value of Lock-Detector Capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 14 Waveforms at Lock-Detector Capacitor When Unlocked . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 15 VCO Portion of CD74HC4046A/7046A Functional Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 16 Equivalent HC/HCT4046A Charge Circuit of the VCO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 17 HC/HCT4046A VCO Waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 18 Current Multiplier Ratio M2 as a Function of R2 Bias Current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 19 Mirror Current as a Function of R2 Bias Current, Showing Range of Linearity . . . . . . . . . . . . . . . . . 19 20 Mirror Current as a Function of R1 Bias Current, Showing Range of Linearity (Pin 9 VCOin = 0.5 VCC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 21 Mirror Current as a Function of R1 Bias Current, Showing Range of Linearity (Pin 9 VCOin = 0.95 VCC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 22 VCO Frequency as a Function of VCOin (Measured and calculated values are shown. R1 = R2 = 10 kW, C1 = 47 pF, Cs = 6 pF, Tpd = 11 ns at VCC = 5 V, and Tpd = 15 ns at VCC = 3 V) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 23 HC/HCT4046A PLL VCO Test Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 24 VCO Frequency as a Function of VCOin, Showing Effects of Different Values of R1 and R2 (10 kW and 100 kW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
SCHA003B
25 VCO Frequency and Power-Supply Current as a Function of Operating Voltage VCC, Showing Effects of Different Values of R2 (5 kW and 10 kW). . . . . . . . . . . . . . . . . . . . . . . . . . . 25 26 VCO Frequency as a Function of VCOin, Showing Effects of Different Values of R1 and R2 (10 kW and 1 MW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 27 VCO Frequency as a Function of VCOin, Showing Duty-Cycle Control Obtained by Splitting Capacitor C1 and Controlling the Ratio of C1A and C1B . . . . . . . . . . . . . . . . . . . . . . . . . 27 28 Evaluation Circuit and Waveforms for Data in Figure 27 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 29 Forms of LPF and Associated Loop Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 E1 HC4046A PLL Layout With Simple RC Filter (R3C2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 List of Tables 1 Results for Simple LPF Using PC2 With Divide-by-N . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 2 Results for Simple RC LPF Using Frequency Offset and PC2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
SCHA003B
Introduction
This application report provides the circuit designer with information on the use of the HC/HCT4046A phase-locked loop (PLL) devices with a voltage-controlled oscillator (VCO) and the HC/HCT7046A PLL devices with in-lock detection in phase-locked circuits. A description of the basic loop operation is included as an introduction to phase-lock techniques. Complete circuit designs, with and without a frequency-divide ratio, are included as examples. Examples also are given of various filters operating over a range of frequencies.
HC/HCT4046A refers to the CD54HC4046A, CD74HC4046A, CD54HCT4046A, and CD74HCT4046A devices. HC/HCT7046A refers to the CD54HC7046A, CD74HC7046A, CD54HCT7046A, and CD74HCT7046A devices.
SCHA003B
For a full treatment of PLL theory, the reader is directed to the Bibliography and References, section where there are a number of references that support the descriptions and explanations given in this application report. The symbols and terminology used in this application report primarily follow the book, Phase-Lock Techniques.[1] The details of derivations of the equations can be found in the references. Some understanding of feedback theory as a background for designing PLL circuits is helpful, but lack of this understanding should not be a deterrent to anyone choosing to apply the HC/HCT4046A in relatively simple, second-order PLL circuits. The purpose of this application report is to present a solid tutorial on CMOS PLL techniques, including extensive information on the VCO characteristics. A designer then can apply the information to a variety of circuit applications. Before beginning to apply the HC/HCT4046A in PLL circuits, a designer should have an understanding of the parameters and equations used to define loop performance. Furthermore, the designer should recognize that PLL circuits are a special case of feedback systems. Where servomechanism feedback systems primarily are concerned with position control, PLL feedback systems primarily are concerned with the phase and tracking of a VCO relative to a reference signal input. While a phase error can be anticipated, no differential in frequency is desired after phase lock is established. General feedback theory is applied in PLL use just as it is in servomechanism systems. Some of the symbols and terminology used to describe PLL systems were borrowed from servo systems, giving rise to such terms as damping factor, natural loop resonant frequency, and loop bandwidth.
SCHA003B
Figure 2. Block Diagram of an HC/HCT4046A With External Loop Filtering Figures 3 and 4 show the HC/HCT4046A and HC/HCT7046A functional block diagrams, respectively. The VCO of the HC/HCT4046A is identicaI to that of the HC/HCT7046A and has the same operating characteristics. The HCT versions of these oscillator circuits differ from the HC versions by having TTL logic levels at the inhibit inputs. Improved linear differential amplifiers are used to control the current bias established by resistors R1 and R2; amplifying current mirrors control the charge rate of the timing capacitor C1. Descriptive and design information on frequency control of the VCO is given in the following sections.
SCHA003B
SCHA003B
92CM-43257
SCHA003B
The signals to both phase-comparator inputs are amplified with limiting that ignores amplitude changes. With respect to the HC4046A versus the HCT4046A, only the inhibit input levels are different; the drive levels for the phase-comparator inputs are the same. When TTL drive levels are used for the signal input to the detectors, either ac coupling or TTL-to-CMOS level conversion should be used to correctly drive the VDD/2 switch level. Where the signal-input source voltage is less than the logic level in peak-to-peak amplitude, ac coupling is necessary. In addition, ac coupling is preferred, with reduced-drive signals to minimize transient switching and harmonic interference with the VCO. Appendix I provides a summary of the phase-comparator options. An extended description of the three phase comparators is in the following sections.
SCHA003B
Figure 6. Typical Waveforms for PLL With PC1 Loop Locked at fo The frequency-capture range (2fc) is defined as the frequency range of input signals on which the PLL will lock for initially out-of-lock conditions. The frequency lock range(2fI) is defined as the frequency range of input signals on which the locked loop will remain in lock. The capture range is smaller or equal to the lock range. The capture range of PC1 depends on the LPF characteristics and can be made as large as the lock range. This configuration retains lock behavior even with very noisy signal input. PC1 can lock to input frequencies within the locking range of VCO harmonics.
10
SCHA003B
Figure 8. Typical Waveforms for PLL With PC2 Loop Locked at fo When the frequencies of SIGin and COMPin are equal but the phase of SIGin leads that of COMPin, the PMOS device at the PC2 output (see Figures 3 and 4) is held on for a time corresponding to the phase difference. When the phase of SIGin lags that of COMPin, the NMOS device is held on. When the frequency of SIGin is higher than that of COMPin, the PMOS device is held on for a greater portion of the signal cycle time. For most of the remainder of the cycle time, the NMOS and PMOS devices are off (3-state). If the SIGin frequency is lower than the COMPin frequency, it is the NMOS device that is held on for most of the cycle. As locked conditions are achieved, the filtered output voltage from PC2 corrects the VCO until the comparator input signals are phase locked. Under stable phase-locked conditions, the VCO input voltage from the output of the LPF is constant, and the PC2 output is in a 3-state condition.
11
SCHA003B
Figure 10. Typical Waveforms for PLL With PC3 Loop Locked at fo The phase characteristics of PC3 differ from those of PC2 in that the phase angle between SIGin and COMPin in PC3 varies between 0 and 360 degrees and is 180 degrees at the center frequency. PC3 also has a greater voltage swing than PC2 for the same input phase differences. While the conversion gain may be higher in PC2, PC3 produces a higher ripple content in the VCO or COMPin signal.
12
SCHA003B
Lock Indicators
PCPout of the HC/HCT4046A
Although the phase-comparator pulse output (PCPout) is shown as part of PC2 in Figure 8, the phase indication is present when either PC1, PC2, or PC3 is used. The PCPout phase-lock condition is present because the inputs for SIGin and COMPin are in parallel. As noted in the waveforms of Figure 8, PCPout at pin 1 of the HC/HCT4046A remains in the high state when the loop is phase locked. When either the PMOS or NMOS device is on, the PCPout is low. How the PCPout is used depends on the application. To fully utilize this output as a practical lock indicator, a smoothing filter is needed to reduce the effects of noise and marginal lock-on flicker.
13
SCHA003B
The discharge circuit includes the 1.5-k resistor. The capacitor waveform is a sawtooth (see Figure 12). The lock-detector capacitor value is determined by the center frequency of the VCO. The typical range of capacitance for a frequency of 10 MHz is about 10 pF, and for a frequency of 100 kHz, about 1000 pF. The value of CLD can be selected by using the graph in Figure 13. As long as the loop remains locked and tracking, the level of the sawtooth does not go below the switching threshold of the Schmitt-trigger inverter. If the loop breaks lock, the width of the error pulse is wide enough to allow the sawtooth waveform to go below the threshold, and a level change at the output of the Schmitt-trigger indicates a loss of lock (see Figure 14). The lock-detector capacitor also filters out small glitches that can occur when the loop is either seeking or losing lock.
14
SCHA003B
Figure 14. Waveforms at Lock-Detector Capacitor When Unlocked As noted for PCPout of the HC/HCT4046A, the lock-detector function of the HC/HCT4046A is present in any application of PC1, PC2, or PC3. However, it is important to note that, for applications using PC1, the lock detector indicates only a locked condition on the fundamental frequency and not on the harmonics that PC1 may lock on. If lock detection is needed for the harmonic locking range of PC1, the lock-detector output must be ORed with the output of PC1.
VCO Description
Figure 15 shows a functional diagram of the VCO control circuit of the HC/HCT4046A. The frequency and offset frequency amplifiers are configured to convert voltage to current, which is then amplified in the current-mirror-amplifier(CMA) blocks before being summed. The summed current is directed to the oscillator section consisting of inverters G1 and G2. The inverters, switching as H drivers, control charge and discharge current to the oscillator range capacitor, C1. The oscillator loop consists of flip-flop FF with feedback from the cross-coupled outputs to G1 and [Link] demodulator output amplifier can be used optionally to buffer the filtered output of the phase comparator. In normal use, the load resistors are in the range of 50 k to 100 k. An inhibit amplifier controls the oscillator and CMA circuits. The output from one side of the flip-flop is buffered and output to the VCOout at pin 4.
15
SCHA003B
Figure 15. VCO Portion of CD74HC4046A/7046A Functional Block Diagram The external components R1, R2, and C1, plus the voltage level of VCOin at pin 9, provide direct control of the frequency. Resistors R1 and R2 fix the level of current bias to CMA1 and CMA2 for currents I1 and I2, respectively. Both CMA circuits consist of a current mirror with, typically, 6 to 8 gain. Because the frequency and offset-frequency amplifiers are source followers with 100% feedback, the voltage across R1 at pin 11, VR1, is equal to VCOin, and the voltage across R2 at pin 12, VR2, is equal to Vref. Vref is an internal bias source set at one forward diode drop from VCC. As such, the voltage across R2 and the current I2 are functions of VCC, implying the need for a well-regulated VCC for good offset-frequency stability. For most applications, Vref = VCC 0.6 V is a good approximation. In the equations that follow, I1 = VCOin/R1 and I2 = Vref/R2 are used as direct expressions for the CMA input currents. The outputs of CMA1 and CMA2 are the amplified M1I1, and M2I2 currents, where M1 and M2 are the multiplier ratios for CMA1 and CMA2, respectively. The CMA output currents then are summed together as the current, lsum, to drive capacitor C1 via the PMOS and NMOS transistors of G1 and G2. When the input to G1 is high, the input to G2 is low. In this mode, the PMOS transistor of G1 conducts charge to C1 while the NMOS transistor of G2 discharges the low side of C1 to ground. Each time the flip-flop changes state, the charging polarity of C1 is reversed by G1 and G2. When the positively charged side of C1 is grounded, an intrinsic diode across each of the NMOS devices discharges C1 to one diode level below ground. There are two C1 charge cycles in each full period, and the instantaneous start voltage for each current-charged ramp is VIr = 0.7 V. The active switch threshold at the flip-flop input is Vhr = 1.1 V for a VCC of 5.0 V, and varies with VCC (see Figures 16 and 17). Figure 17 shows the voltage waveforms at pins 6 and 7 as similar, except for the half-cycle displacement. The total peak-to-peak voltage of the sawtooth-ramp waveform at pins 6 or 7 is, typically, Vramp = [Vhr VIr = [1.1 (0.7)] = 1.8 V.
16
SCHA003B
+ Isum(Tc C1)
(1)
The time, Tc, is the ramp charge time, and Vramp is the capacitor ramp charge voltage over the integrated time period. The ramp rate of voltage increase is Vramp/Tc, and is determined by the rate of charge of the capacitor by the source current, Isum.
17
SCHA003B
Figure 17. HC/HCT4046A VCO Waveforms The CMA gain characteristics for M1 and M2 are shown in the curves of Figures 1821. The values for M2 as a function of I2 are shown in Figure 18. The curves of Figure 19 show the CMA2 range of linearity for I2 input. The linear range and values for multiplier M1 are shown in the curves of Figures 20 and 21.
18
SCHA003B
Figure 19. Mirror Current as a Function of R2 Bias Current, Showing Range of Linearity
Figure 20. Mirror Current as a Function of R1 Bias Current, Showing Range of Linearity (Pin 9 VCOin = 0.5 VCC)
19
SCHA003B
Figure 21. Mirror Current as a Function of R1 Bias Current, Showing Range of Linearity (Pin 9 VCOin = 0.95 VCC) Equation 1 is sufficiently accurate to allow a good approximation of the VCO period (2Tc). However, there is a more precise equation for ramp charge time. In Figure 17, Note 1, attention is called to an offset voltage of approximately 0.15 V. Figure 16 shows the reason for this characteristic in an equivalent circuit, where the mode of switching is for the G1 PMOS and G2 NMOS transistors in their on charge state. The more precise form of the voltage equation should include the NMOS channel resistance, Rn. Because the trip point, Vhr, is the sum of Vc + Vrn, and does not change in value, and Vlr = Vc(0) is approximately 0.7 V as the initial charge condition on capacitor C1: Vramp = Vhr Vlr = (Vc + Vrn) Vc(0) = lsumTc/C1 Where: Isum = (M1I1) + (M2I2) and, because Vrn = lsumRn: TC
(2)
Where:
20
SCHA003B
As noted previously, the initial voltage, Vc(0) is one diode drop below ground, or 0.7 V, and is equal to Vlr. The Vhr trip point for the flip-flop does not change, and was noted to be, typically, 1.1 V for VCC = 5 V. As shown in Figure 16, Vhr = Vc + Vrn. This expression shows that less charging time is needed to reach the trip point because Vc is reduced by the IsumRn voltage drop. The lsumRn term introduces a characteristic of nonlinear increasing frequency as a function of VCOin voltage and is caused by the voltage drop in the NMOS channel resistance. When VCOin is increased, the added M1I1 current continues to further reduce the sweep-time requirement. For large values of R1 and R2, the effect of resistance Rn is small, and the Vrn term in the above equations may be neglected. When Equation 1 or 2 is used as a first-order approximation, a complete expression for frequency would incorporate timing for two ramps, plus the propagation delays for each flip-flop state, plus the added time for charging stray capacitance. Either case yields a ramp charge expression. The propagation delay, Tpd, is a function of the number of cascaded stages in the flip-flop, plus G1 and G2 switching propagation-delay times. The stray capacitance, Cs, from pin 6 to pin 7 (or from each pin to ground) must be added to the value of C1. lt should be noted that unbalanced capacitance to ground from pin 6 and pin 7 can contribute an unbalanced duty cycle. In fact, unbalanced capacitance at pin 6 and pin 7 may be used by design to correct or set the duty cycle. With the frequency-dependent parameters now defined, the VCO frequency becomes: f osc
(3)
Using the simplified expression of Equation 1 to calculate the ramp charging time, and including the appropriate terms for capacitance C1 + Cs, Vramp, and lsum: Tc = [(C1 + Cs) Vramp]/[(MIII) + (M2I2)] which expands to : Tc
(4)
(5)
The value of Tc is calculated from Equation 4 or 5, and is substituted into Equation 3 to determine the frequency, fosc. For the most part, Equations 3 and 4 provide a reasonably accurate and direct approach to determination of the frequency of the VCO in terms of external component values and known parametric voltage values.
21
SCHA003B
Vref
Vramp
C1
Cs
R1
R2
M1, M2
22
SCHA003B
Isum
Where Isum is defined as (M1I1 + M2I2), the total sum of I1 + I2 should not exceed 1.0 mA. The multiplier values of M1 and M2 typically are 6 to 8. At higher levels of current, Isum degrades VCO linearity. The limits of linear range in the curves of Figures 1921 should be noted. Inherent propagation delay as noted in Equation 3 is approximately 10 ns to 14 ns for the flip-flop in the feedback loop of the oscillator. For VCC = 7 V, the propagation delay decreases approximately 10%. For VCC = 3 V, the propagation delay increases approximately 30%. The ramp charge time, Tc, for capacitor C1 is assumed to be equal for pin 6 to pin 7 or pin 7 to pin 6 in Equations 4 and 5. The oscillator frequency for a given VCOin as read at the VCOout, pin 4. It may be calculated using Equations 3 and 4 or 5.
Tpd
Tc fosc
Figure 22. VCO Frequency as a Function of VCOin (Measured and calculated values are shown. R1 = R2 = 10 k, C1 = 47 pF, Cs = 6 pF, Tpd = 11 ns at VCC = 5 V, and Tpd = 15 ns at VCC = 3 V)
23
SCHA003B
Figure 24. VCO Frequency as a Function of VCOin, Showing Effects of Different Values of R1 and R2 (10 k and 100 k)
24
SCHA003B
Figure 25. VCO Frequency and Power-Supply Current as a Function of Operating Voltage VCC, Showing Effects of Different Values of R2 (5 k and 10 k). Although values of 10 k for R1 and R2 provide good linearity as a function of VCOin for the high-frequency range shown in Figure 22, optimum values for R1 and R2 are greater at lower frequencies. This fact is shown in Figure 24, where the linearity is better for the larger values of R1 and R2 (curve B). The accelerated frequency-increase effect of IsumRn is more pronounced. The propagation delay is neglected in the curves of Figure 24 because it is much less than the oscillator period. The effects of stray capacitance are neglected for similar reasons. The simplified solutions using Equations 3 and 4 are shown by the dashed lines. A more accurate calculation was made with Equations 3 and 5 to determine the value of lsum. A value of 50 was used to calculate the lsumRn term. The calculated results for this curve quite accurately overlay the measured, solid-line curves. In this calculation, the values of M1 and M2 were set 15% low to obtain the exact tracking match. Figure 25 shows measured data and illustrates the dependence of the offset frequency on VCC. The frequency is in megahertz and the power-supply current in milliamperes. These parameters are plotted against power-supply voltage. Icc is shown for R2 offset-frequency bias resistors of 5 k and 10 k. The supply current increases with a decrease in the value of resistor R2, and also increases with the switching frequency because of the added current needed to charge and discharge the device equivalent capacitance, Cpd.
25
SCHA003B
Figure 26 shows the effect of increasing the values of resistors R1 and R2 by 10 with all other factors remaining the same. Curve A is plotted at 10 the measured frequency, while curve B is plotted at the frequency of the measured data. The two curves should overlay one another. The current multiplier ratios, however, are higher at lower current bias levels, a factor that causes the frequency defined by curve A to be slightly more than 10 that of curve B. The curves illustrate that frequency can be changed by a linear scale factor with a change in R1 or R2. Similar frequency changes also can be made by adjusting C1. An exception is that effects of Tpd and Cs produce a ratio-adjustment error in the high-frequency range. Figure 27 demonstrates the results of a different method of frequency control by splitting capacitor C1 and returning pin 6 and pin 7 separately through capacitors C1A and C1B to ground. Illustrated in Figure 28, this method can control the duty cycle, which is the ratio of capacitors C1A and C1B. The Vramp conditions change from 0.7 V as a starting point to ground or 0 V. The Vhr trip point is unchanged. The current charge path for each capacitor is through its respective G1 or G2 PMOS device, and the discharge path is through the associated NMOS device. Frequency calculations for this type of circuit are based on a separate calculation for each capacitor charge ramp and the addition of the results for the total period time. The same equations are used in the calculations, but the empirical equation for Vramp becomes: Vramp = Vhr VIr = 1.1 0 = 1.1 V Where: VCC = 5.0 V For other VCC values, Vhr = (0.1 VCC + 0.6) V. The simplified calculation is shown by the dashed line in Figure 27 to be in reasonable agreement with empirical results. Where the RC discharge might not reach ground before the charge cycle starts, VIr = Vc(0) assumes this value. The waveform characteristic is shown in Figure 28.
Figure 26. VCO Frequency as a Function of VCOin, Showing Effects of Different Values of R1 and R2 (10 k and 1 M)
26
SCHA003B
Figure 27. VCO Frequency as a Function of VCOin, Showing Duty-Cycle Control Obtained by Splitting Capacitor C1 and Controlling the Ratio of C1A and C1B
Figure 28. Evaluation Circuit and Waveforms for Data in Figure 27 Possible applications of the split-capacitor method described in previous paragraphs include horizontal and vertical timing circuits for image-display systems, as well as gating and blanking functions where, for a variety of reasons, pulse-duration control is needed.
27
SCHA003B
28
SCHA003B
Tc and fosc, as a function of VCOin, can be calculated from these values and, if needed, R1 and R2 can be adjusted to meet the desired center-frequency condition. That is, for Cs = 0, Tpd = 0, R1 = 30 k, R2 = 36 k, C1 = 1000 pF, Vref = 4.4 V, Vramp = 1.8 V, M1 = 6.2, M2 = 7.3, and VCC = 5 V: fosc = 1/2Tc = [M1(VCOin/R1) + M2(4.4/R2)]/2C1Vramp = [6.2(VCOin/30 k) + 7.3(4.4/36 k)]/(2 1000 pF 1.8 V) Calculated and measured oscillator frequency values for different values Of VCOin are:
VCOin (V) 0.0 1.0 2.5 4.4 248 305 391 500 fosc (kHz) CALCULATED MEASURED 280 318 384 492
The calculated solution is in reasonable agreement with the desired results, as shown by the measured data. Depending on the application, some adjustment of R2 might more closely fit the fosc value.
In this example, the error is larger, but the dynamic range needed for the high and low ends of the frequency range is there. The center-frequency value of VCOin is slightly to the high side of 2.5 V.
29
SCHA003B
+ Ka (R2C1)
(6a)
Where: Ka is a constant that varies with VCC. where Ka is a constant that varies with VCC. To find fmax with VCOin = Vref = 4.4 V, VCC = 5 V, Cs = 0 pF, Vramp = 1.8 V, and M1 = M2 = 7, f max
+ Ka (ReqC1)
(6b)
Where: R1 in parallel with R2 = Req. Then, an extrapolation from fmin at VCOin = 0 to fmax at VCOin = 4.4 V yields a quick y = mx + b equation approximation to fosc: f osc
(6c)
Where: Kb at fmax is 4.4 for VCC = 5 V, or 5.4 for VCC = 6 V. Ka at fmax and fmin is 8.5 for VCC = 5 V and 10 for VCC = 6 V. The solution is provided as a time constant for R2C1 or ReqC1, where C1 is assumed, followed by a calculation for R1 and R2. The choice of offset frequency is not as simple as it first appears. The true offset with respect to phase lock starts when the VCOin is approximately 1.0 V. The lock-in range where 2fI = (fmax fmin) is limited by this condition. As such, the lock-in range is only 60% of the VCOin control range for VCOin = 0 V to VCOin = 2.5 V or (VCC/2). Using the lower VCO control range as a boundary condition for lock-in, 0.6(fo fmin) = fI. Where fmin is the offset frequency, the rule-of-thumb equation for offset in terms of center frequency and lock range is: f min
+ fo 1.6fI
(6d)
30
SCHA003B
Tabulated Solutions
The expanded Equations 1 through 5 have been written into a computer program using empirically derived equations from the curves and data for I1, I2, M1, M2, and Tpd. This program is included in Appendix C. PC calculations and rule-of-thumb solutions have been calculated and compared to measured data to evaluate the frequency error in several applications. Appendix IV gives R1, R2, and C1 values with Calc. fosc PC solutions from Equations 3, 4, and 5. The Approx. fosc values are given by the rule-of-thumb solutions from Equations 6(a), 6(b), and 6(c).The solutions shown below are based on high and low inputs to VCOin, and have larger estimate errors than those previously shown and plotted. The most accurate frequency calculations are determined by having the correct values for M1 and M2, which, for the full range of VCOin, are not constant. The preferred solutions are derived for a VCOin voltage near VCC/2, where the curves for I1 as a function of pin 6 and pin 7 current plots are most accurate. The example data given here is based on single result values from constructed PC boards (see Appendix V).
31
SCHA003B
Loops are frequently referred to by type and order designation. Type is less commonly used and refers to the number of perfect integrators in the loop or the number of poles at the origin of the complex-frequency plot. An example of a Type I would be a simple first-order PLL where there is no filter [f(s) = 1]; integration of the VCO provides the one pole. The order of the loop is a more commonly used term and refers to the highest power of s in the denominator of the closed-loop transfer function, H(s). The application examples that follow are based on second-order systems, which represent the most common use of PLL circuits employing the HC/HCT4046A.
Loop Examples
LPF Using PC1 (Example 1)
This first example shows the effects of parameter variation; PC1 and the simple RC-lag LPF of Figure 29 are used. The conditions for this example are: fo = 27.5 kHz and fmin = ? kHz VCC = 6 V, VCOin range is 1 to 5.5 V The tendency for the novice designer is to specify an offset frequency close to the desired center frequency. This choice reduces the VCO gain factor and adds a resistor to the circuit. The need for an offset frequency specification always should be questioned. Occasionally, an offset frequency may be needed if the application requires continuing oscillation when the VCOin input drops below 1.0 V. The arbitrary assumption in this example is the choice of fmin = 0 or no offset. To find the VCO parameters, the designer should initially calculate R1 and C1 by considering the VCOin level at VCC/2 or 3 V. For this working frequency range, the consideration of stray capacitance and propagation delay can be dropped. Using the rule-of-thumb equation developed in the VCO section, the y = mx + b equation form can be used for fmin = 0 and VCC = 6 V, where Ka = 10 and Kb = 5.4. Then, Req reduces to R1 and Equations 6(b) and 6(c) combine as: fosc = VCOin/(0.54R1C1) By choosing C1 = 0.012 F, R1 becomes 16.8 k for VCOin = 3 V and fosc = fo = 27.55 kHz. The actual component values used were R1 = 16.4 k and C1 = 0.012 F. Frequency calculations for a VCOin of 1 V and 3 V using the above equation are:
VCOin (V) 1.0 1.24 3.0 3.34 9.4 11.7 28.2 31.4 fosc (kHz) CALCULATED MEASURED 10 27.5
32
SCHA003B
The VCO gain factor, Ko, must be determined for the filter design. Either the slope of the curve for fosc as a function of VCOin can be used, or a value can be calculated from the differentiated frequency expression. If lsumRn<<Vramp, the lsumRn term may be dropped. In this case, the calculated error is approximately 3% at VCOin = VCC/2. Using Equations 3 and 4, substituting Tc into the fosc equation and dropping the lsumRn and Tpd terms yields: fosc = Isum/2C1Vramp = M1VCOin/2R1C1Vramp The differential with respect to VCOin is given by: Ko = d(fosc)/d(VCOin) = M1/2R1C1Vramp This result is the same as the differential of VCOin/(0.54R1C1) if M1 = 7 and Vramp = 1.9 V are assumed. Substituting values M1 = 7, Vramp = 1.9 V, R1 = 16.4 k, and C = 0.012 pF yields: Ko = 9.4 kHz/V or 59.1 krad/V The Kd gain factor for the PC1 detector can be calculated as: Kd = VCC/ = 6/3.1416 = 1.91 V/rad The loop-gain factor, not including the filter, is given by: K = KoKd = 112,800 As shown in Figure 29, for any second-order system, the loop natural frequency, n, is: n = (K/)0.5 Where: is the integrating time constant of the loop filter.
For the simple lag filter of Figure 29(a), = R3C2. Beyond this point, assumptions or specifications are needed, with respect to the design requirements. One may optimize for noise, jitter, sweep rate, pull-in time, etc., depending on the application. For general and wide-ranging requirements, values for the loop 3-dB bandwidth, 3dB, and loop natural frequency can be assumed. Another choice is to look at the relation of noise bandwidth to damping factor, . If settling time is important, examine the phase error and damping factor as a function of nt (t = time) where, for the settling time to be 90% complete, the value of n, is given by the allowed settling time. Quoting from Gardner[1], and others, for a phase error due to a step in deIta phase, nt should be 4 for a damping factor of 0.5.
33
SCHA003B
The simple lag filter has a limited range of capability, but it can be effective in noncritical applications. The R3C2 time constant can be chosen by trial and error or by rule of thumb as the reciprocal of 1.5 to 3 times the frequency. This approach favors lower damping factors to achieve low jitter with compromises for pull-in range and time. Two filters were tried for this example: 1
2.5 ms 25 s R3 51 k 51 k C2 0.047 F 487 pF PULL IN 1kHz 4.25 kHz n (CALCULATED) 6717 rad/s 67.17 krad/s (CALCULATED) 0.032 0.32
When filters are designed by choosing a 3dB/n ratio, the simple lag filter has a solution in terms of that is different from that of the lag-lead solution. In any case, the 3dB solutions are derived by setting |H(j)|2 = 0.5 and solving for 3dB/n. However, experience is the best teacher, and the assumption of time-constant values, followed by the measuring and plotting of results, is an effective way to optimize values for those parameters important to an application.
34
SCHA003B
R3
C2
(a)
F1(s) = 1/(s1 + 1) 1 = R3C2 H1(s) = [n2/(s2 + 2n + n2)] n = (KoKd/1)0.5 = (1/41KoKd)0.5
92CS-43170
R3
R4 C2
(b)
F2(s) = (s2 + 1)/[s(1 +2) +1) 1 = R3C2 2 = R4C2 H2(s) = [s(2n n2) +n]/(s2 + 2n + n2) n = [KoKd/(1 + 2)]0.5 = (n/2)[2 + (1/KoKd)]
92CS-43171
R4
C2
R3
A (c)
For large values of A (amplifer gain): F3(s) = (s2 + 1)/s1 1 = R3C22 = R4C2 H3(s) = (2ns + n2)/(s2 + 2ns + n2) n = [KoKd/1)0.5 = n2/2
92CS-43172
35
SCHA003B
wf
+ 12) 2 1 2
t t t
t22
0.5
which may be used to calculate 1 and 2 after the f/n ratio is assumed. Then, using the equation of Figure 29(b): n = [K/(1 + 2)]1/2 filter-component values R3, R4, and C2 can be derived as follows: Given: f = 1% of fmin, f/n = 1/8 Calculate: 1 = 0.0346 ms, 2 = 0.0092 ms R1 = 51 k, R4 = 1.36 k C2 = 0.00068 F Where jitter is the ratio of phase displacement to signal period, the following PLL results were obtained:
SIGin (kHz) 1200 790 380 JITTER (ns) <28 <20 50 PERCENT OF PERIOD 2.4 1.6 1.9
36
SCHA003B
1 (CALCULATED) (ms)
3.206 1.154 0.451 0.288
R3 (CALCULATED) (k) 51 51 51 5
The range of pull-in remained typically the same for the 20-kHz loop. The pull-in measured 6 kHz to 37 kHz.
37
SCHA003B
1 (CALCULATED) (ms)
3.206 1.154 0.451 0.288
R3 (CALCULATED) (k) 51 51 51 51
The pull-in typically is 18 kHz to 33 kHz for this example. It should be noted that the damping factor, , is higher than in Example 4. With offset, the loop-gain factor, K, is approximately one-third less.
VCOin (V) 0 1 1.75 3 fosc (MEASURED) (kHz) 15.38 (offset) 17.85 20 22.78
38
SCHA003B
Open-loop analysis has limited significance. The PLL is a system within itself, and nearly all technical material is presented in the form of a closed-loop analysis. The bottom line is that the filter must be designed with the entire loop in mind. The HC/HCT4046A VCO gain factor, Ko, is dependent on the center frequency, fo, and the offset frequency, fmin. That is, Ko is approximately (fo fmin)/(VCC/2). If any of the VCO parameters such as R1, R2, or C1 change, Ko and the filter design requirements will change. The use of a filter bandwidth of 1% of the signal or loop frequency may not achieve the desired results in all applications. Because no specific applications were defined in the preceding paragraphs, the 1% filter bandwidth, f, was chosen as a practical way to achieve simple phase-lock results, given that f/n is chosen for a practical range of component values. In any case, the designer should be aware of the common parameters used to describe the PLL performance, such as damping factor () loop natural frequency (n), noise bandwidth (BL or 2BL), and the loop gain (K = KoKd). The damping factor can be used as a starting point for design assumptions. For some applications, this approach could be a better one than choosing bandwidths. The system response, however, must take into account both the loop natural frequency and the damping factor. As noted in the VCO description, the linear range of the HC/HCT4046A extends from 1 V to approximately VCC 1 V. Operation of the VCOin at or near the VCC level is not recommended because the linear range of the internal differential amplifiers (CMA circuit) is exceeded. When this level of operation occurs, the Ko of the VCO increases rapidly and may cause loop instability. The application of active operational-amplifier filter circuits, using such devices as the CA5470, can limit the maximum positive voltage swing to approximately the correct level while operating from the same VCC supply as the HC/HCT4046A.
The designer should apply high-speed application-circuit techniques when using high-speed CMOS PLL devices; the switching speed can produce higher-harmonic components. Good radio-frequency bypassing techniques with good filtering are recommended in the design of the power-supply distribution to minimize potential EMI problems.
39
SCHA003B
Acknowledgments
Contributions to this application report were provided by J. Nadolski (device characteristics) and C. Lee (PLL filter examples). This application report, which was acquired from Harris Semiconductor, who acquired it from RCA, has been edited and reformatted by Texas Instruments.
40
SCHA003B
Appendix A
TYPE PCout VPC (out), (SIGin high) Locked phase differential, (SIGin reference) Filtered PCout, VDEMout Requires 50% duty cycle? Lock detector Phase pulses out
VDD/2
/2
VCC/) Yes No No
(VCC/2) No No No
41
SCHA003B
Appendix B
Figure 1 shows the fundamental PLL block diagram and the relationships of the various loop parameters. The relationships of these parameters are determined by the transfer characteristic of each functional block of the loop. Brief explanations of parameter functions are provided in the following paragraphs. Further details can be found in various reference texts. Kd Phase-comparator conversion gain factor expressed in units of V/rad. Kd is determined by the equation Vd = Kd(i o) or Kd = Vd/(i o). For the phase comparators of the HC/HCT4046A, Vd = VDEMout and, assuming ripple and noise are suppressed, Kd for PC1, PC2, and PC3 can be expressed as:
Equation B2 generally is used in the VCC/4 form. In this application report, however, the VCC/2 form is used because PC2 is not fully periodic. It is periodic only as long as the phase is changing in one direction. As such, it is sequential, with VCC/2 gain. In the PC2 slip mode, there is a similar but opposite phase characteristic to that of PC3. In the PC2 lock mode there is both up and down ranging, but typically from VCC/2, giving the VCC/4 gain factor. Ko VCO gain factor expressed in radians/second-V or Hz/V (rad/s is used for brevity) in the text. Where the derivative of phase is frequency: fosc = d/dt = KoVc Using Laplace transforms for the complex-frequency domain, d/dt becomes s(s), and s(s) = KoVc(s). If an initial condition of o(t) = 0 is assumed at t = 0, the VCO gain factor is given by: Ko = s(s)/Vc(s) and the VCO gain is given by: (s) V c(s)
+ Ko s
(B4)
It is important to note that a simplification of the steady-state loop response can be derived from the Laplace-transform final-value theorem, which states that lim[(t)] = lim[s(s)], where t goes to infinity as s goes to zero. That is, simplified calculations can be made without transforming back to the time domain. F(s) Loop-filter transfer function. The order of the loop is determined by the type of filter used. The most common filter and the type discussed in this application report is the second order, as defined by the power of s in the denominator of the complete loop transfer function. Figure 2 shows the simplest filter, with a series R and shunt C. Figure 29 shows the most commonly used filters and gives the transfer functions for each.
42
SCHA003B
H(s)
Closed-loop gain. Although the PLL system has limited meaning as an open loop, the open-loop gain elements can be used in a general closed-loop feedback expression to determine the expression for H(s). The open-loop gain, G(s), is given by: G(s) = Ko/s)KdF(s) and the closed-loop gain H(s) is given by: H(s)
(B5)
e(s)
Phase error (i o) and is closely related to the closed-loop gain. With o(s)/i(s) = H(s) and with manipulation: [i(s) o(s)]/i(s) = 1 [o(s)/i(s) or e(s)
+ 1 H(s)
(B6)
This expression with the final-value theorem can lead to a simpler and quicker solution than transforming back to the time domain. n Natural frequency of the second-order loop from terminology used in earlier feedback and servo theory. It is analogous to ringing frequency in an RLC circuit. Refer to the loop equations in Figure 29 for the values of n. Damping factor (ratio) of the second-order loop from terminology used in earlier feedback and servo theory. Critical damping occurs for = 1. Refer to the loop equations in Figure 29 for the damping-factor equations. Used to define the conceptual relationship of 3-dB bandwidth for the closed loop. It is determined by setting the squared absolute magnitude of the transfer function |H(j)|2 = 0.5 and solving for . Used in this application report to define the bandwidth of the loop filter, as a simpler approach to finding the time-constant values. Pull-in or capture range. Pull-in range identifies the frequency range over which the PLL can snap into lock without further cycle slipping, assuming that it was not initially locked and that it reaches lock after slipping cycles. Lock-in range of the VCO, where lock is established without slipping cycles. (It is also referred to as seize range.) Hold-in range (also called the tracking range or lock range). It is the frequency range over which lock is maintained, assuming the input frequency is continuous and varying within the hold-in range. Pull-in time for the loop to establish lock. It extends for more than one cycle. PLL lock-in time without slipping cycles Settling time for the VCO to achieve 90% energy at the new frequency
3dB
f p
l h
Tp Tl Ts
43
SCHA003B
Refer to the Bibliography and References section and other text material for more complete information relative to the above definitions. Only the use of the HC/HCT4046A, HC/HCT7046A, and related PLL system parameters are discussed in this application report and appendix.
44
SCHA003B
Appendix C
REM Program for HC4046A VCO Frequency with & w/o offset REM Name [Link] REM Start: INPUT Enter center frequency, Fo , Fo INPUT Enter Offset frequency, Fmin, enter 0 if none , Fmin INPUT Enter power supply voltage, Vcc (Vdd) , Vcc PRINT 6 pf of stray cap. is assumed, Ctotal = Cstray + C1 Vramp = (.1*Vcc+.6)(.7) Tpd = EXP (.434*LOG(Vcc)17.5) REM Tpd approx. 12.5 nanoseconds, Vcc=5V Cs=6E12 : Rdn=50 IF Fmin > Fo THEN PRINT bad data, try again IF Fmin > Fo THEN Start IF Fmin > .9 * Fo THEN PRINT Offset too close to Fo, Poor choice! IF Fmin<>0 THEN Offset REM IF Fmin=0 THEN NoOffset PRINT Prop Delay, Tpd = , Tpd REM NoOffset: REM I1 empirical equation,guestimate I1=EXP(.45*LOG(Fo)15) REM MI equation from graph fit Ml=.04343*LOG(I1/.001)+6 Isum=M1*I1 R1=Vcc/(2*I1) REM if Ct selected as initial data, est. with this REM Ct=EXP(.667*LOG(Fo)13.196) REM C1 values less than 40 pF should not be used REM IF Ct<4.6E11 THEN Ct=4.6E11 Tc=((1/Fo)2*Tpd)/2 Ct=Tc*Isum/(Vramp(Isum*Rdn)) Cl=CtCs PRINT RI = , R1 PRINT C1 = , C1 PRINT I1 = , I1 PRINT M1 = , M1 PRINT Isum = , Isum PRINT INPUT Pick preferred numbers for R1,C1 & plot Fvco? y/n? , Q1$ IF Q1$ = n THEN Quit RepeatNoOffset: INPUT New C1 = , C1 INPUT New R1 = , R1 PRINT Vcoin(V) , Fvco(Hz) FOR Vcoin=1 TO Vcc.5 STEP .5 I1=Vcoin/R1 Isum=(.04343*LOG(I1/.001)+6)*I1 Tc=(C1+Cs)*(VrampIsum*Rdn)/Isum Fvco=l/(2*Tpd+2*Tc) IF Vcoin=(Vcc/2).5 THEN Fl=Fvco
45
SCHA003B
IF Vcoin=(Vcc/2)+.5 THEN Fh=Fvco Ko=((FhFl)/1)*2*3.14159 PRINT Vcoin, Fvco NEXT PRINT PRINT Ko = , Ko , radians/V PRINT INPUT Repeat preferred number calc. for R1,C1? y/n? , Q2$ IF Q2$ = y THEN RepeatNoOffset ELSE Quit REM Offset: REM empirical guestimate I2=EXP(.45*LOG(Fmin)15) R2=(Vcc.6)/I2 M2=.087*LOG(I2)+4.6+.4*Voc Tcmin=((1/Fmin)2*Tpd)/2 Ct=Tcmin*M2*I2/(VrampM2*I2*Rdn) C1=CtCs Tco=((1/Fo)2*Tpd)/2 Isum=Ct*Vramp/(Tco+Ct*Rdn) M1I1=IsumM2*I2 REM empirical equation for I1 based on given M1*I1 vs I1 I1=EXP(1.007113*LOG(M1I1)1.755368) M1=M1I1/I1 R1=(Vcc/2)/I1 PRINT R1 = , R1 PRINT R2 = , R2 PRINT C1 = , C1 PRINT I1 = , I1 PRINT I2 = , I2 PRINT M1 = , M1 PRINT M2 = , M2 PRINT Isum = , Isum INPUT Pick preferred numbers for Fvco vs Vcoin plot? y/n? , Q3$ IF Q3$=n THEN Quit PRINT Note. IN NO CASE SHOULD Rl OR R2 BE LESS THAN 3000 !! RepeatOffset: INPUT Enter preferred value of C1 , C1 INPUT Enter preferred value of R1 , R1 INPUT Enter preferred value of R2 , R2 PRINT Vcoin, Fvco, Isum FOR Vcoin = 1 TO Vcc.5 STEP .5 I2=(Vcc.6)/R2 I1=Vcoin/Rl Ml=.04343*LOG(I1/.001)+6 M2=.087*LOG(I2)+4.6+.4*Vcc Isum=M1*I1+M2*I2 Tc=((C1+Cs)*(VrampIsum*Rdn))/Isum Fvco=l/(2*Tc+2*Tpd) IF Vcoin=(Vcc/2).5 THEN Fl=Fvco IF Vcoin=(Vcc/2)+.5 THEN Fh=Fvco Ko=((FhFl)/1)*2*3.14159 PRINT Vcoin, Fvco, Isum
46
SCHA003B
NEXT PRINT PRINT Ko = , Ko, radians/volt PRINT INPUT Try other preferred values? y/n? , Q4$ IF Q4$ = y THEN RepeatOffset ELSE Quit REM Quit: END
47
SCHA003B
Appendix D
R1, R2, and C1 Values With Calculated fosc PC Solutions From Equations 3, 4, and 5 (VCC = 6 V)
R2 (k) 82 82 8.6 8.6 C2 0.084 F 40 pF 40 pF 220 pF 40 pF 0.016 F 0.016 F 0.15 F 0.15 F VCOin (V) 1 5 1 5 5 0 5 0 5 CALCULATED (PC) fosc 9.9 Hz 3.76 MHz 3.77 MHz 5.63 MHz 7.19 MHz 8.6 kHz 31.2 kHz 8.6 kHz 22.9 kHz ERROR (%) 28.5 17.4 19 12.6 7.8 10.4 19 10.4 17.4 APPROXIMATE (RULE-OF-THUMB EQUATION) fosc 11 Hz 5.37 MHz 5.38 MHz 6.8 MHz 11.0 MHz 7.6 kHz 28.5 kHz 7.6 kHz 15.9 kHz ERROR (%) 70 18 70 36 41 20.8 26 20.8 18.5 MEASURED DATA fosc 7.7 Hz 4.55 MHz 3.17 MHz 5.0 MHz 7.8 MHz 9.6 kHz 38.5 kHz 9.6 kHz 19.5 kHz
EXAMPLE
1 2 3 4 5 6 7 8 9
48
SCHA003B
Appendix E
NOTES: A. Remove pin 2 metal if PC3 not used. B. Use one R3 choice. C. Bottom view (one layer)
49
IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TIs terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TIs standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed. TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding thirdparty products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI. Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements.
Mailing Address: Texas Instruments Post Office Box 655303 Dallas, Texas 75265