A high-precision pulse width modulation system and method

Through the combination of multi-phase delay locked loop and PWM signal post-processor, the delay signal is generated and calibrated to achieve high-precision pulse width modulation, solving the problems of multi-phase delay output and phase error in the existing system. The delay resolution and modulation accuracy of the system are improved.

CN112187229BActive Publication Date: 2024-10-01SINO WEALTH ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011166022.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-27
Publication Date
2024-10-01
Estimated Expiration
2040-10-27

AI Technical Summary

Technical Problem

The existing pulse width modulation system cannot achieve high-precision pulse width modulation and multi-phase delay output, and has phase error problems.

Method used

Using a multi-phase delay locked loop system and a PWM signal post-processor, by generating multiple main phase signals and generating corresponding delay signals, comparing and calibrating the phase errors of the delay signals, and modulating using rising edge or falling edge modulation methods PWM signal to achieve high-precision pulse width modulation.

Benefits of technology

It achieves high-precision pulse width modulation, solves the problems of multi-phase delay output and phase error, and improves the delay resolution and modulation accuracy of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112187229B_ABST
    Figure CN112187229B_ABST
Patent Text Reader

Abstract

The present invention provides a high-precision pulse width modulation system and method, the system comprising a multi-phase delay locked loop system and a PWM signal post-processor. The multi-phase delay locked loop system generates M main phase signals Q0-Q1 based on an input reference frequency signal. M-1 , and generates N time delay signals P1~P according to M main phase signals N , where N = M*S, M, N, S are integers greater than or equal to 1; select N time delay signals P1~P N The specific time delay signal in the PWM signal is compared with the specific main phase signal in the M main phase signals, and the comparison result is converted into a digital error signal to calibrate the output phase error of the time delay signal. The PWM signal post-processor selects a time delay signal P from the calibrated N time delay signals according to the modulation accuracy requirements. n Modulate the PWM signal to the modulation frequency F through rising edge or falling edge modulation PWM , and obtain a PWM modulation signal after high-precision modulation, where n is an integer from 1 to N.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a pulse width modulation system, and more particularly to a high-resolution pulse width modulation system with multi-phase delays. Background Art

[0002] Pulse Width Modulation (PWM) is a very effective technology that uses the digital output of a microprocessor to control analog circuits. It is widely used in many fields from measurement and communication to power control and conversion. How to generate high-precision PWM signals and finely adjust the pulse width of PWM signals is a major challenge in this field.

[0003] Some existing pulse width modulation systems use a delay locked loop (DLL-Delay Locked Loop) to control the PWM signal, such as Figure 1 This delay locked loop does not provide a multi-phase delayed output signal and therefore cannot be used in system applications that require fine delay resolution.

[0004] In addition, the prior art also proposes to use 5x8 delay units in a delay locked loop to form 40 multi-phase delay signal outputs. However, the generation of the multi-phase signal at its input end uses analog circuit interpolation technology, which easily leads to phase errors in the multi-phase input signal, and does not provide a high-precision pulse width modulation implementation method. Summary of the invention

[0005] In order to achieve high-precision modulation of a pulse width signal, the present invention provides a high-precision pulse width modulation system and a high-precision pulse width modulation method.

[0006] The high-precision pulse width modulation system of the present invention comprises a multi-phase delay locked loop system and a PWM signal post-processor.

[0007] The multi-phase delay locked loop system is configured to generate M main phase signals (digital main phase signals) Q0~Q based on the input reference frequency signal M-1 , and generates N time delay signals P1~P according to M main phase signals N , where N = M*S, M, N, S are integers greater than or equal to 1; select N time delay signals P1~P N The phase of a specific time-delay signal in the M main phase signals is compared with that of a specific main phase signal in the M main phase signals, and the comparison result is converted into a digital error signal to calibrate the output phase error of the time-delay signal.

[0008] The PWM signal post-processor selects a delay signal P from the calibrated N delay signals according to the modulation accuracy requirement. nModulate the PWM signal to the modulation frequency F through rising edge or falling edge modulation PWM , and obtain a PWM modulation signal after high-precision modulation, where n is an integer from 1 to N.

[0009] In one embodiment, the multi-phase delay locked loop system includes a main phase signal generator configured to generate the M main phase signals Q0-Q based on the input reference frequency signal. M-1 , the M main phase signals have a frequency Fout, and the M main phase signals have a phase difference of 360 / M degrees in sequence.

[0010] In one embodiment, the multi-phase delay locked loop system further includes a phase locked loop. The phase locked loop includes a delay module, a charge pump phase detector, a loop filter and an analog-to-digital converter.

[0011] The delay module includes M delay lines, each delay line corresponds to receiving one main phase signal among M main phase signals, and each delay line includes S numerically controlled delay units connected in series in sequence; when there is no error in the delay module, each delay line delays the corresponding main phase signal and outputs S delay signals with the same phase difference in sequence, so that there is a delay ΔT=1 / (Fout*M*S) between each delay signal, and a phase shift difference of 360 / (M*S) degrees.

[0012] The charge pump phase detector is configured to compare the delay signal P output by the last delay unit in the jth delay line. k The main phase signal Q of the next delay line is input j The phases of the two circuits are the same, and the comparison result in the form of analog current is obtained, where P k is the specific time delay signal, Q j is the specific main phase signal, j is an integer from 1 to M, k=j*S, Q M Considered as Q0.

[0013] The loop filter converts the comparison result into an analog voltage value.

