A clock generation circuit based on phase-locked loop synchronizing external clock

By designing a phase-locked loop-based clock generation circuit in the power management chip, the problem of synchronizing external clocks and outputting multiple phase and duty cycle clock signals is solved, and efficient power management control is achieved.

CN115102540BActive Publication Date: 2024-10-22UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210666782.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-14
Publication Date
2024-10-22
Estimated Expiration
2042-06-14

AI Technical Summary

Technical Problem

In multi-phase interleaved control power management technology, it is difficult for the existing clock generation circuit to synchronize the off-chip clock and output clock signals with multiple phases and duty cycles, which affects the control efficiency of the power chip and the minimization of voltage ripple.

Method used

Design a clock generation circuit based on phase-locked loop, including phase detector and charge pump module, clock frequency generation module and frequency division and phase splitting module, which can automatically generate a fixed-frequency clock when there is no external clock input and synchronize it through the phase-locked loop External clock outputs clock signals with various duty cycles and phase differences.

Benefits of technology

It achieves synchronization of the external clock of the chip and can output clock signals with various duty cycles and phase differences, which improves the control accuracy and efficiency of the power management chip and is suitable for multi-phase interleaved control technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115102540B_ABST
    Figure CN115102540B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of power management technology, and specifically relates to a clock generating circuit based on a phase-locked loop synchronizing an external clock. The present invention combines the respective characteristics of a phase-locked loop, a square wave generating circuit, and digital frequency division and phase division, and invents a clock voltage signal that can synchronize an off-chip clock and output a variety of duty cycles and phase differences, which can be applied to power chips that adopt multi-phase interleaved control technology. In addition, the phase-locked loop of the present invention has its own initialization function, which avoids the long time of synchronizing the off-chip clock when powering on. The 6-fold clock frequency square wave generating circuit of the present invention effectively utilizes the high-speed and low-delay characteristics of the inverter to ensure that the rise and fall delays will not be too large in the operation of multiple megahertz frequency square waves. At the same time, the present invention can output a variety of clock signals with duty cycles and phase differences by dividing and phase-dividing the 6-fold clock frequency of the off-chip clock, which is applicable to the control technology of various power management chips today.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of power management, and in particular relates to a clock generating circuit based on a phase-locked loop synchronizing an external clock. Background Art

[0002] In the field of power management technology, the usual chip control technology requires an internal clock to provide a clock reference for the ramp generation circuit, or to generate a logic clock for turning on the power tube. Therefore, a power management chip needs to have at least one clock generation circuit to provide the chip with an internal clock. In addition, with the development of technology, chip power density, etc., multi-phase interleaving control technology is increasingly used in the control of power chips. For multi-phase interleaving control power management technology, it requires the chip clock to have clock signals with different phase differences according to the number of phases. For example, for two-phase control, the clocks of the two phases need to differ by 180°, so that multi-phase interleaving control can achieve the advantages of minimizing the output voltage ripple and reducing the number of passive power devices. Therefore, in addition to generating the clock of its initial phase, the clock generation circuit also needs to be able to generate other clocks with a phase difference from the initial phase. In addition to realizing multiple phase control in one chip, multi-phase interleaving control technology also has multiple chips in parallel to realize multi-phase interleaving control technology. Therefore, the clock in the chip needs to have the ability to synchronize with the external clock, so that the initial phase of the parallel clock can have a certain phase difference with another chip. Summary of the invention

[0003] In view of the design requirements of the above-mentioned clock generation circuit in a multi-phase interleaved control power management chip, the present invention proposes a phase-locked loop clock generation circuit that synchronizes an off-chip clock and has multiple phase clock outputs. When there is no off-chip clock input, the present invention can generate a fixed frequency clock through a square wave generation circuit. After the clock is input outside the chip, the present invention synchronizes the off-chip clock through a phase-locked loop. In addition, in addition to generating clock signals, the present invention can also generate other clock signals with multiple duty cycles and phase differences for use in chips with multi-phase interleaved control technology.

[0004] The technical solution of the present invention is:

[0005] A clock generation circuit based on a phase-locked loop synchronizing an external clock, characterized in that it comprises a phase detection and charge pump module, a clock frequency generation module and a frequency and phase division module;

