Switching power supply device
By using external clock detection, phase-locked loop and frequency protection circuit in the clock synchronization circuit, the problem of inaccurate external clock frequency judgment in the prior art is solved, and accurate frequency judgment and protection are achieved, thereby improving the reliability of switching power supply equipment.
Patent Information
- Application Number
- CN202211056204.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-08-30
AI Technical Summary
Existing switching power supply devices lack accuracy in determining the external clock frequency, resulting in excessively large chip areas and a tendency for internal errors. In particular, they cannot accurately determine the minimum synchronization frequency when there are multiple clock sources, and high-frequency clock synchronization may cause logic circuit failure.
A clock synchronization circuit is adopted, including an external clock detection circuit, a phase-locked loop circuit, a minimum frequency protection circuit, and a maximum frequency protection circuit. The output clock frequency is adjusted by a voltage control signal, and combined with a working mode switching circuit, it can achieve accurate judgment and protection of the external clock frequency.
This technology enables accurate determination of whether an external clock meets the minimum synchronization frequency requirement without increasing chip area, improving the reliability of the clock synchronization circuit and avoiding internal errors caused by excessively high or low frequencies.
Smart Images

Figure CN115333336B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention generally relate to power supply equipment, and more specifically to a switching power supply device. Background Technology
[0002] A switching power supply is a type of power supply device that utilizes modern power electronics technology to control the on- and off-time ratio of switching transistors to maintain a stable output voltage. This output voltage serves as the power supply voltage for the corresponding terminal equipment. Switching power supplies are characterized by high conversion efficiency, small size, low power consumption, and low cost, and are therefore increasingly widely used in various terminal devices, including electronic devices in fields such as communications, electronics, radar, navigation, and biomedicine. Typically, switching power supplies use a clock circuit to control their switching frequency or operating frequency, thereby controlling the time ratio mentioned above. Therefore, the clock circuit is one of the core modules affecting the logic control and overall performance of the switching power supply. During the operation of the clock circuit, it is often necessary to synchronize with an external clock. When synchronizing with an external clock, it is first necessary to determine whether an external clock exists. If an external clock is confirmed to exist, it is sent to the internal phase-locked loop (PLL) to align the frequency and phase of the output clock signal of the internal oscillator with the frequency and phase of the external clock, thus achieving clock synchronization.
[0003] Currently, the presence of an external clock is typically determined by timing. If the frequency of the external synchronization clock is greater than the corresponding minimum synchronization frequency (meeting the internal timing requirements), an external clock is considered present; conversely, if the frequency is less than or equal to the minimum synchronization frequency (not meeting the internal timing requirements), an external clock is considered absent. However, the minimum synchronization frequency is limited by the internal timing circuit, which is susceptible to variations in process technology, temperature, and operating voltage. Furthermore, accurate timing requires more complex circuitry. Therefore, to enhance circuit reliability and reduce design complexity, RC circuits with large RC values are commonly used for timing. However, a larger RC value translates to a larger chip area. Moreover, with increased margin, if an unsuitable low-frequency external clock exists, it can be synchronized into the chip, potentially causing internal errors in many applications. Additionally, for chips with multiple clock sources, accurately determining the minimum external frequency is crucial, but RC-based external clock synchronization circuits cannot achieve this precise determination. Furthermore, in existing external clock detection circuits, even if the frequency of the external clock is too fast (e.g., above a certain threshold), the synchronous phase-locked loop will synchronize the output clock signal of the internal clock oscillator with such an external clock, which can easily cause the logic circuits that use the output clock signal of the internal clock oscillator to malfunction or even fail due to the excessive frequency. Summary of the Invention
[0004] To address the aforementioned problems, this invention provides a switching power supply device that enables precise determination of whether an external clock meets the minimum synchronization frequency requirement using a simple circuit, without increasing the area of the corresponding chip.
[0005] According to a first aspect of the present invention, a switching power supply device is provided, including a clock synchronization circuit, the clock synchronization circuit comprising: an external clock detection circuit configured to generate a synchronization enable signal indicating the presence of an external clock when an external clock signal is detected; a phase-locked loop circuit configured to compare the external clock signal and an output clock signal of an internal clock oscillator to determine a frequency difference between the external clock signal and the output clock signal, and to adjust a voltage control signal according to the determined frequency difference such that the frequency of the output clock signal can be adjusted to be synchronized with the frequency of the external clock signal, the voltage control signal being associated with the frequency of the output clock signal; and a minimum frequency protection circuit configured to determine, based on the voltage control signal, whether the frequency of the external clock signal is less than a permissible minimum synchronization frequency, and to generate a synchronization shutdown signal when the frequency of the external clock signal is less than the minimum synchronization frequency, the synchronization shutdown signal forcing the external clock detection circuit to shut off the synchronization enable signal.
[0006] In some embodiments, the clock synchronization circuit further includes a working mode switching circuit and a maximum frequency protection circuit. The working mode switching circuit is configured to switch the internal clock oscillator from a first working mode to a second working mode when the synchronization enable signal is turned on. In the first working mode, the output clock signal of the internal clock oscillator is an internal control clock signal. In the second working mode, the output clock signal of the internal clock oscillator is synchronized with an external clock signal. The maximum frequency protection circuit is configured to compare the frequency of the output clock signal with the allowed maximum synchronization frequency, so as to clamp the frequency of the output clock signal to the maximum synchronization frequency when the frequency of the output clock signal is detected to be greater than the maximum synchronization frequency.
[0007] In some embodiments, the minimum frequency protection circuit includes a first voltage-to-current conversion circuit, a first current comparison circuit, and a synchronization turn-off signal generation circuit. The first voltage-to-current conversion circuit is configured to convert the voltage control signal into a first current signal proportional to the voltage control signal. The first current comparison circuit is configured to compare the first current signal with a first reference current signal to determine the magnitude relationship between the first current signal and the first reference current signal, wherein the first reference current signal is associated with the minimum synchronization frequency. The synchronization turn-off signal generation circuit is configured to generate the synchronization turn-off signal when the first current signal is less than the first reference current signal.
[0008] In some embodiments, the first voltage-to-current conversion circuit is implemented using an NMOS device.
[0009] In some embodiments, the first reference current signal is generated by a first DC current source.
[0010] In some embodiments, the synchronous turn-off signal generation circuit is implemented by a non-inverting Schmitt trigger.
[0011] In some embodiments, the external clock detection circuit includes a D flip-flop and an SR flip-flop. The clock control terminal of the D flip-flop is configured to receive the external clock signal. The non-inverting output of the D flip-flop is connected to the R input of the SR flip-flop. The S input of the SR flip-flop is configured to receive the synchronization off signal. The inverting output of the SR flip-flop is configured to output the synchronization enable signal.
[0012] In some embodiments, the operating mode switching circuit includes a first switching circuit, the first switching circuit including a first switch and a second voltage-to-current conversion circuit, the second voltage-to-current conversion circuit being configured to convert the voltage control signal into a first current signal proportional to the voltage control signal, and the first switch being configured to close when the synchronization enable signal is turned on, so as to allow the first switching circuit to provide the first current signal to the internal clock oscillator, such that the internal clock oscillator operates in the second operating mode.
[0013] In some embodiments, the operating mode switching circuit further includes a second switching circuit, the second switching circuit including a second switch and a second DC current source, the second switch being configured to close when the synchronization enable signal is off, to allow the second switching circuit to provide a second reference current signal associated with the frequency of the internal control clock signal to the internal clock oscillator, such that the internal clock oscillator operates in the first operating mode, the second reference current signal being generated by the second DC current source.
[0014] In some embodiments, the highest frequency protection circuit includes a mirror current source circuit, a second current comparison circuit, and a clamping circuit. The mirror current source circuit is configured to generate a mirror current signal of the first current signal. The second current comparison circuit is configured to compare the mirror current signal with a third reference current signal to determine the magnitude relationship between the mirror current signal and the third reference current signal, the third reference current signal being associated with the highest synchronization frequency. The clamping circuit is configured to, when the mirror current signal is greater than the third reference current signal, provide only the portion of the current in which the first current signal is equal to the third reference current signal to the internal clock oscillator.
[0015] In some embodiments, the third reference current signal is generated by a third DC current source.
[0016] In some embodiments, the second voltage-to-current conversion circuit is implemented using an NMOS device.
[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0018] The above and other features, advantages, and aspects of the various embodiments of the present invention will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements.
[0019] Figure 1 A schematic diagram of an example of an external clock synchronization determination circuit in a prior art switching power supply device is shown.
[0020] Figure 2 It shows Figure 1 The timing diagram of the external clock synchronization determination circuit is shown.
[0021] Figure 3 A block diagram of a synchronous clock circuit 300 for a switching power supply device according to an embodiment of the present invention is shown.
[0022] Figure 4 An exemplary schematic diagram of an external clock detection circuit 301 according to an embodiment of the present invention is shown.
[0023] Figure 5 An exemplary schematic diagram of a minimum frequency protection circuit 302 according to an embodiment of the present invention is shown.
[0024] Figure 6 An exemplary schematic diagram of a phase-locked loop circuit 303 according to an embodiment of the present invention is shown.
[0025] Figure 7 An exemplary schematic diagram of an operating mode switching circuit 304 according to an embodiment of the present invention is shown.
[0026] Figure 8 An exemplary schematic of a maximum frequency protection circuit 305 according to an embodiment of the present invention is shown.
[0027] Figure 9 An exemplary schematic diagram of an internal clock oscillator 306 according to an embodiment of the present invention is shown.
[0028] Figure 10 It shows Figure 3 The exemplary operating timing of the synchronous clock circuit 300 shown. Detailed Implementation
[0029] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0030] The term "comprising" and its variations as used herein signify an open-ended inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "at least partially based on". The terms "one example embodiment" and "one embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below. Hereinafter, all switches mentioned in the circuit are described as closing when a high level is received and closing when a low level is received; however, it should be understood that the inventive scheme can also be implemented using switches that close when a low level is received and close when a high level is received.
[0031] As mentioned above, currently, the presence of an external clock is typically determined by timing. When the frequency of the external synchronization clock is greater than the corresponding minimum synchronization frequency (i.e., the internal timing is satisfied), the external clock is considered present; conversely, when the frequency is less than or equal to the minimum synchronization frequency (i.e., the internal timing is not satisfied), the external clock is considered absent. However, the minimum synchronization frequency is limited by the internal timing circuit, which is susceptible to variations in process technology, temperature, and operating voltage. Furthermore, accurate timing requires more complex circuitry. Therefore, to enhance circuit reliability and reduce design complexity, RC circuits with large RC values are commonly used to implement this timing function. However, a larger RC value means a larger chip area. Moreover, with increased margin, if an unsuitable low-frequency external clock exists, it can be synchronized into the chip, potentially causing internal errors in many applications. Additionally, for chips with multiple clock sources, accurately determining the minimum external frequency is crucial, but RC-based external clock synchronization circuits cannot achieve this precise determination. Furthermore, in existing external clock detection circuits, even if the frequency of the external clock is too fast, the synchronous phase-locked loop will synchronize the output clock signal of the internal clock oscillator with such an external clock. This can easily cause the logic circuits that use the output clock signal of the internal clock oscillator to malfunction or even fail due to the excessive frequency.
[0032] For example, Figure 1 A schematic diagram of an example of an external clock synchronization determination circuit in a prior art switching power supply device is shown, and Figure 2 It shows Figure 1 The timing diagram shown is for the external clock synchronization determination circuit. Figure 1The external clock synchronization determination circuit includes a D flip-flop, a first RC circuit composed of capacitor C0 and resistor R0, and a second RC circuit composed of capacitor C1 and capacitor R1, to determine whether an external clock signal CLK_OUT exists. When the external clock signal CLK_OUT is determined to exist, a synchronization start signal SYNC_ON is generated to synchronize the output clock signal of the internal clock oscillator with the external clock signal.
[0033] In this external clock synchronization determination circuit, it is necessary to select a capacitor C0 and a resistor R0 with appropriate capacitance and resistance values for the first RC circuit, respectively, in order to achieve the synchronization of T. on Timing (T) on To internally determine the duration of the high level at the non-inverting output of the D flip-flop, and also to select capacitor C1 and resistor R1 with appropriate capacitance and resistance values for the second RC circuit, in order to achieve the desired duration of T... off Timing (T) off (To internally determine the duration of the low level at the non-inverting output of the D flip-flop) to help determine whether the frequency of the external clock meets the condition. This helps determine whether an external synchronization clock exists. To achieve such timing, both the first and second RC circuits (especially the second RC circuit) need to have large RC values, therefore... Figure 1 The external clock synchronization determination circuit shown results in an excessively large chip size. Furthermore, because it is often difficult to accurately determine the capacitor and resistor values for the first and second RC circuits, such an external clock synchronization determination circuit is unsuitable for accurately determining whether the external clock meets the minimum synchronization frequency requirement. Additionally, this external clock synchronization determination circuit does not limit the maximum synchronization frequency, which can easily cause errors or even failures in logic circuits using the output clock signal from the internal clock oscillator due to excessively high frequencies.
[0034] To at least partially address one or more of the aforementioned problems and other potential issues, an exemplary embodiment of the present invention provides a switching power supply device including a clock synchronization circuit. The clock synchronization circuit comprises: an external clock detection circuit configured to generate a synchronization enable signal indicating the presence of an external clock when an external clock signal is detected; a phase-locked loop circuit configured to compare the external clock signal with an output clock signal of an internal clock oscillator to determine a frequency difference between the external clock signal and the output clock signal, and to adjust a voltage control signal based on the determined frequency difference such that the frequency of the output clock signal is synchronized with the frequency of the external clock signal, the voltage control signal being associated with the frequency of the output clock signal; and a minimum frequency protection circuit configured to determine, based on the voltage control signal, whether the frequency of the external clock signal is less than a permissible minimum synchronization frequency, and to generate a synchronization shutdown signal when the frequency of the external clock signal is less than the minimum synchronization frequency, the synchronization shutdown signal forcing the external clock detection circuit to shut off the synchronization enable signal. In this manner, it is possible to accurately determine whether the external clock meets the minimum synchronization frequency requirement using a simple circuit structure, thereby improving the reliability of the clock synchronization circuit without increasing the area of the corresponding chip.
[0035] Figure 3 A block diagram of a synchronous clock circuit 300 for a switching power supply device according to an embodiment of the present invention is shown. Figure 3 As shown, the synchronous clock circuit 300 may include an external clock detection circuit 301, a minimum frequency protection circuit 302, and a phase-locked loop circuit 303.
[0036] In this invention, the external clock detection circuit 301 is configured to detect an external clock signal (e.g., such as...) Figure 3 When CLK_OUT is shown, a synchronization enable signal is generated to indicate the presence of an external clock (i.e., as shown). Figure 3 (Showing SYNC_ON). In this invention, detecting an external clock can refer to detecting the rising edge of an external clock signal. In this invention, when the synchronization enable signal SYNC_ON goes high, it can be considered that a synchronization enable signal SYNC_ON has been generated. The following will combine... Figure 4 An exemplary embodiment of the external clock detection circuit 301 will be described in further detail.
[0037] The phase-locked loop circuit 303 is configured to compare the external clock signal CLK_OUT and the output clock signal CLK_IN of the internal clock oscillator 306 to determine the frequency difference between the external clock signal CLK_OUT and the output clock signal CLK_IN, and adjust the voltage control signal (i.e., such as...) based on the determined frequency difference. Figure 3 The V shownPLL Adjustment is performed using the voltage control signal V. In this invention, the voltage control signal V... PLL Related to the frequency of the output clock signal CLK_IN, the frequency of the output clock signal CLK_IN can be adjusted by regulating the voltage control signal, thereby synchronizing the frequency of the output clock signal CLK_IN with the frequency of the external clock signal CLK_OUT. It should be understood that when the frequency of the output clock signal CLK_IN is synchronized with the frequency of the external clock signal CLK_OUT, the voltage control signal V... PLL The magnitude of the value actually reflects the frequency of the external clock signal CLK_OUT. In this invention, when the rising edge of the output clock signal CLK_IN is detected, the phase-locked loop circuit 303 compares the external clock signal CLK_OUT and the output clock signal CLK_IN to determine the frequency difference between them. If it is determined that the frequency of the external clock signal CLK_OUT is greater than the frequency of the output clock signal CLK_IN, the voltage control signal V is adjusted in the direction of increasing the frequency. PLL Conversely, the voltage control signal V is adjusted in the direction of decreasing. PLL .like Figure 10 The timing diagram 1000 shown indicates that, in response to determining that the frequency of the external clock signal CLK_OUT is greater than the frequency of the output clock signal CLK_IN, the voltage control signal V... PLL Enlarged (see) Figure 10 From the rising edge of CLK_IN to time V PLL (two rising slopes), thus making it consistent with the voltage control signal V PLL The frequency of the associated output clock signal CLK_IN is also increased until the frequency of the external clock signal CLK_OUT and the frequency of the output clock signal CLK_IN are synchronized, at which point the voltage control signal V... PLL Remain unchanged (see) Figure 10 Medium voltage control signal V PLL (The middle part). The phase-locked loop circuit 303 in this invention can be implemented using phase-locked loop circuits known in the art, for example, such as... Figure 6 The example phase-locked loop circuit shown is used to implement this.
[0038] The minimum frequency protection circuit 302 is configured to determine, based on the voltage control signal, whether the frequency of the external clock signal is less than the allowed minimum synchronization frequency, and generate a synchronization shutdown signal when the frequency of the external clock signal CLK_OUT is less than the minimum synchronization frequency (i.e., as...). Figure 3(Showing SYNC_OFF). In this invention, the synchronization shutdown signal SYNC_OFF is configured to force the external clock detection circuit 301 to turn off the synchronization enable signal SYNC_ON. In this invention, when the synchronization shutdown signal SYNC_OFF becomes a high-level signal, it can be considered that the synchronization shutdown signal SYNC_OFF has been generated. The following will combine... Figure 5 An exemplary embodiment of the minimum frequency protection circuit 302 will be described in further detail.
[0039] like Figure 3 As shown, the synchronous clock circuit 300 may also include a working mode switching circuit 304 and a maximum frequency protection circuit 305.
[0040] In this invention, the operating mode switching circuit 304 is configured to switch the internal clock oscillator 306 from a first operating mode to a second operating mode when the synchronization enable signal SYNC_ON is turned on. In this invention, when the internal clock oscillator 306 is in the first operating mode, the output clock signal of the internal clock oscillator 306 is the internal control clock signal. When the internal clock oscillator 306 is in the second operating mode, the output clock signal CLK_IN of the internal clock oscillator 306 is synchronized with the external clock signal CLK_OUT. The internal clock control signal refers to the clock signal oscillating at the oscillation frequency of the internal clock oscillator 306 itself. The following will combine... Figure 7 An exemplary embodiment of the operating mode switching circuit 304 will be described in further detail.
[0041] The maximum frequency protection circuit 305 is configured to compare the frequency of the output clock signal CLK_IN with the maximum allowed synchronization frequency, so as to clamp the frequency of the output clock signal CLK_IN to the maximum synchronization frequency when the frequency of the output clock signal CLK_IN is detected to be greater than the maximum synchronization frequency. The following will combine... Figure 8 An exemplary embodiment of the highest frequency protection circuit 305 will be described in further detail.
[0042] Furthermore, in this invention, the internal clock oscillator 306 can be an internal clock oscillator 306 known in the art, for example, such as... Figure 9 The internal clock oscillator 306 is shown.
[0043] Figure 4 An exemplary schematic diagram of an external clock detection circuit 301 according to an embodiment of the present invention is shown. Figure 4 In the example shown, the external clock detection circuit 301 may include a D flip-flop 3011 (i.e., as shown in the example). Figure 4 As shown in I2) and SR trigger 3012 (i.e., as shown in I2) Figure 2As shown in I3). In these embodiments, the clock control terminal (i.e., the Clk terminal) of the D flip-flop 3011 is configured to receive an external clock signal CLK_OUT, the non-inverting output terminal (i.e., the Q terminal) of the D flip-flop is connected to the R input terminal of the SR flip-flop, and the S input terminal of the SR flip-flop is configured to receive the synchronization off signal SYNC_OFF, and the inverting output terminal of the SR flip-flop is configured to output the synchronization enable signal SYNC_ON.
[0044] according to Figure 4 And combined with the following Figure 10 The timing diagram 1000 shown illustrates that in the initial stage, the external clock signal CLK_OUT is low (or high; we will use low as an example here), and the input port D of I2 is connected to a high level. This is because the signal output from the inverting output of I2... - Since Q_I2 and signal R_I2 are always in opposite directions, it can be guaranteed that in the initial stage, signal Q_I2 = 0. - Q_I2=1, R_I2=0. When the rising edge of the external clock signal CLK_OUT is detected, the signal Q_I2 output from the non-inverting output terminal of I2 changes from low to high, that is, the signal R at the R input terminal of I3=1, thus making the output signal SYNC_ON at the inverting output terminal of I3=1. When a high-level synchronization shutdown signal SYNC_OFF is received at the S input terminal of I2, the external clock detection circuit 301 will be forced to turn off the synchronization enable signal SYNC_ON, thus causing SYNC_ON to go low.
[0045] Figure 5 An exemplary schematic diagram of a minimum frequency protection circuit 302 according to an embodiment of the present invention is shown. Figure 5 In the example shown, the minimum frequency protection circuit 302 includes a first voltage-to-current conversion circuit 3021, a first current comparison circuit 3022, and a synchronization turn-off signal generation circuit 3023. The first voltage-to-current conversion circuit 3021 is configured to convert the voltage control signal V... PLL Converted into the voltage control signal V PLL (i.e., the voltage control signal V generated by the phase-locked loop circuit 303) PLL The first current signal is proportional to (e.g., such as) Figure 5 The current signal I shown PLL_OSC Due to the voltage control signal V PLL It is related to the frequency of the output clock signal CLK_IN, and therefore to the voltage control signal V. PLL The first current signal I is proportional PLL_OSC It is also related to the frequency of the output clock signal CLK_IN, that is, in this invention, the voltage control signal V is adjusted. PLLThat is, by adjusting the first current signal I PLL_OSC This allows for adjustment of the frequency of the output clock signal CLK_IN. The first current comparator circuit 3022 is configured to convert the first current signal I... PLL_OSC With the first reference current signal (i.e., such as) Figure 5 The I shown min_PLL The first current signal I is compared to the first current signal I. PLL_OSC With the first reference current signal I min_PLL The magnitude relationship between them. In this invention, the first reference current signal I... min_PLL Associated with the lowest synchronization frequency, that is, the first reference current signal I min_PLL The magnitude of this value reflects the magnitude of the minimum synchronization frequency. The synchronization turn-off signal generation circuit 3023 is configured to respond to the first current signal I... PLL_OSC Less than the first reference current signal I min_PLL A synchronization shutdown signal SYNC_OFF is generated at that time. Figure 5 As shown, when the first current signal I PLL_OSC Greater than or equal to the first reference current signal I min_PLL When the synchronous shutdown signal generation circuit 3023 outputs a low level, and when the first current signal I... PLL_OSC Less than the first reference current signal I min_PLL At this time, the synchronous turn-off signal generation circuit 3023 outputs a high level, thereby enabling the synchronous turn-off signal generation circuit 3023 to generate the synchronous turn-off signal SYNC_OFF. Due to the first current signal I... min_PLL It is related to the frequency of the output clock signal CLK_IN, while the first reference current signal I... min_PLL It is also related to the lowest synchronization frequency, therefore, in determining the first current signal I... min_PLL Less than the first reference current signal I min_PLL When synchronization is allowed, the frequency of the output clock signal CLK_IN will be adjusted to be lower than the minimum synchronization frequency, which does not meet the internal timing requirements of the internal clock oscillator 306. Therefore, by generating the synchronization shutdown signal SYNC_OFF, the external clock detection circuit can be forced to turn off the synchronization enable signal SYNC_ON, thereby preventing the situation where the minimum synchronization frequency requirement is not met. In this invention, when the frequency of the external clock signal CLK_OUT is lower than the minimum synchronization frequency, it is necessarily lower than the internal control clock signal of the internal clock oscillator 306. Therefore, the voltage control signal V... PLL It will be adjusted in the direction of decreasing, thereby making the first current signal I... min_PLL It will be adjusted to decrease to less than the first reference current signal I. min_PLLTherefore, through this minimum frequency protection circuit 302, it is possible to accurately determine whether the external clock meets the minimum synchronization frequency requirement. In this invention, this is achieved by using the first reference current signal I. min_PLL It is used to determine whether the minimum synchronization frequency requirement is met, so it can accurately determine whether the external clock meets the minimum synchronization frequency requirement, and the circuit is simple and easy to implement.
[0046] See also Figure 10 The timing diagram 1000 shown in this invention indicates that when the external clock signal CLK_OUT arrives but its frequency is lower than the minimum synchronization frequency (this minimum synchronization frequency is indicated by the signal used to indicate I in the timing diagram 1000),... min_PLL When the dotted line is represented, the synchronization off signal SYNC_OFF becomes high, so that the synchronization enable signal SYNC_ON, under the influence of SYNC_OFF, only generates a narrow pulse when the rising edge of the external clock signal CLK_OUT arrives and Q_I2 is high, and then changes back to low, so that the internal clock oscillator 306 switches back to the first working mode after the synchronization enable signal SYNC_ON=0.
[0047] When the external clock signal CLK_OUT arrives and its frequency is higher than the minimum synchronization frequency, the synchronization off signal SYNC_OFF goes low and remains low. Thus, when the signal Q_I2 is high, the synchronization enable signal SYNC_ON=1. Even if the signal Q_I2 changes from high to low, the synchronization enable signal SYNC_ON remains high, causing the internal clock oscillator 306 to operate in the second working mode. The output clock signal CLK_IN follows the external clock signal CLK_OUT, and the frequencies and phases of the two clock signals are consistent, thereby synchronizing the frequency of the external clock signal to the internal chip.
[0048] When the external clock signal CLK_OUT drops below the minimum synchronization frequency, the synchronization off signal SYNC_OFF changes from low to high and remains high. Therefore, when signal Q_I2 is high, the synchronization enable signal SYNC_ON = 1, and when signal Q_I2 is low, the synchronization enable signal SYNC_ON = 0. At this time, the internal clock oscillator 306 switches between the first and second operating modes until the external clock signal CLK_OUT no longer shows a rising edge, thus keeping the internal clock oscillator 306 in the first operating mode.
[0049] exist Figure 5In the example shown, the first voltage-to-current conversion circuit 3021 can be implemented using an NMOS device, the first reference current signal is generated by a first DC current source, and the synchronous turn-off signal generation circuit 3023 is implemented using a non-inverting Schmitt trigger. Of course, the first voltage-to-current conversion circuit 3021 and the synchronous turn-off signal generation circuit 3023 can also be implemented using other devices, as long as the corresponding control logic can be implemented.
[0050] Figure 7 An exemplary schematic diagram of an operating mode switching circuit 304 according to an embodiment of the present invention is shown. Figure 7 In the example shown, the operating mode switching circuit 304 includes a first switching circuit 3041 and a second switching circuit 3042. In this invention, the first switching circuit 3041 is configured to switch the internal clock oscillator 306 to operate in a second operating mode, and the second switching circuit 3042 is configured to switch the internal clock oscillator 306 to operate in a first operating mode. As previously described, when the internal clock oscillator 306 is in the first operating mode, the output clock signal of the internal clock oscillator 306 is the internal control clock signal. When the internal clock oscillator 306 is in the second operating mode, the output clock signal CLK_IN of the internal clock oscillator 306 is synchronized with the external clock signal CLK_OUT.
[0051] Specifically, the first switching circuit 3041 includes a first switch (e.g., such as...). Figure 7 The switch SC1 shown) and the second voltage-to-current conversion circuit (e.g., as shown) Figure 7 (The NMOS device shown). In this invention, the second voltage-to-current conversion circuit can be the same as the first voltage-to-current conversion circuit, since it is also configured to convert the voltage control signal V... PLL Converted to the voltage control signal V PLL A first current signal that is proportional to (e.g., such as) Figure 7 The current signal I shown PLL_OSC The first switch is configured to close when the synchronization enable signal SYNC_ON is on (e.g., high level), to allow the first switching circuit 3041 to switch the first current signal I. PLL_OSC The current I supplied to the internal clock oscillator 306 is used for the internal clock oscillator 306. osc This causes the internal clock oscillator 306 to operate in a second operating mode. That is, in the second operating mode, the current source for the internal clock oscillator 306 is the first current signal I. PLL_OSC Therefore, the frequency of its output clock signal depends on the first current signal I. PLL_OSCThe magnitude of the voltage control signal. As mentioned earlier, the phase-locked loop circuit 303 adjusts the voltage control signal according to the frequency difference between the external clock signal CLK_OUT and the output clock signal CLK_IN, thereby realizing the control of the first current signal I. PLL_OSC The frequency of the output clock signal is adjusted to be synchronized with the frequency of the external clock signal. Therefore, in the second working mode, the frequency of the output clock signal CLK_IN is implemented to be equal to the frequency of the external clock signal.
[0052] The second switching circuit 3042 includes a second switch (e.g., such as...). Figure 7 The switch SC0 shown) and the second DC current source (e.g., such as Figure 7 The diagram shows the method for generating current I. IN_OSC The second switch is configured to close when the synchronization enable signal SYNC_ON is off (e.g., low level) to allow the second switching circuit 3042 to transfer a second reference current signal (e.g., IC) associated with the frequency of an internal control clock signal. IN_OSC The current I supplied to the internal clock oscillator 306 is used for the internal clock oscillator 306. osc This causes the internal clock oscillator 306 to operate in a first operating mode. That is, in the first operating mode, the current source for the internal clock oscillator 306 is I. IN_OSC Therefore, the frequency of its output clock signal CLK_IN depends on the second reference current signal I. IN_OSC The magnitude of the second reference current signal I. IN_OSC The frequency of the output clock signal CLK_IN is associated with the frequency of the internal control clock signal; therefore, in the first operating mode, the frequency of CLK_IN is implemented to be equal to the frequency of the internal control clock signal. In this example, the second reference current signal is generated by a second DC current source.
[0053] Figure 8 An exemplary schematic of a maximum frequency protection circuit 305 according to an embodiment of the present invention is shown. In such... Figure 8 In the example shown, the highest frequency protection circuit 305 includes a mirror current source circuit 3051, a second current comparison circuit 3052, and a clamping circuit 3053.
[0054] The mirror current source circuit 3051 is configured to generate a first current signal I. PLL_OSC The mirrored current signal. In Figure 8 In the case where the clamping circuit 3053 is not yet activated, the first current signal I... PLL_OSC The first PMOS device P0 is fully supplied, and then the first PMOS device P0 receives the first current signal I. PLL_OSCThis is converted into a corresponding voltage signal, and then the second PMOS device P2 converts this voltage signal into a signal similar to the first current signal I. PLL_OSC Given an equal current signal, the current mirror source circuit 3051 generates a mirror current signal, thus effectively configuring the current mirror source circuit 3051 to generate the first current signal I. PLL_OSC The mirror current signal.
[0055] The second current comparison circuit 3052 is configured to compare the mirrored current signal (i.e., the mirrored current signal generated by the mirrored current source circuit 3051) with a third reference current signal (e.g., from a source circuit such as...). Figure 8 The current I generated by the third DC current source shown is max_OSC The mirrored current signal is compared with the third reference current signal I to determine its relationship with the mirrored current signal. max_OSC The size relationship between them (e.g., Figure 10 In the example working timing diagram 1000, is used to represent I. max_OSC The dotted lines and the lines used to represent I PLL_OSC The solid line can reflect the size relationship between the two. Figure 10 Middle I PLL_OSC Always less than I max_OSC In this invention, the third reference current signal I... max_OSC Associated with the highest synchronization frequency, that is, the third reference current signal I max_OSC The value of reflects the magnitude of the highest synchronization frequency.
[0056] The clamping circuit 3053 is configured to operate when the mirrored current signal is greater than the third reference current signal I. max_OSC At that time, for the first current signal I PLL_OSC Divide the current so that only the first current signal I... PLL_OSC The branch current equal to the third reference current signal is provided to the internal clock oscillator 306, thus obtaining current I. OSC It is clamped to be equal to the third reference current signal. Because the first current signal I... PLL_OSC The frequency of the output clock signal is associated with the frequency of the output clock signal, and the third reference current signal is associated with the highest synchronization frequency. This ensures that when the frequency of the output clock signal CLK_IN is higher than the highest synchronization frequency, the phase-locked loop circuit 303 will only synchronize the frequency of the output clock signal of the internal clock oscillator 306 with the highest synchronization frequency, and not with the external clock signal CLK_OUT. This helps prevent errors or even failures in logic circuits using the output clock signal CLK_IN due to excessively high frequencies. Figure 8In the example shown, the clamping circuit 3053 includes a third PMOS device P3 and a capacitor. The gate of the third PMOS device P3 is connected to one end of the capacitor and also to one end of a third DC current source. The source of the third PMOS device is connected to the other end of the capacitor, and the drain of the third PMOS device P3 is connected to the drain of the first PMOS device. When the first current signal I... PLL_OSC The mirror current signal is less than or equal to the third reference current signal I. max_OSC When the current is greater than the third reference current signal I, no current flows out of the drain of the third PMOS device P3. max_OSC At that time, there will be a current (the magnitude of which is I). PLL_OSC Current signal and I max_OSC The difference between the two flows out of the drain of the third PMOS device P3, realizing the control of the first current signal I. PLL_OSC The splitting of the flow, and making I osc The first current signal I PLL_OSC The magnitude of the other branch current is equal to I max_OSC Even if I osc Clamped to I max_OSC .
[0057] In summary, in this invention, when the current I... PLL_OSC Exceeding the third reference current signal I max_OSC At that time, it will affect the current I PLL_OSC The system performs shunting and clamping processing regardless of whether the internal clock oscillator 306 is in the first or second operating mode. At this time, even if the frequency of the external clock signal increases further, the control voltage signal V... PLL The voltage value continues to increase, providing a current I to the internal clock oscillator 306. OSC It also stops increasing, keeping the output clock signal CLK_IN of the internal clock oscillator 306 unchanged, thus achieving the protection of limiting the highest internal frequency.
[0058] It should be understood that the invention mentioned Figures 4-9 These are merely examples of the corresponding circuits, and these circuits can be modified accordingly. As long as the corresponding control logic remains unchanged, they can still fall within the protection scope of this invention.
[0059] By employing the above methods, this invention can accurately determine the presence of an external clock without adding complex internal circuitry, and can accurately determine whether the external clock meets the minimum synchronization frequency requirement. Furthermore, this invention can effectively limit and protect against continuous increases in the frequency of the external clock. In summary, this invention can accurately determine whether an external clock meets the minimum synchronization frequency requirement using a simple circuit without increasing the area of the corresponding chip. Moreover, this invention can effectively avoid errors or even failures in logic circuits using the output clock signal of an internal clock oscillator due to excessively high frequencies.
[0060] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A switching power supply device, comprising a clock synchronization circuit, the clock synchronization circuit comprising: An external clock detection circuit is configured to generate a synchronization enable signal indicating the presence of an external clock when an external clock signal is detected. A phase-locked loop circuit is configured to compare the external clock signal and the output clock signal of an internal clock oscillator to determine the frequency difference between the external clock signal and the output clock signal, and to adjust a voltage control signal according to the determined frequency difference, such that the frequency of the output clock signal can be adjusted to be synchronized with the frequency of the external clock signal, wherein the voltage control signal is associated with the frequency of the output clock signal. as well as A minimum frequency protection circuit is configured to determine, based on the voltage control signal, whether the frequency of the external clock signal is less than a permitted minimum synchronization frequency, and to generate a synchronization shutdown signal when the frequency of the external clock signal is less than the minimum synchronization frequency. This synchronization shutdown signal forces the external clock detection circuit to shut down the synchronization enable signal. The minimum frequency protection circuit includes a first voltage-to-current conversion circuit configured to convert the voltage control signal into a first current signal proportional to the voltage control signal.
2. The switching power supply device according to claim 1 further includes an operating mode switching circuit and a maximum frequency protection circuit. The operating mode switching circuit is configured to switch the internal clock oscillator from a first operating mode to a second operating mode when the synchronization enable signal is turned on; in the first operating mode, the output clock signal of the internal clock oscillator is an internal control clock signal; in the second operating mode, the output clock signal of the internal clock oscillator is synchronized with an external clock signal. The maximum frequency protection circuit is configured to compare the frequency of the output clock signal with the maximum allowed synchronization frequency, so as to clamp the frequency of the output clock signal to the maximum synchronization frequency when the frequency of the output clock signal is detected to be greater than the maximum synchronization frequency.
3. The switching power supply device according to claim 1, wherein the minimum frequency protection circuit further includes a first current comparison circuit and a synchronous turn-off signal generation circuit. The first current comparison circuit is configured to compare the first current signal with a first reference current signal to determine the magnitude relationship between the first current signal and the first reference current signal, the first reference current signal being associated with the lowest synchronization frequency; The synchronous shutdown signal generation circuit is configured to generate the synchronous shutdown signal when the first current signal is less than the first reference current signal.
4. The switching power supply device according to claim 3, wherein the first voltage-to-current conversion circuit is implemented by an NMOS device.
5. The switching power supply device according to claim 3, wherein the first reference current signal is generated by a first DC current source.
6. The switching power supply device according to claim 3, wherein the synchronous turn-off signal generation circuit is implemented by a non-inverting Schmitt trigger.
7. The switching power supply device according to claim 1, wherein the external clock detection circuit includes a D flip-flop and an SR flip-flop, the clock control terminal of the D flip-flop is configured to receive the external clock signal, the non-inverting output terminal of the D flip-flop is connected to the R input terminal of the SR flip-flop, the S input terminal of the SR flip-flop is configured to receive the synchronization turn-off signal, and the inverting output terminal of the SR flip-flop is configured to output the synchronization enable signal.
8. The switching power supply device according to claim 2, wherein the operating mode switching circuit includes a first switching circuit. The first switching circuit includes a first switch and a second voltage-to-current conversion circuit. The second voltage-to-current conversion circuit is configured to convert the voltage control signal into a first current signal proportional to the voltage control signal. The first switch is configured to close when the synchronization enable signal is turned on, so as to allow the first switching circuit to provide the first current signal to the internal clock oscillator, so that the internal clock oscillator operates in the second operating mode.
9. The switching power supply device of claim 8, wherein the operating mode switching circuit further comprises a second switching circuit, the second switching circuit comprising a second switch and a second DC current source, the second switch being configured to close when the synchronization enable signal is off, to allow the second switching circuit to provide a second reference current signal associated with the frequency of the internal control clock signal to the internal clock oscillator, such that the internal clock oscillator operates in the first operating mode, the second reference current signal being generated by the second DC current source.
10. The switching power supply device according to claim 8, wherein the highest frequency protection circuit includes a mirror current source circuit, a second current comparison circuit, and a clamping circuit. The mirror current source circuit is configured to generate a mirror current signal of the first current signal; The second current comparison circuit is configured to compare the mirrored current signal with a third reference current signal to determine the magnitude relationship between the mirrored current signal and the third reference current signal, the third reference current signal being associated with the highest synchronization frequency; The clamping circuit is configured to shunt the first current signal when the mirrored current signal is greater than the third reference current signal, such that only the branch current where the first current signal is equal to the third reference current signal is provided to the internal clock oscillator.
11. The switching power supply device according to claim 10, wherein the third reference current signal is generated by a third DC current source.
12. The switching power supply device according to claim 8, wherein the second voltage-to-current conversion circuit is implemented by an NMOS device.
Citation Information
Patent Citations
Switching converter and clock synchronization circuit thereof
CN114465620A
Minimum synchronization frequency discriminator
US7307481B1