[0014] The analog-to-digital converter converts the analog voltage value into the digital error signal, and the digital error signal has a P k With Q j The phase error information between the two, the digital error signal is fed back to the delay module; when the digital error signal indicates P k With Q j The phase of P k The corresponding delay line has no error; when the digital error signal indicates P k With Q jIf there is a phase error, then P k The corresponding delay line needs to be calibrated, and the delay module adjusts the output phase error of the delay signal according to the digital error signal, and outputs the phase-adjusted P k The output to the charge pump phase detector is again connected to Q j comparison until the digital error signal indicates P k With Q j The phase of the delay line is the same as that of the delay line, then the error correction of the delay line of the delay module is completed.

[0015] In one embodiment, the multi-phase delay locked loop system further includes a first gate, a second gate, and a digital state machine.

[0016] The first selector is configured to select P0, P1, P2 from the output of the delay module under the control of the digital state machine. n and P k , where P0 represents the signal without delay, P0 is input to the PWM signal post-processor, P n is the calibrated modulation frequency F used to modulate the PWM signal PWM The delayed signal, P n is input to the PWM signal post-processor, P k is the delayed signal used to correct the phase error, P k is input to the charge pump phase detector.

[0017] The second gate is configured to receive M digital main phase signals Q0-Q1 from the digital state machine under the control of the digital state machine. M-1 Select Q j , Q j is sent to the charge pump phase detector.

[0018] The digital state machine is configured to perform signal gating control of the first gate and the second gate and system control according to a state control signal from a main control unit and the digital error signal.

[0019] In one embodiment, the digital state machine selects, according to the state control signal, whether to perform phase error calibration only on the delay signal output by the delay line corresponding to one of the M digital main phase signals, or to perform phase error calibration on the delay signal output by the delay line corresponding to all the M digital main phase signals.

[0020] In one embodiment, the digital state machine further selects the rising edge or the falling edge modulation mode according to the state control signal.

[0021] In one embodiment, the digital state machine selects all N time delay signals P1-P N The output phase error is calibrated when the digital error signal represents P k and Q j When there is no phase error between the two, the digital state machine controls the first gate and the second gate to select the next group of P k and Q j , used for phase comparison in the phase-locked loop, where the next set P k and Q j It refers to P obtained after setting j = j + 1 k and Q j .

[0022] In one embodiment, when the delay signal P n Modulate the PWM signal to its modulation frequency F through rising edge modulation PWM When the rising edge delay is (n / N)*ΔT, ΔT=1 / (Fout*N), n is an integer from 1 to N / 2.

[0023] In one embodiment, when the delay signal P n Modulate the PWM signal to its modulation frequency F through the falling edge modulation method PWM When , the falling edge delay is -(Nn / N)*ΔT, ΔT=1 / (Fout*N), and n is an integer from N / 2+1 to N.

[0024] In one embodiment, the PWM signal post-processor includes a first D-type flip-flop, a second D-type flip-flop and an OR gate;

[0025] The D-terminal input of the first D-type flip-flop is the modulation frequency F of the PWM signal. PWM , the C-terminal input is P0;

[0026] The D-terminal input of the second D-type flip-flop is the modulation frequency F of the PWM signal. PWM , C terminal input is P n ;

[0027] The outputs of the first and second D-type flip-flops are used as inputs of an OR gate, and the output of the OR gate is the PWM modulation signal after the high-precision modulation.

[0028] In one embodiment, the main phase signal generator is a current mode logic digital divider.

[0029] In one embodiment, the main phase signal generator is implemented by a multi-phase ring oscillator and a phase-locked loop coupled to the multi-phase ring oscillator.

[0030] A high-precision pulse width modulation method of the present invention comprises the following steps:

[0031] Providing reference signal frequency and modulation frequency Fpwm of PWM signal;

[0032] Generate M digital main phase signals with a frequency Fout based on the reference signal frequency, the M main phase signals sequentially having a phase difference of 360 / M degrees;

[0033] A delay module with M delay lines is provided to delay M digital main phase signals to obtain N delay signals P1 to P N , where N=M*S, M, N, S are integers greater than or equal to 1;

[0034] Select N delayed signals P1~P N Compare the phase of a specific time-delay signal in the M main phase signals with a specific main phase signal in the M main phase signals, and convert the comparison result into a digital error signal to calibrate the output phase error of the time-delay signal; and

[0035] According to the modulation accuracy requirement, a delay signal P is selected from the N calibrated delay signals. n Modulate the PWM signal to the modulation frequency F through rising edge or falling edge modulation PWM , and obtain a PWM modulation signal after high-precision modulation, where n is an integer from 1 to N.

[0036] In one embodiment, the delay module provided with M delay lines delays each of the M digital main phase signals to obtain N delay signals P1-P N The steps include:

[0037] Each delay line receives one main phase signal among the M main phase signals, wherein each delay line includes S digitally controlled delay units connected in series in sequence;

[0038] When there is no error in the delay module, each delay line delays the corresponding main phase signal and outputs S delayed signals with a phase difference in sequence, so that there is a delay ΔT=1 / (Fout*M*S) between the delayed signals, and a phase shift difference of 360 / (M*S) degrees.

[0039] In one embodiment, the N time delay signals P1-P are selected. N The steps of comparing the phase of a specific time-delay signal in the M main phase signals with a specific main phase signal in the M main phase signals, and converting the comparison result into a digital error signal to calibrate the output phase error of the time-delay signal include:

[0040] Performing phase error calibration only on the time delay signal output by the time delay line corresponding to a main phase signal among the M digital main phase signals; or

[0041] Phase error calibration is performed on the time delay signals output by the time delay lines corresponding to all the M digital main phase signals.