[0006] The phase detection and charge pump module includes a first NAND gate, a second NAND gate, a third NAND gate, a first inverter, a second inverter, a third inverter, a first D flip-flop, a second D flip-flop, a first PMOS tube, a second PMOS tube, a third PMOS tube, a fourth PMOS tube, a fifth PMOS tube, a first NMOS tube, a second NMOS tube, a third NMOS tube, a fourth NMOS tube, a fifth NMOS tube, a sixth NMOS tube, a seventh NMOS tube, an eighth NMOS tube, a first current source, a first resistor, a first capacitor, and a second capacitor; wherein one input terminal of the first NAND gate is connected to the internal initial phase clock, the other input terminal thereof is connected to the start signal, and the output terminal thereof is connected to the input terminal of the first inverter. The first NAND gate has an input connected to an external clock, another input connected to a start signal, and an output connected to an input of a second inverter; the clock signal of the first D flip-flop is connected to the output of the second inverter, and the R terminal of the first D flip-flop is connected to the output of the third inverter; the clock signal of the second D flip-flop is connected to the output of the first inverter, and the R terminal of the second D flip-flop is connected to the output of the third inverter; the input of the third inverter is connected to the output of the third NAND gate, one input of the third NAND gate is connected to the Q output of the first D flip-flop, and the other input of the third NAND gate is connected to the Q output of the second D flip-flop; the source of the first PMOS tube is connected to a power supply, the gate and drain of the first PMOS tube are interconnected, and the drain of the first PMOS tube is connected to the The gate of the second NMOS tube is connected to the gate and drain of the first NMOS tube and the output end of the first current source, and the source of the second NMOS tube and the source of the first NMOS tube are grounded; the source of the second PMOS tube is connected to the power supply, and its gate is connected to the Q non-output end of the first D flip-flop; the source of the third PMOS tube is connected to the drain of the second PMOS tube, and the gate of the third PMOS tube is connected to the drain of the first PMOS tube; the drain of the eighth NMOS tube is connected to the drain of the third PMOS tube, the drain of the seventh NMOS tube is connected to the source of the eighth NMOS tube, and the gate of the seventh NMOS tube and the gate of the eighth NMOS tube are connected to the start signal; the drain of the fourth NMOS tube is connected to the source of the seventh NMOS tube, and the fourth NMOS The gate of the transistor is connected to the output end of the first current source; the drain of the third NMOS transistor is connected to the source of the fourth NMOS transistor, the gate of the third NMOS transistor is connected to the Q output end of the second D flip-flop, and the source of the third NMOS transistor is grounded; the source of the fourth PMOS transistor is connected to the power supply, and its gate is connected to the drain of the first PMOS tube; the source of the fifth PMOS tube is connected to the drain of the fourth PMOS tube, the source of the sixth PMOS tube is connected to the drain of the fifth PMOS tube, and the gate of the fifth PMOS tube and the gate of the sixth PMOS tube are connected to the start signal; the drain and gate of the sixth NMOS tube are connected to the drain of the sixth PMOS tube, the drain and gate of the fifth NMOS tube are connected to the source of the sixth NMOS tube, and the source of the fifth NMOS tube is grounded;The source of the eighth NOMOS tube, the drain of the seventh NMOS tube, the drain of the fifth PMOS tube, and the source of the sixth PMOS tube are connected to one end of the first resistor and one end of the first capacitor as the output end of the phase detection and charge pump module, the other end of the first resistor is grounded after passing through the second capacitor, and the other end of the first capacitor is grounded;

