WO2020077557A1 - Duty cycle calibration circuit, electronic device and method - Google Patents
Duty cycle calibration circuit, electronic device and method Download PDFInfo
- Publication number
- WO2020077557A1 WO2020077557A1 PCT/CN2018/110617 CN2018110617W WO2020077557A1 WO 2020077557 A1 WO2020077557 A1 WO 2020077557A1 CN 2018110617 W CN2018110617 W CN 2018110617W WO 2020077557 A1 WO2020077557 A1 WO 2020077557A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- clock signal
- delay
- signal
- duty cycle
- output
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K3/00—Circuits for generating electric pulses; Monostable, bistable or multistable circuits
- H03K3/01—Details
- H03K3/017—Adjustment of width or dutycycle of pulses
Definitions
- This application relates to the field of electronic technology, in particular to a duty cycle calibration circuit, electronic equipment and method.
- Duty cycle is an important performance index in clock performance.
- Duty cycle usually refers to the ratio of the duration of a positive pulse to the pulse period in an ideal sequence of pulse cycles. For example, if the duty ratio is 50%, it means that the width of the high-level clock cycle is equal to the width of the low-level clock cycle. In the application of PLL, the 50% duty cycle input signal is helpful to reduce the output noise of the PLL system.
- the embodiments of the present application provide a duty cycle calibration circuit, an electronic device and a method, which are used for real-time, bidirectional and high-precision calibration of the duty cycle.
- a duty cycle calibration circuit includes: a preprocessing circuit, a delay circuit, an edge trigger pulse generator, and a duty cycle regulator; wherein, the preprocessing circuit is used to: The input clock signal generates a first clock signal and a second clock signal, the first clock signal is opposite to the high and low levels of the second clock signal; the delay circuit is used to delay the first clock signal to obtain the first delay signal, and delay the second The clock signal obtains the second delayed signal; this edge triggers the pulse generator to generate an output clock signal according to the rising / falling edge of the first delay signal and the rising / falling edge of the second delay signal, for example, the rising / falling edge is rising Edge or falling edge; the duty cycle regulator is used to detect the duty cycle of the output clock signal and generate a control signal according to the duty cycle to delay the first clock signal and / or the delay of the second clock signal Make adjustments.
- the duty cycle of the output clock signal generated by the edge trigger pulse generator can be reduced or increased, so by matching the duty cycle
- the ratio regulator detects the adjustment in real time to generate an output clock signal with a certain duty ratio, thereby realizing real-time, bidirectional and high-precision calibration of the duty ratio.
- the control part of the scheme is all digital circuits, so the duty cycle calibration circuit contributes limited noise while reducing system noise.
- the duty cycle regulator is specifically configured to generate a control signal when the duty cycle of the output clock signal is not 50%, to control the The delay and / or the delay of the second clock signal are adjusted.
- the duty ratio of the output clock signal can be guaranteed to be 50%.
- the edge trigger pulse generator is specifically configured to: generate an output clock signal according to the rising edge of the first delay signal and the rising edge of the second delay signal, and output the pulse of the clock signal
- the width is equal to the width between the rising edge of the first delay signal and the rising edge of the second delay signal; or, the output clock signal is generated according to the falling edge of the first delay signal and the falling edge of the second delay signal, and the pulse of the output clock signal
- the width is equal to the width between the rising edge of the first delay signal and the rising edge of the second delay signal.
- the edge-triggered pulse generator includes: two pulse generators and an RS flip-flop; wherein the input ends of the two pulse generators are both coupled to the output end of the delay circuit, It is used to receive the first delay signal and the second delay signal; the output terminals of the two pulse generators are respectively coupled to the R input terminal and the S input terminal of the RS flip-flop, and the output terminal of the RS flip-flop is used to output the output clock signal.
- an edge-triggered pulse generator with a simple structure and easy implementation is provided, and the problem of mismatch between the rising and falling edges of the first delay signal and the second delay signal can be avoided.
- the edge-triggered pulse generator includes: two D flip-flops, two buffers, and a NAND gate; wherein, the CP input terminals of the two D flip-flops are respectively coupled to The output terminal of the delay circuit is used to receive the first delay signal and the second delay signal, the D input terminals of the two D flip-flops are both coupled to the power supply terminal, and the output terminals of the two D flip-flops are respectively coupled to the two buffers
- the input terminal of the NAND gate is coupled to the reset terminals of the two D flip-flops, and the AND terminal of the NAND gate is coupled to the output terminal of the first buffer of the two buffers.
- the output clock signal, the other AND terminal of the NAND gate is coupled to the output terminal of the second buffer.
- the delay circuit includes two delay sub-circuits, each delay sub-circuit includes: two NOT gates and a variable capacitor; wherein, the first of the two NOT gates
- the input terminal of each NOT gate is used to receive the first clock signal or the second clock signal.
- the output terminal of the first NOT gate and the input terminal of the second NOT gate are coupled to a fixed terminal of the variable capacitor.
- the other fixed terminal is coupled to ground.
- the adjustment terminal of the variable capacitor is used to adjust the capacitance value of the variable capacitor following the control signal to adjust the delay of the first clock signal or the delay of the second clock signal.
- the output terminal of the second NOT gate It is used to output the first delay signal or the second delay signal.
- the duty cycle regulator includes: a time-to-digital converter and a controller; a time-to-digital converter for detecting the duty cycle of the output clock signal; and a controller for A control signal is generated based on the duty cycle to adjust the delay of the first clock signal and / or the delay of the second clock signal.
- an electronic device comprising: a radio frequency device and a duty cycle calibration circuit; wherein, the duty cycle calibration circuit is used to provide a carrier signal for the radio frequency device, and the duty cycle calibration circuit is as described above
- the duty cycle calibration circuit provided in the first aspect or any possible implementation manner of the first aspect.
- a method for duty cycle calibration includes: generating a first clock signal and a second clock signal according to an input clock signal, the first clock signal and the second clock signal having opposite high and low levels; delaying the first The clock signal obtains the first delayed signal, and the second clock signal is delayed to obtain the second delayed signal; the output clock signal is generated according to the rising / falling edge of the first delay signal and the rising / falling edge of the second delay signal, such as the rising / falling The edge includes a rising edge or a falling edge; the duty cycle of the output clock signal is detected, and a control signal is generated according to the duty cycle to adjust the delay of the first clock signal and / or the delay of the second clock signal.
- generating a control signal according to the duty ratio to adjust the delay of the first clock signal and / or the delay of the second clock signal includes: when the output clock signal is detected When the duty ratio of is not 50%, a control signal is generated to adjust the delay of the first clock signal and / or the delay of the second clock signal.
- generating the output clock signal according to the rising / falling edge of the first delay signal and the rising / falling edge of the second delay signal includes: according to the rising edge and the first The rising edge of the second delay signal generates an output clock signal, the pulse width of the output clock signal is equal to the width between the rising edge of the first delay signal and the rising edge of the second delay signal; or, according to the falling edge of the first delay signal and the first The falling edge of the two delay signals generates an output clock signal, and the pulse width of the output clock signal is equal to the width between the rising edge of the first delay signal and the falling edge of the second delay signal.
- 1 is a schematic structural diagram of a duty cycle calibration circuit provided by an embodiment of the present application.
- FIG. 2 is a timing diagram of a clock signal provided by an embodiment of this application.
- FIG. 3 is a schematic structural diagram of another duty cycle calibration circuit provided by an embodiment of the present application.
- FIG. 4 is a schematic structural diagram of an edge trigger pulse generator provided by an embodiment of the present application.
- FIG. 5 is a schematic flowchart of a duty cycle calibration method provided by an embodiment of the present application.
- At least one refers to one or more, and “multiple” refers to two or more.
- “At least one of the following” or a similar expression refers to any combination of these items, including any combination of single items or plural items.
- At least one (a) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c may be single or multiple.
- the character "/" generally indicates that the related object is a "or” relationship.
- the words “first” and “second” do not limit the number and the execution order.
- the duty cycle calibration circuit includes: a preprocessing circuit 110, a delay circuit 120, an edge trigger pulse generator 130, and a duty cycle Ratio regulator 140.
- the pre-processing circuit 110 is used to generate a first clock signal and a second clock signal according to the input clock signal.
- the first clock signal is opposite to the high and low levels of the second clock signal.
- the delay circuit 120 is configured to delay the first clock signal to obtain a first delayed signal, and delay the second clock signal to obtain a second delayed signal.
- the delay circuit 120 may include a first delay sub-circuit 121 and a second delay sub-circuit 122.
- the first delay sub-circuit 121 is used to delay the first clock signal to obtain the first delay signal
- the second delay sub-circuit 122 is used to delay the first The second clock signal obtains the second delayed signal.
- the first delay sub-circuit 121 is used to delay the first clock signal according to the first delay amount to obtain the first delay signal
- the second delay sub-circuit 122 is used to delay the second clock signal according to the second delay amount to obtain the second delay Signal; both the first delay amount and the second delay amount may include a fixed delay amount and an adjusted delay amount, the size of the fixed delay amount depends on the delay circuit 120 itself, the adjusted delay amount depends on the control bits and the minimum adjustment unit, the minimum adjustment unit determines The calibration accuracy of the duty cycle calibration circuit.
- the first delay amount is expressed as td_DLR
- the corresponding fixed delay amount is expressed as ⁇ 1
- the corresponding control bits and the minimum adjustment unit are expressed as Dcal1 and ⁇ res1
- td_DLR can be expressed by the following formula (1)
- td_DLS the corresponding fixed delay is expressed as ⁇ 2
- the corresponding control bits and minimum adjustment unit are expressed as Dcal2 and ⁇ res2
- td_DLS can be expressed by the following formula (2).
- td_DLR ⁇ 1 + Dcal1 ⁇ ⁇ res1 (1)
- the edge trigger pulse generator 130 is used to generate an output clock signal according to the rising / falling edge of the first delay signal and the rising / falling edge of the second delay signal, and the rising / falling edge may be a rising edge or a falling edge.
- the edge trigger pulse generator 130 is used to generate an output clock signal according to the rising edge of the first delay signal and the rising edge of the second delay signal, and the pulse width of the output clock signal at this time is equal to the rising edge of the first delay signal and The width between the rising edges of the second delay signal; for example, when the rising edge of the first delay signal comes, the output clock signal is pulled to a high level, when the rising edge of the second delay signal comes, the output clock signal is Becomes low, the pulse width of the output clock signal at this time (taking the pulse width corresponding to the high level as an example) depends on the width between the rising edge of the first delay signal and the rising edge of the second delay signal (you can also (Called phase difference).
- the edge trigger pulse generator 130 is used to generate an output clock signal according to the falling edge of the first delay signal and the falling edge of the second delay signal, and the pulse width of the output clock signal is equal to the falling edge of the first delay signal and the first The width between the falling edges of the two delay signals; for example, when the falling edge of the first delay signal comes, the output clock signal is pulled to a high level, when the falling edge of the second delay signal comes, the output clock signal is Becomes low, the pulse width of the output clock signal at this time (take the pulse width corresponding to the high level as an example) depends on the width between the falling edge of the first delay signal and the falling edge of the second delay signal (you can also (Called phase difference).
- PW_out PW_in + (td_DLR-td_DLS )
- PW_out represents the pulse width of the output clock signal
- PW_in represents the pulse width of the original input clock signal.
- the duty ratio adjuster 140 is used to detect the duty ratio of the output clock signal output by the edge trigger pulse generator 130 and generate a control signal according to the duty ratio to delay the first clock signal and / or the second clock The delay of the signal is adjusted.
- the duty ratio adjuster 140 may be used to adjust the first delay amount and / or the second delay amount; the delay circuit 120 delays the first clock signal according to the adjusted first delay amount to obtain the first delay signal, and according to the adjustment The delayed second delay amount delays the second clock signal to obtain a second delayed signal; the edge trigger pulse generator 130 generates an output clock signal with a certain duty ratio according to the first delayed signal and the second delayed signal obtained after adjusting the delay.
- the duty cycle regulator 140 detects that the duty cycle of the output clock signal is not 50%, it generates a control signal to adjust the delay of the first clock signal and / or the delay of the second clock signal so that the edge
- the trigger pulse generator 130 generates an output clock signal with a duty ratio of 50% according to the first delay signal and the second delay signal obtained by the adjusted delay circuit 120.
- the duty cycle of 50% may mean that the duty cycle is equal to 50%, and may have a certain fault tolerance range, for example, the fault tolerance range is ⁇ 2%, when the duty cycle is between 48% and When it is within the range of 52%, it is considered that the duty ratio is 50%.
- the specific fault tolerance range can be set by a person skilled in the art, which is not specifically limited in the embodiments of the present application.
- the duty ratio of the output clock signal depends on the input duty ratio and the delay difference between the first delay amount and the second delay amount, and the duty ratio adjuster 140 changes the delay difference by adjusting the first delay amount and the second delay amount To achieve the adjustment of the duty cycle of the output clock signal. Since the delay difference can be a positive value or a negative value, the duty cycle calibration circuit can realize bidirectional calibration, and the fixed delays of the first delay amount and the second delay amount can be calibrated out, so the adjustment accuracy is only It depends on the adjustment accuracy of the delay amount.
- the duty ratio adjuster 140 is used to adjust the control bits corresponding to the first delay amount and / or the second delay amount, that is, the duty ratio adjuster 140 is specifically used to adjust Dcal1 and / or in the above formula (1)
- Dcal2 in formula (2) has nothing to do with the fixed delay amount ⁇ 1 corresponding to the first delay amount and the fixed delay amount ⁇ 2 corresponding to the second delay amount, and therefore can achieve high-accuracy duty cycle calibration.
- Fin denotes the input clock signal
- R0 denotes the first clock signal
- S0 denotes the second clock signal
- R0 denotes the first delay signal
- R1 denotes the first delay signal
- S1 denotes the second delay signal
- Fout Indicates the output clock signal. If the edge trigger pulse generator 130 generates the output clock signal Fout according to the rising edge of the first delay signal R1 and the rising edge of the second delay signal S1, for example, the relationship between Fin, R0, S0, R1, S1, and Fout Can be shown in Figure 2. In FIG.
- PW_in represents the pulse width corresponding to the high level of the input clock signal
- PW_out represents the pulse width corresponding to the high level of the output clock signal
- PW_out PW_in + (td_DLR-td_DLS).
- the preprocessing circuit 110 includes a first NOT gate 111, a second NOT gate 112, and a third NOT gate 113; the input terminal of the first NOT gate 111 and the second The input of the NOT gate 112 is coupled to receive the input clock signal; the output of the second NOT gate 112 is coupled to the input of the third NOT gate 113; the output of the first NOT gate 111 is used to output the first clock signal, The output terminal of the third NOT gate 113 is used to output a second clock signal.
- the first clock signal is the signal after the input clock signal undergoes the inversion process of the first NOT gate 111 (that is, the high level of the input clock signal is changed to a low level, and the low level of the input clock signal is changed to a high level)
- the phase of the first clock signal is opposite to the phase of the input clock signal, that is, the high and low levels of the first clock signal are opposite to the high and low levels of the input clock signal.
- the second clock signal is the signal of the input clock signal after being inverted by the second NOT gate 112 and the third NOT gate 113.
- the phase of the second clock signal is the same as the phase of the input clock signal, that is, the high and low levels of the second clock signal are The high and low levels of the input clock signal are the same, so that the high and low levels of the first clock signal are opposite to the high and low levels of the second clock signal.
- the pre-processing circuit 110 shown in FIG. 3 is only exemplary, and in practical applications, the pre-processing circuit 110 can implement level inversion of the input clock signal.
- the preprocessing circuit 110 may also invert the input clock signal (2N + 1) times to obtain the first clock signal, and invert the input clock signal 2N times to obtain the second clock signal, where N is a non-negative integer.
- the first delay sub-circuit 121 includes: a first NOT gate 1211, a second NOT gate 1212, and a variable capacitor 1213; wherein, the first NOT gate 1211 Is used to receive the first clock signal.
- the output of the first NOT gate 1211 and the input of the second NOT gate 1212 are coupled to a fixed end of the variable capacitor 1213, and the other of the variable capacitor 1213 is fixed.
- the terminal is coupled to ground.
- the output of the second NOT gate 1212 is used to output the first delayed signal.
- the adjustment terminal of the variable capacitor 1213 is coupled to the duty cycle regulator 140 to adjust the capacitance of the variable capacitor 1213 following the control signal.
- the second delay sub-circuit 122 includes: a first NOT gate 1221, a second NOT gate 1222, and a variable capacitor 1223; wherein, the input terminal of the first NOT gate 1221 is used to receive the second clock signal, and the first NOT gate
- the output terminal of the gate 1221 and the input terminal of the second NOT gate 1222 are both coupled to a fixed terminal of the variable capacitor 1223, the other fixed terminal of the variable capacitor 1223 is coupled to ground, and the output terminal of the second NOT gate 1222 is used to
- the second delay signal is output, and the adjustment terminal of the variable capacitor 1223 is coupled to the duty cycle regulator 140 for adjusting the capacitance of the variable capacitor 1223 following the control signal to adjust the delay of the second clock signal (for example, adjusting the above Control bits corresponding to the second delay amount).
- variable capacitor 1213 and the variable capacitor 1223 in the embodiment of the present application may be a capacitor that satisfies the required capacitance value, or may be a plurality of capacitors connected in parallel or in series to meet the required capacitance value Capacitor combination, that is, the corresponding capacitance value after the multiple capacitors are connected in series or in parallel is equal to the required capacitance value.
- first delay sub-circuit 121 and the second delay sub-circuit 122 shown in FIG. 3 are only exemplary, and do not limit the embodiment of the present application. The embodiment of the present application may also use other methods for the first delay sub-circuit 121 ⁇ ⁇ ⁇ ⁇ 122 ⁇ 121 and the second delay sub-circuit 122.
- the edge trigger pulse generator 130 includes a first pulse generator 131, a second pulse generator 132 and an RS flip-flop 133.
- the input terminal of the first pulse generator 131 is coupled to the output terminal of the first delay circuit 121 for receiving the first delay signal, and the output terminal of the first pulse generator 131 is coupled to the R of the RS flip-flop 133 Input terminal;
- the input terminal of the second pulse generator 132 is coupled to the output terminal of the second delay circuit 122 for receiving the second delay signal, and the output terminal of the second pulse generator 132 is coupled to the S of the RS flip-flop 133
- the input terminal; the output terminal of the RS flip-flop 133 is coupled to the input terminal of the duty ratio regulator 140, and is used to output the output clock signal.
- the edge trigger pulse generator 130 includes a first D flip-flop 134, a second D flip-flop 135, a first buffer 136, a second buffer 137 and a NAND gate 138.
- the CP input terminal of the first D flip-flop 134 is coupled to the output terminal of the first delay sub-circuit 121 for receiving the first delay signal, and the D input terminal of the first D flip-flop 134 is coupled to the power supply terminal VDD,
- the output of the first D flip-flop 134 is coupled to the input of the first buffer 136;
- the CP input of the second D flip-flop 135 is coupled to the output of the second delay sub-circuit 122 for receiving the second delay Signal, the D input terminal of the second D flip-flop 135 is coupled to the power supply terminal VDD, the output terminal of the second D flip-flop 135 is coupled to the input terminal of the second buffer 137;
- the non-terminals of the NAND gate 138 are respectively coupled to The reset terminal RST of the first D flip-flop 134 and
- the duty ratio regulator 140 includes a time-to-digital converter (TDC) 141 and a controller 142.
- the input terminal of the time-to-digital converter 141 is coupled to the output terminal of the edge-triggered pulse generator 130 to receive the output clock signal generated by the edge-triggered pulse generator 130; the output terminal of the time-to-digital converter 141 and the controller 142
- the input terminals are coupled, and the output terminals of the controller are respectively coupled to the first delay sub-circuit 121 and the second delay sub-circuit 122 for adjusting the delay of the first clock signal and / or the delay of the second clock signal.
- the time-to-digital converter 141 is used to perform phase comparison between the phase-locked loop feedback clock signal and the output clock signal of the frequency multiplier 150, and the duty cycle information of the output clock signal (Fout) can be reflected in the output of the TDC 141;
- the controller 142 is used to generate a control signal according to the duty ratio to adjust the delay of the first clock signal and / or the delay of the second clock signal.
- the controller 142 is used to adjust the control bit Dcal1 corresponding to the first delay amount and / or the control bit Dcal2 corresponding to the second delay amount when the duty cycle of the output clock signal is not 50%, so that the edge triggers
- the pulse generator 130 generates an output clock signal with a duty ratio of 50%.
- the duty cycle calibration circuit may further include: a frequency multiplier 150 coupled between the edge trigger pulse generator 130 and the duty cycle regulator 140, which is used for the edge trigger pulse generator
- the output clock signal generated by 130 is subjected to frequency multiplication processing, and the output clock signal after frequency multiplication processing is transmitted to the duty ratio regulator 140.
- the duty ratio adjuster 140 can detect the duty ratio of the output clock signal output by the trigger pulse generator 130 in real time, and adjust the delay of the first clock signal and / or the Delay can reduce the duty cycle of the output clock signal or increase the duty cycle of the output clock signal, which can generate a certain duty cycle of the output clock signal, for example, the edge trigger pulse generator 130 generates a duty cycle of 50% Output clock signal, thus realizing real-time, bidirectional and high-precision calibration of the duty cycle, while reducing system noise.
- An embodiment of the present application further provides a terminal.
- the terminal includes at least a radio frequency device and a duty cycle calibration circuit provided by the embodiment of the present application.
- the duty cycle calibration circuit is used to provide a local carrier signal for the radio frequency device.
- the radio frequency device is used in any one or combination of the following: a cellular mobile communication module, a Bluetooth module, a wireless fidelity (WiFi) module in the terminal, or any device that requires a local carrier signal.
- the radio frequency device in the terminal may be a Bluetooth module and a WiFi module, and may also be a Bluetooth module or a WiFi module.
- An embodiment of the present application further provides a base station.
- the base station includes at least a transceiver and a phase-locked loop circuit.
- the phase-locked loop circuit includes a duty cycle calibration circuit provided in an embodiment of the present application. The duty cycle calibration circuit is used to The base station's transceiver provides local carrier signals.
- the above-mentioned terminal and base station are only examples of products that apply the duty cycle calibration circuit provided by the embodiments of the present application, and cannot constitute a restriction on the application of the duty cycle calibration circuit provided by the embodiments of the present application.
- the provided duty cycle calibration circuit can be applied to any scene that requires duty cycle calibration, and any product that requires duty cycle calibration.
- FIG. 5 is a schematic flowchart of a duty cycle calibration method provided by an embodiment of the present application, which is applied to an electronic device including a duty cycle calibration circuit provided by an embodiment of the present application. Referring to FIG. 5, the method includes the following steps .
- S501 Generate a first clock signal and a second clock signal according to the input clock signal.
- the first clock signal and the second clock signal have opposite high and low levels.
- S502 Delay the first clock signal to obtain a first delayed signal, and delay the second clock signal to obtain a second delayed signal.
- S503 Generate an output clock signal according to the rising / falling edge of the first delayed signal and the rising / falling edge of the second delayed signal, and the rising / falling edge may be a rising edge or a falling edge.
- the output clock signal is generated according to the rising edge of the first delay signal and the rising edge of the second delay signal; or, the output clock signal is generated according to the falling edge of the first delay signal and the falling edge of the second delay signal.
- S504 Detect the duty ratio of the output clock signal, and generate a control signal according to the duty ratio to adjust the delay of the first clock signal and / or the delay of the second clock signal.
- a control signal is generated to adjust the delay of the first clock signal and / or the delay of the second clock signal, for example, by adjusting the implementation of the above device In the example, control bits corresponding to the first delay amount and / or the second delay amount.
- the duty cycle of the output clock signal can be reduced or the duty cycle of the output clock signal can be increased, so by detecting this The duty cycle and adjustment can generate a certain duty cycle output clock signal, thereby realizing the real-time, bidirectional and high-precision calibration of the duty cycle, and the system noise is low.
Landscapes
- Pulse Circuits (AREA)
Abstract
Provided in the present application are a duty cycle calibration circuit, an electronic device and a method, used to implement real time, bi-directional and highly accurate calibration of a duty cycle. The circuit comprises: a pre-processing circuit, used to generate a first clock signal and a second clock signal having opposite high and low levels according to an input clock signal; a delay circuit, used to delay the first clock signal so as to obtain a a first delayed signal, and to delay the second clock signal so as to obtain a second delayed signal; an edge-triggered pulse generator, used to generate an output clock signal according to a rising/falling edge of the first delayed signal and a rising/falling edge of the second delayed signal; and a duty cycle regulator, used to detect a duty cycle of the output clock signal and generate a control signal according to said duty cycle, so as to regulate the delay of the first clock signal and/or the delay of the second clock signal.
Description
本申请涉及电子技术领域,尤其涉及一种占空比校准电路、电子设备及方法。This application relates to the field of electronic technology, in particular to a duty cycle calibration circuit, electronic equipment and method.
时钟的占空比(Duty Cycle)是时钟性能中一个比较重要的性能指标。占空比通常指在一串理想的脉冲周期序列中,正脉冲的持续时间与脉冲周期的比值。如:占空比为50%,则意味着高电平时钟周期的宽度等于低电平时钟周期的宽度。在锁相环的应用中,50%占空比的输入信号有利于降低锁相环系统的输出噪声。The duty cycle of the clock (Duty Cycle) is an important performance index in clock performance. Duty cycle usually refers to the ratio of the duration of a positive pulse to the pulse period in an ideal sequence of pulse cycles. For example, if the duty ratio is 50%, it means that the width of the high-level clock cycle is equal to the width of the low-level clock cycle. In the application of PLL, the 50% duty cycle input signal is helpful to reduce the output noise of the PLL system.
现有技术中,很多数字锁相环(phase locked loop,PLL)参考时钟的倍频电路通常会将输入的参考时钟进行50%占空比的校准,之后再将校准后的时钟信号进行倍频,作为PLL的两倍频的参考时钟。但是,现有技术中的数字校准过程不能实现实时校准,且校准精度较低。In the prior art, many digital phase-locked loop (PLL) reference clock frequency multiplier circuits usually calibrate the input reference clock with a 50% duty cycle, and then frequency-double the calibrated clock signal , As the reference clock of the double frequency of PLL. However, the digital calibration process in the prior art cannot realize real-time calibration, and the calibration accuracy is low.
发明内容Summary of the invention
本申请的实施例提供一种占空比校准电路、电子设备及方法,用于对占空比进行实时、双向和高精度的校准。The embodiments of the present application provide a duty cycle calibration circuit, an electronic device and a method, which are used for real-time, bidirectional and high-precision calibration of the duty cycle.
第一方面,提供一种占空比校准电路,该占空比校准电路包括:预处理电路、延迟电路、沿触发脉冲产生器和占空比调节器;其中,该预处理电路,用于根据输入时钟信号产生第一时钟信号和第二时钟信号,第一时钟信号与第二时钟信号的高低电平相反;该延迟电路,用于延迟第一时钟信号得到第一延迟信号,以及延迟第二时钟信号得到第二延迟信号;该沿触发脉冲产生器,用于根据第一延迟信号的升/降沿和第二延迟信号的升/降沿产生输出时钟信号,比如该升/降沿为上升沿或下降沿;该占空比调节器,用于检测输出时钟信号的占空比,并根据该占空比生成控制信号,以对第一时钟信号的延迟和/或第二时钟信号的延迟进行调节。In a first aspect, a duty cycle calibration circuit is provided. The duty cycle calibration circuit includes: a preprocessing circuit, a delay circuit, an edge trigger pulse generator, and a duty cycle regulator; wherein, the preprocessing circuit is used to: The input clock signal generates a first clock signal and a second clock signal, the first clock signal is opposite to the high and low levels of the second clock signal; the delay circuit is used to delay the first clock signal to obtain the first delay signal, and delay the second The clock signal obtains the second delayed signal; this edge triggers the pulse generator to generate an output clock signal according to the rising / falling edge of the first delay signal and the rising / falling edge of the second delay signal, for example, the rising / falling edge is rising Edge or falling edge; the duty cycle regulator is used to detect the duty cycle of the output clock signal and generate a control signal according to the duty cycle to delay the first clock signal and / or the delay of the second clock signal Make adjustments.
上述技术方案中,通过调节第一时钟信号的延迟和/或第二时钟信号的延迟,可以使沿触发脉冲产生器产生的输出时钟信号的占空比减小或者增大,因此通过配合占空比调节器实时地检测调节以产生具有一定占空比的输出时钟信号,从而实现了占空比的实时、双向和高精度的校准。该方案的控制部分均为数字电路,因此该占空比校准电路贡献有限的噪声,同时降低了系统噪声。In the above technical solution, by adjusting the delay of the first clock signal and / or the delay of the second clock signal, the duty cycle of the output clock signal generated by the edge trigger pulse generator can be reduced or increased, so by matching the duty cycle The ratio regulator detects the adjustment in real time to generate an output clock signal with a certain duty ratio, thereby realizing real-time, bidirectional and high-precision calibration of the duty ratio. The control part of the scheme is all digital circuits, so the duty cycle calibration circuit contributes limited noise while reducing system noise.
在第一方面的一种可能的实现方式中,该占空比调节器,具体用于:在检测到输出时钟信号的占空比不为50%时生成控制信号,以对第一时钟信号的延迟和/或第二时钟信号的延迟进行调节。上述可能的实现方式中,能够保证输出时钟信号的占空比为50%。In a possible implementation manner of the first aspect, the duty cycle regulator is specifically configured to generate a control signal when the duty cycle of the output clock signal is not 50%, to control the The delay and / or the delay of the second clock signal are adjusted. In the above possible implementation manner, the duty ratio of the output clock signal can be guaranteed to be 50%.
在第一方面的一种可能的实现方式中,该沿触发脉冲产生器,具体用于:根据第一延迟信号的上升沿和第二延迟信号的上升沿产生输出时钟信号,输出时钟信号的脉 宽等于第一延迟信号的上升沿与第二延迟信号的上升沿之间的宽度;或者,根据第一延迟信号的下降沿和第二延迟信号的下降沿产生输出时钟信号,输出时钟信号的脉宽等于第一延迟信号的下升沿与第二延迟信号的下升沿之间的宽度。上述可能的实现方式中,提供了几种根据第一延迟信号的升/降沿和第二延迟信号的升/降沿产生输出时钟信号的方式。In a possible implementation manner of the first aspect, the edge trigger pulse generator is specifically configured to: generate an output clock signal according to the rising edge of the first delay signal and the rising edge of the second delay signal, and output the pulse of the clock signal The width is equal to the width between the rising edge of the first delay signal and the rising edge of the second delay signal; or, the output clock signal is generated according to the falling edge of the first delay signal and the falling edge of the second delay signal, and the pulse of the output clock signal The width is equal to the width between the rising edge of the first delay signal and the rising edge of the second delay signal. In the foregoing possible implementation manners, several methods for generating an output clock signal according to the rising / falling edge of the first delayed signal and the rising / falling edge of the second delayed signal are provided.
在第一方面的一种可能的实现方式中,该沿触发脉冲产生器包括:两个脉冲产生器和RS触发器;其中,两个脉冲产生器的输入端均耦合至延迟电路的输出端,用于接收第一延迟信号和第二延迟信号;两个脉冲产生器的输出端分别耦合至RS触发器的R输入端和S输入端,RS触发器的输出端用于输出该输出时钟信号。上述可能的实现方式中,提供了一种结构简单、易于实现的沿触发脉冲产生器,且能够避免第一延迟信号和第二延迟信号的上升沿或下降沿失配的问题。In a possible implementation manner of the first aspect, the edge-triggered pulse generator includes: two pulse generators and an RS flip-flop; wherein the input ends of the two pulse generators are both coupled to the output end of the delay circuit, It is used to receive the first delay signal and the second delay signal; the output terminals of the two pulse generators are respectively coupled to the R input terminal and the S input terminal of the RS flip-flop, and the output terminal of the RS flip-flop is used to output the output clock signal. In the foregoing possible implementation manners, an edge-triggered pulse generator with a simple structure and easy implementation is provided, and the problem of mismatch between the rising and falling edges of the first delay signal and the second delay signal can be avoided.
在第一方面的一种可能的实现方式中,该沿触发脉冲产生器包括:两个D触发器、两个缓冲器和与非门;其中,两个D触发器的CP输入端分别耦合至该延迟电路的输出端,用于接收第一延迟信号和第二延迟信号,两个D触发器的D输入端均耦合至电源端,两个D触发器的输出端分别耦合至两个缓冲器的输入端,与非门的非端分别耦合至两个D触发器的复位端,与非门的一个与端耦合至两个缓冲器中的第一个缓冲器的输出端,用于输出该输出时钟信号,与非门的另一个与端耦合至第二个缓冲器的输出端。上述可能的实现方式中,提供了一种结构简单、易于实现的沿触发脉冲产生器,且能够避免第一延迟信号和第二延迟信号的上升沿或下降沿失配的问题。In a possible implementation manner of the first aspect, the edge-triggered pulse generator includes: two D flip-flops, two buffers, and a NAND gate; wherein, the CP input terminals of the two D flip-flops are respectively coupled to The output terminal of the delay circuit is used to receive the first delay signal and the second delay signal, the D input terminals of the two D flip-flops are both coupled to the power supply terminal, and the output terminals of the two D flip-flops are respectively coupled to the two buffers The input terminal of the NAND gate is coupled to the reset terminals of the two D flip-flops, and the AND terminal of the NAND gate is coupled to the output terminal of the first buffer of the two buffers. The output clock signal, the other AND terminal of the NAND gate is coupled to the output terminal of the second buffer. In the foregoing possible implementation manners, an edge-triggered pulse generator with a simple structure and easy implementation is provided, and the problem of mismatch between the rising and falling edges of the first delay signal and the second delay signal can be avoided.
在第一方面的一种可能的实现方式中,该延迟电路包括两个延迟子电路,每个延迟子电路均包括:两个非门和可变电容;其中,两个非门中的第一个非门的输入端用于接收第一时钟信号或者第二时钟信号,第一个非门的输出端与第二个非门的输入端耦合至可变电容的一个固定端,可变电容的另一个固定端耦合接地,可变电容的调节端用于跟随控制信号调节可变电容的电容值,以调节第一时钟信号的延迟或者第二时钟信号的延迟,第二个非门的输出端用于输出第一延迟信号或第二延迟信号。上述可能的实现方式中,提供了一种结构简单、易于实现的延迟电路,且能够保证占空比的双向和高精度校准。In a possible implementation manner of the first aspect, the delay circuit includes two delay sub-circuits, each delay sub-circuit includes: two NOT gates and a variable capacitor; wherein, the first of the two NOT gates The input terminal of each NOT gate is used to receive the first clock signal or the second clock signal. The output terminal of the first NOT gate and the input terminal of the second NOT gate are coupled to a fixed terminal of the variable capacitor. The other fixed terminal is coupled to ground. The adjustment terminal of the variable capacitor is used to adjust the capacitance value of the variable capacitor following the control signal to adjust the delay of the first clock signal or the delay of the second clock signal. The output terminal of the second NOT gate It is used to output the first delay signal or the second delay signal. In the above possible implementation manner, a delay circuit with a simple structure and easy implementation is provided, and the bidirectional and high-precision calibration of the duty ratio can be guaranteed.
在第一方面的一种可能的实现方式中,该占空比调节器包括:时间数字转换器和控制器;时间数字转换器,用于检测输出时钟信号的占空比;控制器,用于根据该占空比生成控制信号,以对第一时钟信号的延迟和/或第二时钟信号的延迟进行调节。上述可能的实现方式中,能够保证占空比的实时检测,以及实时、双向和高精度校准。In a possible implementation manner of the first aspect, the duty cycle regulator includes: a time-to-digital converter and a controller; a time-to-digital converter for detecting the duty cycle of the output clock signal; and a controller for A control signal is generated based on the duty cycle to adjust the delay of the first clock signal and / or the delay of the second clock signal. In the foregoing possible implementation manners, it is possible to ensure real-time detection of the duty cycle and real-time, bidirectional, and high-precision calibration.
第二方面,提供一种电子设备,该电子设备包括:射频装置和占空比校准电路;其中,该占空比校准电路用于为该射频装置提供载波信号,该占空比校准电路为上述第一方面或者第一方面的任一种可能的实现方式所提供的占空比校准电路。In a second aspect, an electronic device is provided, the electronic device comprising: a radio frequency device and a duty cycle calibration circuit; wherein, the duty cycle calibration circuit is used to provide a carrier signal for the radio frequency device, and the duty cycle calibration circuit is as described above The duty cycle calibration circuit provided in the first aspect or any possible implementation manner of the first aspect.
第三方面,提供一种占空比校准方法,该方法包括:根据输入时钟信号产生第一时钟信号和第二时钟信号,第一时钟信号与第二时钟信号的高低电平相反;延迟第一时钟信号得到第一延迟信号,以及延迟第二时钟信号得到第二延迟信号;根据第一延迟信号的升/降沿和第二延迟信号的升/降沿产生输出时钟信号,比如该升/降沿包括上升沿或下降沿;检测输出时钟信号的占空比,并根据该占空比生成控制信号,以对第 一时钟信号的延迟和/或第二时钟信号的延迟进行调节。In a third aspect, a method for duty cycle calibration is provided. The method includes: generating a first clock signal and a second clock signal according to an input clock signal, the first clock signal and the second clock signal having opposite high and low levels; delaying the first The clock signal obtains the first delayed signal, and the second clock signal is delayed to obtain the second delayed signal; the output clock signal is generated according to the rising / falling edge of the first delay signal and the rising / falling edge of the second delay signal, such as the rising / falling The edge includes a rising edge or a falling edge; the duty cycle of the output clock signal is detected, and a control signal is generated according to the duty cycle to adjust the delay of the first clock signal and / or the delay of the second clock signal.
在第三方面的一种可能的实现方式中,根据该占空比生成控制信号,以对第一时钟信号的延迟和/或第二时钟信号的延迟进行调节,包括:在检测到输出时钟信号的占空比不为50%时生成控制信号,以对第一时钟信号的延迟和/或第二时钟信号的延迟进行调节。In a possible implementation manner of the third aspect, generating a control signal according to the duty ratio to adjust the delay of the first clock signal and / or the delay of the second clock signal includes: when the output clock signal is detected When the duty ratio of is not 50%, a control signal is generated to adjust the delay of the first clock signal and / or the delay of the second clock signal.
在第三方面的一种可能的实现方式中,根据第一延迟信号的升/降沿和第二延迟信号的升/降沿产生输出时钟信号,包括:根据第一延迟信号的上升沿和第二延迟信号的上升沿产生输出时钟信号,输出时钟信号的脉宽等于第一延迟信号的上升沿与第二延迟信号的上升沿之间的宽度;或者,根据第一延迟信号的下降沿和第二延迟信号的下降沿产生输出时钟信号,输出时钟信号的脉宽等于第一延迟信号的下升沿与第二延迟信号的下升沿之间的宽度。In a possible implementation manner of the third aspect, generating the output clock signal according to the rising / falling edge of the first delay signal and the rising / falling edge of the second delay signal includes: according to the rising edge and the first The rising edge of the second delay signal generates an output clock signal, the pulse width of the output clock signal is equal to the width between the rising edge of the first delay signal and the rising edge of the second delay signal; or, according to the falling edge of the first delay signal and the first The falling edge of the two delay signals generates an output clock signal, and the pulse width of the output clock signal is equal to the width between the rising edge of the first delay signal and the falling edge of the second delay signal.
可以理解地,上述提供的电子设备或者占空比校准方法均用于校准占空比校准电路中的输出时钟信号,因此,其所能达到的有益效果可参考上文所提供的占空比校准电路中的有益效果,此处不再赘述。Understandably, the above-mentioned electronic devices or duty cycle calibration methods are used to calibrate the output clock signal in the duty cycle calibration circuit, therefore, for the beneficial effects that can be achieved, refer to the duty cycle calibration provided above The beneficial effects in the circuit will not be repeated here.
图1为本申请实施例提供的一种占空比校准电路的结构示意图;1 is a schematic structural diagram of a duty cycle calibration circuit provided by an embodiment of the present application;
图2为本申请实施例提供的一种时钟信号的时序图;2 is a timing diagram of a clock signal provided by an embodiment of this application;
图3为本申请实施例提供的另一种占空比校准电路的结构示意图;3 is a schematic structural diagram of another duty cycle calibration circuit provided by an embodiment of the present application;
图4为本申请实施例提供的一种沿触发脉冲产生器的结构示意图;4 is a schematic structural diagram of an edge trigger pulse generator provided by an embodiment of the present application;
图5为本申请实施例提供的一种占空比校准方法的流程示意图。FIG. 5 is a schematic flowchart of a duty cycle calibration method provided by an embodiment of the present application.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c或a-b-c,其中a、b和c可以是单个,也可以是多个。字符“/”一般表示前后关联对象是一种“或”的关系。另外,在本申请的实施例中,“第一”、“第二”等字样并不对数量和执行次序进行限定。In this application, "at least one" refers to one or more, and "multiple" refers to two or more. "And / or", describing the relationship of related objects, indicating that there can be three relationships, for example, A and / or B, which can mean: A exists alone, A and B exist at the same time, B exists alone, where A, B can be singular or plural. "At least one of the following" or a similar expression refers to any combination of these items, including any combination of single items or plural items. For example, at least one (a) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c may be single or multiple. The character "/" generally indicates that the related object is a "or" relationship. In addition, in the embodiments of the present application, the words “first” and “second” do not limit the number and the execution order.
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。本申请中的“耦合”可以被理解为直接连接或者间接连接,比如,A耦合至B,可以表示:A与B直接连接,或者A与B间接连接。It should be noted that in the present application, the words "exemplary" or "for example" are used as examples, illustrations or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as more preferred or advantageous than other embodiments or design. Rather, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific manner. "Coupling" in the present application may be understood as a direct connection or an indirect connection. For example, A is coupled to B, which may mean that A and B are directly connected, or A and B are indirectly connected.
图1为本申请实施例提供的一种占空比校准电路的结构示意图,参见图1,该占空比校准电路包括:预处理电路110、延迟电路120、沿触发脉冲产生器130和占空比调节器140。1 is a schematic structural diagram of a duty cycle calibration circuit provided by an embodiment of the present application. Referring to FIG. 1, the duty cycle calibration circuit includes: a preprocessing circuit 110, a delay circuit 120, an edge trigger pulse generator 130, and a duty cycle Ratio regulator 140.
预处理电路110,用于根据输入时钟信号产生第一时钟信号和第二时钟信号,第 一时钟信号与第二时钟信号的高低电平相反。The pre-processing circuit 110 is used to generate a first clock signal and a second clock signal according to the input clock signal. The first clock signal is opposite to the high and low levels of the second clock signal.
延迟电路120,用于延迟第一时钟信号得到第一延迟信号,以及延迟第二时钟信号得到第二延迟信号。其中,延迟电路120可以包括第一延迟子电路121和第二延迟子电路122,第一延迟子电路121用于延迟第一时钟信号得到第一延迟信号,第二延迟子电路122用于延迟第二时钟信号得到第二延迟信号。可选地,第一延迟子电路121用于根据第一延迟量延迟第一时钟信号得到第一延迟信号,第二延迟子电路122用于根据第二延迟量延迟第二时钟信号得到第二延迟信号;第一延迟量和第二延迟量均可以包括固定延迟量和调节延迟量,固定延迟量的大小取决于延迟电路120本身,调节延迟量取决于控制比特和最小调节单位,最小调节单位决定了该占空比校准电路的校准精度。比如,第一延迟量表示为td_DLR,对应的固定延迟量表示为τ
1,对应的控制比特和最小调节单位表示为Dcal1和τ
res1,则td_DLR可通过如下公式(1)表示;第二延迟量表示为td_DLS,对应的固定延迟量表示为τ
2,对应的控制比特和最小调节单位表示为Dcal2和τ
res2,则td_DLS可通过如下公式(2)表示。
The delay circuit 120 is configured to delay the first clock signal to obtain a first delayed signal, and delay the second clock signal to obtain a second delayed signal. The delay circuit 120 may include a first delay sub-circuit 121 and a second delay sub-circuit 122. The first delay sub-circuit 121 is used to delay the first clock signal to obtain the first delay signal, and the second delay sub-circuit 122 is used to delay the first The second clock signal obtains the second delayed signal. Optionally, the first delay sub-circuit 121 is used to delay the first clock signal according to the first delay amount to obtain the first delay signal, and the second delay sub-circuit 122 is used to delay the second clock signal according to the second delay amount to obtain the second delay Signal; both the first delay amount and the second delay amount may include a fixed delay amount and an adjusted delay amount, the size of the fixed delay amount depends on the delay circuit 120 itself, the adjusted delay amount depends on the control bits and the minimum adjustment unit, the minimum adjustment unit determines The calibration accuracy of the duty cycle calibration circuit. For example, the first delay amount is expressed as td_DLR, the corresponding fixed delay amount is expressed as τ 1 , the corresponding control bits and the minimum adjustment unit are expressed as Dcal1 and τ res1 , then td_DLR can be expressed by the following formula (1); Expressed as td_DLS, the corresponding fixed delay is expressed as τ 2 , the corresponding control bits and minimum adjustment unit are expressed as Dcal2 and τ res2 , then td_DLS can be expressed by the following formula (2).
td_DLR=τ
1+Dcal1·τ
res1 (1)
td_DLR = τ 1 + Dcal1 · τ res1 (1)
td_DLS=τ
2+Dcal2·τ
res2 (2)
td_DLS = τ 2 + Dcal2 · τ res2 (2)
沿触发脉冲产生器130,用于根据第一延迟信号的升/降沿和第二延迟信号的升/降沿产生输出时钟信号,该升/降沿可以为上升沿或下降沿。可选地,沿触发脉冲产生器130用于根据第一延迟信号的上升沿和第二延迟信号的上升沿产生输出时钟信号,此时输出时钟信号的脉宽等于第一延迟信号的上升沿与第二延迟信号的上升沿之间的宽度;比如,当第一延迟信号的上升沿来临时,输出时钟信号被拉成高电平,当第二延迟信号的上升沿来临时,输出时钟信号被变为低电平,此时输出时钟信号的脉宽(以高电平对应的脉宽为例)取决于第一延迟信号的上升沿与第二延迟信号的上升沿之间的宽度(也可以称为相位差)。或者,沿触发脉冲产生器130用于根据第一延迟信号的下降沿和第二延迟信号的下降沿产生输出时钟信号,此时输出时钟信号的脉宽等于第一延迟信号的下升沿与第二延迟信号的下升沿之间的宽度;比如,当第一延迟信号的下降沿来临时,输出时钟信号被拉成高电平,当第二延迟信号的下降沿来临时,输出时钟信号被变为低电平,此时输出时钟信号的脉宽(以高电平对应的脉宽为例)取决于第一延迟信号的下降沿与第二延迟信号的下降沿之间的宽度(也可以称为相位差)。因此,输出时钟信号的占空比(也可以称为脉宽)取决于原始输入时钟信号的脉宽与第一延迟量和第二延迟量的延迟差之和,即PW_out=PW_in+(td_DLR-td_DLS),PW_out表示输出时钟信号的脉宽,PW_in表示原始输入时钟信号的脉宽。当增加第一延迟量或者减小第二延迟量时,输出时钟信号的占空比增大,当减小第一延迟量或者增加第二延迟量时,输出时钟信号的占空比减小。The edge trigger pulse generator 130 is used to generate an output clock signal according to the rising / falling edge of the first delay signal and the rising / falling edge of the second delay signal, and the rising / falling edge may be a rising edge or a falling edge. Optionally, the edge trigger pulse generator 130 is used to generate an output clock signal according to the rising edge of the first delay signal and the rising edge of the second delay signal, and the pulse width of the output clock signal at this time is equal to the rising edge of the first delay signal and The width between the rising edges of the second delay signal; for example, when the rising edge of the first delay signal comes, the output clock signal is pulled to a high level, when the rising edge of the second delay signal comes, the output clock signal is Becomes low, the pulse width of the output clock signal at this time (taking the pulse width corresponding to the high level as an example) depends on the width between the rising edge of the first delay signal and the rising edge of the second delay signal (you can also (Called phase difference). Alternatively, the edge trigger pulse generator 130 is used to generate an output clock signal according to the falling edge of the first delay signal and the falling edge of the second delay signal, and the pulse width of the output clock signal is equal to the falling edge of the first delay signal and the first The width between the falling edges of the two delay signals; for example, when the falling edge of the first delay signal comes, the output clock signal is pulled to a high level, when the falling edge of the second delay signal comes, the output clock signal is Becomes low, the pulse width of the output clock signal at this time (take the pulse width corresponding to the high level as an example) depends on the width between the falling edge of the first delay signal and the falling edge of the second delay signal (you can also (Called phase difference). Therefore, the duty cycle (also called pulse width) of the output clock signal depends on the sum of the pulse width of the original input clock signal and the delay difference between the first delay amount and the second delay amount, ie PW_out = PW_in + (td_DLR-td_DLS ), PW_out represents the pulse width of the output clock signal, and PW_in represents the pulse width of the original input clock signal. When increasing the first delay amount or decreasing the second delay amount, the duty ratio of the output clock signal increases, and when decreasing the first delay amount or increasing the second delay amount, the duty ratio of the output clock signal decreases.
占空比调节器140,用于检测沿触发脉冲产生器130输出的输出时钟信号的占空比,并根据该占空比生成控制信号,以对第一时钟信号的延迟和/或第二时钟信号的延迟进行调节。具体的,占空比调节器140,可用于调节第一延迟量和/或第二延迟量;延迟电路120根据调节后的第一延迟量延迟第一时钟信号得到第一延迟信号,以及根据调节后的第二延迟量延迟第二时钟信号得到第二延迟信号;沿触发脉冲产生器130根据调节延迟后得到的第一延迟信号和第二延迟信号产生一定占空比的输出时钟信 号。比如,占空比调节器140在检测到输出时钟信号的占空比不为50%时生成控制信号,以对第一时钟信号的延迟和/或第二时钟信号的延迟进行调节,以使沿触发脉冲产生器130根据调节后延迟电路120得到的第一延迟信号和第二延迟信号产生占空比为50%的输出时钟信号。The duty ratio adjuster 140 is used to detect the duty ratio of the output clock signal output by the edge trigger pulse generator 130 and generate a control signal according to the duty ratio to delay the first clock signal and / or the second clock The delay of the signal is adjusted. Specifically, the duty ratio adjuster 140 may be used to adjust the first delay amount and / or the second delay amount; the delay circuit 120 delays the first clock signal according to the adjusted first delay amount to obtain the first delay signal, and according to the adjustment The delayed second delay amount delays the second clock signal to obtain a second delayed signal; the edge trigger pulse generator 130 generates an output clock signal with a certain duty ratio according to the first delayed signal and the second delayed signal obtained after adjusting the delay. For example, when the duty cycle regulator 140 detects that the duty cycle of the output clock signal is not 50%, it generates a control signal to adjust the delay of the first clock signal and / or the delay of the second clock signal so that the edge The trigger pulse generator 130 generates an output clock signal with a duty ratio of 50% according to the first delay signal and the second delay signal obtained by the adjusted delay circuit 120.
需要说明的是,该占空比为50%可以是指该占空比等于50%,且可以具有一定的容错范围,比如该容错范围为±2%,则当该占空比在48%至52%范围内时,都认为该占空比为50%,具体的容错范围可以由本领域技术人员设置,本申请实施例对此不作具体限定。It should be noted that the duty cycle of 50% may mean that the duty cycle is equal to 50%, and may have a certain fault tolerance range, for example, the fault tolerance range is ± 2%, when the duty cycle is between 48% and When it is within the range of 52%, it is considered that the duty ratio is 50%. The specific fault tolerance range can be set by a person skilled in the art, which is not specifically limited in the embodiments of the present application.
其中,输出时钟信号的占空比取决于输入占空比和第一延迟量与第二延迟量的延迟差,占空比调节器140通过调节第一延迟量和第二延迟量改变该延迟差,以实现对输出时钟信号的占空比的调节。由于该延迟差可以为正值,也可以为负值,从而该占空比校准电路可以实现双向的校准,且第一延迟量和第二延迟量的固定延迟可以被校准掉,所以调节精度只取决于延迟量调节精度。具体地,占空比调节器140用于调节第一延迟量和/或第二延迟量对应的控制比特,即占空比调节器140具体用于调节上述公式(1)中的Dcal1和/或公式(2)中的Dcal2,而与第一延迟量对应的固定延迟量τ
1和第二延迟量对应的固定延迟量τ
2无关,因此能够实现高精度的占空比校准。
The duty ratio of the output clock signal depends on the input duty ratio and the delay difference between the first delay amount and the second delay amount, and the duty ratio adjuster 140 changes the delay difference by adjusting the first delay amount and the second delay amount To achieve the adjustment of the duty cycle of the output clock signal. Since the delay difference can be a positive value or a negative value, the duty cycle calibration circuit can realize bidirectional calibration, and the fixed delays of the first delay amount and the second delay amount can be calibrated out, so the adjustment accuracy is only It depends on the adjustment accuracy of the delay amount. Specifically, the duty ratio adjuster 140 is used to adjust the control bits corresponding to the first delay amount and / or the second delay amount, that is, the duty ratio adjuster 140 is specifically used to adjust Dcal1 and / or in the above formula (1) Dcal2 in formula (2) has nothing to do with the fixed delay amount τ 1 corresponding to the first delay amount and the fixed delay amount τ 2 corresponding to the second delay amount, and therefore can achieve high-accuracy duty cycle calibration.
需要说明的是,上述图1中以Fin表示输入时钟信号,以R0表示第一时钟信号,以S0表示第二时钟信号,以R1表示第一延迟信号,以S1表示第二延迟信号,以Fout表示输出时钟信号。若以沿触发脉冲产生器130根据第一延迟信号R1的上升沿和第二延迟信号S1的上升沿产生输出时钟信号Fout为例,则Fin、R0、S0、R1、S1和Fout之间的关系可以如图2所示。图2中以PW_in表示输入时钟信号的高电平对应的脉宽,PW_out表示输出时钟信号的高电平对应的脉宽,PW_out=PW_in+(td_DLR-td_DLS)。It should be noted that in FIG. 1 above, Fin denotes the input clock signal, R0 denotes the first clock signal, S0 denotes the second clock signal, R0 denotes the first delay signal, R1 denotes the first delay signal, S1 denotes the second delay signal, and Fout Indicates the output clock signal. If the edge trigger pulse generator 130 generates the output clock signal Fout according to the rising edge of the first delay signal R1 and the rising edge of the second delay signal S1, for example, the relationship between Fin, R0, S0, R1, S1, and Fout Can be shown in Figure 2. In FIG. 2, PW_in represents the pulse width corresponding to the high level of the input clock signal, PW_out represents the pulse width corresponding to the high level of the output clock signal, PW_out = PW_in + (td_DLR-td_DLS).
在一种可能的实现方式中,如图3所示,上述预处理电路110包括第一非门111、第二非门112和第三非门113;第一非门111的输入端和第二非门112的输入端耦合,用于接收输入时钟信号;第二非门112的输出端与第三非门113的输入端耦合;第一非门111的输出端用于输出第一时钟信号,第三非门113的输出端用于输出第二时钟信号。其中,第一时钟信号是输入时钟信号经过第一非门111翻转处理(即将输入时钟信号的高电平变为低电平,将输入时钟信号的低电平变为高电平)之后的信号,第一时钟信号的相位与输入时钟信号的相位相反,即第一时钟信号的高低电平与输入时钟信号的高低电平相反。第二时钟信号是输入时钟信号经过第二非门112和第三非门113翻转处理之后的信号,第二时钟信号的相位与输入时钟信号的相位相同,即第二时钟信号的高低电平与输入时钟信号的高低电平相同,从而第一时钟信号的高低电平与第二时钟信号的高低电平相反。In a possible implementation, as shown in FIG. 3, the preprocessing circuit 110 includes a first NOT gate 111, a second NOT gate 112, and a third NOT gate 113; the input terminal of the first NOT gate 111 and the second The input of the NOT gate 112 is coupled to receive the input clock signal; the output of the second NOT gate 112 is coupled to the input of the third NOT gate 113; the output of the first NOT gate 111 is used to output the first clock signal, The output terminal of the third NOT gate 113 is used to output a second clock signal. Among them, the first clock signal is the signal after the input clock signal undergoes the inversion process of the first NOT gate 111 (that is, the high level of the input clock signal is changed to a low level, and the low level of the input clock signal is changed to a high level) The phase of the first clock signal is opposite to the phase of the input clock signal, that is, the high and low levels of the first clock signal are opposite to the high and low levels of the input clock signal. The second clock signal is the signal of the input clock signal after being inverted by the second NOT gate 112 and the third NOT gate 113. The phase of the second clock signal is the same as the phase of the input clock signal, that is, the high and low levels of the second clock signal are The high and low levels of the input clock signal are the same, so that the high and low levels of the first clock signal are opposite to the high and low levels of the second clock signal.
需要说明的是,上述图3所示的预处理电路110仅为示例性的,在实际应用中,预处理电路110能够实现输入时钟信号的电平翻转即可。另外,预处理电路110也可以对输入时钟信号进行(2N+1)次翻转得到第一时钟信号,对输入时钟信号进行2N次翻转得到第二时钟信号,N为非负整数。It should be noted that the above-mentioned pre-processing circuit 110 shown in FIG. 3 is only exemplary, and in practical applications, the pre-processing circuit 110 can implement level inversion of the input clock signal. In addition, the preprocessing circuit 110 may also invert the input clock signal (2N + 1) times to obtain the first clock signal, and invert the input clock signal 2N times to obtain the second clock signal, where N is a non-negative integer.
在一种可能的实现方式中,如图2所示,第一延迟子电路121包括:第一个非门1211、第二个非门1212和可变电容1213;其中,第一个非门1211的输入端用于接收 第一时钟信号,第一个非门1211的输出端与第二个非门1212的输入端均耦合至可变电容1213的一个固定端,可变电容1213的另一个固定端耦合接地,第二个非门1212的输出端用于输出第一延迟信号,可变电容1213的调节端与占空比调节器140耦合,用于跟随该控制信号调节可变电容1213的电容值,以调节第一时钟信号的延迟(比如,调节上述第一延迟量对应的控制比特)。第二延迟子电路122包括:第一个非门1221、第二个非门1222和可变电容1223;其中,第一个非门1221的输入端用于接收第二时钟信号,第一个非门1221的输出端与第二个非门1222的输入端均耦合至可变电容1223的一个固定端,可变电容1223的另一个固定端耦合接地,第二个非门1222的输出端用于输出第二延迟信号,可变电容1223的调节端与占空比调节器140耦合,用于跟随该控制信号调节可变电容1223的电容值,以调节第二时钟信号的延迟(比如,调节上述第二延迟量对应的控制比特)。In a possible implementation, as shown in FIG. 2, the first delay sub-circuit 121 includes: a first NOT gate 1211, a second NOT gate 1212, and a variable capacitor 1213; wherein, the first NOT gate 1211 Is used to receive the first clock signal. The output of the first NOT gate 1211 and the input of the second NOT gate 1212 are coupled to a fixed end of the variable capacitor 1213, and the other of the variable capacitor 1213 is fixed. The terminal is coupled to ground. The output of the second NOT gate 1212 is used to output the first delayed signal. The adjustment terminal of the variable capacitor 1213 is coupled to the duty cycle regulator 140 to adjust the capacitance of the variable capacitor 1213 following the control signal. Value to adjust the delay of the first clock signal (for example, adjust the control bit corresponding to the first delay amount). The second delay sub-circuit 122 includes: a first NOT gate 1221, a second NOT gate 1222, and a variable capacitor 1223; wherein, the input terminal of the first NOT gate 1221 is used to receive the second clock signal, and the first NOT gate The output terminal of the gate 1221 and the input terminal of the second NOT gate 1222 are both coupled to a fixed terminal of the variable capacitor 1223, the other fixed terminal of the variable capacitor 1223 is coupled to ground, and the output terminal of the second NOT gate 1222 is used to The second delay signal is output, and the adjustment terminal of the variable capacitor 1223 is coupled to the duty cycle regulator 140 for adjusting the capacitance of the variable capacitor 1223 following the control signal to adjust the delay of the second clock signal (for example, adjusting the above Control bits corresponding to the second delay amount).
需要说明的是,本申请实施例中的可变电容1213和可变电容1223均可以为满足所需电容值的一个电容,也可以是由多个电容通过并联或者串联组成的满足所需电容值的电容组合,也即,该多个电容串联或并联后对应的电容值等于所需要的电容值。另外,上述图3所示的第一延迟子电路121和第二延迟子电路122仅为示例性的,并不对本申请实施例构成限定,本申请实施例还可以通过其他方式第一延迟子电路121和第二延迟子电路122。It should be noted that both the variable capacitor 1213 and the variable capacitor 1223 in the embodiment of the present application may be a capacitor that satisfies the required capacitance value, or may be a plurality of capacitors connected in parallel or in series to meet the required capacitance value Capacitor combination, that is, the corresponding capacitance value after the multiple capacitors are connected in series or in parallel is equal to the required capacitance value. In addition, the first delay sub-circuit 121 and the second delay sub-circuit 122 shown in FIG. 3 are only exemplary, and do not limit the embodiment of the present application. The embodiment of the present application may also use other methods for the first delay sub-circuit 121 和 第二 迟 子 电路 122。 121 and the second delay sub-circuit 122.
在一种可能的实现方式中,如图3所示,沿触发脉冲产生器130包括:第一个脉冲产生器131、第二个脉冲产生器132和RS触发器133。其中,第一个脉冲产生器131的输入端耦合至第一延迟电路121的输出端,用于接收第一延迟信号,第一个脉冲产生器131的输出端耦合至的RS触发器133的R输入端;第二个脉冲产生器132的输入端耦合至第二延迟电路122的输出端,用于接收第二延迟信号,第二个脉冲产生器132的输出端耦合至RS触发器133的S输入端;RS触发器133的输出端与占空比调节器140的输入端耦合,用于输出该输出时钟信号。In a possible implementation, as shown in FIG. 3, the edge trigger pulse generator 130 includes a first pulse generator 131, a second pulse generator 132 and an RS flip-flop 133. The input terminal of the first pulse generator 131 is coupled to the output terminal of the first delay circuit 121 for receiving the first delay signal, and the output terminal of the first pulse generator 131 is coupled to the R of the RS flip-flop 133 Input terminal; the input terminal of the second pulse generator 132 is coupled to the output terminal of the second delay circuit 122 for receiving the second delay signal, and the output terminal of the second pulse generator 132 is coupled to the S of the RS flip-flop 133 The input terminal; the output terminal of the RS flip-flop 133 is coupled to the input terminal of the duty ratio regulator 140, and is used to output the output clock signal.
或者,如图4所示,沿触发脉冲产生器130包括:第一个D触发器134、第二个D触发器135、第一缓冲器136、第二缓冲器137和与非门138。其中,第一个D触发器134的CP输入端耦合至第一延迟子电路121的输出端,用于接收第一延迟信号,第一个D触发器134的D输入端耦合至电源端VDD,第一个D触发器134的输出端耦合至第一缓冲器136的输入端;第二个D触发器135的CP输入端耦合至第二延迟子电路122的输出端,用于接收第二延迟信号,第二个D触发器135的D输入端耦合至电源端VDD,第二个D触发器135的输出端耦合至第二缓冲器137的输入端;与非门138的非端分别耦合至第一个D触发器134的复位端RST和第二个D触发器135的复位端RST;与非门138的一个与端耦合至第一个缓冲器134的输出端,用于输出该输出时钟信号,与非门138的另一个与端耦合至第二个缓冲器135的输出端。其中,第一个D触发器134的复位端RST和第二个D触发器135的复位端RST可以通过高电平复位,也可以同低电平复位。Alternatively, as shown in FIG. 4, the edge trigger pulse generator 130 includes a first D flip-flop 134, a second D flip-flop 135, a first buffer 136, a second buffer 137 and a NAND gate 138. The CP input terminal of the first D flip-flop 134 is coupled to the output terminal of the first delay sub-circuit 121 for receiving the first delay signal, and the D input terminal of the first D flip-flop 134 is coupled to the power supply terminal VDD, The output of the first D flip-flop 134 is coupled to the input of the first buffer 136; the CP input of the second D flip-flop 135 is coupled to the output of the second delay sub-circuit 122 for receiving the second delay Signal, the D input terminal of the second D flip-flop 135 is coupled to the power supply terminal VDD, the output terminal of the second D flip-flop 135 is coupled to the input terminal of the second buffer 137; the non-terminals of the NAND gate 138 are respectively coupled to The reset terminal RST of the first D flip-flop 134 and the reset terminal RST of the second D flip-flop 135; an AND terminal of the NAND gate 138 is coupled to the output terminal of the first buffer 134 for outputting the output clock The signal, the other AND terminal of the NAND gate 138 is coupled to the output terminal of the second buffer 135. Among them, the reset terminal RST of the first D flip-flop 134 and the reset terminal RST of the second D flip-flop 135 can be reset by a high level, or can be reset at the same level.
在一种可能的实现方式中,如图3所示,占空比调节器140包括:时间数字转换器(time to digital converter,TDC)141和控制器142。其中,时间数字转换器141的输入端与沿触发脉冲产生器130的输出端耦合,用于接收沿触发脉冲产生器130产生 的输出时钟信号;时间数字转换器141的输出端与控制器142的输入端耦合,控制器的输出端分别耦合至第一延迟子电路121和第二延迟子电路122,用于调节第一时钟信号的延迟和/或第二时钟信号的延迟进行调节。具体的,时间数字转换器141用于根据锁相环反馈时钟信号与倍频器150的输出时钟信号进行相位比对,输出时钟信号(Fout)的占空比信息可以反映在TDC 141的输出;控制器142用于根据该占空比生成控制信号,以对第一时钟信号的延迟和/或第二时钟信号的延迟进行调节。可选地,控制器142用于在输出时钟信号的占空比不为50%时,调节第一延迟量对应的控制比特Dcal1和/或第二延迟量对应的控制比特Dcal2,以使沿触发脉冲产生器130产生占空比为50%的输出时钟信号。In a possible implementation manner, as shown in FIG. 3, the duty ratio regulator 140 includes a time-to-digital converter (TDC) 141 and a controller 142. The input terminal of the time-to-digital converter 141 is coupled to the output terminal of the edge-triggered pulse generator 130 to receive the output clock signal generated by the edge-triggered pulse generator 130; the output terminal of the time-to-digital converter 141 and the controller 142 The input terminals are coupled, and the output terminals of the controller are respectively coupled to the first delay sub-circuit 121 and the second delay sub-circuit 122 for adjusting the delay of the first clock signal and / or the delay of the second clock signal. Specifically, the time-to-digital converter 141 is used to perform phase comparison between the phase-locked loop feedback clock signal and the output clock signal of the frequency multiplier 150, and the duty cycle information of the output clock signal (Fout) can be reflected in the output of the TDC 141; The controller 142 is used to generate a control signal according to the duty ratio to adjust the delay of the first clock signal and / or the delay of the second clock signal. Optionally, the controller 142 is used to adjust the control bit Dcal1 corresponding to the first delay amount and / or the control bit Dcal2 corresponding to the second delay amount when the duty cycle of the output clock signal is not 50%, so that the edge triggers The pulse generator 130 generates an output clock signal with a duty ratio of 50%.
进一步的,如图3所示,该占空比校准电路还可以包括:耦合在沿触发脉冲产生器130与占空比调节器140之间的倍频器150,用于对沿触发脉冲产生器130产生的输出时钟信号进行倍频处理,并将倍频处理后的输出时钟信号传输至占空比调节器140。Further, as shown in FIG. 3, the duty cycle calibration circuit may further include: a frequency multiplier 150 coupled between the edge trigger pulse generator 130 and the duty cycle regulator 140, which is used for the edge trigger pulse generator The output clock signal generated by 130 is subjected to frequency multiplication processing, and the output clock signal after frequency multiplication processing is transmitted to the duty ratio regulator 140.
在本申请实施例中,占空比调节器140可以实时地检测沿触发脉冲产生器130输出的输出时钟信号的占空比,并通过调节第一时钟信号的延迟和/或第二时钟信号的延迟,可以减小输出时钟信号的占空比或增大输出时钟信号的占空比,从而能够产生一定占空比的输出时钟信号,比如使沿触发脉冲产生器130产生占空比为50%的输出时钟信号,从而实现了占空比的实时、双向和高精度校准,同时降低了系统噪声。In the embodiment of the present application, the duty ratio adjuster 140 can detect the duty ratio of the output clock signal output by the trigger pulse generator 130 in real time, and adjust the delay of the first clock signal and / or the Delay can reduce the duty cycle of the output clock signal or increase the duty cycle of the output clock signal, which can generate a certain duty cycle of the output clock signal, for example, the edge trigger pulse generator 130 generates a duty cycle of 50% Output clock signal, thus realizing real-time, bidirectional and high-precision calibration of the duty cycle, while reducing system noise.
本申请实施例还提供一种终端,该终端至少包括射频装置以及包括本申请实施例提供的占空比校准电路,该占空比校准电路用于为上述射频装置提供本地载波信号。该射频装置用于以下任意一项或组合:终端中的蜂窝移动通信模块、蓝牙模块、无线保真(WiFi)模块或任何需要本地载波信号的装置。例如,该终端中的射频装置可以为蓝牙模块以及WiFi模块,也可以为蓝牙模块或者WiFi模块。An embodiment of the present application further provides a terminal. The terminal includes at least a radio frequency device and a duty cycle calibration circuit provided by the embodiment of the present application. The duty cycle calibration circuit is used to provide a local carrier signal for the radio frequency device. The radio frequency device is used in any one or combination of the following: a cellular mobile communication module, a Bluetooth module, a wireless fidelity (WiFi) module in the terminal, or any device that requires a local carrier signal. For example, the radio frequency device in the terminal may be a Bluetooth module and a WiFi module, and may also be a Bluetooth module or a WiFi module.
本申请实施例还提供一种基站,该基站至少包括收发机以及锁相环电路,该锁相环电路包括本申请实施例提供的占空比校准电路,该占空比校准电路用于为该基站的收发机提供本地载波信号。An embodiment of the present application further provides a base station. The base station includes at least a transceiver and a phase-locked loop circuit. The phase-locked loop circuit includes a duty cycle calibration circuit provided in an embodiment of the present application. The duty cycle calibration circuit is used to The base station's transceiver provides local carrier signals.
需要说明的是,上述终端和基站只是举例说明应用本申请实施例提供的占空比校准电路的产品,并不能构成对本申请实施例提供的占空比校准电路的应用的限制,本申请实施例提供的占空比校准电路可以应用在任何需要占空比校准的场景中,以及任何需要占空比校准的产品中。It should be noted that the above-mentioned terminal and base station are only examples of products that apply the duty cycle calibration circuit provided by the embodiments of the present application, and cannot constitute a restriction on the application of the duty cycle calibration circuit provided by the embodiments of the present application. The provided duty cycle calibration circuit can be applied to any scene that requires duty cycle calibration, and any product that requires duty cycle calibration.
图5为本申请实施例提供的一种占空比校准方法的流程示意图,应用于包括本申请实施例提供的占空比校准电路的电子设备中,参见图5,该方法包括以下几个步骤。FIG. 5 is a schematic flowchart of a duty cycle calibration method provided by an embodiment of the present application, which is applied to an electronic device including a duty cycle calibration circuit provided by an embodiment of the present application. Referring to FIG. 5, the method includes the following steps .
S501:根据输入时钟信号产生第一时钟信号和第二时钟信号,第一时钟信号与第二时钟信号的高低电平相反。S501: Generate a first clock signal and a second clock signal according to the input clock signal. The first clock signal and the second clock signal have opposite high and low levels.
S502:延迟第一时钟信号得到第一延迟信号,以及延迟第二时钟信号得到第二延迟信号。S502: Delay the first clock signal to obtain a first delayed signal, and delay the second clock signal to obtain a second delayed signal.
S503:根据第一延迟信号的升/降沿和第二延迟信号的升/降沿产生输出时钟信号,该升/降沿可以为上升沿或下降沿。可选地,根据第一延迟信号的上升沿和第二延迟信号的上升沿产生输出时钟信号;或者,根据第一延迟信号的下降沿和第二延迟信号的 下降沿产生输出时钟信号。S503: Generate an output clock signal according to the rising / falling edge of the first delayed signal and the rising / falling edge of the second delayed signal, and the rising / falling edge may be a rising edge or a falling edge. Optionally, the output clock signal is generated according to the rising edge of the first delay signal and the rising edge of the second delay signal; or, the output clock signal is generated according to the falling edge of the first delay signal and the falling edge of the second delay signal.
S504:检测输出时钟信号的占空比,并根据该占空比生成控制信号,以对第一时钟信号的延迟和/或第二时钟信号的延迟进行调节。可选地,在检测到输出时钟信号的占空比,不为50%时生成控制信号,以对第一时钟信号的延迟和/或第二时钟信号的延迟进行调节,比如,调节上述装置实施例中的第一延迟量和/或第二延迟量对应的控制比特。其中,对第一时钟信号的延迟和/或第二时钟信号的延迟进行调节之后,可以返回S502继续执行,直至检测到S503中产生占空比为50%的输出时钟信号。S504: Detect the duty ratio of the output clock signal, and generate a control signal according to the duty ratio to adjust the delay of the first clock signal and / or the delay of the second clock signal. Optionally, when the duty cycle of the output clock signal is detected to be not 50%, a control signal is generated to adjust the delay of the first clock signal and / or the delay of the second clock signal, for example, by adjusting the implementation of the above device In the example, control bits corresponding to the first delay amount and / or the second delay amount. After adjusting the delay of the first clock signal and / or the delay of the second clock signal, it may return to S502 to continue execution until it is detected that an output clock signal with a duty ratio of 50% is generated in S503.
需要说明的是,上述方法实施例中每个步骤的具体描述,可以对应参见上述占空比校准电路对应的实施例中相关器件或者电路的描述,本申请实施例对此不再赘述。It should be noted that, for the specific description of each step in the above method embodiment, reference may be made to the description of related devices or circuits in the embodiment corresponding to the above duty cycle calibration circuit, which will not be repeated in the embodiments of the present application.
在本申请实施例中,通过调节第一时钟信号的延迟和/或第二时钟信号的延迟,可以减小输出时钟信号的占空比或增大输出时钟信号的占空比,因此通过检测该占空比并调节能够产生一定占空比的输出时钟信号,从而实现了占空比的实时、双向和高精度的校准,且系统噪声较低。In the embodiment of the present application, by adjusting the delay of the first clock signal and / or the delay of the second clock signal, the duty cycle of the output clock signal can be reduced or the duty cycle of the output clock signal can be increased, so by detecting this The duty cycle and adjustment can generate a certain duty cycle output clock signal, thereby realizing the real-time, bidirectional and high-precision calibration of the duty cycle, and the system noise is low.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of the present application, but the scope of protection of the present application is not limited thereto, and the scope of protection of the present application shall be subject to the scope of protection of the claims.
Claims (11)
- 一种占空比校准电路,其特征在于,所述电路包括:预处理电路、延迟电路、沿触发脉冲产生器和占空比调节器;A duty cycle calibration circuit, characterized in that the circuit includes: a preprocessing circuit, a delay circuit, an edge trigger pulse generator, and a duty cycle regulator;所述预处理电路,用于根据输入时钟信号产生第一时钟信号和第二时钟信号,所述第一时钟信号与所述第二时钟信号的高低电平相反;The preprocessing circuit is configured to generate a first clock signal and a second clock signal according to the input clock signal, and the first clock signal is opposite to the high and low levels of the second clock signal;所述延迟电路,用于延迟所述第一时钟信号得到第一延迟信号,以及延迟所述第二时钟信号得到第二延迟信号;The delay circuit is configured to delay the first clock signal to obtain a first delayed signal, and delay the second clock signal to obtain a second delayed signal;所述沿触发脉冲产生器,用于根据所述第一延迟信号的升/降沿和所述第二延迟信号的升/降沿产生输出时钟信号;The edge trigger pulse generator is configured to generate an output clock signal according to the rising / falling edge of the first delay signal and the rising / falling edge of the second delay signal;所述占空比调节器,用于检测所述输出时钟信号的占空比,并根据所述占空比生成控制信号,以对所述第一时钟信号的延迟和/或所述第二时钟信号的延迟进行调节。The duty cycle regulator is configured to detect the duty cycle of the output clock signal and generate a control signal according to the duty cycle to delay the first clock signal and / or the second clock The delay of the signal is adjusted.
- 根据权利要求1所述的校准电路,其特征在于,所述占空比调节器,具体用于:The calibration circuit according to claim 1, wherein the duty cycle regulator is specifically used for:在检测到所述输出时钟信号的占空比不为50%时生成控制信号,以对所述第一时钟信号的延迟和/或所述第二时钟信号的延迟进行调节。When it is detected that the duty cycle of the output clock signal is not 50%, a control signal is generated to adjust the delay of the first clock signal and / or the delay of the second clock signal.
- 根据权利要求1或2所述的校准电路,其特征在于,所述沿触发脉冲产生器,具体用于:The calibration circuit according to claim 1 or 2, wherein the edge-triggered pulse generator is specifically used to:根据所述第一延迟信号的上升沿和所述第二延迟信号的上升沿产生所述输出时钟信号,所述输出时钟信号的脉宽等于所述第一延迟信号的上升沿与所述第二延迟信号的上升沿之间的宽度;或者,The output clock signal is generated according to the rising edge of the first delay signal and the rising edge of the second delay signal, and the pulse width of the output clock signal is equal to the rising edge of the first delay signal and the second The width between the rising edges of the delayed signal; or,根据所述第一延迟信号的下降沿和所述第二延迟信号的下降沿产生所述输出时钟信号,所述输出时钟信号的脉宽等于所述第一延迟信号的下升沿与所述第二延迟信号的下升沿之间的宽度。The output clock signal is generated according to the falling edge of the first delay signal and the falling edge of the second delay signal, and the pulse width of the output clock signal is equal to the falling edge of the first delay signal and the first The width between the rising edges of the two delayed signals.
- 根据权利要求1-3任一项所述的校准电路,其特征在于,所述沿触发脉冲产生器包括:两个脉冲产生器和RS触发器;The calibration circuit according to any one of claims 1-3, wherein the edge-triggered pulse generator includes: two pulse generators and an RS trigger;其中,所述两个脉冲产生器的输入端均耦合至所述延迟电路的输出端,用于接收所述第一延迟信号和所述第二延迟信号;所述两个脉冲产生器的输出端分别耦合至所述RS触发器的R输入端和S输入端,所述RS触发器的输出端用于输出所述输出时钟信号。Wherein, the input ends of the two pulse generators are both coupled to the output end of the delay circuit, and are used to receive the first delay signal and the second delay signal; the output ends of the two pulse generators They are respectively coupled to the R input end and the S input end of the RS flip-flop, and the output end of the RS flip-flop is used to output the output clock signal.
- 根据权利要求1-3任一项所述的校准电路,其特征在于,所述沿触发脉冲产生器包括:两个D触发器、两个缓冲器和与非门;The calibration circuit according to any one of claims 1-3, wherein the edge trigger pulse generator includes: two D flip-flops, two buffers, and a NAND gate;其中,所述两个D触发器的CP输入端分别用于接收所述第一延迟信号和所述第二延迟信号,所述两个D触发器的D输入端均耦合至电源端,所述两个D触发器的输出端分别耦合至所述两个缓冲器的输入端,所述与非门的非端分别耦合至所述两个D触发器的复位端,所述与非门的一个与端耦合至所述两个缓冲器中的第一个缓冲器的输出端,用于输出所述输出时钟信号,所述与非门的另一个与端耦合至第二个缓冲器的输出端。Wherein, the CP input terminals of the two D flip-flops are respectively used to receive the first delay signal and the second delay signal, and the D input terminals of the two D flip-flops are both coupled to the power supply terminal, the The output ends of the two D flip-flops are respectively coupled to the input ends of the two buffers, the non-ends of the NAND gates are respectively coupled to the reset ends of the two D flip-flops, one of the NAND gates The AND terminal is coupled to the output terminal of the first buffer of the two buffers for outputting the output clock signal, and the other AND terminal of the NAND gate is coupled to the output terminal of the second buffer .
- 根据权利要求1-5任一项所述的校准电路,其特征在于,所述延迟电路包括两个延迟子电路,每个延迟子电路包括:两个非门和可变电容;The calibration circuit according to any one of claims 1 to 5, wherein the delay circuit includes two delay sub-circuits, and each delay sub-circuit includes: two NOT gates and a variable capacitor;其中,所述两个非门中的第一个非门的输入端用于接收所述第一时钟信号或者所述第二时钟信号,所述第一个非门的输出端与第二个非门的输入端耦合至所述可变电容的一个固定端,所述可变电容的另一个固定端耦合接地,所述可变电容的调节端用于跟随所述控制信号调节所述可变电容的电容值,以调节所述第一时钟信号的延迟或者所述第二时钟信号的延迟,所述第二个非门的输出端用于输出所述第一延迟信号或所述第二延迟信号。The input terminal of the first NOT gate of the two NOT gates is used to receive the first clock signal or the second clock signal, and the output terminal of the first NOT gate is connected to the second NOT gate The input terminal of the gate is coupled to one fixed terminal of the variable capacitor, the other fixed terminal of the variable capacitor is coupled to ground, and the adjustment terminal of the variable capacitor is used to adjust the variable capacitor following the control signal To adjust the delay of the first clock signal or the delay of the second clock signal, the output terminal of the second NOT gate is used to output the first delay signal or the second delay signal .
- 根据权利要求1-6任一项所述的校准电路,其特征在于,所述占空比调节器包括:时间数字转换器和控制器;The calibration circuit according to any one of claims 1-6, wherein the duty cycle regulator includes: a time-to-digital converter and a controller;所述时间数字转换器,用于检测所述输出时钟信号的占空比;The time-to-digital converter is used to detect the duty cycle of the output clock signal;所述控制器,用于根据所述占空比生成控制信号,以对所述第一时钟信号的延迟和/或所述第二时钟信号的延迟进行调节。The controller is configured to generate a control signal according to the duty ratio to adjust the delay of the first clock signal and / or the delay of the second clock signal.
- 一种电子设备,其特征在于,所述电子设备包括:射频装置和占空比校准电路;其中,所述占空比校准电路用于为所述射频装置提供载波信号,所述占空比校准电路如权利要求1-7任一项所述的占空比校准电路。An electronic device, characterized in that the electronic device includes: a radio frequency device and a duty cycle calibration circuit; wherein, the duty cycle calibration circuit is used to provide a carrier signal for the radio frequency device, and the duty cycle calibration A circuit as claimed in any one of claims 1-7.
- 一种占空比校准方法,其特征在于,所述方法包括:A duty cycle calibration method, characterized in that the method includes:根据输入时钟信号产生第一时钟信号和第二时钟信号,所述第一时钟信号与所述第二时钟信号的高低电平相反;Generating a first clock signal and a second clock signal according to the input clock signal, the first clock signal being opposite to the high and low levels of the second clock signal;延迟所述第一时钟信号得到第一延迟信号,以及延迟所述第二时钟信号得到第二延迟信号;Delaying the first clock signal to obtain a first delayed signal, and delaying the second clock signal to obtain a second delayed signal;根据所述第一延迟信号的升/降沿和所述第二延迟信号的升/降沿产生输出时钟信号;Generating an output clock signal according to the rising / falling edge of the first delayed signal and the rising / falling edge of the second delayed signal;检测所述输出时钟信号的占空比,并根据所述占空比生成控制信号,以对所述第一时钟信号的延迟和/或所述第二时钟信号的延迟进行调节。Detecting the duty cycle of the output clock signal and generating a control signal according to the duty cycle to adjust the delay of the first clock signal and / or the delay of the second clock signal.
- 根据权利要求9所述的方法,其特征在于,所述根据所述占空比生成控制信号,以对所述第一时钟信号的延迟和/或所述第二时钟信号的延迟进行调节,包括:The method according to claim 9, wherein the generating a control signal according to the duty ratio to adjust the delay of the first clock signal and / or the delay of the second clock signal includes :在检测到所述输出时钟信号的占空比不为50%时生成控制信号,以对所述第一时钟信号的延迟和/或所述第二时钟信号的延迟进行调节。When it is detected that the duty cycle of the output clock signal is not 50%, a control signal is generated to adjust the delay of the first clock signal and / or the delay of the second clock signal.
- 根据权利要求9或10所述的方法,其特征在于,所述根据所述第一延迟信号的升/降沿和所述第二延迟信号的升/降沿产生输出时钟信号,包括:The method according to claim 9 or 10, wherein the generating an output clock signal according to the rising / falling edge of the first delayed signal and the rising / falling edge of the second delayed signal includes:根据所述第一延迟信号的上升沿和所述第二延迟信号的上升沿产生所述输出时钟信号,所述输出时钟信号的脉宽等于所述第一延迟信号的上升沿与所述第二延迟信号的上升沿之间的宽度;或者,The output clock signal is generated according to the rising edge of the first delay signal and the rising edge of the second delay signal, and the pulse width of the output clock signal is equal to the rising edge of the first delay signal and the second The width between the rising edges of the delayed signal; or,根据所述第一延迟信号的下降沿和所述第二延迟信号的下降沿产生所述输出时钟信号,所述输出时钟信号的脉宽等于所述第一延迟信号的下升沿与所述第二延迟信号的下升沿之间的宽度。The output clock signal is generated according to the falling edge of the first delay signal and the falling edge of the second delay signal, and the pulse width of the output clock signal is equal to the falling edge of the first delay signal and the first The width between the rising edges of the two delayed signals.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201880097137.XA CN112655151B (en) | 2018-10-17 | 2018-10-17 | Duty cycle calibration circuit, electronic equipment and method |
PCT/CN2018/110617 WO2020077557A1 (en) | 2018-10-17 | 2018-10-17 | Duty cycle calibration circuit, electronic device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/110617 WO2020077557A1 (en) | 2018-10-17 | 2018-10-17 | Duty cycle calibration circuit, electronic device and method |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020077557A1 true WO2020077557A1 (en) | 2020-04-23 |
Family
ID=70284349
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/110617 WO2020077557A1 (en) | 2018-10-17 | 2018-10-17 | Duty cycle calibration circuit, electronic device and method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112655151B (en) |
WO (1) | WO2020077557A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115705876A (en) * | 2021-08-03 | 2023-02-17 | 西安紫光国芯半导体有限公司 | Delay calibration circuit, memory and clock signal calibration method |
CN117559973B (en) * | 2023-11-14 | 2024-04-16 | 上海奎芯集成电路设计有限公司 | Full digital clock duty cycle adjusting circuit and clock duty cycle adjusting method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6642760B1 (en) * | 2002-03-29 | 2003-11-04 | Rambus, Inc. | Apparatus and method for a digital delay locked loop |
CN101303887A (en) * | 2007-05-08 | 2008-11-12 | 茂德科技股份有限公司(新加坡子公司) | Perfect alignment and duty ratio control of data output of memory device |
CN102361453A (en) * | 2011-08-15 | 2012-02-22 | 中国电子科技集团公司第二十四研究所 | High-speed duty ratio adjustment and double-end-to-single-end circuit for phase-locked loop |
CN103248343A (en) * | 2012-02-10 | 2013-08-14 | 国际商业机器公司 | Edge selection techniques for correcting clock duty cycle |
CN103795375A (en) * | 2012-10-30 | 2014-05-14 | 瑞昱半导体股份有限公司 | Duty ratio adjusting circuit and duty ratio adjusting method |
CN105577142A (en) * | 2016-02-26 | 2016-05-11 | 昆腾微电子股份有限公司 | Clock duty cycle adjusting device and method |
-
2018
- 2018-10-17 CN CN201880097137.XA patent/CN112655151B/en active Active
- 2018-10-17 WO PCT/CN2018/110617 patent/WO2020077557A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6642760B1 (en) * | 2002-03-29 | 2003-11-04 | Rambus, Inc. | Apparatus and method for a digital delay locked loop |
CN101303887A (en) * | 2007-05-08 | 2008-11-12 | 茂德科技股份有限公司(新加坡子公司) | Perfect alignment and duty ratio control of data output of memory device |
CN102361453A (en) * | 2011-08-15 | 2012-02-22 | 中国电子科技集团公司第二十四研究所 | High-speed duty ratio adjustment and double-end-to-single-end circuit for phase-locked loop |
CN103248343A (en) * | 2012-02-10 | 2013-08-14 | 国际商业机器公司 | Edge selection techniques for correcting clock duty cycle |
CN103795375A (en) * | 2012-10-30 | 2014-05-14 | 瑞昱半导体股份有限公司 | Duty ratio adjusting circuit and duty ratio adjusting method |
CN105577142A (en) * | 2016-02-26 | 2016-05-11 | 昆腾微电子股份有限公司 | Clock duty cycle adjusting device and method |
Also Published As
Publication number | Publication date |
---|---|
CN112655151A (en) | 2021-04-13 |
CN112655151B (en) | 2024-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10181844B1 (en) | Clock duty cycle calibration and frequency multiplier circuit | |
CN105322956B (en) | Apparatus and method for clock synchronization for inter-die synchronized data transfer | |
CN102369669B (en) | Techniques for non-overlapping clock generation | |
US8686773B1 (en) | In-system margin measurement circuit | |
WO2018113625A1 (en) | Time-to-digital converter and time measurement method | |
US10771069B1 (en) | Field programmable gate array with internal phase-locked loop | |
US9465404B2 (en) | Timing synchronization circuit for wireless communication apparatus | |
JP2001320273A (en) | Delay synchronizing loop circuit and delay synchronizing method | |
US10691074B2 (en) | Time-to-digital converter circuit | |
WO2023184851A1 (en) | Duty cycle calibration circuit and method, chip, and electronic device | |
CN106257835B (en) | A kind of 25% duty cycle clock signal generation circuit | |
US9250859B2 (en) | Deterministic FIFO buffer | |
WO2020077557A1 (en) | Duty cycle calibration circuit, electronic device and method | |
US20210203313A1 (en) | Clock multiplier | |
WO2022247681A1 (en) | Delay modulation circuit and method, chip, and server | |
CN115685723A (en) | Time-to-digital converter based on pulse broadening | |
CN103338037B (en) | The method and apparatus that in a kind of phaselocked loop, clock signal turns digital signal | |
CN115118252A (en) | Duty ratio correction device and duty ratio correction method | |
CN210157160U (en) | Digital clock frequency multiplication circuit system | |
US8963603B2 (en) | Clock generator and method thereof | |
US20100141319A1 (en) | Clock signal output circuit | |
KR101013920B1 (en) | Frequency Multiplication System and Control Method of the Same | |
TWI677190B (en) | Clock generating device and clock generating method | |
US20240030924A1 (en) | Signal generating circuit and signal generating method | |
US9419782B1 (en) | Efficient asynchronous communication protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18937394 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18937394 Country of ref document: EP Kind code of ref document: A1 |