A digital correction device and method for correcting duty cycle in an analog duty cycle regulator
By designing a digital correction device in the analog duty cycle adjuster to perform coarse adjustment and fine adjustment of the duty cycle separately, the problems of complexity and insufficient accuracy of the duty cycle correction in the existing technology are solved, and high-precision and automated adjustment is achieved. Duty cycle correction.
Patent Information
- Application Number
- CN202410124625.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-01-30
AI Technical Summary
In existing analog duty cycle adjusters, the duty cycle correction process is complex and the detection accuracy and efficiency are insufficient. The mismatch correction and duty cycle correction of the analog comparator cannot be effectively separated, which affects the duty cycle adjustment of the clock signal.
A digital correction device is designed, including an analog circuit and a digital circuit. Through the duty cycle detector, analog comparator, digital counter and coarse adjustment and fine adjustment circuits, the coarse adjustment and fine adjustment of the duty cycle are separately performed. The input is first eliminated. Mismatch effects are eliminated, and then fine correction is performed to improve detection accuracy and adjustment range.
It achieves high precision, linearity and automated duty cycle correction, expands the adjustment range and saves correction time.
Smart Images

Figure CN118249789B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital correction of duty cycle, and in particular to a digital correction device and method for correcting the duty cycle in an analog duty cycle adjuster. Background Art
[0002] As the demand for clock signal speed increases, we are more sensitive to the duty cycle changes of clock signals. Due to the influence of load, process, voltage, and temperature, we need a duty cycle detection and correction circuit to continuously detect and adjust the duty cycle. In the analog duty cycle adjuster, the digital correction device for correcting the duty cycle refers to a system that uses digital technology to adjust and correct the output duty cycle of the analog circuit. The system aims to achieve accurate adjustment of the analog signal through digital means so that its duty cycle meets the expected requirements.
[0003] However, the correction of the analog duty cycle adjuster is relatively complicated in the prior art, and only a digital trimmer or a digital corrector is used to fine-tune the duty cycle, without separating the mismatch correction of the analog comparator and the duty cycle correction. The influence of the input pair mismatch and the current mirror mismatch on the analog comparator is first eliminated, and then the duty cycle of the clock signal is corrected. Therefore, the detection accuracy and efficiency of the duty cycle detection circuit and the duty cycle adjustment range need to be further improved. Summary of the invention
[0004] The object of the present invention is to provide a digital correction device and method for correcting the duty cycle in an analog duty cycle adjuster to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A digital correction device for correcting a duty cycle in an analog duty cycle adjuster, comprising:
[0007] An analog circuit, wherein the analog circuit includes a duty cycle detector and an analog comparator, wherein a P input terminal of the duty cycle detector is connected to a clock input signal, an N input terminal of the duty cycle detector is connected to a reference voltage VREF, the duty cycle detector is used to detect the duty cycle of the clock input signal, an input terminal of the analog comparator is electrically connected to an output terminal of the duty cycle detector, and the analog comparator is used to determine whether the duty cycle of the clock input signal is greater than 50% or less than 50%;
[0008] A digital circuit, the digital circuit comprising a digital counter and a detector, the digital counter and the analog comparator are electrically connected, the analog comparator and the detector are electrically connected, the digital counter is used to receive an output signal COMP_OUT of the analog comparator, the output signal COMP_OUT is used to control the digital counter to output an EN signal, the EN signal is used to control the OFFSET<3:0> binary number output by the digital counter to increase one by one, when the output of the analog comparator generates a rising edge signal from 0 to 1 or a falling edge signal from 1 to 0, the detector outputs CALIB_DONE to the analog comparator, and the digital counter stops counting;
[0009] A coarse adjustment circuit, used to achieve a wide range of adjustment of the duty cycle of a clock input signal, the coarse adjustment circuit comprising a coarse adjustment mode completion detector, a counter of a coarse adjustment duty cycle corrector and a duty cycle corrector, the input end of the coarse adjustment mode completion detector being electrically connected to the output end of the duty cycle detector, the output end of the coarse adjustment mode completion detector being electrically connected to the input end of the counter of the coarse adjustment duty cycle corrector, and the output end of the counter of the duty cycle corrector sending a coarse duty cycle adjustment signal to the duty cycle corrector;
[0010] A fine-tuning circuit is used for finely adjusting the duty cycle of a clock input signal, the fine-tuning circuit includes a fine-tuning mode completion detector and a counter of a fine-tuning duty cycle corrector, the input end of the fine-tuning mode completion detector is electrically connected to the output end of the duty cycle detector, the output end of the fine-tuning mode completion detector is electrically connected to the input end of the counter of the fine-tuning duty cycle corrector, and the output end of the counter of the duty cycle corrector sends a duty cycle fine-tuning signal to the duty cycle corrector.
[0011] Furthermore, when the EN is 0, the analog comparator does not work, and when the EN is 1, the analog comparator works.
[0012] Furthermore, the OFFSET<3:0> is divided into P<3:0> and N<3:0>, and P<3:0>=0000 is set to be a positive mismatch, and N<3:0>=0000 is set to be a negative mismatch.
[0013] Furthermore, the duty cycle detector is a digital logic circuit constructed by a timing trigger circuit, a latch and a counter.
[0014] Furthermore, the digital counter is a digital logic circuit constructed by a timing trigger circuit, a latch circuit and a counting circuit.
[0015] Furthermore, the detector is a digital logic circuit constructed by a latch circuit and a counting circuit, and the coarse adjustment mode completion detector and the fine adjustment mode completion detector are both integrated circuits of a digital logic circuit for detecting a duty cycle and an analog comparator circuit.
[0016] Furthermore, the counter of the coarse duty cycle corrector and the counter of the fine duty cycle corrector are both digital logic circuits constructed by a duty cycle detector, a latch and a counter.
[0017] A digital correction method for correcting a duty cycle in an analog duty cycle adjuster, the digital correction method for correcting a duty cycle in an analog duty cycle adjuster is based on the above-mentioned digital correction device for correcting a duty cycle in an analog duty cycle adjuster, and the method comprises the following steps:
[0018] S1. In the initial state, determine whether VDD, RB, DCD_VREF_EN are 0 or 1, the clock input signal CLK_IN is 0 or 1, set P<3:0> to 0000, and N<3:0> to 0000;
[0019] S2. Determine whether the analog comparator output is 0 or 1. When the analog comparator output is 0, perform mismatch correction on P<3:0> at the positive end of the analog comparator. When the analog comparator output is 1, perform mismatch correction on N<3:0> at the negative end of the analog comparator.
[0020] S3. Determine whether the duty cycle is less than 50%. When the duty cycle is less than 50%, first perform a coarse adjustment of the duty cycle, and then perform a fine adjustment of the duty cycle to adjust the duty cycle from less than 50% to greater than 50%. When the duty cycle is greater than 50%, first perform a coarse adjustment of the duty cycle, and then perform a fine adjustment of the duty cycle to adjust the duty cycle from greater than 50% to less than 50%.
[0021] Furthermore, the step S2 specifically includes:
[0022] S2-1. When the analog comparator output is 0, the analog comparator output COMP_OUT is passed to the digital counter to control the increase of the digital counter. The digital counter output moves in the direction of P<3:0>=0000==》0001==》0011==》0111==》1111. When the EN signal (EN=1) output by the digital counter controls the increase of P<3:0> at the positive end of the analog comparator, making P<3:0>=0001, the analog comparator output COMP_OUT is still 0, and the digital counter output will continue to increase to 0011. When the analog comparator output does not change, the digital counter output will continue to increase to 0111, and then the digital counter output will continue to increase to 1111, until the analog comparator output COMP_OUT flips (rising edge from 0 to 1), at which time the digital counter stops counting;
[0023] S2-2. When the output of the analog comparator is 1, the output COMP_OUT of the analog comparator is passed to the digital counter to control the increase of the output of the digital counter. The output of the digital counter moves in the direction of N<3:0>=0000==》0001==》0011==》0111==》1111. When the EN signal (EN=1) output by the digital counter controls the negative terminal N<3:0> of the analog comparator to increase, when N<3:0>=0001, the output COMP_OUT of the analog comparator is 1, and the output of the digital counter will continue to increase to 0011. When the output of the analog comparator does not change, the output of the digital counter will continue to increase to 0111, and then the output of the digital counter will continue to increase to 1111 until the output COMP_OUT of the analog comparator flips (falling edge from 1 to 0). At this time, the digital counter stops counting and temporarily controls the increase of N<3:0> of the analog comparator. During the correction process, P<3:0> is always 0000.
[0024] Furthermore, the step S3 specifically includes:
[0025] S3-1. When the duty cycle detector detects that the duty cycle is less than 50%, the duty cycle detector output is 0, and the coarse duty cycle increases in the direction of the counter <4:0>=00000==>00001==>00011 of the coarse duty cycle corrector, until the output duty cycle>50%, that is, the duty cycle detector detects the rising edge signal of the signal from 0 to 1, and then the coarse duty cycle corrector is locked, and the value of the coarse 5-bit code is locked, indicating that the coarse duty cycle is completed, and then the counter <4:0> of the fine duty cycle corrector starts to work in the direction of =00000==>00001==>00011, until the duty cycle detector detects the falling edge signal of the signal from 1 to 0, and the fine duty cycle corrector is locked, indicating that the fine duty cycle is completed;
[0026] S3-2. When the duty cycle detector detects that the duty cycle is greater than 50%, the duty cycle detector output is 1, and the coarse-adjustment duty cycle moves in the direction of decreasing, and starts to work in the direction of the coarse-adjustment duty cycle corrector's counter <4:0>=00000==>00001==>00011, until the output duty cycle is <50%, that is, the duty cycle detector detects the falling edge signal from 1 to 0, and then the coarse-adjustment duty cycle corrector is locked, locking the value of the coarse-adjustment 5-bit code, indicating that the coarse-adjustment duty cycle is completed, and then the fine-adjustment duty cycle corrector's counter <4:0> starts to work in the direction of =00000==>00001==>00011, until the duty cycle detector detects the rising edge signal from 0 to 1, and the fine-adjustment duty cycle corrector is locked, indicating that the fine-adjustment duty cycle is completed.
[0027] Compared with the prior art, the present invention has the following beneficial effects:
[0028] The present invention connects the P input terminal of the duty cycle detector with the clock input signal, the N input terminal of the duty cycle detector with the reference voltage VREF, the input terminal of the analog comparator with the output terminal of the duty cycle detector, the digital counter with the analog comparator, the analog comparator with the detector, the coarse adjustment mode completes the electrical connection between the input terminal of the detector and the output terminal of the duty cycle detector, the coarse adjustment mode completes the electrical connection between the output terminal of the detector and the input terminal of the counter of the coarse adjustment duty cycle corrector, the fine adjustment mode completes the electrical connection between the input terminal of the detector and the output terminal of the duty cycle detector, and the fine adjustment mode completes the electrical connection between the output terminal of the detector and the input terminal of the counter of the fine adjustment duty cycle corrector. Therefore, the high-precision analog comparator of the duty cycle detector is calibrated first to effectively eliminate the influence of input tube mismatch and current mirror mismatch on the analog comparator, and then the duty cycle correction is divided into coarse adjustment and fine adjustment. The duty cycle of the clock signal is adjusted by coarse adjustment first and then fine adjustment, thereby improving the detection accuracy of the duty cycle detection circuit, achieving a wider duty cycle adjustment range, higher accuracy and linearity, and safely realizing the automation of duty cycle correction, saving correction time. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a structural connection diagram of the analog duty cycle adjuster of the present invention;
[0030] Figure 2 A correction flow chart of the analog duty cycle adjuster of the present invention;
[0031] Figure 3 A waveform diagram showing a negative mismatch corrected by a simulated duty cycle adjuster of the present invention;
[0032] Figure 4 This is a waveform diagram of a positive mismatch corrected by the simulated duty cycle adjuster of the present invention. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] Example:
[0035] See also Figures 1 to 4 , the present invention provides a technical solution:
[0036] A digital correction device for correcting the duty cycle in an analog duty cycle regulator, such as Figure 1 As shown, including:
[0037] An analog circuit, wherein the analog circuit includes a duty cycle detector and an analog comparator, wherein a P input terminal of the duty cycle detector is connected to a clock input signal, an N input terminal of the duty cycle detector is connected to a reference voltage VREF, the duty cycle detector is used to detect the duty cycle of the clock input signal, an input terminal of the analog comparator is electrically connected to an output terminal of the duty cycle detector, and the analog comparator is used to determine whether the duty cycle of the clock input signal is greater than 50% or less than 50%;
[0038] A digital circuit, the digital circuit comprising a digital counter and a detector, the digital counter and the analog comparator are electrically connected, the analog comparator and the detector are electrically connected, the digital counter is used to receive an output signal COMP_OUT of the analog comparator, the output signal COMP_OUT is used to control the digital counter to output an EN signal, the EN signal is used to control the OFFSET<3:0> binary number output by the digital counter to increase one by one, when the output of the analog comparator generates a rising edge signal from 0 to 1 or a falling edge signal from 1 to 0, the detector outputs CALIB_DONE to the analog comparator, and the digital counter stops counting;
[0039] A coarse adjustment circuit, used to achieve a wide range of adjustment of the duty cycle of a clock input signal, the coarse adjustment circuit comprising a coarse adjustment mode completion detector, a counter of a coarse adjustment duty cycle corrector and a duty cycle corrector, the input end of the coarse adjustment mode completion detector being electrically connected to the output end of the duty cycle detector, the output end of the coarse adjustment mode completion detector being electrically connected to the input end of the counter of the coarse adjustment duty cycle corrector, and the output end of the counter of the duty cycle corrector sending a coarse duty cycle adjustment signal to the duty cycle corrector;
[0040] A fine-tuning circuit is used for finely adjusting the duty cycle of a clock input signal, the fine-tuning circuit includes a fine-tuning mode completion detector and a counter of a fine-tuning duty cycle corrector, the input end of the fine-tuning mode completion detector is electrically connected to the output end of the duty cycle detector, the output end of the fine-tuning mode completion detector is electrically connected to the input end of the counter of the fine-tuning duty cycle corrector, and the output end of the counter of the duty cycle corrector sends a duty cycle fine-tuning signal to the duty cycle corrector.
[0041] Based on the above embodiments, Figure 2 As shown, when the EN is 0, the analog comparator does not work, and when the EN is 1, the analog comparator works.
[0042] Based on the above embodiments, Figure 3 and Figure 4 As shown, the OFFSET<3:0> is divided into P<3:0> and N<3:0>, and setting P<3:0>=0000 indicates a positive mismatch, and N<3:0>=0000 indicates a negative mismatch.
[0043] On the basis of the above embodiments, the duty cycle detector is a digital logic circuit constructed by a timing trigger circuit, a latch and a counter. In the detection process of the duty cycle detector, the counter is reset during the low level period of the signal to be measured, and the counter counts the signal during the high level period of the signal to be measured. At the falling edge of the signal to be measured, the timing trigger circuit outputs a latch pulse, and the count value of the counter is latched at the rising edge of the pulse. By measuring the value in the counter, the ratio of the high level duration to the entire cycle can be calculated to obtain the duty cycle. The timing trigger circuit, latch and counter are all prior art, and reference can be made to (Design and Proteus Simulation of Pulse Signal Duty Cycle Measurement Circuit) written by Yang Fengliang.
[0044] On the basis of the above embodiments, the digital counter is a digital logic circuit constructed by a timing trigger circuit, a latch circuit and a counting circuit. The counting process of the digital counter is as follows: in the initial state, the digital counter usually clears the count value or presets it to an initial value. For example, the initial value of the digital counter output is set to 0000 here. When an external trigger signal (such as a clock signal) arrives, the digital counter starts working. When each edge (rising edge or falling edge) of the input clock signal arrives, the count value of the digital counter increases. The counter can be incremented (from a lower value to a higher value 0000==》0001==》0011==》0111==》1111) or decremented (from a higher value to a lower value 1111==》0111==》0011==》0001==》0000). The digital counter outputs the current count value to the corresponding output port. The output can be a binary number. When the output CALIB_DONE of the analog comparator flips (a rising edge from 0 to 1 or a falling edge from 1 to 0), the digital counter stops counting.
[0045] The timing trigger circuit, latch circuit and counting circuit are all prior art, so the digital logic circuit constructed by the timing trigger circuit, latch circuit and counting circuit is prior art.
[0046] On the basis of the above embodiment, the detector is a digital logic circuit constructed by a latch circuit and a counting circuit. The detection process of the detector is as follows: the detector first monitors the output signal CALIB_DONE of the analog comparator. This output signal CALIB_DONE is usually a continuous analog signal, and a rising edge or a falling edge is generated at a certain moment. The detector detects the change of the analog comparator output signal, especially the rising edge from 0 to 1 or the falling edge from 1 to 0. Once the rising edge or the falling edge is detected, the detector generates CALIB_DONE. CALIB_DONE is a pulse or continuous signal. The generated CALIB_DONE is sent to the analog comparator, usually through an electrical connection. The function of this signal is to stop the counting of the digital counter. The value of the counter will be latched by the latch, which is realized by the control of the enable signal (EN signal). After receiving CALIB_DONE, the digital counter stops counting and completes a counting cycle.
[0047] The latch circuit and the counting circuit are both prior art, and the detector is a digital logic circuit constructed by the latch circuit and the counting circuit, so the detector is prior art.
[0048] On the basis of the above embodiments, the coarse adjustment mode completion detector and the fine adjustment mode completion detector are both integrated circuits of a digital logic circuit and an analog comparator circuit for detecting the duty cycle, and the specific process is: the calculated duty cycle is compared with the set coarse adjustment or fine adjustment threshold, and if the output of the counter meets the coarse adjustment or fine adjustment threshold, the coarse adjustment or fine adjustment mode completion state is triggered. Because the duty cycle detector and the comparator circuit are both prior art, the coarse adjustment mode completion detector and the fine adjustment mode completion detector are both prior art.
[0049] On the basis of the above embodiment, the counter of the coarse duty cycle corrector and the counter of the fine duty cycle corrector are both digital logic circuits constructed by a duty cycle detector, a latch and a counter. In the counting process of the counter of the coarse duty cycle corrector, if the duty cycle is <50% at the beginning, the duty cycle detector is 0 at this time, and the simulated duty cycle detector will generate a rising edge signal from 0 to 1. At this time, the coarse duty cycle is in the direction of increasing until the output duty cycle is >50%, that is, the duty cycle detector detects the signal from 0 to 1, and then the counter stops working, so that the latch locks the value of the coarse 5-bit code;
[0050] In the counting process of the counter of the fine-tuning duty cycle corrector, if the duty cycle is <50% at the beginning, the duty cycle detector is 0, and the digital duty cycle detector will generate a rising edge signal from 0 to 1. At this time, the coarse-tuning duty cycle is in the direction of increasing until the output duty cycle is >50%, that is, the duty cycle detector detects the signal from 0 to 1, and then the counter of the fine-tuning duty cycle corrector stops working, so that the latch locks the value of the fine-tuning 4-bit code.
[0051] Because the duty cycle detector, latch and counter are all existing technologies, the counter of the coarse duty cycle corrector and the counter of the fine duty cycle corrector are digital logic circuits integrating the duty cycle detector, latch and counter, then the counter of the coarse duty cycle corrector and the counter of the fine duty cycle corrector are all existing technologies.
[0052] A digital correction method for correcting a duty cycle in an analog duty cycle adjuster, the digital correction method for correcting a duty cycle in an analog duty cycle adjuster is based on the above-mentioned digital correction device for correcting a duty cycle in an analog duty cycle adjuster, and the method comprises the following steps:
[0053] S1. In the initial state, determine whether VDD, RB, DCD_VREF_EN are 0 or 1, the clock input signal CLK_IN is 0 or 1, set P<3:0> to 0000, and N<3:0> to 0000;
[0054] S2. Determine whether the analog comparator output is 0 or 1. When the analog comparator output is 0, perform mismatch correction on P<3:0> at the positive end of the analog comparator. When the analog comparator output is 1, perform mismatch correction on N<3:0> at the negative end of the analog comparator.
[0055] S3. Determine whether the duty cycle is less than 50%. When the duty cycle is less than 50%, first perform a coarse adjustment of the duty cycle, and then perform a fine adjustment of the duty cycle to adjust the duty cycle from less than 50% to greater than 50%. When the duty cycle is greater than 50%, first perform a coarse adjustment of the duty cycle, and then perform a fine adjustment of the duty cycle to adjust the duty cycle from greater than 50% to less than 50%.
[0056] Based on the above embodiment, step S2 specifically includes:
[0057] S2-1. When the analog comparator output is 0, the analog comparator output COMP_OUT is passed to the digital counter to control the increase of the digital counter. The digital counter output is in the direction of P<3:0>=0000==》0001==》0011==》0111==》1111. When the EN signal (EN=1) output by the digital counter controls the increase of P<3:0> at the positive end of the analog comparator, making P<3:0>=0001, the analog comparator output COMP_OUT is still 0, and the digital counter output will continue to increase to 0011. When the analog comparator output does not change, the digital counter output will continue to increase to 0111, and then the digital counter output will continue to increase to 1111 until the analog comparator output COMP_OUT flips (rising edge from 0 to 1). At this time, the digital counter stops counting. During the correction process, N<3:0> is always 0000, and the mismatch correction of the analog comparator positive end P<3:0> is completed.
[0058] S2-2. When the output of the analog comparator is 1, the output COMP_OUT of the analog comparator is passed to the digital counter to control the increase of the output of the digital counter. The output of the digital counter goes in the direction of N<3:0>=0000==》0001==》0011==》0111==》1111. When the EN signal (EN=1) output by the digital counter controls the negative terminal N<3:0> of the analog comparator to increase, when N<3:0>=0001, the output COMP_OUT of the analog comparator is 1, and the output of the digital counter will continue to increase to 0011. When the output of the analog comparator does not change, the output of the digital counter will continue to increase to 0111, and then the output of the digital counter will continue to increase to 1111 until the output COMP_OUT of the analog comparator flips (falling edge from 1 to 0). At this time, the digital counter stops counting and temporarily controls the increase of N<3:0> of the analog comparator. During the correction process, P<3:0> is always 0000, and the mismatch correction of the negative terminal N<3:0> of the analog comparator is completed.
[0059] Based on the above embodiment, step S3 specifically includes:
[0060] S3-1. When the duty cycle detector detects that the duty cycle is less than 50%, the duty cycle detector output is 0, and the coarse duty cycle increases in the direction of the counter <4:0>=00000==>00001==>00011 of the coarse duty cycle corrector, until the output duty cycle>50%, that is, the duty cycle detector detects the rising edge signal of the signal from 0 to 1, and then the coarse duty cycle corrector is locked, and the value of the coarse 5-bit code is locked, indicating that the coarse duty cycle is completed, and then the counter <4:0> of the fine duty cycle corrector starts to work in the direction of =00000==>00001==>00011, until the duty cycle detector detects the falling edge signal of the signal from 1 to 0, and the fine duty cycle corrector is locked, indicating that the fine duty cycle is completed;
[0061] S3-2. When the duty cycle detector detects that the duty cycle is greater than 50%, the duty cycle detector output is 1, and the coarse-adjustment duty cycle moves in the direction of decreasing, and starts to work in the direction of the coarse-adjustment duty cycle corrector's counter <4:0>=00000==>00001==>00011, until the output duty cycle is <50%, that is, the duty cycle detector detects the falling edge signal from 1 to 0, and then the coarse-adjustment duty cycle corrector is locked, locking the value of the coarse-adjustment 5-bit code, indicating that the coarse-adjustment duty cycle is completed, and then the fine-adjustment duty cycle corrector's counter <4:0> starts to work in the direction of =00000==>00001==>00011, until the duty cycle detector detects the rising edge signal from 0 to 1, and the fine-adjustment duty cycle corrector is locked, indicating that the fine-adjustment duty cycle is completed.
[0062] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A digital correction device for correcting the duty cycle in an analog duty cycle adjuster, characterized in that: include: An analog circuit, wherein the analog circuit includes a duty cycle detector and an analog comparator, wherein a P input terminal of the duty cycle detector is connected to a clock input signal, an N input terminal of the duty cycle detector is connected to a reference voltage VREF, the duty cycle detector is used to detect the duty cycle of the clock input signal, an input terminal of the analog comparator is electrically connected to an output terminal of the duty cycle detector, and the analog comparator is used to determine whether the duty cycle of the clock input signal is greater than 50% or less than 50%; A digital circuit, the digital circuit comprising a digital counter and a detector, the digital counter and the analog comparator are electrically connected, the analog comparator and the detector are electrically connected, the digital counter is used to receive an output signal COMP_OUT of the analog comparator, the output signal COMP_OUT is used to control the digital counter to output an EN signal, the EN signal is used to control the OFFSET<3:0> binary number output by the digital counter to increase one by one, when the output of the analog comparator generates a rising edge signal from 0 to 1 or a falling edge signal from 1 to 0, the detector outputs CALIB_DONE to the analog comparator, and the digital counter stops counting; A coarse adjustment circuit, used to achieve a wide range of adjustment of the duty cycle of a clock input signal, the coarse adjustment circuit comprising a coarse adjustment mode completion detector, a counter of a coarse adjustment duty cycle corrector and a duty cycle corrector, the input end of the coarse adjustment mode completion detector being electrically connected to the output end of the duty cycle detector, the output end of the coarse adjustment mode completion detector being electrically connected to the input end of the counter of the coarse adjustment duty cycle corrector, and the output end of the counter of the duty cycle corrector sending a coarse duty cycle adjustment signal to the duty cycle corrector; A fine-tuning circuit is used for finely adjusting the duty cycle of a clock input signal, the fine-tuning circuit includes a fine-tuning mode completion detector and a counter of a fine-tuning duty cycle corrector, the input end of the fine-tuning mode completion detector is electrically connected to the output end of the duty cycle detector, the output end of the fine-tuning mode completion detector is electrically connected to the input end of the counter of the fine-tuning duty cycle corrector, and the output end of the counter of the duty cycle corrector sends a duty cycle fine-tuning signal to the duty cycle corrector.
2. A digital correction device for correcting duty cycle in an analog duty cycle regulator according to claim 1, characterized in that: When the EN is 0, the analog comparator does not work, and when the EN is 1, the analog comparator works.
3. A digital correction device for correcting duty cycle in an analog duty cycle adjuster according to claim 1, characterized in that: The OFFSET<3:0> is divided into P<3:0> and N<3:0>. Setting P<3:0>=0000 indicates a positive mismatch, and N<3:0>=0000 indicates a negative mismatch.
4. A digital correction device for correcting duty cycle in an analog duty cycle regulator according to claim 1, characterized in that: The duty cycle detector is a digital logic circuit constructed by a timing trigger circuit, a latch and a counter.
5. A digital correction device for correcting duty cycle in an analog duty cycle adjuster according to claim 1, characterized in that: The digital counter is a digital logic circuit constructed by a timing trigger circuit, a latch circuit and a counting circuit.
6. A digital correction device for correcting duty cycle in an analog duty cycle regulator according to claim 4, characterized in that: The detector is a digital logic circuit constructed by a latch circuit and a counting circuit. The coarse adjustment mode completion detector and the fine adjustment mode completion detector are both integrated circuits of a digital logic circuit for detecting a duty cycle and an analog comparator circuit.
7. A digital correction device for correcting duty cycle in an analog duty cycle adjuster according to claim 1, characterized in that: The counter of the coarse duty cycle corrector and the counter of the fine duty cycle corrector are both digital logic circuits constructed by a duty cycle detector, a latch and a counter.
8. A digital correction method for correcting the duty cycle in an analog duty cycle adjuster, characterized in that: The digital correction method for correcting the duty cycle in the analog duty cycle adjuster is based on the digital correction device for correcting the duty cycle in the analog duty cycle adjuster according to any one of claims 1 to 7, and the method comprises the following steps: S1. In the initial state, determine whether VDD, RB, DCD_VREF_EN are 0 or 1, the clock input signal CLK_IN is 0 or 1, set P<3:0> to 0000, and N<3:0> to 0000; S2. Determine whether the analog comparator output is 0 or 1. When the analog comparator output is 0, perform mismatch correction on P<3:0> at the positive end of the analog comparator. When the analog comparator output is 1, perform mismatch correction on N<3:0> at the negative end of the analog comparator. S3. Determine whether the duty cycle is less than 50%. When the duty cycle is less than 50%, first perform a coarse adjustment of the duty cycle, and then perform a fine adjustment of the duty cycle to adjust the duty cycle from less than 50% to greater than 50%. When the duty cycle is greater than 50%, first perform a coarse adjustment of the duty cycle, and then perform a fine adjustment of the duty cycle to adjust the duty cycle from greater than 50% to less than 50%.
9. A digital correction method for correcting duty cycle in an analog duty cycle adjuster according to claim 8, characterized in that: The step S2 specifically includes: S2-1. When the analog comparator output is 0, the analog comparator output COMP_OUT is passed to the digital counter to control the increase of the digital counter. The digital counter output is in the direction of P<3:0>=0000==》0001==》0011==》0111==》1111. When the EN signal output by the digital counter is 1, the P<3:0> at the positive end of the analog comparator is controlled to increase, so that P<3:0>=0001. The analog comparator output COMP_OUT is still 0, and the digital counter output will continue to increase to 0011. When the analog comparator output does not change, the digital counter output will continue to increase to 0111, and then the digital counter output will continue to increase to 1111, until the analog comparator output COMP_OUT flips and a rising edge signal from 0 to 1 appears, at which time the digital counter stops counting; S2-2. When the output of the analog comparator is 1, the output COMP_OUT of the analog comparator is passed to the digital counter to control the increase of the output of the digital counter. The digital counter outputs in the direction of N<3:0>=0000==》0001==》0011==》0111==》1111. When the EN signal output by the digital counter is 1, the negative terminal N<3:0> of the analog comparator is controlled to increase. When N<3:0>=0001, the output COMP_OUT of the analog comparator is 1, and the output of the digital counter will continue to increase to 0011. When the output of the analog comparator does not change, the output of the digital counter will continue to increase to 0111, and then the output of the digital counter will continue to increase to 1111 until the output COMP_OUT of the analog comparator flips and a falling edge signal from 1 to 0 appears. At this time, the digital counter stops counting and temporarily controls the N<3:0> of the analog comparator to increase. During the correction process, P<3:0> is always 0000.
10. A digital correction method for correcting duty cycle in an analog duty cycle adjuster according to claim 8, characterized in that: The step S3 specifically includes: S3-1. When the duty cycle detector detects that the duty cycle is less than 50%, the duty cycle detector output is 0, and the coarse duty cycle increases in the direction of the counter <4:0>=00000==>00001==>00011 of the coarse duty cycle corrector, until the output duty cycle>50%, that is, the duty cycle detector detects the rising edge signal of the signal from 0 to 1, and then the coarse duty cycle corrector is locked, and the value of the coarse 5-bit code is locked, indicating that the coarse duty cycle is completed, and then the counter <4:0> of the fine duty cycle corrector starts to work in the direction of =00000==>00001==>00011, until the duty cycle detector detects the falling edge signal of the signal from 1 to 0, and the fine duty cycle corrector is locked, indicating that the fine duty cycle is completed; S3-2. When the duty cycle detector detects that the duty cycle is greater than 50%, the duty cycle detector output is 1, and the coarse-adjustment duty cycle moves in the direction of decreasing, and starts to work in the direction of the coarse-adjustment duty cycle corrector's counter <4:0>=00000==>00001==>00011, until the output duty cycle is <50%, that is, the duty cycle detector detects the falling edge signal from 1 to 0, and then the coarse-adjustment duty cycle corrector is locked, locking the value of the coarse-adjustment 5-bit code, indicating that the coarse-adjustment duty cycle is completed, and then the fine-adjustment duty cycle corrector's counter <4:0> starts to work in the direction of =00000==>00001==>00011, until the duty cycle detector detects the rising edge signal from 0 to 1, and the fine-adjustment duty cycle corrector is locked, indicating that the fine-adjustment duty cycle is completed.
Citation Information
Patent Citations
Clock duty cycle calibration circuit
CN113014233A
Duty ratio calibration circuit and method
CN113364434A
Parallel coarse and fine tuning device in single-ended simulation duty ratio regulator
CN117498840A
Digital correction device and method for correcting differential mismatch in analog comparator
CN117560004A
Duty cycle correction device and method
US20230115436A1