[0007] The clock frequency generating module includes a seventh PMOS tube, an eighth PMOS tube, a ninth PMOS tube, a tenth PMOS tube, an eleventh PMOS tube, a twelfth PMOS tube, a thirteenth PMOS tube, a fourteenth PMOS tube, a fifteenth PMOS tube, a sixteenth PMOS tube, a seventeenth PMOS tube, an eighteenth PMOS tube, a nineteenth PMOS tube, a twentieth PMOS tube, a twenty-first PMOS tube, a ninth NMOS tube, a tenth NMOS tube, an eleventh NMOS tube, a twelfth NMOS tube, a thirteenth NMOS tube, a fourteenth NMOS tube, a fifteenth NMOS tube, a sixteenth NMOS tube, a seventeenth NMOS tube, an eighteenth NMOS tube, a The nineteenth NMOS tube, the twentieth NMOS tube, the twenty-first NMOS tube, the twenty-second NMOS tube, the twenty-third NMOS tube, the twenty-fourth NMOS tube, the fourth inverter, the fifth inverter, the sixth inverter, the seventh inverter, the second current source, the second resistor, the third resistor, and the third capacitor; wherein the gate of the seventh PMOS tube is connected to the output end of the phase detection and charge pump module, the source of the seventh PMOS tube is connected to the drain of the twelfth PMOS tube and the source of the eighth PMOS tube, the drain of the seventh PMOS tube is connected to the gate and drain of the thirteenth NMOS tube and the gate of the fourteenth NMOS tube; the source of the thirteenth NMOS tube and the source of the fourteenth NMOS tube are grounded; the source of the eleventh PMOS tube is connected to the power supply , the source of the twelfth PMOS tube is connected to the drain of the eleventh PMOS tube, the gate of the twelfth PMOS tube is connected to the gate of the eleventh PMOS tube, the gate of the ninth PMOS tube, the gate and drain of the tenth PMOS tube, the gate of the thirteenth PMOS tube, the gate of the fourteenth PMOS tube, and the drain of the eleventh NMOS tube; the source of the ninth PMOS tube is connected to the power supply, and its drain is connected to the source of the tenth PMOS tube; the gate of the eleventh NMOS tube is connected to the gate and drain of the ninth NMOS tube, the output end of the current source, the gate of the tenth NMOS tube, and the gate of the twelfth NMOS tube; the drain of the tenth NMOS tube is connected to the source of the ninth NMOS tube, and the source of the tenth NMOS tube is grounded; The drain of the second NMOS tube is connected to the source of the eleventh NMOS tube, and the source of the twelfth NMOS tube is grounded; the gate of the eighth PMOS tube is connected to the reference voltage, and its drain is connected to the drain of the fourteenth PMOS tube, the drain and gate of the fifteenth NMOS tube, the gate of the sixteenth NMOS tube, the gate of the seventeenth NMOS tube, the gate of the eighteenth NMOS tube, the gate of the nineteenth NMOS tube, and the gate of the twentieth NMOS tube; the source of the fourteenth NMOS tube is grounded; the source of the thirteenth PMOS tube is connected to the power supply, and the source of the fourteenth PMOS tube is connected to the drain of the thirteenth PMOS tube; the drain of the sixteenth NMOS tube is connected to the source of the fifteenth NMOS tube, and the source of the sixteenth NMOS tube is grounded;The source of the fifteenth PMOS tube is connected to the power supply, and its gate is connected to the gate and drain of the sixteenth PMOS tube, the gate of the seventeenth PMOS tube, the gate of the eighteenth PMOS tube, and the drain of the seventeenth NMOS tube. The drain of the fifteenth PMOS tube is connected to the source of the sixteenth PMOS tube; the drain of the eighteenth NMOS tube is connected to the source of the seventeenth NMOS tube, and the source of the eighteenth NMOS tube is grounded; the source of the seventeenth PMOS tube is connected to the power supply, the source of the eighteenth PMOS tube is connected to the drain of the seventeenth PMOS tube, the drain of the eighteenth PMOS tube is connected to the drain of the twenty-fourth NMOS tube, the source of the twentieth PMOS tube, and the source of the twenty-third NMOS tube; the source of the nineteenth PMOS tube is connected to the power supply, the gate is connected to the output end of the sixth inverter, and the drain of the nineteenth NMOS tube is connected to the drain of the nineteenth NMOS tube, the source of the twenty-first PMOS tube, and the source of the twenty-first NMOS tube; the drain of the twentieth NMOS tube is connected to the source of the nineteenth NMOS tube, and the source of the twentieth NMOS tube is grounded; The gate of the S tube is connected to the output end of the seventh inverter, and its drain is connected to the drain of the twenty-third NMOS tube, the input end of the fourth inverter, the drain of the twenty-second NMOS tube, the drain of the twenty-first PMOS tube, the drain of the twenty-first NMOS tube, and one end of the third capacitor; the gate of the twenty-third NMOS tube is connected to the output end of the sixth inverter; the gate of the twenty-second NMOS tube is connected to the start signal, and its source is grounded; the gate of the twenty-first PMOS tube is connected to the output end of the sixth inverter, and the gate of the twenty-first NMOS tube is connected to the output end of the seventh inverter; the input end of the fifth inverter is connected to the output end of the fourth inverter, the output end of the fifth inverter is connected to the input end of the sixth inverter and one end of the second resistor, the other end of the second resistor is connected to the other end of the third capacitor and one end of the third resistor, and the other end of the third resistor is grounded; the output end of the sixth inverter outputs a 6-fold clock frequency signal and is connected to the input end of the seventh inverter, and the seventh inverter outputs a control signal; the 6-fold clock frequency signal is a 6-fold clock frequency signal of the external clock;

[0008] The input of the frequency division and phase division module is a 6-fold clock frequency signal, and the 6-fold clock frequency signal generates a clock output with a duty cycle of 1 / 12, 1 / 6, 1 / 3, and 1 / 2 after passing through the frequency division and phase division module.

[0009] Gain effect of the present invention: The present invention proposes a phase-locked loop clock generating circuit with a synchronous off-chip clock and multiple phase clock outputs. By combining a phase-locked loop, a frequency generating circuit and a frequency dividing circuit, it realizes the synchronous off-chip clock function and can output clock signals with multiple duty cycles and multiple phase differences. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a system block diagram of the present invention.

[0011] Figure 2It is the specific implementation circuit of phase detection and charge pump.

[0012] Figure 3 It is a specific implementation circuit for generating clock frequency.

[0013] Figure 4 It is the specific implementation circuit of the frequency division and phase division module.