[0042] In one embodiment, the N time delay signals P1-P are selected. N The steps of comparing the phase of a specific time-delay signal in the M main phase signals with a specific main phase signal in the M main phase signals, and converting the comparison result into a digital error signal to calibrate the output phase error of the time-delay signal include:

[0043] Select the delayed signal P output by the last delay unit in the jth delay line k The main phase signal Q of the next delay line is input j , compare whether the phases of the two are the same, where P k is the specific time delay signal, Q j is the specific main phase signal, j is an integer from 1 to M, k=j*S, Q M Considered as Q0;

[0044] Converting the comparison result into an analog voltage value;

[0045] The analog voltage value is converted into the digital error signal, and the digital error signal has a P k With Q j The phase error information between the two, the digital error signal is fed back to the delay module; when the digital error signal indicates P k With Q j The phase of P k The corresponding delay line has no error, so the next group P is selected. k and Q j , used for phase comparison, where the next group P k and Q j It refers to P obtained after setting j = j + 1 k and Q j ; When the digital error signal indicates P k With Q j If there is a phase error, then P k The corresponding delay line needs to be calibrated, and the delay module adjusts the output phase error of the delay signal according to the digital error signal, and outputs the phase-adjusted P k Again with Q j comparison until the digital error signal indicates P k With Q jThe phase of the delay line is the same as that of the delay line, then the error correction of the delay line of the delay module is completed.

[0046] In one embodiment, when the delay signal P n Modulate the PWM signal to its modulation frequency F through rising edge modulation PWM When the rising edge delay is (n / N)*ΔT, ΔT=1 / (Fout*N), n is an integer from 1 to N / 2.

[0047] In one embodiment, when the delay signal P n Modulate the PWM signal to its modulation frequency F through the falling edge modulation method PWM When , the falling edge delay is -(Nn / N)*ΔT, ΔT=1 / (Fout*N), and n is an integer from N / 2+1 to N.

[0048] The high-precision pulse width modulation system and method of the present invention are extremely suitable for application in a multi-phase delay locked loop and can achieve high-precision modulation of a pulse width signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The above invention content and the following specific embodiments of the present invention will be better understood when read in conjunction with the accompanying drawings. It should be noted that the accompanying drawings are only examples of the claimed invention. In the accompanying drawings, the same reference numerals represent the same or similar elements.

[0050] Figure 1 A delay locked loop in the prior art is shown;

[0051] Figure 2 A high-resolution pulse width modulation system based on multi-phase delay according to an embodiment of the present invention is shown;

[0052] Figure 3 A logic circuit of a PWM post-processor according to an embodiment of the present invention is shown;

[0053] Figure 4 A timing diagram of input and output signals of a PWM post-processor according to an embodiment of the present invention is shown;

[0054] Figure 5 A system operation and control flow chart according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0055] The detailed features and advantages of the present invention are described in detail in the specific implementation modes below, and the contents are sufficient to enable any person skilled in the art to understand the technical contents of the present invention and implement them accordingly. Moreover, according to the description, claims and drawings disclosed in this specification, those skilled in the art can easily understand the relevant objects and advantages of the present invention.

[0056] The pulse width modulation system of the present invention is a high resolution pulse width modulation (HR PWM) system based on multi-phase delay (MP DLL). Figure 2 As shown, the system includes a multi-phase delay locked loop system and a PWM signal post-processor 210 .

[0057] The multi-phase delay locked loop system includes a main phase signal generator 201, a first gate 202, a second gate 203, a phase locked loop 204 and a digital state machine 205. The phase locked loop 204 includes a delay module 206, a charge pump phase detector 207, a loop filter 208 and an analog-to-digital converter (ADC) 209.

[0058] The main phase signal generator 201 generates M digital main phase signals Q0 to Q1 based on the input reference frequency signal Fref. M-1 (having a frequency Fout), where M is an integer greater than or equal to 1. The M main phase signals have a phase difference of 360 / M degrees in sequence. For example, when M is 8, the phase difference between the 8 main phase signals Q0-Q7 is 45 degrees in sequence, namely 0, 45, 90, 135, 180, 225, 270, and 315 degrees.

[0059] In one embodiment, the main phase signal generator 201 can be implemented by a current mode logic digital divider (CMLDivider, Current Mode Logic Divider). In one embodiment, the current mode logic digital divider first converts the single-ended input reference frequency signal Fref into a fully differential signal by a current mode logic circuit, and then generates 8 main phase signals Q0-Q7 by a divider by 4, where Fout = Fref / 4. For example, the frequency of the input reference frequency signal Fref can be 400M, then the frequency of the output signal Fout of the main phase signal generator is 100M.

[0060] In one embodiment, the main phase signal generator 201 can be implemented by a multi-phase ring oscillator (RO) and a phase-locked loop (PLL). For example, the multi-phase ring oscillator can be an 8-phase ring oscillator, thereby generating 8 main phase signals Q0-Q7. In one embodiment, the input reference frequency signal Fref can be a lower frequency, such as 24MHz or 40MHz. The phase-locked loop (PLL) multiplies the input reference frequency signal Fref to a high frequency, such as a 100MHz range, and 8 main phase signals with a phase difference of 45 degrees are generated by an 8-phase output ring oscillator (8-phase RO). This ring oscillator can generally be composed of a CMOS inverter, and its oscillation frequency and phase are controlled by current or voltage, and then the final output frequency and phase are locked by a phase-locked loop.

