Oscillation signal generating circuit and oscillation signal generating method
The oscillation signal generation circuit with a voltage-controlled oscillator and maximum phase difference detector compensates control voltage for rapid locking, addressing the challenge of balancing speed and noise in radar sensors.
Patent Information
- Application Number
- TW113149675
- Authority / Receiving Office
- TW · TW
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2024-09-30
- Filing Date
- 2024-12-19
- Publication Date
- 2026-07-11
- Estimated Expiration
- 2044-12-18
AI Technical Summary
Radar sensors using stepped-frequency continuous wave (SFCW) face challenges in achieving fast locking of phase-locked loop (PLL) circuits without excessive phase noise, necessitating a balance between locking speed and noise performance.
An oscillation signal generation circuit that includes a voltage-controlled oscillator and a maximum phase difference detector, which compensates the control voltage to a target value when a maximum phase difference is detected, enabling rapid frequency and phase locking.
The circuit achieves quick frequency and phase locking of the output signal, improving the operating performance of radar sensors by minimizing phase noise and enhancing locking speed.
Smart Images

Figure IMG-2_DRAW_113149675-A0305-14-0001-1 
Figure IMG-2_DRAW_113149675-A0305-14-0001-2 
Figure IMG-2_DRAW_113149675-A0305-14-0002-3
Abstract
Description
Technical Field
[0001] This invention relates to an oscillation signal generating circuit and an oscillation signal generating method, and more particularly to an oscillation signal generating circuit and an oscillation signal generating method with fast locking capability. Prior Technology
[0002] Radar sensors based on stepped-frequency continuous wave (SFCW) have a limited time to transmit signals across the entire operating frequency range. To ensure accurate extraction of target information, a phase-locked loop (PLL) circuit capable of rapid locking becomes a critical requirement.
[0003] To address the aforementioned problems, known techniques often involve increasing the operating bandwidth of the phase-locked loop (PLL) circuit. However, using increased PLL bandwidth to achieve fast locking may result in excessive phase noise in the signal. Therefore, balancing locking speed and noise performance is an important challenge for those skilled in the art. Summary of the Invention
[0004] This invention provides an oscillation signal generation circuit and an oscillation signal generation method, which can quickly complete the frequency and / or phase locking of the output signal.
[0005] The oscillation signal generation circuit of the present invention includes a first circuit and a second circuit. The first circuit is used to generate an output signal based on a reference clock signal and a feedback clock signal. The first circuit includes a voltage-controlled oscillator (VCO). The VCO outputs an output signal, and the frequency of the output signal is controlled by a control voltage. The second circuit is coupled to the first circuit. The second circuit includes a voltage compensation circuit and a maximum phase difference detector. The maximum phase difference detector is coupled to the voltage compensation circuit. When the maximum phase difference detector detects a maximum phase difference, it controls the voltage compensation circuit to compensate the control voltage to a target voltage.
[0006] The oscillation signal generation method of the present invention includes: generating an output signal based on a reference clock signal and a feedback clock signal; controlling the frequency of the output signal according to a control voltage and outputting an output signal; detecting a maximum phase difference; and, when the maximum phase difference is detected, compensating the control voltage to a target voltage.
[0007] Based on the above, the oscillation signal generation circuit of the present invention detects the maximum phase difference using a maximum phase difference detector, and when the maximum phase difference is detected, compensates the control voltage of the voltage-controlled oscillator to a target value. In this way, the oscillation signal generation circuit can quickly complete the frequency and / or phase locking operation of the output signal, improving the operating performance of the oscillation signal generation circuit. Simple Explanation of the Diagram
[0008] Figure 1 illustrates a schematic diagram of an oscillation signal generation circuit according to an embodiment of the present invention. Figure 2 illustrates a schematic diagram of an oscillation signal generation circuit according to another embodiment of the present invention. Figure 3 illustrates a schematic diagram of an oscillation signal generation circuit according to another embodiment of the present invention. Figure 4A illustrates the operation flowchart of the oscillation signal generation circuit according to an embodiment of the present invention. Figures 4B to 4D illustrate waveform diagrams showing the operation flow of the oscillation signal generation circuit according to an embodiment of the present invention. Figures 5A to 5C illustrate schematic diagrams of the maximum phase difference detection operation according to an embodiment of the present invention. Figure 6 illustrates a schematic diagram of an embodiment of the maximum phase difference detector of the present invention. Figure 7 illustrates a schematic diagram of an embodiment of the charge pump in the oscillation signal generation circuit of the present invention. Figure 8 illustrates a schematic diagram of an oscillation signal generation circuit according to another embodiment of the present invention. Figure 9 illustrates a flowchart of an oscillation signal generation method according to an embodiment of the present invention. Implementation
[0009] Please refer to Figure 1, which illustrates a schematic diagram of an oscillation signal generation circuit according to an embodiment of the present invention. The oscillation signal generation circuit 100 includes a first circuit 110 and a second circuit 120. The first circuit 110 and the second circuit 120 are coupled to each other. The first circuit 110 generates an output signal OUT based on a reference clock signal REF and a feedback clock signal DIV. The first circuit 110 includes a voltage-controlled oscillator 111, wherein the voltage-controlled oscillator 111 receives a control voltage Vctrl and generates the output signal OUT according to the control voltage Vctrl. The voltage-controlled oscillator 111 can control the frequency of the output signal OUT according to the voltage value of the control voltage Vctrl. In this embodiment, the feedback clock signal DIV can be generated by frequency division of the output signal OUT. In some embodiments of the present invention, the feedback clock signal DIV can also be generated by directly feeding back the output signal OUT. In one embodiment, the oscillation signal generation circuit 100 can be applied to a radar sensor with a stepped frequency continuous wave. The waveform of the output signal OUT includes a stepped frequency continuous wave, and its target frequency is a locked frequency. The radar sensor may further include a transmitting circuit, a receiving circuit, and an antenna. The transmitting circuit / receiving circuit transmits / receives wireless signals via the antenna according to the output signal OUT generated by the oscillation signal generation circuit 100, so as to detect the spatial information of external objects.
[0010] The second circuit 120 includes a maximum phase difference detector 121 and a voltage compensation circuit 122. The maximum phase difference detector 121 is coupled to the voltage compensation circuit 122. The maximum phase difference detector 121 can receive a feedback clock signal DIV and a reference clock signal REF, and perform maximum phase difference detection based on the feedback clock signal DIV and the reference clock signal REF. Specifically, the maximum phase difference detector 121 detects the maximum phase difference by detecting whether the phase difference between the feedback clock signal DIV and the reference clock signal REF is the maximum value. For example, the maximum phase difference detector 121 can use multiple phase differences between the feedback clock signal DIV and the reference clock signal REF measured for multiple cycles to form multiple discrete signals, which are then processed to obtain the aforementioned maximum phase difference. Further operational instructions can be found in the following descriptions in conjunction with Figures 5A to 5C. When the maximum phase difference is detected, the maximum phase difference detector 121 controls the voltage compensation circuit 122 to compensate the control voltage Vctrl to a target voltage. Furthermore, the maximum phase difference detector 121 can correspondingly generate a voltage compensation signal Svc, and can control the voltage compensation circuit 122 by providing the voltage compensation signal Svc to the voltage compensation circuit 122. The voltage compensation signal Svc can be considered as a signal to activate the voltage compensation circuit 122, causing the voltage compensation circuit 122 to provide the control voltage Vctrl, wherein the control voltage Vctrl at this time is compensated to the target voltage.
[0011] In this embodiment, when the maximum phase difference detector 121 detects the aforementioned maximum phase difference state, it can be determined that the frequency of the output signal OUT has initially reached a target locking frequency. Therefore, when the maximum phase difference is detected by the maximum phase difference detector 121, the oscillation signal generation circuit 100 of this embodiment can quickly complete the frequency locking operation of the output signal OUT by directly compensating the control voltage Vctrl to the target voltage.
[0012] Please refer to Figure 2, which illustrates a schematic diagram of an oscillation signal generation circuit according to another embodiment of the present invention. The oscillation signal generation circuit 200 includes a first circuit 210 and a second circuit 220 coupled to each other. The first circuit 210 includes a voltage-controlled oscillator 211, a loop filter 212, a charge pump (CP) 213, a phase frequency detector (PFD) 214, and a frequency divider 215. The voltage-controlled oscillator 211, loop filter 212, charge pump 213, phase frequency detector 214, and frequency divider 215 form a phase-locked loop (PLL) circuit. The voltage-controlled oscillator 211 can generate a periodic output signal OUT based on the control voltage Vctrl on the loop filter 212. Frequency divider 215 is coupled between voltage-controlled oscillator 211 and phase frequency detector 214. Frequency divider 215 can perform a division operation of N on the frequency of output signal OUT and thereby generate feedback clock signal DIV.
[0013] Phase frequency detector 214 is coupled to voltage-controlled oscillator 211 and is used to receive a reference clock signal REF or REF' and a feedback clock signal DIV. It generates signals UP and DN by detecting the frequency and phase differences between the reference clock signal REF or REF' and the feedback clock signal DIV. Signals UP and DN indicate whether the frequency of the detected reference clock signal (REF or REF') is leading or lagging behind the feedback clock signal DIV. Phase frequency detector 214 also receives a reset signal RST and resets its phase frequency detection operation based on the reset signal RST. The charge pump 213 is coupled to the voltage-controlled oscillator 211 and is used to receive signals UP and DN. Under normal circumstances, for example, when the maximum phase difference detector 221 does not detect the maximum phase difference, the charge pump 213 performs charge pump boost / buck operation according to the signals UP and DN to generate a control voltage Vctrl. By adjusting the voltage value of the control voltage Vctrl, the frequency and phase of the output signal OUT are controlled.
[0014] A loop filter 212 is coupled to a voltage-controlled oscillator 211 and a voltage compensation circuit 222. The input terminal of the loop filter 212 has a control voltage Vctrl. The loop filter 212 includes capacitors C1 and C2 and a resistor R1. Capacitor C2 and resistor R1 are connected in series between the control voltage Vctrl and a reference voltage VS1. Capacitor C1 is coupled between the control voltage Vctrl and a reference voltage VS2. The terminals of capacitor C2 and resistor R1 are mutually coupled and receive a capacitor voltage Vc. In this embodiment, the reference voltages VS1 and VS2 may be the same or different. The loop filter 212 in this embodiment can be a low-pass filter.
[0015] The second circuit 220 includes a maximum phase difference detector 221, a phase compensation circuit 216, and a voltage compensation circuit 222. The maximum phase difference detector 221 receives signals UP, DN, a feedback clock signal DIV, a reference clock signal REF, and a reset signal RST. The maximum phase difference detector 221 can detect whether a maximum phase difference occurs between the feedback clock signal DIV and the reference clock signal REF based on the signals UP, DN, DIV, and REF, and generate a voltage compensation signal Svc and a phase compensation signal Spc accordingly. It should be noted that the reset signal RST, in addition to controlling the reset operation of the phase frequency detector 214 as described above, is also provided to the maximum phase difference detector 221 as a reference clock for the operation timing of the comparator in the maximum phase difference detector 221, which will be explained later with reference to Figure 6.
[0016] In this embodiment, the phase compensation circuit 216 includes a switching circuit 2161 and a phase adjuster 2162. The phase compensation circuit 216 is coupled to the phase frequency detector 214 and the maximum phase difference detector 221, and is also coupled between the reference signal input terminal REFI and the phase frequency detector 214. The reference clock signal REF comes from the reference signal input terminal REFI. The phase compensation circuit 216 can receive the reference clock signal REF and provide the reference clock signal REF or a phase-adjusted reference clock signal REF' to the phase frequency detector 214. Furthermore, the phase compensation circuit 216 is used to adjust the reference clock signal REF; specifically, the phase adjuster 2162 of the phase compensation circuit 216 is used to adjust the phase of the reference clock signal REF to generate the reference clock signal REF'. The switching circuit 2161 receives the phase compensation signal Spc and determines whether to output a reference clock signal REF or REF' to the phase frequency detector 214 based on the phase compensation signal Spc. Specifically, before the maximum phase is detected, the switching circuit 2161 can output the reference clock signal REF to the phase frequency detector 214; when the maximum phase is detected, the switching circuit 2161 can output the reference clock signal REF' to the phase frequency detector 214. That is, when the maximum phase difference detector 221 detects the maximum phase difference, the phase compensation circuit 216 compensates for the phase of the reference clock signal REF to form a phase-adjusted reference clock signal REF', thereby making the phase of the reference clock signal REF' approximately match the phase of the feedback clock signal DIV, thus completing the phase compensation operation.
[0017] Furthermore, when the maximum phase difference is detected, the maximum phase difference detector 221 can generate a corresponding phase compensation signal Spc, so that the phase compensation circuit 216 outputs an adjusted reference clock signal REF' to the phase frequency detector 214. The reference clock signal REF' is generated by offsetting the reference clock signal REF by a phase compensation amount, so that the phase of the reference clock signal REF' and the feedback clock signal DIV can be nearly synchronized. The phase compensation amount is, for example, in the form of signal waveform periods, such as 0.1 signal waveform periods, 0.3 signal waveform periods, or 0.5 signal waveform periods, etc. The phase compensation amount can be recorded in a lookup table, and this lookup table can be set in the phase adjuster 2162 in the form of memory or a temporary register. In this embodiment, the phase adjuster 2162 can delay the phase of the reference clock signal REF to generate the reference clock signal REF'. In other embodiments, the phase adjuster 2162 may also advance the phase of the reference clock signal REF to generate a reference clock signal REF'.
[0018] The voltage compensation circuit 222 receives a voltage compensation signal Svc, a control voltage Vctrl, and a reference clock signal REF. The voltage compensation circuit 222 can generate a target voltage based on the control voltage Vctrl and provide the target voltage to generate a new control voltage Vctrl, thus completing the voltage compensation operation. Furthermore, when the maximum phase difference detector 221 detects a maximum phase difference, it outputs a voltage compensation signal Svc to the voltage compensation circuit 222. The voltage compensation circuit 222 compensates the control voltage Vctrl to the target voltage and provides it to the loop filter 212. At this time, the loop between the charge pump 213 and the loop filter 212 is temporarily disconnected. Specifically, when the maximum phase difference is detected, the voltage compensation circuit 222 can calculate the sampled voltages at multiple sampling time points corresponding to the control voltage Vctrl based on the voltage compensation signal Svc, and calculate the average value of these sampled voltages to generate the target voltage. The voltage compensation circuit 222 can generate the aforementioned multiple sampling time points based on the reference clock signal REF. Then, the voltage compensation circuit 222 can output the obtained target voltage through a voltage buffer to serve as the new control voltage Vctrl and capacitor voltage Vc of the loop filter 212, thereby enhancing the locking action of the output signal OUT. In another embodiment, a normally closed bypass switch (not shown) can be connected in parallel across resistor R1. When the voltage compensation circuit 222 outputs the new control voltage Vctrl, the bypass switch can be briefly turned on, for example, by the maximum phase difference detector 221, making the capacitor voltage Vc more quickly equal to the new control voltage Vctrl. In this architecture, the voltage compensation circuit 222 can achieve voltage compensation operation by outputting either the control voltage Vctrl or the capacitor voltage Vc to the loop filter 212 through a single output terminal.
[0019] In the above description, the generation of the sampling voltage and the calculation of the average value can be implemented using sample and hold (S / H) circuits and voltage average value generation circuits (such as average voltage filters) that are well known to those skilled in the art, without any fixed limitations.
[0020] Please refer to Figure 3 below, which illustrates a schematic diagram of an oscillation signal generation circuit according to another embodiment of the present invention. The oscillation signal generation circuit 300 includes a first circuit 310 and a second circuit 320 coupled to each other. The first circuit 310 includes a voltage-controlled oscillator 311, a loop filter 312, a charge pump 313, a phase-frequency detector 314, and a frequency divider 315. The second circuit 320 includes a phase compensation circuit 316, a maximum phase difference detector 321, and a voltage compensation circuit 322.
[0021] Unlike the oscillation signal generation circuit 200 of the previous embodiment, the phase compensation circuit 316 of this embodiment is coupled between the frequency divider 315 and the phase frequency detector 314. In detail, the phase compensation circuit 316 is used to perform phase adjustment on the feedback clock signal DIV generated by the frequency divider 315, thereby generating an adjusted feedback clock signal DIV'. In this embodiment, the phase compensation circuit 316 can shift the phase of the feedback clock signal DIV by a phase compensation amount, thereby generating the feedback clock signal DIV'. As mentioned above, the phase compensation amount is, for example, in the form of the signal waveform period. Furthermore, when the maximum phase difference detector 321 detects the maximum phase difference, the phase compensation circuit 316 compensates for the phase of the feedback clock signal DIV to form the phase-adjusted feedback clock signal DIV', thereby making the phase of the reference clock signal REF nearly coincide with the phase of the feedback clock signal DIV'. In this embodiment, the phase compensation circuit 316 can advance the phase of the feedback clock signal DIV to generate the feedback clock signal DIV'. In other embodiments, the phase compensation circuit 316 can also delay the phase of the feedback clock signal DIV to generate the feedback clock signal DIV'.
[0022] Furthermore, the phase compensation circuit 316 can determine the amount of phase compensation for the feedback clock signal DIV by interpolation elements.
[0023] Incidentally, in the oscillation signal generating circuit 300 of this embodiment and the oscillation signal generating circuit 200 of the aforementioned embodiment, the voltage-controlled oscillator 311, 211, loop filter 312, 212, charge pump 313, 213, phase frequency detector 314, 214, frequency divider 315, 215 can all be implemented using relevant circuit architectures well known to those skilled in the art, without any specific limitations.
[0024] Furthermore, the maximum phase difference detector 321 and voltage compensation circuit 322 in this embodiment can have the same circuit architecture and operation method as the maximum phase difference detector 221 and voltage compensation circuit 222 in the embodiment of FIG2, which will not be described in detail here.
[0025] Please refer to Figures 4A and 4B to 4D below. Figure 4A shows an operation flowchart of the oscillation signal generation circuit according to an embodiment of the present invention, and Figures 4B to 4D show waveform diagrams illustrating the operation flow of the oscillation signal generation circuit according to an embodiment of the present invention. Figure 4B is a graph showing the relationship between the frequency and time of the output signal; Figure 4C is a graph showing the relationship between the phase difference and time between the corresponding reference clock signal REF and the feedback clock signal DIV; and Figure 4D is a graph showing the relationship between the capacitor voltage Vc and time.
[0026] In Figure 4A, in step S410, the maximum phase difference detector in the oscillation signal generation circuit can perform the detection action of the maximum phase difference, and when the maximum phase difference state is detected, proceed to step S420. In Figure 4B, curve 412 is the frequency change curve of the output signal of the oscillation signal generation circuit without the application of the embodiment of the present invention, while curve 411 is the frequency change curve of the output signal of the oscillation signal generation circuit of the embodiment of the present invention. Among them, between time point 0 and time point tx, in curves 411 and 412, the frequency of the output signal can rise from the starting frequency FST to the locking frequency FLK, and enter the locking interval MG.
[0027] In Figure 4C, curve 422 represents the phase difference change curve between the corresponding reference clock signal REF and the feedback clock signal DIV in the oscillation signal generation circuit without the application of this embodiment, while curve 421 represents the phase difference change curve between the corresponding feedback clock signal DIV and the reference clock signal REF in the oscillation signal generation circuit of this embodiment. Specifically, between time point 0 and time point tx, the phase difference between the corresponding reference clock signal REF and the feedback clock signal DIV in curves 421 and 422 can both increase from an initial phase difference of 0 to a maximum phase difference PM.
[0028] In Figure 4D, curve 432 represents the change curve of capacitor voltage Vc in the oscillation signal generation circuit without the application of this embodiment, while curve 431 represents the change curve of capacitor voltage Vc in the oscillation signal generation circuit of this embodiment. Specifically, between time point 0 and time point tx, in curves 431 and 432, the capacitor voltage Vc can rise from the initial voltage VST to a voltage value lower than the target voltage VLK.
[0029] Next, in step S420, the oscillation signal generation circuit removes the phase difference between the reference clock signal and the feedback clock signal. Step S420 can be executed in conjunction with step S430, where the phase compensation circuit in the oscillation signal generation circuit removes the phase difference between the reference clock signal and the feedback clock signal by adjusting the phase of either the reference clock signal or the feedback clock signal. Furthermore, in step S440, the oscillation signal generation circuit sets the control voltage to equal the target voltage. In this embodiment, "removing the phase difference" does not necessarily mean "completely removing the phase difference," but can also mean "removing the phase difference to an appropriate error range"; for example, it could mean "removing the phase difference to within 10% of the original phase difference."
[0030] Corresponding to Figures 4B to 4D, in Figure 4C, on curve 421, the phase difference between the reference clock signal and the feedback clock signal is removed at time point tx. That is, at time point tx, the phase difference between the reference clock signal and the feedback clock signal decreases, for example, to zero. In Figure 4D, at time point tx, on curve 431, the capacitor voltage Vc is directly set to equal the target voltage VLK. That is, at time point tx, the capacitor voltage Vc is increased to the target voltage VLK. Correspondingly, in Figure 4B, at time point tx, on curve 411, the frequency of the output signal can be quickly locked within the locking interval MG corresponding to the locking frequency FLK.
[0031] For details regarding the operation of the maximum phase difference detector in this embodiment of the invention, please refer to Figures 5A to 5C, which illustrate the schematic diagrams of the maximum phase difference detection operation in this embodiment. Figures 5A to 5C respectively illustrate multiple steps of the maximum phase difference detection operation. In Figure 5A, curve 510 represents the phase difference variation curve. In the first step, the maximum phase difference detector can set multiple sampling points on the phase curve 510 and generate phase differences for each of the multiple sampling points S1 to S6.
[0032] Next, in the second step, as shown in Figure 5B, the maximum phase difference detector can distinguish multiple sampling points S1~S6 into multiple odd sampling points S1, S3, S5 and multiple even sampling points S2, S4, S6.
[0033] In the third step, as shown in Figure 5C, the maximum phase difference detector can perform time-voltage conversion on the phase difference of multiple sampling points S1~S6, and obtain voltages TV1~TV6 corresponding to multiple sampling points S1~S6, distributed on curve 520, where voltages TV1, TV3, and TV5 are odd voltages, and voltages TV2, TV4, and TV6 are even voltages.
[0034] Furthermore, the maximum phase difference detector can calculate the trend of voltage change from TV1 to V6, i.e., the polarity of the slope, by comparing voltages TV1, TV3, and TV5 with voltages TV2, TV4, and TV6, respectively. In this embodiment, the slope is positive during the time interval tp1 between voltages TV1 and TV2; positive during the time interval tp2 between voltages TV3 and TV4; and negative during the time interval tp3 between voltages TV5 and TV6.
[0035] By observing the change in slope from positive to negative, the maximum phase difference detector can detect the occurrence of the maximum phase difference between time intervals tp2 and tp3. In other words, when the magnitude change trends of the first two voltages TV1 to TV6 are opposite to the magnitude change trends of the latter two voltages TV1 to TV6, the maximum phase difference detector determines that the maximum phase difference has been detected.
[0036] It is worth noting that the implementation details of the maximum phase difference detector can be simultaneously referred to the schematic diagram of the implementation method of the maximum phase difference detector of the present invention shown in Figure 6. The maximum phase difference detector 600 includes a digital logic circuit 610, a time-domain voltage conversion circuit 620, and a comparator 630. The digital logic circuit 610 can sequentially record the phase difference of at least four time points based on the reference clock signal REF and the feedback clock signal DIV. In this embodiment, for example, the phase difference of six time points is recorded, generating multiple sampling points S1 to S6 with phase differences. The digital logic circuit 610 then distinguishes the sampling points S1 to S6 as multiple odd sampling points S1, S3, S5 and multiple even sampling points S2, S4, S6. The time-domain voltage conversion circuit 620 can be used to obtain the voltages TV1, TV3, and TV5 corresponding to each odd-numbered sampling point S1, S3, and S5, and the voltages TV2, TV4, and TV6 corresponding to each even-numbered sampling point S2, S4, and S6.
[0037] Comparator 630 can be used to sequentially compare voltages TV1 and TV2; compare voltages TV3 and TV4; and then compare voltages TV5 and TV6 to generate multiple change slopes. Furthermore, comparator 630 can receive a reset signal RST and can use the reset signal RST to control the timing of the above comparison operations; for example, when the phase frequency detector (PFD) 214 resets its phase frequency detection operation according to the reset signal RST to obtain a new set of phase differences between the reference clock signal REF and the feedback clock signal DIV, comparator 630 also compares the voltages converted from the above phase differences according to the reset signal RST. In this embodiment, taking voltages TV1 and TV2 as an example, when voltage TV1 is not greater than voltage TV2, the corresponding change slope is positive; when voltage TV1 is greater than voltage TV2, the corresponding change slope is negative. The maximum phase difference detector can obtain the time interval in which the maximum phase difference is generated by determining the state of the change slope changing from positive to negative polarity.
[0038] In the above description, the circuit architectures of the time-domain voltage conversion circuit 620 and the comparator 630 in the maximum phase difference detector 600 are well known to those skilled in the art and will not be described in detail here. The digital logic circuit 610 can be obtained using digital circuit design methods well known to those skilled in the art (such as hardware description languages or gate-level design), without any particular limitations. Furthermore, the maximum phase difference detector 600 can be applied to the maximum phase difference detector 221 in the oscillation signal generation circuit 200 of FIG. 2 and the maximum phase difference detector 321 in the oscillation signal generation circuit 300 of FIG. 3.
[0039] Please refer to Figure 7, which illustrates a schematic diagram of an embodiment of the charge pump in the oscillation signal generation circuit of the present invention. The charge pump 700 includes current sources IS1 and IS2, and switches SW1 and SW2. Current sources IS1, SW1, and SW2 are sequentially coupled between reference voltage terminals VD1 and VS3. Switches SW1 and SW2 are controlled by signals UP and DN, respectively. The mutual coupling terminals of switches SW1 and SW2 provide a control voltage Vctrl.
[0040] Switch SW1 is turned on or off according to the voltage level of signal UP, and switch SW2 is turned on or off according to the voltage level of signal DN. When switch SW1 is on and switch SW2 is off, the control voltage Vctrl can be pulled high; when switch SW2 is on and switch SW1 is off, the control voltage Vctrl can be pulled low. The charge pump 700 can be applied to the charge pump 213 in the oscillation signal generation circuit 200 of Figure 2 and the charge pump 313 in the oscillation signal generation circuit 300 of Figure 3. Referring to Figures 7, 2, and 3, when the maximum phase difference detector 221 / 321 detects the maximum phase difference, the voltages of signals UP and DN received by the charge pumps 213 / 313 / 700 are both the first voltage, which can be a 0-volt voltage or a low voltage, and switches SW1 and SW2 are simultaneously turned off. After the phase compensation operation and voltage compensation operation are completed, signals UP and DN return to pulse signals to dynamically correct the control voltage Vctrl.
[0041] Please refer to Figure 8 below, which illustrates a schematic diagram of an oscillation signal generation circuit according to another embodiment of the present invention. The oscillation signal generation circuit 800 includes a first circuit 810 and a second circuit 820 coupled to each other. The first circuit 810 includes a voltage-controlled oscillator 811, a loop filter 812, a charge pump 813, a phase-frequency detector 814, and a frequency divider 815. The second circuit 820 includes a maximum phase difference detector 821 and a voltage compensation circuit 822.
[0042] Unlike the embodiment in Figure 2, the oscillation signal generation circuit 800 in Figure 8 does not include a phase compensation circuit, and the first circuit 810 of the oscillation signal generation circuit 800 further includes a switching circuit 8161 and a switching circuit 8162. The phase frequency detector 814 is coupled to the voltage-controlled oscillator 811, and the frequency divider 815 is coupled between the voltage-controlled oscillator 811 and the phase frequency detector 814. The switching circuit 8162 is coupled between the frequency divider 815, the phase frequency detector 814, and the maximum phase difference detector 821. That is, the switching circuit 8162 is coupled in the path from the frequency divider 815 to the phase frequency detector 814. The switching circuit 8161 is coupled to the phase frequency detector 814 and the maximum phase difference detector 821; that is, the switching circuit 8161 is coupled in the path where the phase frequency detector 814 receives the reference clock signal REF provided by the reference signal input terminal REFI. Switching circuit 8161 outputs a DC signal DS to one input of phase frequency detector 814 when maximum phase difference detector 821 detects maximum phase difference. Switching circuit 8162 also outputs a DC signal DS to the other input of phase frequency detector 814 when maximum phase difference detector 821 detects maximum phase difference. The DC signal DS can be 0 volts or a low voltage, so that the voltage of signals UP and DN output by phase frequency detector 814 is 0 volts or a low voltage, thereby making the output of charge pump 813 high impedance, and disconnecting the loop between charge pump 813 and loop filter 812.
[0043] It should be noted that the oscillation signal generation circuit 800 in Figure 8 only performs frequency locking and not phase locking. Therefore, the oscillation signal generation circuit 800 only performs voltage compensation and not phase compensation. The charge pump 700 in Figure 7 can also be applied to the charge pump 813 in the oscillation signal generation circuit 800 in Figure 8, but the operation is not entirely the same as when applied to the charge pumps 213 and 313 in the embodiments of Figures 2 and 3. Furthermore, referring to both Figures 7 and 8, under normal circumstances, for example when the maximum phase difference detector 821 does not detect the maximum phase difference, the voltage-controlled oscillator 811 changes the frequency of the output signal, and the charge pump 813 operates. At this time, the signals UP and DN received by the charge pump 813 are pulse signals, and the loop of the first circuit 810 is closed. When the maximum phase difference detector 821 detects the maximum phase difference, the voltages of the signals UP and DN received by the charge pump 813 are both the first voltage. This first voltage can be a voltage of 0 volts or a low voltage, causing switches SW1 and SW2 to be turned off, and the loop of the first circuit 810 to be disconnected, thus achieving frequency locking operation. At this time, the control voltage Vctrl is provided by a fixed voltage by the voltage compensation circuit 822, that is, the control voltage Vctrl is fixed.
[0044] Please refer to Figure 9, which illustrates a flowchart of an oscillation signal generation method according to an embodiment of the present invention. In step S910, an output signal can be generated based on a reference clock signal and a feedback clock signal. In step S920, a voltage-controlled oscillator can control the frequency of the output signal according to a control voltage and output an output signal. In step S930, the maximum phase difference is detected. In step S940, when the maximum phase difference is detected, the control voltage is compensated to the target voltage.
[0045] The implementation details of the above steps have been described in detail in the aforementioned embodiments and implementation methods, and will not be repeated here.
[0046] In summary, the oscillation signal generation circuit of the present invention detects the occurrence of the maximum phase difference through a maximum phase difference detector, and sets the control voltage of the oscillator to the target voltage when the maximum phase difference occurs, so that the output signal generated by the oscillation signal generation circuit can quickly lock and improve its working performance.
[0047] 100, 200, 300, 800: Oscillation signal generation circuit 110, 210, 310, 810: First circuit 111, 211, 311, 811: Voltage-controlled oscillators 120, 220, 320, 820: Second circuit 121, 221, 321, 600, 821: Maximum phase difference detector 122, 222, 322, 822: Voltage compensation circuits 212, 312, 812: Loop filters 213, 313, 813: Charge pump (CP) 214, 314, 814: Phase Frequency Detector (PFD) 215, 315, 815: Frequency dividers 216, 316: Phase compensation circuit 2161, 8161, 8162: Switching circuits 2162: Phase Adjuster 411, 412, 421, 422, 431, 432, 510, 520: Curves 610: Digital Logic Circuits 620: Time-Domain Voltage Conversion Circuit 630: Comparator 700: Charge Pump C1, C2: Capacitors DIV, DIV': Feedback clock signal DS: DC signal FLK: Locked Frequency FST: Start Frequency IS1, IS2: Current source MG: Locked Zone N: divisor OUT: Output signal PM: Maximum phase difference R1: Resistor REF, REF': Reference clock signal REFI: Reference signal input terminal RST: Reset signal S1~S6: Sampling points S410~S440, S910~S940: Steps Spc: Phase Compensation Signal Svc: Voltage Compensation Signal SW1, SW2: Switches tp1~tp3: Time interval TV1~TV6: Voltage tx: time point UP, DN: Signal Vc: Capacitor voltage Vctrl: Control voltage VLK: Target Voltage VS1~VS3, VD1: Reference voltage VST: Starting voltage
Claims
1. An oscillation signal generating circuit, comprising: A first circuit for generating an output signal based on a reference clock signal and a feedback clock signal, the first circuit comprising: a voltage-controlled oscillator for outputting the output signal, the frequency of which is controlled by a control voltage; and a second circuit coupled to the first circuit, the second circuit comprising: a voltage compensation circuit; a maximum phase difference detector coupled to the voltage compensation circuit; and a phase compensation circuit for adjusting one of the reference clock signal and the feedback clock signal, wherein when the maximum phase difference detector detects a maximum phase difference, the maximum phase difference detector controls the voltage compensation circuit to compensate the control voltage to a target voltage.
2. The oscillation signal generating circuit as claimed in claim 1, wherein when the maximum phase difference detector detects the maximum phase difference, it determines that there is a maximum phase difference between the reference clock signal and the feedback clock signal.
3. The oscillation signal generating circuit as claimed in claim 1, wherein the first circuit further includes a phase frequency detector and a frequency divider, wherein the phase frequency detector is coupled to the voltage-controlled oscillator and is used to receive the reference clock signal and the feedback clock signal, the frequency divider is coupled between the voltage-controlled oscillator and the phase frequency detector and is used to output the feedback clock signal, and the phase compensation circuit is coupled to the phase frequency detector and the maximum phase difference detector, wherein when the maximum phase difference detector detects the maximum phase difference, the maximum phase difference detector controls the phase compensation circuit to make the phase of the reference clock signal and the phase of the feedback clock signal approximately coincide.
4. The oscillation signal generating circuit as described in claim 3, wherein the phase compensation circuit is coupled between a reference signal input and the phase frequency detector, the reference clock signal originating from the reference signal input, and when the maximum phase difference detector detects the maximum phase difference, the phase compensation circuit compensates the phase of the reference clock signal so that the phase of the reference clock signal approaches the phase of the feedback clock signal.
5. The oscillation signal generating circuit as described in claim 4, wherein the phase compensation circuit determines the phase compensation amount of the reference clock signal by means of a lookup table.
6. The oscillation signal generating circuit as claimed in claim 3, wherein the phase compensation circuit is coupled between the frequency divider and the phase frequency detector, and when the maximum phase difference detector detects the maximum phase difference, the phase compensation circuit compensates the phase of the feedback clock signal so that the phase of the reference clock signal is close to the phase of the feedback clock signal.
7. The oscillation signal generating circuit as claimed in claim 6, wherein the phase compensation circuit determines the phase compensation amount of the feedback clock signal by means of an interpolation element.
8. An oscillation signal generating circuit, comprising: A first circuit for generating an output signal based on a reference clock signal and a feedback clock signal, the first circuit comprising: a voltage-controlled oscillator for outputting the output signal, the frequency of which is controlled by a control voltage; and a second circuit coupled to the first circuit, the second circuit comprising: a voltage compensation circuit; and a maximum phase difference detector coupled to the voltage compensation circuit; wherein when the maximum phase difference detector detects a maximum phase difference and determines that the frequency of the output signal has initially reached a target locking frequency, the maximum phase difference detector controls the voltage compensation circuit to compensate the control voltage to a target voltage.
9. An oscillation signal generating circuit, comprising: A first circuit for generating an output signal based on a reference clock signal and a feedback clock signal, the first circuit comprising: a voltage-controlled oscillator for outputting the output signal, the frequency of which is controlled by a control voltage; a charge pump coupled to the voltage-controlled oscillator for receiving a first signal and a second signal; and a second circuit coupled to the first circuit, the second circuit comprising: a voltage compensation circuit; and a maximum phase difference detector coupled to the voltage compensation circuit; wherein when the maximum phase difference detector detects a maximum phase difference, the maximum phase difference detector controls the voltage compensation circuit to compensate the control voltage to a target voltage, and the voltages of the first signal and the second signal received by the charge pump are both the first voltage.
10. An oscillation signal generating circuit, comprising: A first circuit for generating an output signal based on a reference clock signal and a feedback clock signal, the first circuit comprising: a voltage-controlled oscillator (VCO) for outputting the output signal, the frequency of which is controlled by a control voltage; a phase frequency detector coupled to the VCO; a frequency divider coupled between the VCO and the phase frequency detector; a first switching circuit; a second switching circuit; and a second circuit coupled to the first circuit, the second circuit comprising: A voltage compensation circuit; and a maximum phase difference detector coupled to the voltage compensation circuit, wherein a first switching circuit is coupled to the frequency divider, the phase frequency detector and the maximum phase difference detector, and a second switching circuit is coupled to the phase frequency detector and the maximum phase difference detector; wherein when the maximum phase difference detector detects a maximum phase difference, the maximum phase difference detector controls the voltage compensation circuit to compensate the control voltage to a target voltage, and when the maximum phase difference detector detects the maximum phase difference, the maximum phase difference detector controls the first switching circuit and the second switching circuit to output DC signals to the phase frequency detector respectively.
11. The oscillation signal generating circuit according to any one of claims 1, 8, 9, and 10, wherein the maximum phase difference detector includes a digital logic circuit, a time-domain voltage conversion circuit, and a comparator, wherein the digital logic circuit is used to sequentially record the phase differences at at least four time points as a plurality of phase differences, the time-domain voltage conversion circuit is used to convert the phase differences into a plurality of voltages respectively, and the comparator is used to compare the magnitude relationship of the voltages, and when the magnitude change trend of the first two of the voltages is opposite to the magnitude change trend of the latter two of the voltages, it is determined that the maximum phase difference detector has detected the maximum phase difference.
12. The oscillation signal generating circuit as claimed in any one of claims 1, 8, 9, and 10, wherein the first circuit further includes a loop filter coupled to the voltage-controlled oscillator and the voltage compensation circuit, and an input terminal of the loop filter has the control voltage, the loop filter includes a resistor and a capacitor, a first terminal of the resistor is coupled to the input terminal of the loop filter, a second terminal of the resistor is coupled to a first terminal of the capacitor, a second terminal of the capacitor is coupled to a reference voltage terminal, the first terminal of the capacitor has a capacitor voltage, and when the maximum phase difference detector detects the maximum phase difference, the maximum phase difference detector controls the voltage compensation circuit to compensate the capacitor voltage to the target voltage.
13. A method for generating an oscillation signal, comprising: An output signal is generated based on a reference clock signal and a feedback clock signal; A voltage-controlled oscillator is configured to control the frequency of the output signal according to a control voltage and output the output signal; a maximum phase difference is detected; and when the maximum phase difference is detected, the control voltage is compensated to a target voltage, and one of the reference clock signal and the feedback clock signal is adjusted.
14. The method for generating an oscillation signal as described in claim 13 further includes: When the maximum phase difference is detected, a lookup table is used to determine the phase compensation amount of the reference clock signal, and the phase of the reference clock signal is compensated so that the phase of the reference clock signal is close to the phase of the feedback clock signal.
15. The method for generating an oscillation signal as described in claim 13 further includes: When the maximum phase difference is detected, an interpolation element is used to determine the phase compensation amount of the feedback clock signal and compensate the phase of the feedback clock signal so that the phase of the reference clock signal is close to the phase of the feedback clock signal.
16. A method for generating an oscillation signal, comprising: An output signal is generated based on a reference clock signal and a feedback clock signal; A voltage-controlled oscillator is configured to control the frequency of an output signal according to a control voltage and output the output signal; a maximum phase difference is detected; and when the maximum phase difference is detected, it is determined that the frequency of the output signal has initially reached a target lock frequency, and the control voltage is compensated to a target voltage.
17. A method for generating an oscillation signal, comprising: An output signal is generated based on a reference clock signal and a feedback clock signal; A voltage-controlled oscillator controls the frequency of the output signal according to a control voltage and outputs the output signal; a charge pump is provided to receive a first signal and a second signal; a maximum phase difference is detected; and when the maximum phase difference is detected, the control voltage is compensated to a target voltage, and the voltages of the first signal and the second signal are both the first voltage.
18. The method for generating an oscillation signal as described in any one of claims 13, 16, and 17 further comprises: The phase difference at four time points is recorded sequentially as multiple phase differences; these phase differences are converted into multiple voltages respectively; the magnitude relationship of these voltages is compared; and when the magnitude change trend of the first two of these voltages is opposite to the magnitude change trend of the latter two of these voltages, it is determined that the maximum phase difference has been detected.
19. The method for generating an oscillation signal as described in any one of claims 13, 16, and 17 further comprises: Provide a primary filter coupled to the voltage-controlled oscillator; And when the maximum phase difference is detected, the voltage of a capacitor on a first terminal of a capacitor coupled to a resistor in the loop filter is compensated to the target voltage.