[0014] Figure 5 It is the specific setting of the state machine state in the frequency division and phase division circuit.

[0015] Figure 6 This is the simulated working waveform when the 650kHz clock signal outside the synchronization chip is used.

[0016] Figure 7 for Figure 6 Partial diagram of simulation waveform.

[0017] Figure 8 It is the simulation waveform of the clock signal output with multiple phases and duty cycles of the present invention. DETAILED DESCRIPTION

[0018] The present invention is described in detail below with reference to the accompanying drawings.

[0019] Figure 1 It is a specific design block diagram of the present invention, through Figure 1 It can be known that the technical implementation process of the present invention is that first, the phase difference between the clock outside the chip and the initial phase clock inside the chip is converted into a control voltage through the phase detection and charge pump module. The specific conversion process is shown in FIG. Figure 2 The clock frequency generation module will change the size of the 6-fold clock frequency it outputs accordingly by controlling the size of the voltage, so as to achieve synchronization between the initial phase clock in the chip and the clock outside the chip. The specific implementation circuit is shown in Figure 3 In order to realize the clock output of multiple duty cycles and multiple phases, the clock generated by the clock generation module of the present invention is 6 times the frequency of the external clock of the chip. In this way, the frequency division and phase division module can first obtain a clock with the same frequency and phase as the external clock, and a clock signal with different duty cycles having a phase difference with the external clock. The specific implementation circuit is shown in Figure 4 and its description.

[0020] Figure 2The circuit of the phase detector and charge pump module is realized. Since the present invention is suitable for use in a power management chip, the 2.4V voltage VCC1 commonly used in the digital circuit of the power management chip can be used as the power rail of the phase detector and charge pump module of the present invention. The specific working principle is as follows: the start signal is usually a logic voltage signal in the entire power chip power-on process. The power management chip generally has this signal. When the power rail VCC1 inside the voltage management chip is established, the start signal changes from a low level to a high level. Figure 2 The circuit shown starts to work. First, the difference between the rising edges of the off-chip clock and the on-chip clock is detected by the phase detection circuit composed of logic gates Q1~Q6 and D1~D2. The off-chip clock and the on-chip clock may be voltage signals with different duty cycles. The difference in their rising edges will be reflected in the opening and closing of the MOS tubes MP2 and MN3 in the charge pump circuit composed of MOS tubes MN1~MN8, MP1~MP6 and off-chip compensation Rs, Cs and Cp. For example, when the start signal changes from a low level to a high level, the MOS tubes MN8 and MOS tubes MN7 are turned on. If the rising edge of the off-chip clock is earlier than the initial phase clock in the chip, the QN of the trigger D1 is low, and the output of D2 is also low. Then, MP2 is turned on and MN3 is turned off. Then, a current will pass through the mirror MOS tube MP3 to charge the off-chip compensation element, and the control voltage will rise. The subsequent circuit of the present invention will use the rise of this control voltage to adjust the frequency of the initial phase clock in the chip until the rising edge of the initial phase clock in the chip no longer lags behind the off-chip clock. When the rising edges of the external clock and the initial phase clock inside the chip have arrived, the output of the trigger D1 and D2 at Q will reset D1 and D2 at the same time, which can ensure that the phase detection function only detects the phase difference and is independent of the duty cycle of the clock signal. In addition, since the off-chip compensation elements are usually relatively large capacitors and resistors, it takes a certain amount of time to increase the control voltage from 0V to a stable voltage through the microampere current charging and discharging of the MOS tubes MN4 and MN3. Therefore, the present invention has an initialization circuit structure composed of MOS tubes MP4-MP6, MN5 and MN6. During the time period when the start signal is low, the MOS tubes MP5 and MP6 are turned on, and the current flowing through the MP4 tube generates twice the gate-source voltage on the MOS tubes MN6 and MN5. In the BCD process, the threshold voltage of the low-voltage device is generally between 0.6V and 0.75V. Therefore, by setting the mirror current size of the MP4 tube and the size of the MOS tubes MN5-MN6, the initial value of the control voltage can be between 1.2V and 1.5V, which is close to the control voltage size of 1.2V where the center frequency of the rear-stage generating circuit of the present invention is located. The phase-locked loop adjusts the control voltage to high frequency and low frequency through the center frequency, which is better than starting from 0V voltage.