[0061] The delay module 206 includes M delay lines Delay[M-1,…,0], each of which includes S identical digitally controlled delay units, that is, each delay line can provide S phase shift or delay signal outputs. Each delay line receives a main phase signal, and when there is no error in the delay line (or when the error is calibrated), the delay line outputs S phase shift or delay signals that have the same phase difference with each other in sequence, and the phase difference is 360 / (M*S) degrees, so that the phase shift or delay signal output output by the last delay unit in each delay line is the same as the phase of the main phase signal input to the next delay line.

[0062] The M delay lines provide a total of M*S phase-shifted or delayed output signals, namely P1, P2, ..., P M*S , plus the original phase signal P0 without phase shift, the delay module 202 outputs a total of (M*S)+1 phase shift or delay signals, where P0 and P M*S (equivalent to a phase shift of 360 degrees) and the phase of Q0 are the same. The phase difference between each phase-shifted signal is 360 / (M*S) degrees. If converted into a time delay, the phase delay between each delayed signal is ΔT=1 / (Fout*M*S). n The delay time of a delayed signal (n∈[1,M*S]) is n / (Fout*M*S).

[0063] It should be pointed out that those skilled in the art should understand that the term "phase shift" and the term "time delay" have essentially the same meaning. Therefore, the "phase shift signal" and "time delay signal" mentioned in this article refer to the same signal, and the "phase error" and "time delay error" have essentially the same meaning.

[0064] In one embodiment, assume that M=8, S=8, that is, the main phase signal generator generates 8 main phase signals Q0~Q7, and the phase difference between them is 45 degrees, namely Q0 has a phase shift of 0 degrees, Q1 has a phase shift of 45 degrees, Q2 has a phase shift of 90 degrees, Q3 has a phase shift of 135 degrees, Q4 has a phase shift of 180 degrees, Q5 has a phase shift of 225 degrees, Q6 has a phase shift of 270 degrees, and Q7 has a phase shift of 315 degrees. After Q0 is input to the first delay line, the delay line outputs 8 phase-shifted or delayed signal outputs P1~P8, and the phase difference between these 8 phase-shifted or delayed signals is 45 / 8 degrees. The phase difference of the 8th phase-shifted or delayed signal P8 is 45 degrees, which is exactly the same as the phase difference (45 degrees) of the next main phase signal Q1. Similarly, Q7 (with a phase difference of 315 degrees) is input to the eighth delay line, and the delay line outputs 8 phase-shifted or delayed signal outputs P1~P8. 57 ~P 64The phase difference between these eight phase-shifted or time-delayed signals is 45 / 8 degrees. At this time, the eighth phase-shifted or time-delayed signal P 64 The phase difference is exactly 360 degrees, which is the same as the phase difference of Q0 (0 degrees).

[0065] In an ideal state, that is, if the delay module itself does not produce errors, the phase shift or delay signal output by the last delay unit in each delay line is P k It should be consistent with the main phase signal Q of the next delay line input j The phases are the same, where j represents the jth delay line, j is an integer from 1 to M, k = j*S, Q M That is, in the case of M = 8, S = 8, when j = 1, the phase of P8 should be the same as Q1. When j = 2, P 16 The phase should be the same as Q2... and so on. When j = 8, P 64 The phase of P8 should be the same as Q0. However, in actual applications, the delay module or delay line does have errors, so the phase differences between the 65 phase-shifted or delayed signals are not equal. In other words, there will be errors between the phase of P8 and the phase of Q1. 16 There will be an error between the phase of Q1 and the phase of Q2... and so on. 64 There will be an error between the phase of Q0 and the phase of Q1. If the 65-way phase shift or time delay output signal with phase error is used to adjust the pulse width of the PWM signal, the adjustment accuracy will be greatly reduced. Therefore, in order to solve this problem, the present invention compares the phase shift or time delay signal output P of the last delay unit in each delay line. k The main phase signal Q of the next delay line is input j The output delay error or output phase error generated by the delay module is controlled and adjusted by checking whether the phases are the same.

[0066] The first selector 202 receives the output from the delay module and selects and outputs three signals from these output signals under the control of the digital state machine 205. The three signals are:

[0067] --P0, output to the PWM signal post processor (Post Processor) 210, used for phase synchronization processing function in the post processor;

[0068] --P n , as the selected delay signal output to the post-processor 210, its delay time can be calculated by (n / (M*S))*(1 / Fout); wherein n=1, 2, ..., M*S;

[0069] --P k, is selected as an input reference signal of the charge pump phase detector (PD / CP) 207 in the phase-locked loop, where k = j*S, j∈[1,M].

[0070] The second selector 203 receives M main phase signals and selects one signal Q from these main phase signals under the control of the digital state machine 205. j Output to the charge pump phase detector 207.

[0071] Charge pump phase detector 207 compares P k With Q j Are the phases of k With Q j The choice is not arbitrary, it must satisfy k=j*S, Q M That is, assuming that M = 8, S = 8, it is necessary to select P8 to compare with Q1, P 16 Compared with Q2, P 24 Compared with Q3, P 32 Compared with Q4, P 40 Compared with Q5, P 48 Compared with Q6, P 56 Compared with Q7, P 64 Compare with Q0.

[0072] The charge pump phase detector 207 outputs the comparison result in the form of analog current to the loop filter (LF) 208 to obtain an analog voltage value, and then outputs a digital value (i.e., a digital error signal) as a control signal after conversion by the analog-to-digital converter (ADC) 209, one way of which is fed back to the delay module 206 to adjust the phase shift or delay error of the delay module, and one way of which is output to the digital state machine 205 to control the state switching of the state machine, i.e., the gating of the first gate and the second gate. The control signal has P k With Q j The phase error information.

