A clock frequency division calibration circuit
Through clock division and calibration circuit technology, the problem of misalignment between the auxiliary ADC and the main ADC clock is solved, diversified clock division and accurate sampling alignment are achieved, and the output accuracy of the ADC is improved.
Patent Information
- Application Number
- CN201911179600.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-27
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2039-11-27
AI Technical Summary
In a pipeline analog-to-digital converter with calibration structure, the quantized sampling clock of the auxiliary ADC is not aligned with the sampling clock of the main ADC, resulting in a decrease in output accuracy.
A clock frequency division calibration circuit is designed, through the clock frequency division circuit and the frequency division clock calibration circuit, the clock frequency division is realized using the buffer and the D flip flop, and the clock is calibrated through the delay circuit and the logic gate circuit to make the sampling The rising and falling edges of the clock are aligned with the divider clock.
Multiple frequency-dividing clock outputs with different duty cycles are realized, which avoids inconsistency in data sampling of clocks of different modules, improves the accuracy of the overall circuit, and simplifies the circuit structure.
Smart Images

Figure CN111010153B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to an integrated circuit, and in particular to a clock frequency division calibration circuit. Background Art
[0002] The clocks of different modules are usually required to meet specific timing requirements inside the integrated circuit. In the ADC circuit, high speed and high precision have always been important design goals. The pipelined analog-to-digital converter (Pipelined ADC) is one of the more mainstream ADC products. In order to achieve higher precision, a specific algorithm is often used to calibrate the circuit. The pipelined analog-to-digital converter (Pipelined ADC) with a calibration structure includes a main ADC, an auxiliary ADC and other functional modules. In order to achieve the final calibration function, the quantization sampling clock of the auxiliary ADC is required to be a certain frequency division frequency of the multiple duty cycles of the sampling clock of the main ADC, and the sampling end time controlled by the clock rising edge in the auxiliary ADC must be consistent with the phase end time of the main ADC. If not aligned, the data sampled by the main ADC will be inconsistent with the data sampled by the auxiliary ADC, resulting in a decrease in the final output accuracy. The traditional clock calibration method requires estimating the error of the clock mismatch, compensating the output after sampling the required calibration clock by various means, or compensating the clock by various methods. Complex multiplier modules, subtractor modules, etc. may be used, and the circuit is relatively complex. Summary of the invention
[0003] Purpose of the invention: The purpose of this application is to provide a clock frequency division calibration circuit to solve the problem of misalignment and phase inconsistency between the frequency division signal and the rising and falling edges of the sampling clock in the prior art.
[0004] Technical solution: The present application provides a clock frequency division calibration circuit, including a clock frequency division circuit and a frequency division clock calibration circuit;
[0005] The clock frequency division circuit is used for outputting a clock frequency division signal with a selectable duty cycle based on an input sampling clock signal as a clock frequency division signal to be calibrated;
[0006] The divided-frequency clock calibration circuit is used to output a calibrated divided-frequency clock signal based on the input divided-frequency clock signal to be calibrated, and the rising edge and falling edge of the calibrated divided-frequency clock signal are aligned with the rising edge and falling edge of the sampling signal.
[0007] Furthermore, the clock frequency division circuit includes a buffer and M frequency division D flip-flops, which are respectively a first frequency division D flip-flop, a second frequency division D flip-flop...the i-th frequency division D flip-flop...the M-th frequency division D flip-flop; wherein M is a positive integer, that is, M∈N*, M>2, and M is an even number; i∈N*, i <M;
[0008] The input terminal D of the first frequency-dividing D flip-flop is connected to a high level, and the positive output terminal Q of the i-th frequency-dividing D flip-flop is connected to the input terminal D of the i+1-th frequency-dividing D flip-flop;
[0009] The inverting output terminal of the Mth frequency-divided D flip-flop connected to the input end of the buffer; the clearing port of the i-th frequency-divided D flip-flop is connected to the output end of the buffer;
[0010] The clock input ports clk of the M frequency-divided D flip-flops are all connected to the sampling clock signal.
[0011] Furthermore, the buffer may adopt a circuit structure in which one or more inverters are connected in series.
[0012] Further, the frequency-divided clock calibration circuit includes a first delay circuit, an inverter, a calibration D flip-flop, a NOR gate, a second delay circuit and an OR gate;
[0013] The sampling clock signal is connected to the input end of the first delay circuit and the inverter respectively, and is used to output the sampling clock delay signal and the sampling clock inversion signal; the clock input port of the calibration D flip-flop is connected to the sampling clock inversion signal, and its input end D is connected to the reverse output of the previous stage of the frequency-divided D flip-flop of the clock frequency-divided signal to be calibrated, and its reset end is connected to a high level;
[0014] The positive output terminal of the calibration D flip-flop and the output terminal of the first delay circuit are connected to the NOR gate and serve as the input of the NOR gate together;
[0015] The input end of the second delay circuit is connected to the signal to be calibrated, and its output end and the output end of the NOR gate are connected to the OR gate, and together serve as the input of the OR gate; the output of the OR gate is the calibrated clock frequency division signal.
[0016] Furthermore, the first delay circuit may adopt a circuit structure in which one or more inverters are connected in series.
[0017] Furthermore, the first delay circuit adopts a delay circuit structure with adjustable delay size, and the delay size of the delay circuit can be adjusted by an external digital signal.
[0018] Beneficial effects: Compared with the prior art, the clock frequency division calibration circuit provided by the present application realizes the frequency division of the sampling clock, and has multiple frequency division clock outputs with different duty cycles, which can be selected in a variety of ways; at the same time, the frequency division clocks can be aligned with the rising edge of the sampling clock, and the end time of the clock high level is also aligned with the sampling clock clk, avoiding the inconsistency of the data sampled by each clock applied in different modules, and improving the accuracy of the overall circuit. In addition, the present invention only needs a few simple delay modules and logic gate circuits to realize the calibration of clocks of different frequencies, and the circuit is simple and easy to implement. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of the clock frequency division circuit of the present invention;
[0020] Figure 2 It is a schematic diagram of the frequency division clock calibration circuit of the present invention;
[0021] Figure 3 It is the clock signal output comparison curve of the present invention. DETAILED DESCRIPTION
[0022] The present application is further described below with reference to the accompanying drawings and embodiments:
[0023] The present application provides a clock frequency division calibration circuit, including a clock frequency division circuit and a frequency division clock calibration circuit; the clock frequency division circuit is used to output a clock frequency division signal with a selectable duty cycle based on an input sampling clock signal as a clock frequency division signal to be calibrated; the frequency division clock calibration circuit is used to output a calibrated clock frequency division signal based on the input clock frequency division signal to be calibrated, and the rising edge and falling edge of the calibrated clock frequency division signal are aligned with the rising edge and falling edge of the sampling signal. The number of D flip-flops can be selected according to the ratio of the frequency division clock frequency to the sampling clock frequency to be implemented. In this embodiment, the eight-frequency division clock of the sampling clock is selected to be implemented, and the ratio of the sampling clock frequency fclk to the frequency division clock frequency f in this embodiment is 8.
[0024] like Figure 1 As shown, the clock frequency division circuit includes 1 buffer and 8 frequency division D flip-flops, namely the first frequency division D flip-flop, the second frequency division D flip-flop...the i-th frequency division D flip-flop...the eighth frequency division D flip-flop; wherein i is a positive integer, i∈N*, i<8. Each D flip-flop includes an input port D, a trigger clock port, a clear port CLR, a forward output port Q and a reverse output port The state of the positive output port Q after the rising edge of the trigger clock arrives is the state of the current input D, and when the clear port CLR is low, the positive output port Q is low. In the clock division circuit, the trigger clock ports of all D flip-flops are controlled by the sampling clock clk.
[0025] The input terminal D of the first frequency-dividing D flip-flop A1 is connected to the high level vdd, the positive output d1 of A1 is connected to the input port D of the second frequency-dividing D flip-flop A2, the positive output d2 of A2 is connected to the input port D of the third frequency-dividing D flip-flop A3, the positive output d3 of A3 is connected to the input port D of the fourth frequency-dividing D flip-flop A4, the positive output d4 of A4 is connected to the input port D of the fifth frequency-dividing D flip-flop A5, the positive output d5 of A5 is connected to the input port D of the sixth frequency-dividing D flip-flop A6, the positive output d6 of A6 is connected to the input port D of the seventh frequency-dividing D flip-flop A7, and the positive output d7 of A7 is connected to the input port D of the eighth frequency-dividing D flip-flop A8;
[0026] The inverting output port of the eighth frequency-dividing D flip-flop A8 The output d8b of the output is passed through a buffer and then outputs a signal rn. The output end of the buffer is connected to the clear port CLR of all the frequency-dividing D flip-flops in the frequency-dividing clock circuit, and the output signal rn is used as the input of the clear port CLK. The positive outputs Q of the eight D flip-flops are d1, d2, d3, d4...d7, d8 respectively, and the negative outputs Q of the eight D flip-flops are - They are d1b, d2b, d3b, d4b...d7b, d8b respectively.
[0027] In another embodiment of the present application, the buffer may adopt a circuit structure in which a plurality of inverters are connected in series.
[0028] like Figure 2 As shown, in this embodiment, the frequency-divided clock calibration circuit includes a first delay circuit, an inverter, a calibration D flip-flop, a NOR gate, a second delay circuit and an OR gate.
[0029] The sampling clock signal clk is connected to the input end of the first delay circuit and the inverter respectively, and is used to output the sampling clock delay signal clk_delay and the sampling clock inversion signal clkb; the clock input port of the calibration D flip-flop B1 is connected to the sampling clock inversion signal clkb, and its input end D is connected to the reverse output of the previous stage of the frequency-divided D flip-flop of the clock frequency-divided signal to be calibrated, and its clear end is connected to the high level vdd. In this embodiment, the positive output signal d4 of the fourth frequency-divided D flip-flop is selected as the clock frequency-divided signal to be calibrated, and the input end D of the calibration D flip-flop B1 is connected to the reverse output signal d3b of the third frequency-divided D flip-flop.
[0030] The output signal dni of the positive output terminal of the calibration D flip-flop B1 and the signal clk_delay outputted from the output terminal of the first delay circuit are connected to the NOR gate and serve as the input of the NOR gate together to obtain the output signal clk_delay_out of the NOR gate;
[0031] The input of the second delay circuit is connected to the signal to be calibrated d4, and the output signal d4_delay of the output and the output signal clk_delay_out of the NOR gate are connected to the OR gate, and serve as the input of the OR gate together; the output of the OR gate is the calibrated clock frequency division signal clk_d4. At this time, the output clk_d4 is aligned with the rising edge of the sampling clock clk, and the frequency is f clk / 8, a clock with a duty cycle of 50%.
[0032] In other embodiments of the present application, the required duty cycle can be determined according to circuit requirements, and d1, d2, d3...d7 or d1b, d2b, d3b...d7b can be selected to be output to the delay circuit and then used as the input of the OR gate with the delay clk_delay_out of the sampling clock to output the divided clocks clk_d1, clk_d2, clk_d3, clk_d4 and clk_d1b, clk_d2b, clk_d3b, clk_d4b, with duty cycles of 12.5%, 25%, 37.5%, 50%...87.5% respectively.
[0033] like Figure 3 As shown, the output curves of the sampling clocks clk, d4 and clk_d4 of this embodiment are compared. D4 is a clock divided by 8 of clk, and its duty cycle is 50%. Clk_d4 is a clock divided by 8 of clk, and its duty cycle is about 50%. The sampling end time of the module controlled by the rising edge of clk_d4 is consistent with the phase end time of other modules controlled by the rising edge of the sampling clock clk, and there is only a delay of several hundred picoseconds.
[0034] In an embodiment of the present application, the first delay circuit may adopt a circuit structure in which one or more inverters are connected in series, or may adopt a delay circuit structure with adjustable delay size, and the delay size of the delay circuit may be controlled by an external digital signal.
[0035] The above specific embodiments should be understood as being only used to illustrate the present invention rather than to limit the protection scope of the present invention. After reading the contents recorded in the present invention, technicians can make various changes or parameter modifications to the present invention. These equivalent changes and modifications also fall within the scope defined by the claims of the present invention.
Claims
1. A clock frequency division calibration circuit, characterized in that: It includes a clock frequency division circuit and a frequency division clock calibration circuit; The clock frequency division circuit is used to output a clock frequency division signal with a selectable duty cycle based on the input sampling clock signal as the clock frequency division signal to be calibrated; The divided-frequency clock calibration circuit is used to output a calibrated divided-frequency clock signal based on the input divided-frequency clock signal to be calibrated, wherein the rising edge and the falling edge of the calibrated divided-frequency clock signal are aligned with the rising edge and the falling edge of the sampling signal; The frequency-divided clock calibration circuit comprises a first delay circuit, an inverter, a calibration D flip-flop, a NOR gate, a second delay circuit and an OR gate; The sampling clock signal is connected to the input end of the first delay circuit and the inverter respectively, and is used to output the sampling clock delay signal and the sampling clock inversion signal; the clock input port of the calibration D flip-flop is connected to the sampling clock inversion signal, its input end D is connected to the reverse output of the previous stage of the frequency-divided D flip-flop of the clock frequency-divided signal to be calibrated, and its reset end is connected to a high level; The positive output terminal of the calibration D flip-flop and the output terminal of the first delay circuit are connected to the NOR gate and serve as inputs of the NOR gate together; The input end of the second delay circuit is connected to the signal to be calibrated, and its output end and the output end of the NOR gate are connected to the OR gate, and together serve as the input of the OR gate; the output of the OR gate is the calibrated clock division signal.
2. The clock frequency division calibration circuit according to claim 1, characterized in that: The clock frequency division circuit includes a buffer and M frequency division D flip-flops, which are respectively a first frequency division D flip-flop, a second frequency division D flip-flop...the i-th frequency division D flip-flop...the M-th frequency division D flip-flop; wherein M∈N*, M>2, M is an even number; i∈N*, i <M; The input terminal D of the first frequency-dividing D flip-flop is connected to a high level, and the positive output terminal Q of the i-th frequency-dividing D flip-flop is connected to the input terminal D of the i+1-th frequency-dividing D flip-flop; The inverting output terminal of the Mth frequency-divided D flip-flop connected to the input end of the buffer; the reset port of the i-th frequency-divided D flip-flop is connected to the output end of the buffer; The clock input ports clk of the M frequency-divided D flip-flops are all connected to the sampling clock signal.
3. The clock frequency division calibration circuit according to claim 2, characterized in that: The buffer may adopt a circuit structure in which one or more inverters are connected in series.
4. The clock frequency division calibration circuit according to claim 1, characterized in that: The first delay circuit may adopt a circuit structure in which one or more inverters are connected in series.
5. The clock frequency division calibration circuit according to claim 1, characterized in that: The first delay circuit adopts a delay circuit structure with adjustable delay size, and the delay size of the delay circuit can be adjusted by an external digital signal.