[0021] Figure 3The clock frequency generation module of the present invention is specifically implemented in the circuit, wherein the voltage VCC2 used by the transconductance amplifier structure where the MOS tubes MN9-MN29 and MP9-MP18 are located is a 5V voltage rail commonly found in the power management chip, and the inverters Q5-Q8 still use VCC1 as the power rail, and the reference voltage is usually 1.2V. Figure 2 The circuit in the figure sets the initial value of the control voltage at about 1.2V and ensures that the initial frequency is at the center frequency. The specific working process of the clock frequency generation module is as follows: Ib is the mirror current, which is mirrored by the mirror tubes MN9~MN12 and MP9~MP14 to obtain two mirror currents, Ia and Is. The traditional differential structure composed of MOS tubes MP7, MP8, MP11, MP12, MN13, and MN14 converts the voltage difference of the control voltage into the current flowing in and out of the drain end of the MP8 tube. Therefore, when the control voltage is equal to the reference voltage, the current Ig is 0, and the current flowing into the drain end of the mirror tubes MN15 and MN16 is Is. According to the transconductance of the differential pair, the current Ic and Is satisfy the following relationship

[0022] I c =I s +g m (△V) (1)

[0023] Wherein gm represents the transconductance of the traditional differential amplifier structure composed of MOS tubes MP7, MP8, MP11, MP12, MN13, and MN14, and △V represents the difference between the control voltage and the reference voltage.

[0024] Therefore, the magnitude of the current Ic is adjusted by the control voltage, and the current Ic is mirrored through the current mirror composed of MOS tubes MN15~MN20 and MP15~MP18, so that the magnitude of the mirrored current is nIc, and the MOS tubes MN15~MN24, MP15~MP21, inverters Q5~Q8, resistors R1 and R2, and capacitor C1 form a square wave generation structure in the frequency generation circuit. The process is that the initial signal pulls the voltage on the capacitor C1 down to 0V by briefly turning on the MOS tube MN22 during the power-on stage. At this time, the 6 times clock frequency is a high level, the control signal 1 is a low level, the transmission gate composed of MP20 and MN23 is opened, and the transmission gate composed of MP21 and MN21 is closed. Since the MP19 tube is turned on, the current MP19 mirrored by the MOS tubes MN19 and MN20 flows, which does not affect the capacitor C1. Since MN24 is turned off, the current MP19 mirrored by the MOS tubes MN19 and MN20 flows, and does not affect the capacitor C1. The current flowing through MP17 and MP18 flows into capacitor C1, and the voltage on the upper plate of capacitor C1 begins to rise. When it exceeds the threshold voltage of inverter Q5, which is about 1.2V, the inverter outputs a high level of 2.4V. Since R1=R2, the lower plate of capacitor C1 rises by 1.2V, and the upper plate of C1 instantly rises to 2.4V. At this time, the 6-fold clock frequency is at a low level, and the control signal 1 is at a high level. Then the transmission gate composed of MP20 and MN23 is closed and the transmission gate composed of MP21 and MN21 is opened. The current mirrored by MN19 and MN20 begins to discharge the upper plate of capacitor C1 until it is less than 1.2V. Inverter Q6 outputs a low level, and the lower plate of capacitor C1 changes from 1.2V to 0V, and its upper plate also changes to 0V, that is, it returns to the initial value. Through the cycle of the above process, inverter Q7 can output a square wave voltage with a duty cycle of 0.5, and its frequency can be expressed as follows

[0025]

[0026] Where f 6倍频 Indicates the size of 6 times the clock frequency. Its size will be set at 6 times the external clock frequency through the phase-locked loop and the 1 / 6 frequency division function of the subsequent frequency division circuit. V TH is the threshold voltage of the inverter Q5, which is usually 1.2V, C1 is the capacitance of the capacitor C1, and n is the mirror ratio of the current mirror composed of the MOS tubes MN15~MN20 and MP15~MP18.

[0027] The center frequency set by Is is in the megahertz range. The present invention can effectively generate multiple megahertz frequencies through the inherent state latching and low delay characteristics of the inverter, without excessive square wave rise delay and fall delay, which affects the specific duty cycle setting. It can be seen from formulas (1) and (2) that the frequency control of the present invention is based on a center frequency, and the center frequency corresponds to a control voltage of 1.2V. At this time, IC =I S The maximum and minimum frequencies are approximately

[0028] Through the clock frequency generation module of the present invention, the control voltage generated by the phase detection and charge pump module can be converted into a 6-fold clock frequency that changes around the center frequency set by Is. The reason for setting the 6-fold clock frequency is that the cycle length of the 6-fold clock frequency is 1 / 6 of the off-chip clock and the duty cycle of its own cycle is also 1 / 2. Therefore, through the frequency division and phase division module, a synchronous off-chip clock signal with a minimum duty cycle of 1 / 12 and a minimum phase difference of 30° can be achieved. The specific implementation process is shown in Figure 4 and Figure 5 .