[0073] Ideally, P k With Q j The phases of the two are the same. Therefore, if the charge pump phase detector 207 finds that the phases of the two are the same after comparison, it means that P k With Q j There is no phase error between k The corresponding delay line does not need to be adjusted for error. The digital state machine 205 selects whether the phases of the next set of comparison objects are the same, where the next set of comparison objects refers to the P obtained after setting j=j+1. k and Q j .

[0074] If the charge pump phase detector 207 finds P kWith Q j If there is an error in the phase of the delay module 206, the comparison result is converted into a digital quantity (digital error signal) by the analog-to-digital converter and fed back to the delay module 206. The digital quantity represents the magnitude of the error. The delay module 206 adjusts the error according to the digital quantity, and the output P after adjustment is k Then it passes through the charge pump phase detector and Q j The comparison is performed and the digital quantity is fed back to the delay module 206, and this process is repeated until the comparison result indicates that P k With Q j The phase is the same, indicating that the P k The corresponding delay line has been calibrated, and the digital state machine 205 controls the charge pump phase detector 207 to jump to the next set of comparison objects, that is, set j = j + 1 (i.e., start the calibration of the next delay line), and continue to compare P k With Q j The phases are the same, and this process is repeated until the entire delay module is calibrated.

[0075] In one embodiment, the resolution required by the analog-to-digital converter (ADC) 209 of the present invention is relatively low, generally 4 bits are sufficient.

[0076] In one embodiment, the digital state machine (DSM) 205 is used for system control, calibration control, and delay selection of the post-processor. The digital state machine (DSM) 205 receives two signal inputs, one is a digital error signal with phase error information output by the analog-to-digital converter (ADC) 209 in the phase-locked loop 204; the other is a state control signal from a main control unit (SOC), such as a microprocessor (MCU) in a chip, such as power-on, calibration end, calibration start, and other control signals. The digital state machine 205 outputs a digital control signal based on the two input signals, which is used for signal selection control of the first and second selectors and control of the entire system.

[0077] In one embodiment, the digital state machine 205 can select to perform phase error calibration only on the delay signal output by the delay line corresponding to one of the M digital main phase signals according to the state control signal, or can select to perform phase error calibration on the delay signal output by the delay line corresponding to all the M digital main phase signals. The above control can be performed by controlling the signal selection of the first and second selectors.

[0078] In one embodiment, the digital state machine 205 further selects the rising edge or the falling edge modulation mode according to the state control signal.

[0079] In one embodiment, the digital state machine 205 selects all N delayed signals P1-P N In the case of output phase error calibration, when the digital error signal represents Pk and Q j When there is no phase error between the two, the digital state machine 205 controls the first gate and the second gate to select the next group of P k and Q j , used for phase comparison in a phase-locked loop, where the next group P k and Q j It refers to P obtained after setting j = j + 1 k and Q j .

[0080] The input signals of the PWM post-processor 210 are P0 and P n and F PWM , where F PWM is the modulation frequency of the PWM signal, and the output signal is a PWM modulation signal after high-precision modulation. The PWM post-processor 210 can PWM The rising edge modulation of the frequency signal can also be used to modulate F PWM The PWM post-processor 210 modulates the falling edge of the frequency signal according to the modulation accuracy requirement, and selects a delay signal P from the calibrated N delay signals. n Modulate the PWM signal to the modulation frequency F through rising edge or falling edge modulation PWM , get the PWM modulation signal after high-precision modulation, where n is an integer from 1 to N, different P n Represents different modulation accuracy.

[0081] The PWM post-processor 210 in the present invention can be implemented by a simple logic circuit. Figure 3 FIG. 2 shows a logic circuit implementation of a PWM post-processor according to an embodiment of the present invention. Figure 3 As shown, the PWM signal post-processor includes a first D-type flip-flop, a second D-type flip-flop and an OR gate. The D-terminal input of the first D-type flip-flop is the modulation frequency F of the PWM signal. PWM The input of the C terminal is P0. The input of the D terminal of the second D-type trigger is the modulation frequency F of the PWM signal. PWM , C terminal input is P n The outputs of the first and second D-type flip-flops are used as inputs of an OR gate, and the output of the OR gate is the PWM modulation signal after the high-precision modulation, which is represented by PWMn in the figure.

[0082] In one embodiment, when the delay signal P n Modulate the PWM signal to its modulation frequency F through rising edge modulation PWM When the rising edge delay is (n / N)*ΔT, ΔT=1 / (Fout*N), n is an integer from 1 to N / 2.

[0083] In one embodiment, when the delay signal P n Modulate the PWM signal to its modulation frequency F through the falling edge modulation method PWM When the falling edge delay is -(Nn / N)*ΔT, ΔT=1 / (Fout*N), n is an integer from N / 2+1 to N.

[0084] The timing relationship between the input and output signals of the post-processor 210 is given by Figure 4 For simplicity and clarity, Figure 4 The timing relationship in is given only for the delay module with 8 phase outputs, that is, the delay module outputs P1 to P8 in total.

[0085] The system of the present invention can modulate the falling edge of the pulse with a time delay such as n=1 / 2 / 3, or modulate the rising edge of the pulse with a time delay such as n=4 / 5 / 6 / 7.

[0086] It should be noted that the PWM post-processor 210 of the present invention is not limited to using Figure 3 Those skilled in the art should understand that the PWM post-processor 210 may also be implemented using other modules or circuits.

[0087] In addition, the values ​​of M and S of the present invention are not limited to the values ​​mentioned in the above embodiments, and can also be selected according to actual needs (such as accuracy requirements). In addition, the high-precision pulse width modulation system of the present invention can also select only one of the M main phase signals to calibrate the output phase of the delayed signal corresponding to the main phase signal. In this case, the multi-phase delay locked loop system actually becomes a single phase locked loop.

