The present application claims priority from Japanese application JP 2004-262875 filed on Sep. 9, 2004, the content of which is hereby incorporated by reference into this application.
The present invention relates to a loop characteristics detection circuit in a phase locked loop (PLL) circuit, and more specifically to a loop gain detection method of the PLL circuit and a transceiver circuit containing a loop gain detection circuit that is based on the loop gain detection method.
For wireless transmitters, frequencies used for transmission are determined and it is required to have a certain frequency accuracy so as not to have adverse effects on apparatuses employing neighboring frequency bands. Particularly, for cellular and automobile telephones, a severe frequency accuracy is required to allow a large number of terminals to use the frequency. Since this frequency accuracy exceeds the accuracy of a high frequency oscillator, the frequency accuracy of the high frequency oscillator is improved by configuring a PLL circuit using a device having a high frequency accuracy, such as a crystal oscillator, as a reference signal. A PLL-based transmitter circuit can be configured in various ways as shown in
In the configuration shown in
The phase detector compares two inputs and thus the both inputs must be the same in frequency. However, since frequencies of the crystal oscillator (for example, 13 MHz) used as a reference signal are lower than those used for cellular or automobile telephones (for example, about 900 MHz), the both inputs are matched by dividing the output of the VCO. For instance, if the reference signal is at 13 MHz, the VCO oscillates at 910 MHz to provide the same frequency accuracy as the reference frequency, when the frequency divider ratio is 70.
For cellular and automobile telephones, since a large number of terminals use radio waves, the individual terminals are controlled to avoid interference with each other by using different frequencies or by time sharing. For example, GSM (Global System for Mobile Communications) compatible cellular telephones set their channels at 200 kHz intervals, thus making it necessary to set the oscillating frequency of the VCO in increments of 200 kHz. However, since frequency divider ratio is an integer and the VCO frequency must be an integral multiple of a reference frequency, fine frequency setting is impossible. Therefore, it is necessary to generate pseudo intermediate frequencies by varying the frequency divider ratio in small increments. For example, if the frequency divider ratio is varied like 69, 70, 69, 70, it is possible to cause the VCO to oscillate at a frequency that is 69.5 times the reference frequency. This process of varying the frequency divider ratio is called ΣΔ modulation (or delta sigma modulation); the former designation (ΣΔ) is used herein.
Since using the ΣΔ modulation for frequency divider ratio allows fine control of frequency, fine frequency variation by modulating transmit data, as well as channel frequency setting can be implemented. This allows the configuration shown in
Not-patent document 1: E. Hegazi, A. A. Abidi, A 17-mW Transmitter and Frequency Synthesizer for 900-MHz GSM Fully Integrated in 0.35-um CMOS, IEEE Journal of Solid-State Circuits, Vol. 38, No. 5 pp. 782-792 May 2003.
The prior art described above is suitable for the transmitter having a PLL circuit and a modulator, but the modulation accuracy of the transmitter is determined by the degree of accuracy of each elements composing the PLL. For cellular and automobile telephones, higher modulation accuracy, as well as higher frequency accuracy, is required. In the prior art, for example, a means for varying the element values with switches is provided but a function of detecting the PLL characteristics is not provide, thus making it necessary to externally measure the PLL characteristics and adjust accordingly, as shown in
Therefore, an object of the present invention is to provide a PLL circuit containing a loop detection circuit capable of measuring PLL characteristics easily and with a high degree of accuracy. Another object of the present invention is to provide a PLL circuit that will have stable loop characteristics by performing calibrations based on the measurement of the PLL characteristics.
Still another object of the present invention is to provide a transmitter circuit containing a PLL circuit having a loop characteristics detection circuit.
One representative embodiment of the present invention is as follow:
A phase locked loop circuit according to the present invention includes a first voltage controlled oscillator; a first frequency transform circuit to which the output of the first voltage controlled oscillator is connected; a first phase detector to a first input of which the output of the first frequency transform circuit is connected, and to a second input of which a first reference signal is connected; a first charge pump circuit to which the output of the first phase detector is connected; and a first loop filter to which the output of the first charge pump circuit is connected, wherein the output of the first loop filter is connected to a frequency control terminal of the first voltage controlled oscillator,
the phase locked loop circuit further comprising:
a first counter circuit to which the output of the first voltage controlled oscillator is input:
a first accumulator circuit to which the output of the first counter circuit; and
a first loop characteristics detection circuit that detects the loop characteristics of the phase locked loop circuit based on the result obtained by integrating the output of the first counter circuit through the first accumulator circuit.
The present invention measures the variation in elements by means of a simple circuit, and performs an operation to compensate for the variation. The variation in the characteristics of each element affects the PLL loop gain, and the loop gain variation results in deteriorated modulation accuracy. However, since the accumulation of the variation of each element becomes the variation of gain, it is not necessary to measure the element characteristics individually, instead, the accumulated variations are measured. In other word, more accurate loop characteristics can be achieved by measuring the loop gain with the counter and accumulator and then compensating for the loop gain with a charge pump current or the like.
Providing the loop gain detection circuit enables the charge pump current to be variable based on the measurement result of the PLL circuit loop gain, which makes it possible to compensate for the element characteristics variation, temperatures, and aging, and thereby to maintain the loop gain constant and increase the degree of modulation accuracy. Moreover, the loop gain detection circuit of the present invention can be composed of digital circuits entirely, thus allowing higher integration and lower power consumption.
Preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to
After the VCO 1 output is divided by the variable divider 2 (hereinafter called a divider), the result is compared a reference clock (REFCLK) in the phase detector 3. A current of the pulse width determined by phase error is output from the charge pump circuit 4, integrated by the loop filter 5, and then fed back to a frequency control terminal of the VCO. The PLL circuit is converged to a state where an error at the phase detector 3 is minimized.
In this embodiment, the number of division N is first converged to the initial frequency f1 corresponding to the initial number of division N. Then, the number of division is changed to N+n, signals from the VCO are counted by a counter (CT) 6 while the PLL circuit changes to the frequency f2 corresponding to the number of division N+n, the count results are accumulate at a reference clock period by the accumulator 7. After being accumulated a predetermined number of times, the result is compared with the calculation data (Dcalc) of the accumulated value corresponding to a design value previously calculated and stored in a data register (REG) 9 in a comparison operation circuit block (CMP) 8, whereby a change in the loop characteristics is detected.
In
Before discussing the details of the embodiment, the transfer function of the PLL circuit is described for clarity. Assuming that phase of the VCO is θ, number of division of the divider N, charge pump drive current Icp, transfer function of the loop filter F(s), voltage control sensitivity Kv, and phase of the reference clock θ0, the transfer function with the phase θ0 as an input and the phase of the VCO as an output is given by well-known expression (1):
In this embodiment, a step signal is input by varying the frequency divider ratio with respect to the PLL circuit. Therefore, a transfer function for the frequency divider ratio is derived. Assuming that VCO oscillating frequency is fvco, frequency divider ratio before being given a step change is N, output signal frequency of the divider is fDnom, and frequency of the reference clock is f0, a relationship shown by expression (2) holds:
Frequency fdiv at the divider output when the number of division is given time change n(t) is given by expression (3):
Assuming that frequency change at the divider output is Δfdiv, we have expression (4):
Phase change Δθdiv at the divider output is obtained by integrating frequency change Δfdiv. Since the integration can be expressed by multiplying by 1/s in s domain and is given by expression (5):
Transfer function for the number of division is given by the product of the last terms of expressions (1) and (5), then we have expression (6):
From the foregoing, it is possible to derive the transfer function for the number of division. Although this transfer function is one order higher than the transfer function for the reference clock phase, it is considered as a linear response as shown in expression (6). Regarding the VCO frequency, if the transfer function indicating a response of difference f for the number of division is determined assuming that the frequency corresponding to the number of division N is F and the frequency difference changing with n is f, then we have expression (7):
A lag-lead filter commonly used as a loop filter consists of a capacitance C1, a C2 connected in parallel to the C2, and a serially connected resistance R. Transfer function H(s) for the lag-lead filter is given by expression (8). In this case, if expression (8) is substituted for expression (7), the order of the transfer function becomes third order.
Further, if an open loop transfer function G(s) is determined here, then we have expression (9):
where C1r and C2r represent capacitance ratio and C1=C0C1r and C2=C0C2r hold. If the PLL circuit is implemented by an integrated circuit, the capacitance ratio is kept constant and the absolute value C0 varies with the ratio kept. An important thing in expression (9) is that if the capacitance ratio is kept constant, voltage control sensitivity Kv of the VCO oscillating frequency, charge pump drive current Icp, absolute value of capacitance C0, and number of division N are all dependent on each other, and if any one of them varies the gain of the open loop transfer function will be affected, for example. Therefore, if these parameters are varied, optimizing the charge pump drive current Icp allows the transfer function to be kept constant with respect to any variation in these parameters. The resistance R in the loop filter does not affect the gain, but affects the pole and zero point values. Thus, the transfer function is independent of other parameters, and therefore individual adjustments are necessary to keep the transfer function constant.
Based on the foregoing, the details of this embodiment will be described. In this embodiment, after the PLL circuit is converged, the number of division of the divider is changed from N to N+n and the response is observed. This operation is described with reference to
When the VCO oscillating signal are count during a certain period of time T2 immediately after the number of division is switched, count value 14 increases at an approximately constant slope for count value regardless whether it is 14 (L), the count value when loop gain is large, or 14 (S), the count value when loop gain is small, there is little difference in count values. This is because even if a step change giving about 2 to 3 MHz frequency difference is applied when the transmitter frequency band conforming to the GSM900 standard, a representative cellular phone standard, is 880-915 MHz, response differences are close to each other and do not increase. When the count result of the counter 6 was actually observed for every reference clock, there were cases where both responses were even reversed at some point due to the effect of an overshoot or undershoot.
Therefore, when count results are recorded for every reference clock and the open loop gain is compared with an ideal response set to the design value, it was found that when open loop gain is lower than the design value the frequency of decrease of count result 22 increases, and when open loop gain is higher than the design value the frequency of increase of count result 21 increases, as shown schematically in (a) of
In order to detect this frequency, the accumulator (ACL) 7 was caused to generate a trigger signal 16 during count period of time T2 based on the reference clock as shown in (d) of
As mentioned above, the result of the accumulator 7 is compared with the accumulated value data Dcalc that is the response from the PLL circuit operating according to the design value, which has been calculated and stored in the register 9. According to the difference the charge pump 4 current is switched, which allows the calibration of loop gain variations.
That is, in this embodiment, by forming a loop gain detection circuit comprising the accumulator 7, a comparison operation circuit block 8, and a data register 9 it is possible to detect loop gain variations and calibrate easily. Although this embodiment shows the case of controlling the amount of charge pump drive current, which is most easy to control currently, it is also possible to calibrate by changing the voltage control sensitivity of the VCO oscillating frequency or capacitance value. Furthermore, the relationship between initial frequency f1 and frequency f2, a frequency corresponding to f1 when the number of division is changed to N+n, is described to be f1<f2 here, but this magnitude relation may be reversed because the magnitude relation is not a bottom line of the embodiment.
Now, a second embodiment of the present invention will be described with reference to
In
This sigma delta modulator output and the value of the frequency setting register (fREG) 28 with an accuracy n-times that of the reference clock are added by an adder 34, the upper five bits Ub are updated at the reference clock cycle as the setting value of a 5-bit synchronous counter (5bSYNC_CT) 27 in the divider (DIV) 2, the lower two bits Lb are updated at the reference clock cycle as the setting value of a 2-bit synchronous counter (2bSYNC_CT) 26 that drives the division number setting terminal of a ⅘ divider in the divider 2. This enables an average number of division of entire divider 2 to be set with a high degree of accuracy.
The components of other PLLs, i.e., VCO 1, phase detector 3, charge pump 4, and loop filter 5, as well as accumulator 7, comparison operation circuit block 8, register 9, etc. are all the same as in the first embodiment. Only adding a logical circuit to the PLL circuit in this configuration makes it possible to modulate a GMSK signal directly to the VCO and thereby to implement a small sized transmit circuit with low power consumption. Implementation of the sigma delta transmit circuit will require stabilization of loop characteristics, since the frequency characteristics of the PLL circuit shown in expression (7) described above influence a modulation signal.
The loop gain calibration operation in the sigma delta transmit circuit in such a configuration will be described, with reference to the operation sequence shown in
First, the PLL circuit is locked to the channel of frequency fc that is n-times the reference clock REFCLK and near the desired frequency (in this case, a transmitter frequency fTX) (step A1). Since many of the frequencies of each channel are not n-times the reference clock frequency, there may be more than one relations between the reference clock phase and VCO 1 phase. To eliminate the error due to this phase difference, the PLL circuit is first locked to an n-times frequency to match the initial phases. Then, the frequency is set to the initial frequency f1 and the PLL circuit is locked (step A2).
After the PLL circuit is converged, the frequency f2 to be stepped is set (step A3). The counter 6 and accumulator 7 are operated while locking the PLL circuit to frequency f2, and after a predetermined period of time, the accumulator output i.e., accumulated counter value is read (step A4). The read value x1 and the standard value x0 of the accumulator count value for loop characteristics and other design values are compared (step A5)
The difference between frequencies f1 and f2 is usually specified at constant value, but may be varied according to the setting channel. In such a case, since the difference from the standard value is varied with respect to the variation in the same loop gain, a calibration coefficient a2 is determined from the product of a frequency difference dependency efficient a1 and the set frequency difference (f2−f1) (step A6). In this embodiment, as in the first embodiment, magnitude relation between f1 and f2 will not affect the operation. However, since the calibration coefficient is affected by the sign, the sign is detected from the magnitude relation (step A7)
Calibration of the calibrated charge pump current Icp is calculated by multiplying the coefficient a2 thus determined by the difference (x1−x0) from the standard value (step A8). After the new charge pump current Icp is calculated to perform a scaling corresponding to the setting of current value (step A9), charge pump current is set (step A10).
Since this completes the calibration of loop characteristics, the desired transmitter frequency fTX is set and the PLL circuit is locked (step A11). Then, a power amplifier 37 is powered on (step A12), and transmission is started (step A13).
Now, the detailed configuration of the counter circuit 6 and accumulator circuit 7 will be described with reference to
A data read signal (RD), for example, activates the latch circuit 91 at its high level and outputs the accumulator 7 output to the comparison operation circuit block 8.
This embodiment allows for implementation of the sigma delta circuit whereby loop band is calibrated and the effect of loop characteristics variation on demodulation characteristics such as phase accuracy is reduced.
A third embodiment of the present invention will be described with reference to
First, the configuration of a receiving system is described. A signal received through an antenna 87 is amplified by a low noise amplifier 75 through a band pass filter 86. The band pass filter 86 reduces the out-of-band interference wave level, and is used to prevent the saturation of the low noise amplifier 75. A mixer 76 and a mixer 77 perform the orthogonal demodulation to down-convert a signal to a baseband signal
Low frequency variable amplifier & low pass filter (PGA & LPF) banks 78 and 79 amplify the signal and suppress out-of-band noises. This relaxes the bit accuracy of an analog digital converters (ADC) 80 and 81. The 82 is a digital interface circuit to exchange digital signals both ways and also a multiplex converter (MPXCONV). This device exchanges transmit binary signals 83 from the sigma delta transmitter circuit 65 and external digital signals via a bidirectional bus 85.
In orthogonal demodulation, the mixer 76 and mixer 77 must input signals that are out of phase by 90 degrees. A voltage controlled oscillator 73 oscillates at a frequency twice or four times the received frequency, and divides the output to achieve the exactly 90 degree phase difference.
The output of the voltage controlled oscillator 73 is divided by a prescaler 69, a 3 bit synchronous counter (3bSYNC_CT) 68, and a 5 bit synchronous counter 67. At this time, the division number control of the divider (1/num) 74 can perform fractional division by using the control by the sigma delta modulator. For the sigma delta modulator, it is possible to use that used in the transmission system when GSM-compatible transmission and reception is performed using timesharing method.
Regarding the control method, a programmable counter may be employed for the 3 bit synchronous counter 68 and 5 bit synchronous counter 67, and count value may be controlled by the control signals 66 and 35. The reference clock source 84 oscillates as 26 MHz. Since the 26 MHz reference clock 84 is used for the 4 GHz voltage controlled oscillator 73, number of division is around 150. Therefore, 8 bits are required for division number control, and a 3 bit counter is needed to make the prescaler 69 8/9 division. The output of the reference clock 26 and the output of the 5 bit synchronous counter 67 are compared in phase by the phase detector 70. The phase detector 70 forms voltage waveform only for the phase difference, and the charge pump 71 flow a current only during the voltage waveform. This charge pump current is averaged and converted to voltage by charging and discharging the capacitance of the loop filter 71. The voltage controlled oscillator 73 is controlled by this voltage.
Thus, the transceiver IC can be implemented by utilizing the transmitter circuit 65 of the second embodiment, and particularly sharing the sigma delta circuit block with a local oscillating signal synthesizer of the receiver
The operation of this embodiment is described according to the operation sequence shown in
For the first measurement, frequency is set to the first frequency f1 by the divider 25, and after conversion time for stabilizing the system is over, the counter 6 is operated to start the first measurement (step B1).
After specified measurement time has passed, the operation of the counter 6 is stopped and the counter value x1 is read (step B2). When the measurement start time difference Δt has passed from the first measurement start time, frequency is set to second frequency f2 by the divider 25 and simultaneously the counter 6 is operated to start the second measurement (step B3).
After specified measurement time has passed from the start of the second measurement, operation of the counter is stopped and the counter value x2 is read (step B4).
In this embodiment, the first and second measurement time is to be the same, different values may be used. After the second measurement is finished, frequency is set to the frequency fTX of the desired channel.
In the operation timing chart of
For the measurement star time difference Δt, measurement accuracy can be increased by selecting the time so that the phase difference of the VCO 1 becomes the same both at the first measurement start time and second measurement start time. For example, when the VCO frequency is n-times 200 kHz for all the channels and the operation clock of the counter is 26 MHz, their ratio is 130 and consequently phase of the VCO becomes the same at every 130 cycles of the 26 MHz clock, or every 5 microseconds. Therefore, by making the measurement start time difference n-times 5 microseconds, the initial phase of the VCO becomes the same for the first and second measurements.
Now, method of calibrating the charge pump current Icp to be performed at step B5 and after in
A simple primary calibration sufficiently serves the purpose of calibration of channel number, but higher level calibrations such as secondary and thirdly calibrations may be performed. When demand for the accuracy is low, the calibration of channel number may be skipped.
Calibration value for the charge pump current Icp is calculated by multiplying this calibrated value by a coefficient a1, and this coefficient a1 is determined by the difference (f2−f1) between the first frequency f1 and second frequency f2 (step B8). And, the sign bit of the coefficient a1 is detected by the direction in which the frequency changes (step B9). Then, the calibration amount of the charge pump current is calculated from the coefficient a1 and counter difference value (x2−x1) (step B10). Here, a primary calibration using only one coefficient or a higher calibration using multiple coefficients may be performed. By adding the calibration value obtained by this calculation to the charge pump current value, it is possible to obtain the desired charge pump current Icp (step B12).
First, the input reference clock is divided by a ½ divider (½ DIV) 103 as shown in
The divided output 105 is fed to, after the load drive capability is increased by the buffer amplifier 106, the primary RC integral filter comprising a resistor & switch array circuit 114 and capacitance 113. The resistor & switch array circuit 114 is composed of an integrated resistor 108 and its switch, and have a function of changing the impedance discretely by operating the switch 107 as needed.
The primary RC integral filter removes higher harmonic components from the output pulse of the buffer amplifier 106 based on the time constant determined by the capacitance value of the capacitance 113, and then drives the limiter amplifier 109. The limiter amplifier 109 has a function of outputting a ground potential for the input lower than a threshold, which is a midpoint potential between power supply voltage and ground potential, and outputting a power supply potential for the input higher than the threshold. Accordingly, output signal 118 of the limiter amplifier 109 can change the amount of delay according to the impedance of the resistor & switch array circuit 114 relative to the division output 104.
Next, the division output 104 and the output signal of the limiter amplifier 109 are phase-detected by a phase detector 110. The phase detector 110 outputs a signal 119 with polarity depending on lead or lag of the phase, based on the edge information on the two input signals. When the edges of the two input signals are exactly synchronous, the output of the phase detector 110 becomes zero. Based on this, an optimum value identifier block 111 selects the switch 107 of the resistor & switch array circuit 114 through a selector (SEL) 112 such that the output of the phase detector 110 becomes zero.
For example, by sweeping the switch signal of the switch 107 such that the impedance of the resistor & switch array circuit 114 changes from low impedance to high impedance, and selecting the state of the switch where the output of the phase detector 110 is closest to zero, the optimum value is determined. As a result, it is possible to calibrate the variation of the time constant of the primary RC integral filter that is caused by the production variation of resistor and capacitance on the integrated circuit process.
Finally, the output signal of the optimum value identifier block (DET) 112 is also fed to the resistor & switch array circuit 115 contained in the loop filter 116 through the selector 112. The relative deviation between resistors and that between capacitances on the integrated circuit process are within a few percents respectively, and high degree of accuracy can be secured, thus allowing the time constant of the primary RC integral filter and that of the loop filter 116 to be calibrated simultaneously. In the embodiments 1 to 4, loop gain is calibrated but pole and zero point are not. However, by using the time constant adjuster circuit of the loop filter of this embodiment together with the embodiments 1 to 4, it is possible to calibrate any of the loop gain, pole, and zero point.
By reading the value of the accumulator 7, after the measurement time T2 has passed, comparing the value of the same with the calculated data Dcalc that has been previously set in the register 9, and switching the charge pump current according to the difference between them, it is possible to calibrate the loop gain.
This embodiment can be applied to the same calculation method as in the fourth embodiment. The calculation method at this time is as shown in
The preferred embodiments have been described. The present invention allows the detection of loop characteristics with a high degree of accuracy, simply by adding a counter and an accumulator to the PLL circuit. Particularly, the present invention implements the calibration of loop characteristics of the sigma delta transmitter circuit which demands a high degree of loop characteristics accuracy, as well as highly accurate calibration of loop gain of a wide variety of PLL circuits.
It should be understood that the present invention is not limited to the above embodiments, and it is possible to change the design in various ways within the spirit and scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
2004-262875 | Sep 2004 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6130561 | Dufour | Oct 2000 | A |
6630868 | Perrott et al. | Oct 2003 | B2 |
20060220750 | Akamine et al. | Oct 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20060049878 A1 | Mar 2006 | US |