[0029] Since the present invention combines a phase-locked loop structure, the frequency of the clock frequency generation module is 6 times the external clock, and the frequency division and phase division circuit utilizes Figure 4 The triggers L1 to L3 in the figure form an 8-bit state machine, and the state switching sequence is as follows: Figure 5 As shown, the states S2 to S7 are combined into 6 cyclic states in the form of Gray code. Each time the rising edge of the 6-fold clock frequency comes, the state switches once. Each cycle of S2 to S7 forms a cycle of the output clock signal, thus completing the 6-fold frequency division function of the 6-fold clock frequency. Figure 4 The initial phase clock in the chip in the dotted box is a signal with a 1 / 12 duty cycle synchronized with the external clock. The high level of 6 times the clock frequency in state S2 is used as the high level output of the output clock signal to complete the generation of the 1 / 12 duty cycle. Due to the effective setting of the state code of state S2 and S7, the 000 state and the 111 state are discarded. Therefore, each state of S2~S7 only needs to be represented by the output of two D flip-flops. In addition, the high level of 6 times the clock frequency with a duty cycle of 1 / 2 is input to the NAND gate. The initial phase clock in the chip with a 1 / 12 duty cycle A single bit clock can be generated. In addition, since the clock signal of the triggers L1~L3, that is, 6 times the clock frequency, is introduced as the input of the NAND gate, in order to avoid clock jitter, the inputs of the inverters L5 and L4 triggered by the falling edge also need to be introduced into the generation of the 1 / 12 duty cycle clock. The principle is to use the characteristics of its falling edge trigger to lock the state of the NAND output and prevent the NAND gate output from jittering when the 6-fold clock changes. The triggers L4 and L5 are only needed when the 6-fold clock frequency is needed as the input of the NAND gate, and the rest are not needed.

[0030] use Figure 5In various states in the present invention, the present invention can output clock outputs with duty ratios of 1 / 12, 1 / 6, 1 / 3, and 1 / 2, by using one or more outputs in states S2 to S7 as the high level of the output clock and the rest as the low level outputs, see specifically Figure 4 The dashed box example, at the same time, the present invention can also output a clock signal with a minimum phase difference of 30° relative to the initial phase clock in the chip, as shown in the dashed box, the initial phase output of state S2, the 6 times clock frequency at the low level in state S3 is a clock with a phase difference of 90° with state S2.

[0031] The present invention works as a whole in the loop of the phase-locked loop, so it involves the problem of loop stability. Figure 2 The off-chip compensation in the circuit is used for stability setting. The loop gain expression of the phase-locked loop is:

[0032]

[0033] Where I CP is the current flowing through MOS tubes MP3 and MN4 in the phase detection and charge pump circuit, n, g m 、C1、V TH Same as formula (1), Rs, Cs, Cp are Figure 2 The off-chip compensation resistor and capacitor values. From equation (3), we can know that the loop phase margin can be easily set to about 60° through the second pole formed by Cp and Rs and the zero formed by Rs and Cs, and the bandwidth is set by equation (4)

[0034]

[0035] Figure 6 The figure shows the working waveform of the present invention when the external synchronous chip has a 650kHz clock. Figure 7 It is the local waveform after phase locking is completed. Figure 6 It can be seen that when powered on, the control voltage is initialized to about 1.2V, which is the control voltage of the center frequency. At this time, since the external clock frequency is greater than the center frequency 500kHz, the control voltage begins to rise until the external clock is in phase with the initial phase clock in the chip. Figure 7 It can also be seen from the figure that the initial phase clock duty cycle in the chip is 1 / 12, which is in line with the expected design of the present invention.

[0036] Figure 8 The present invention outputs simulation waveforms with multiple phases and multiple duty cycles. Figure 8 It can be seen from the simulation waveform that the present invention can achieve clock signal outputs with different duty cycles and phase differences, which is in line with the expectation of the invention.

[0037] In summary, the present invention combines the respective characteristics of a phase-locked loop, a square wave generating circuit, and digital frequency division and phase division to invent a clock voltage signal that can synchronize an off-chip clock and output a variety of duty cycles and phase differences, which can be applied to power chips that use multi-phase interleaved control technology. In addition, the phase-locked loop of the present invention has its own initialization function, which avoids the long time required to synchronize the off-chip clock when powering on. The 6-fold clock frequency square wave generating circuit of the present invention effectively utilizes the high-speed and low-latency characteristics of the inverter to ensure that the rise and fall delays will not be too large during the operation of multiple megahertz frequency square waves. At the same time, the present invention can output a variety of clock signals with duty cycles and phase differences by dividing and phase-dividing the 6-fold clock frequency of the off-chip clock, which is applicable to the control technology of various power management chips today.

Claims