[0088] The present invention also discloses a high-precision pulse width modulation method, which comprises the following steps:

[0089] Providing reference signal frequency and modulation frequency Fpwm of PWM signal;

[0090] Generate M digital main phase signals with a frequency Fout based on the reference signal frequency, the M main phase signals sequentially having a phase difference of 360 / M degrees;

[0091] A delay module with M delay lines is provided to delay M digital main phase signals to obtain N delay signals P1 to P N , where N=M*S, M, N, S are integers greater than or equal to 1;

[0092] Select N delayed signals P1~P NCompare the phase of a specific time-delay signal in the M main phase signals with a specific main phase signal in the M main phase signals, and convert the comparison result into a digital error signal to calibrate the output phase error of the time-delay signal; and

[0093] According to the modulation accuracy requirement, a delay signal P is selected from the N calibrated delay signals. n Modulate the PWM signal to the modulation frequency F through rising edge or falling edge modulation PWM , and obtain a PWM modulation signal after high-precision modulation, where n is an integer from 1 to N.

[0094] In one embodiment, the delay module provided with M delay lines delays each of the M digital main phase signals to obtain N delay signals P1-P N The steps include:

[0095] Each delay line receives one main phase signal among the M main phase signals, wherein each delay line includes S digitally controlled delay units connected in series in sequence;

[0096] When there is no error in the delay module, each delay line delays the corresponding main phase signal and outputs S delayed signals with a phase difference in sequence, so that there is a delay ΔT=1 / (Fout*M*S) between the delayed signals, and a phase shift difference of 360 / (M*S) degrees.

[0097] In one embodiment, the N time delay signals P1-P are selected. N The steps of comparing the phase of a specific time-delay signal in the M main phase signals with a specific main phase signal in the M main phase signals, and converting the comparison result into a digital error signal to calibrate the output phase error of the time-delay signal include:

[0098] Performing phase error calibration only on the time delay signal output by the time delay line corresponding to a main phase signal among the M digital main phase signals; or

[0099] Phase error calibration is performed on the time delay signals output by the time delay lines corresponding to all the M digital main phase signals.

[0100] In one embodiment, the N time delay signals P1-P are selected. N The steps of comparing the phase of a specific time-delay signal in the M main phase signals with a specific main phase signal in the M main phase signals, and converting the comparison result into a digital error signal to calibrate the output phase error of the time-delay signal include:

[0101] Select the delayed signal P output by the last delay unit in the jth delay line k The main phase signal Q of the next delay line is input j, compare whether the phases of the two are the same, where P k is the specific time delay signal, Q j is the specific main phase signal, j is an integer from 1 to M, k=j*S, Q M Considered as Q0;

[0102] Converting the comparison result into an analog voltage value;

[0103] The analog voltage value is converted into the digital error signal, and the digital error signal has a P k With Q j The phase error information between the two, the digital error signal is fed back to the delay module; when the digital error signal indicates P k With Q j The phase of P k The corresponding delay line has no error, so the next group P is selected. k and Q j , used for phase comparison, where the next group P k and Q j It refers to P obtained after setting j = j + 1 k and Q j ; When the digital error signal indicates P k With Q j If there is a phase error, then P k The corresponding delay line needs to be calibrated, and the delay module adjusts the output phase error of the delay signal according to the digital error signal, and outputs the phase-adjusted P k Again with Q j comparison until the digital error signal indicates P k With Q j The phase of the delay line is the same as that of the delay line, then the error correction of the delay line of the delay module is completed.

[0104] In one embodiment, when the delay signal P n Modulate the PWM signal to its modulation frequency F through rising edge modulation PWM When the rising edge delay is (n / N)*ΔT, ΔT=1 / (Fout*N), n is an integer from 1 to N / 2.

[0105] In one embodiment, when the delay signal P n Modulate the PWM signal to its modulation frequency F through the falling edge modulation method PWM When , the falling edge delay is -(Nn / N)*ΔT, ΔT=1 / (Fout*N), and n is an integer from N / 2+1 to N.

[0106] Figure 5The system operation and control flow chart according to an embodiment of the present invention is shown. After the power is powered on (Power On) and reset (Reset), the reference signal frequency Fref and the PWM modulation signal frequency F PWM After preparation is complete (step 501), the main phase generator generates M main phase signals Q0~Q M-1 (Step 502). According to the requirements of system accuracy, the present invention can perform calibration process control (Calibration Control) of a single main phase (Single-Phase) or multiple main phases (Multi-Phase) for a multi-phase delay line, such as Delay[M-1:0], through a digital state machine and perform gating control on the first selector and the second selector (Step 503). The output phase of the delay line is compared with the main phase using a phase-locked loop, and its error signal is converted into a digital signal to control and adjust the delay of the delay line, so that its phase is locked to eliminate the phase error, so as to realize a high-precision multi-phase delay line system. After the calibration process is completed (Cal End)

[0107] (Step 504), the digital state machine and the selector (such as Mux 65-to-3 and Mux 8-to-1) select a phase shift signal or a delay signal P of a fixed delay line k And the corresponding main phase signal Q j , where k = j*S, j is an integer between 1 and M, and the phase-locked loop locks the two phase signals (steps 505 and 506). At this time, the multi-phase delay line will output a calibrated and phase-locked phase shift or delay signal. The PWM signal post-processor will be turned on, and the digital state machine controls the post-processor according to system requirements, selects to generate a rising edge delay (Rise Edge Delay) or a falling edge delay (Falling Edge Delay), and modulates it to the PWM modulation frequency F PWM Finally, the PWM modulation signal with high-precision delay is output by the output driver circuit (Driver). The rising edge delay can be calculated using the formula: (n / N)*ΔT=(1 / Fout), such as N=64, n=0,1,…,31, and the falling edge delay can also be calculated using the formula: -(Nn / N)*ΔT=(1 / Fout), such as N=64, n=32,33,…,63, ΔT=(1 / Fout) / 64

[0108] (Step 507).

[0109] For ease of explanation, the above workflow diagram uses a delay line and PWM system with 8 main phases and 64 delay units. However, the present invention is applicable to various corresponding systems with multiple main phases and multiple delay units.

[0110] The terms and expressions used herein are for descriptive purposes only, and the present invention should not be limited to these terms and expressions. The use of these terms and expressions does not mean to exclude any equivalent features of the illustrations and descriptions (or parts thereof), and it should be recognized that various modifications that may exist should also be included in the scope of the claims. Other modifications, variations and substitutions may also exist. Accordingly, the claims should be deemed to cover all such equivalents.

[0111] Similarly, it should be pointed out that although the present invention has been described with reference to the current specific embodiments, ordinary technicians in this technical field should realize that the above embodiments are only used to illustrate the present invention, and various equivalent changes or substitutions may be made without departing from the spirit of the present invention. Therefore, as long as the changes and modifications to the above embodiments are within the scope of the essential spirit of the present invention, they will fall within the scope of the claims of this application.

Claims

1. A high-precision pulse width modulation system, characterized in that: include: A multi-phase delay locked loop system is configured to generate M main phase signals Q0 to Q1 based on an input reference frequency signal. M-1 , and generates N time delay signals P1~P according to M main phase signals N , where N = M*S, M, N, S are integers greater than or equal to 1; select N time delay signals P1~P N Compare the phase of the specified time delay signal in the M main phase signals with the specified main phase signal in the M main phase signals, and convert the comparison result into a digital error signal to calibrate the output phase error of the time delay signal; as well as The PWM signal post-processor selects a delay signal P from the calibrated N delay signals according to the modulation accuracy requirement. n Modulate the PWM signal to the modulation frequency F through rising edge or falling edge modulation PWM , and obtain a PWM modulation signal after high-precision modulation, where n is an integer from 1 to N.

2. The high-precision pulse width modulation system according to claim 1, characterized in that: The multi-phase delay locked loop system comprises: A main phase signal generator is configured to generate the M main phase signals Q0-Q based on the input reference frequency signal. M-1 , the M main phase signals have a frequency Fout, and the M main phase signals have a phase difference of 360 / M degrees in sequence.

3. The high-precision pulse width modulation system according to claim 2, characterized in that: The multi-phase delay locked loop system also includes: Phase-locked loop, including: A delay module, wherein the delay module comprises M delay lines, each delay line corresponding to receiving one main phase signal among M main phase signals, and each delay line comprises S numerically controlled delay units connected in series in sequence; when there is no error in the delay module, each delay line delays the corresponding main phase signal and then outputs S delayed signals having the same phase difference in sequence, so that there is a delay ΔT=1 / (Fout*M*S) between the delayed signals, and a phase shift difference of 360 / (M*S) degrees; The charge pump phase detector is configured to compare the delay signal P output by the last delay unit in the jth delay line. k The main phase signal Q of the next delay line is input j The phases of the two circuits are the same, and the comparison result in the form of analog current is obtained, where P k is the specified time delay signal, Q j is the designated main phase signal, j is an integer from 1 to M, k=j*S, Q M Considered as Q0; A loop filter converts the comparison result into an analog voltage value; The analog-to-digital converter converts the analog voltage value into the digital error signal, wherein the digital error signal has a P k With Q j The phase error information between the two, the digital error signal is fed back to the delay module; when the digital error signal indicates P k With Q j The phase of P k The corresponding delay line has no error; when the digital error signal indicates P k With Q j If there is a phase error, then P k The corresponding delay line needs to be calibrated, and the delay module adjusts the output phase error of the delay signal according to the digital error signal, and outputs the phase-adjusted P k The output to the charge pump phase detector is again connected to Q j comparison until the digital error signal indicates P k With Q j The phase of P k The corresponding delay line error correction is completed.

4. The high-precision pulse width modulation system according to claim 3, characterized in that: The multi-phase delay locked loop system also includes: A first gate, a second gate and a digital state machine; The first selector is configured to select P0, P1 from the output of the delay module under the control of the digital state machine. n and P k , where P0 represents the signal without delay, P0 is input to the PWM signal post-processor, P n is the calibrated modulation frequency F used to modulate the PWM signal PWM The delayed signal, P n is input to the PWM signal post-processor, P k is the delayed signal used to correct the phase error, P k is input to the charge pump phase detector; The second selector is configured to select M main phase signals Q0-Q M-1 Select Q j , Q j is sent to the charge pump phase detector; The digital state machine is configured to perform signal gating control of the first gate and the second gate and system control according to the state control signal from the main control unit and the digital error signal, wherein: The digital state machine selects, according to the state control signal, whether to perform phase error calibration only on the delay signal output by the delay line corresponding to one of the M main phase signals, or to perform phase error calibration on the delay signal output by the delay line corresponding to all the M main phase signals. The digital state machine also selects the rising edge or the falling edge modulation mode according to the state control signal.