1. A clock generation circuit based on a phase-locked loop synchronizing an external clock, characterized in that: It includes a phase detection and charge pump module, a clock frequency generation module and a frequency and phase division module; The phase detection and charge pump module includes a first NAND gate, a second NAND gate, a third NAND gate, a first inverter, a second inverter, a third inverter, a first D flip-flop, a second D flip-flop, a first PMOS tube, a second PMOS tube, a third PMOS tube, a fourth PMOS tube, a fifth PMOS tube, a first NMOS tube, a second NMOS tube, a third NMOS tube, a fourth NMOS tube, a fifth NMOS tube, a sixth NMOS tube, a seventh NMOS tube, an eighth NMOS tube, a first current source, a first resistor, a first capacitor, and a second capacitor; wherein one input terminal of the first NAND gate is connected to the internal initial phase clock, the other input terminal thereof is connected to the start signal, and the output terminal thereof is connected to the input terminal of the first inverter. The first NAND gate has an input connected to an external clock, another input connected to a start signal, and an output connected to an input of a second inverter; the clock signal of the first D flip-flop is connected to the output of the second inverter, and the R terminal of the first D flip-flop is connected to the output of the third inverter; the clock signal of the second D flip-flop is connected to the output of the first inverter, and the R terminal of the second D flip-flop is connected to the output of the third inverter; the input of the third inverter is connected to the output of the third NAND gate, one input of the third NAND gate is connected to the Q output of the first D flip-flop, and the other input of the third NAND gate is connected to the Q output of the second D flip-flop; the source of the first PMOS tube is connected to a power supply, the gate and drain of the first PMOS tube are interconnected, and the drain of the first PMOS tube is connected to the The gate of the second NMOS tube is connected to the gate and drain of the first NMOS tube and the output end of the first current source, and the source of the second NMOS tube and the source of the first NMOS tube are grounded; the source of the second PMOS tube is connected to the power supply, and its gate is connected to the Q non-output end of the first D flip-flop; the source of the third PMOS tube is connected to the drain of the second PMOS tube, and the gate of the third PMOS tube is connected to the drain of the first PMOS tube; the drain of the eighth NMOS tube is connected to the drain of the third PMOS tube, the drain of the seventh NMOS tube is connected to the source of the eighth NMOS tube, and the gate of the seventh NMOS tube and the gate of the eighth NMOS tube are connected to the start signal; the drain of the fourth NMOS tube is connected to the source of the seventh NMOS tube, and the fourth NMOS The gate of the transistor is connected to the output end of the first current source; the drain of the third NMOS transistor is connected to the source of the fourth NMOS transistor, the gate of the third NMOS transistor is connected to the Q output end of the second D flip-flop, and the source of the third NMOS transistor is grounded; the source of the fourth PMOS transistor is connected to the power supply, and its gate is connected to the drain of the first PMOS tube; the source of the fifth PMOS tube is connected to the drain of the fourth PMOS tube, the source of the sixth PMOS tube is connected to the drain of the fifth PMOS tube, and the gate of the fifth PMOS tube and the gate of the sixth PMOS tube are connected to the start signal; the drain and gate of the sixth NMOS tube are connected to the drain of the sixth PMOS tube, the drain and gate of the fifth NMOS tube are connected to the source of the sixth NMOS tube, and the source of the fifth NMOS tube is grounded;The source of the eighth NOMOS tube, the drain of the seventh NMOS tube, the drain of the fifth PMOS tube, and the source of the sixth PMOS tube are connected to one end of the first resistor and one end of the first capacitor as the output end of the phase detection and charge pump module, the other end of the first resistor is grounded after passing through the second capacitor, and the other end of the first capacitor is grounded; The clock frequency generating module includes a seventh PMOS tube, an eighth PMOS tube, a ninth PMOS tube, a tenth PMOS tube, an eleventh PMOS tube, a twelfth PMOS tube, a thirteenth PMOS tube, a fourteenth PMOS tube, a fifteenth PMOS tube, a sixteenth PMOS tube, a seventeenth PMOS tube, an eighteenth PMOS tube, a nineteenth PMOS tube, a twentieth PMOS tube, a twenty-first PMOS tube, a ninth NMOS tube, a tenth NMOS tube, an eleventh NMOS tube, a twelfth NMOS tube, a thirteenth NMOS tube, a fourteenth NMOS tube, a fifteenth NMOS tube, a sixteenth NMOS tube, a seventeenth NMOS tube, an eighteenth NMOS tube, a The nineteenth NMOS tube, the twentieth NMOS tube, the twenty-first NMOS tube, the twenty-second NMOS tube, the twenty-third NMOS tube, the twenty-fourth NMOS tube, the fourth inverter, the fifth inverter, the sixth inverter, the seventh inverter, the second current source, the second resistor, the third resistor, and the third capacitor; wherein the gate of the seventh PMOS tube is connected to the output end of the phase detection and charge pump module, the source of the seventh PMOS tube is connected to the drain of the twelfth PMOS tube and the source of the eighth PMOS tube, the drain of the seventh PMOS tube is connected to the gate and drain of the thirteenth NMOS tube and the gate of the fourteenth NMOS tube; the source of the thirteenth NMOS tube and the source of the fourteenth NMOS tube are grounded; the source of the eleventh PMOS tube is connected to the power supply , the source of the twelfth PMOS tube is connected to the drain of the eleventh PMOS tube, the gate of the twelfth PMOS tube is connected to the gate of the eleventh PMOS tube, the gate of the ninth PMOS tube, the gate and drain of the tenth PMOS tube, the gate of the thirteenth PMOS tube, the gate of the fourteenth PMOS tube, and the drain of the eleventh NMOS tube; the source of the ninth PMOS tube is connected to the power supply, and its drain is connected to the source of the tenth PMOS tube; the gate of the eleventh NMOS tube is connected to the gate and drain of the ninth NMOS tube, the output end of the current source, the gate of the tenth NMOS tube, and the gate of the twelfth NMOS tube; the drain of the tenth NMOS tube is connected to the source of the ninth NMOS tube, and the source of the tenth NMOS tube is grounded; The drain of the second NMOS tube is connected to the source of the eleventh NMOS tube, and the source of the twelfth NMOS tube is grounded; the gate of the eighth PMOS tube is connected to the reference voltage, and its drain is connected to the drain of the fourteenth PMOS tube, the drain and gate of the fifteenth NMOS tube, the gate of the sixteenth NMOS tube, the gate of the seventeenth NMOS tube, the gate of the eighteenth NMOS tube, the gate of the nineteenth NMOS tube, and the gate of the twentieth NMOS tube; the source of the fourteenth NMOS tube is grounded; the source of the thirteenth PMOS tube is connected to the power supply, and the source of the fourteenth PMOS tube is connected to the drain of the thirteenth PMOS tube; the drain of the sixteenth NMOS tube is connected to the source of the fifteenth NMOS tube, and the source of the sixteenth NMOS tube is grounded;The source of the fifteenth PMOS tube is connected to the power supply, and the gate thereof is connected to the gate and drain of the sixteenth PMOS tube, the gate of the seventeenth PMOS tube, the gate of the eighteenth PMOS tube, and the drain of the seventeenth NMOS tube; the drain of the fifteenth PMOS tube is connected to the source of the sixteenth PMOS tube; the drain of the eighteenth NMOS tube is connected to the source of the seventeenth NMOS tube, and the source of the eighteenth NMOS tube is grounded; the source of the seventeenth PMOS tube is connected to the power supply, the source of the eighteenth PMOS tube is connected to the drain of the seventeenth PMOS tube, and the eighteenth PMOS tube is connected to the drain of the seventeenth PMOS tube. The drain of the MOS tube is connected to the drain of the twenty-fourth NMOS tube, the source of the twentieth PMOS tube, and the source of the twenty-third NMOS tube; the source of the nineteenth PMOS tube is connected to the power supply, the gate is connected to the output end of the sixth inverter, and the drain is connected to the drain of the nineteenth NMOS tube, the source of the twenty-first PMOS tube, and the source of the twenty-first NMOS tube; the drain of the twentieth NMOS tube is connected to the source of the nineteenth NMOS tube, and the source of the twentieth NMOS tube is grounded; the gate of the twentieth PMOS tube is connected to the output end of the seventh inverter , its drain is connected to the drain of the twenty-third NMOS tube, the input end of the fourth inverter, the drain of the twenty-second NMOS tube, the drain of the twenty-first PMOS tube, the drain of the twenty-first NMOS tube, and one end of the third capacitor; the gate of the twenty-third NMOS tube is connected to the output end of the sixth inverter; the gate of the twenty-second NMOS tube is connected to the start signal, and its source is grounded; the gate of the twenty-fourth NMOS tube is connected to the output end of the seventh inverter, and its source is grounded; the gate of the twenty-first PMOS tube is connected to the output end of the sixth inverter, and the gate of the twenty-first NMOS tube is connected to the output end of the seventh inverter; the input end of the fifth inverter is connected to the output end of the fourth inverter, the output end of the fifth inverter is connected to the input end of the sixth inverter, one end of the second resistor, the other end of the second resistor is connected to the other end of the third capacitor and one end of the third resistor, and the other end of the third resistor is grounded; the output end of the sixth inverter outputs a 6-fold clock frequency signal and is connected to the input end of the seventh inverter, and the seventh inverter outputs a control signal; the 6-fold clock frequency signal is a 6-fold clock frequency signal of the external clock; The input of the frequency division and phase division module is a 6-fold clock frequency signal, and the 6-fold clock frequency signal generates a clock output with a duty cycle of 1 / 12, 1 / 6, 1 / 3, and 1 / 2 after passing through the frequency division and phase division module.