5. The high-precision pulse width modulation system according to claim 4, characterized in that: The digital state machine selects all N time delay signals P1 to P N The output phase error is calibrated when the digital error signal represents P k and Q j When there is no phase error between the two, the digital state machine controls the first gate and the second gate to select the next group of P k and Q j , used for phase comparison in the phase-locked loop, where the next set P k and Q j It refers to P obtained after setting j = j + 1 k and Q j .

6. The high-precision pulse width modulation system according to claim 1, characterized in that: When the delay signal P n Modulate the PWM signal to its modulation frequency F through rising edge modulation PWM When the rising edge delay is (n / N)*ΔT, ΔT=1 / (Fout*N), n is an integer from 1 to N / 2.

7. The high-precision pulse width modulation system according to claim 1, characterized in that: When the delay signal P n Modulate the PWM signal to its modulation frequency F through the falling edge modulation method PWM When , the falling edge delay is -(Nn / N)*ΔT, ΔT=1 / (Fout*N), and n is an integer from N / 2+1 to N.

8. The high-precision pulse width modulation system according to claim 1, characterized in that: The PWM signal post-processor includes a first D-type flip-flop, a second D-type flip-flop and an OR gate; The D-terminal input of the first D-type flip-flop is the modulation frequency F of the PWM signal. PWM , the C-terminal input is P0; The D-terminal input of the second D-type flip-flop is the modulation frequency F of the PWM signal. PWM , C terminal input is P n ; The outputs of the first and second D-type flip-flops are used as inputs of an OR gate, and the output of the OR gate is the PWM modulation signal after the high-precision modulation.

9. The high-precision pulse width modulation system according to claim 2, characterized in that: The main phase signal generator is a current mode logic digital divider.

10. The high-precision pulse width modulation system according to claim 2, characterized in that: The main phase signal generator is realized by a multi-phase ring oscillator and a phase-locked loop coupled to the multi-phase ring oscillator.

11. A high-precision pulse width modulation method, characterized in that: The method comprises: Providing reference signal frequency and modulation frequency Fpwm of PWM signal; Generate M main phase signals with a frequency Fout based on the reference signal frequency, wherein the M main phase signals sequentially have a phase difference of 360 / M degrees; A delay module with M delay lines is provided to delay M main phase signals to obtain N delayed signals P1 to P N , where N=M*S, M, N, S are integers greater than or equal to 1; Select N delayed signals P1~P N Compare the phase of the specified time delay signal in the M main phase signals with the specified main phase signal in the M main phase signals, and convert the comparison result into a digital error signal to calibrate the output phase error of the time delay signal; and According to the modulation accuracy requirement, a delay signal P is selected from the N calibrated delay signals. n Modulate the PWM signal to the modulation frequency F through rising edge or falling edge modulation PWM , and obtain a PWM modulation signal after high-precision modulation, where n is an integer from 1 to N.

12. The method according to claim 11, characterized in that A delay module with M delay lines is provided to delay M main phase signals to obtain N delayed signals P1 to P N include: Each delay line receives one main phase signal among the M main phase signals, wherein each delay line includes S digitally controlled delay units connected in series in sequence; When there is no error in the delay module, each delay line delays the corresponding main phase signal and outputs S delayed signals with the same phase difference in sequence, so that there is a delay ΔT=1 / (Fout*M*S) between the delayed signals, and a phase shift difference of 360 / (M*S) degrees.

13. The method according to claim 12, characterized in that The N time delay signals P1-P are selected N Comparing the phase of the specified time delay signal in the M main phase signals with the specified main phase signal in the M main phase signals, and converting the comparison result into a digital error signal to calibrate the output phase error of the time delay signal includes: Performing phase error calibration only on the time delay signal output by the time delay line corresponding to a main phase signal among the M main phase signals; or Phase error calibration is performed on the time delay signals output by the time delay lines corresponding to all the M main phase signals.

14. The method according to claim 12, characterized in that The N time delay signals P1-P are selected N Comparing the phase of the specified time delay signal in the M main phase signals with the specified main phase signal in the M main phase signals, and converting the comparison result into a digital error signal to calibrate the output phase error of the time delay signal includes: Select the delayed signal P output by the last delay unit in the jth delay line k The main phase signal Q of the next delay line is input j , compare whether the phases of the two are the same, where P k is the specified time delay signal, Q j is the designated main phase signal, j is an integer from 1 to M, k=j*S, Q M Considered as Q0; Converting the comparison result into an analog voltage value; The analog voltage value is converted into the digital error signal, and the digital error signal has a P k With Q j The phase error information between the two, the digital error signal is fed back to the delay module; when the digital error signal indicates P k With Q j The phase of P k The corresponding delay line has no error, so the next group P is selected. k and Q j , used for phase comparison, where the next group P k and Q j It refers to P obtained after setting j = j + 1 k and Q j ; When the digital error signal indicates P k With Q j If there is a phase error, then P k The corresponding delay line needs to be calibrated, and the delay module adjusts the output phase error of the delay signal according to the digital error signal, and outputs the phase-adjusted P k Again with Q j comparison until the digital error signal indicates P k With Q j The phase of the delay line is the same as that of the delay line, then the error correction of the delay line of the delay module is completed.

15. The method according to claim 11, characterized in that When the delay signal P n Modulate the PWM signal to its modulation frequency F through rising edge modulation PWM When the rising edge delay is (n / N)*ΔT, ΔT=1 / (Fout*N), n is an integer from 1 to N / 2.

16. The method according to claim 11, characterized in that When the delay signal P n Modulate the PWM signal to its modulation frequency F through the falling edge modulation method PWM When , the falling edge delay is -(Nn / N)*ΔT, ΔT=1 / (Fout*N), and n is an integer from N / 2+1 to N.