Oscillator circuits, voltage conversion circuits, and vehicles
By dynamically adjusting the current output module and PMOS transistor pair in the oscillator circuit, the problem of unstable output voltage of the voltage converter in EEPROM is solved, achieving higher stability and accuracy, improving data erasure and writing performance, and reducing power consumption.
Patent Information
- Application Number
- CN202611347428.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-17
AI Technical Summary
In the prior art, the output voltage of the voltage converter of the electrically erasable programmable read-only memory (EEPROM) is unstable, resulting in poor data erasure and write performance. This is mainly due to the constant clock signal but fluctuations in factors such as ambient temperature and input voltage.
By adjusting the bias current through the current output module in the oscillator circuit, and combining it with the analog-to-digital converter and the output unit, the conduction state of the PMOS transistor pair is dynamically adjusted to achieve flexible control of the clock signal, thereby stabilizing the output voltage of the voltage converter.
It improves the output voltage stability and accuracy of the voltage converter, enhances the data erasure and write performance of the EEPROM, and dynamically adjusts the bias current under different conditions to reduce power consumption.
Smart Images

Figure CN123122452A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and in particular to an oscillator circuit, a voltage conversion circuit, and a vehicle. Background Technology
[0002] Electrically Erasable Programmable Read-Only Memory (EEPROM) requires data to be erased and written under the drive of the output voltage of a voltage converter. This output voltage is obtained by the voltage converter converting the input voltage based on a clock signal provided by an oscillator circuit. The clock signal is constant and indicates the value of the output voltage.
[0003] However, since the clock signal is constant, but factors such as ambient temperature and input voltage fluctuate, the output voltage of the voltage converter is unstable and has low accuracy, resulting in poor data erasure and write performance in the EEPROM. Summary of the Invention
[0004] This application provides an oscillator circuit, a voltage conversion circuit, and a vehicle, which can improve the performance of data erasure and writing in memory. The technical solution of this application is as follows.
[0005] In a first aspect, this application provides an oscillator circuit, which includes an oscillator and a current output module; wherein, the current output module is used to acquire a first output voltage of a voltage converter, adjust a first bias current output to the oscillator based on the first output voltage to obtain a second bias current, and output the second bias current to the oscillator; the oscillator is used to adjust a first clock signal output to the voltage converter based on the second bias current to obtain a second clock signal, and output the second clock signal to the voltage converter, wherein the second clock signal is used to instruct the voltage converter to adjust the first output voltage.
[0006] In one implementation, the current output module includes an analog-to-digital converter (ADC) and an output unit. The ADC is connected to the voltage converter and the output unit, and the output unit is connected to an oscillator. The ADC is used to acquire a first output voltage and, based on the first output voltage, adjust a first current control signal output to the output unit to obtain a second current control signal. The output unit is used to, based on the second current control signal, adjust a first bias current output to the oscillator to obtain a second bias current and output a second bias current to the oscillator.
[0007] In one implementation, the output unit includes N parallel PMOS transistor pairs. The first bias current includes the first output current of each PMOS transistor pair, and the second bias current includes the second output current of each PMOS transistor pair. Each PMOS transistor pair corresponds one-to-one with a data bit in the second current control signal. Each PMOS transistor pair is connected to an oscillator, and N is a positive integer greater than 1. Each PMOS transistor pair is used to adjust the first output current based on the corresponding data bit in the second current control signal to obtain the second output current and output the second output current to the oscillator.
[0008] In one implementation, the output unit is further configured to acquire a first enable signal and, based on the first enable signal, output or stop outputting a second bias current to the oscillator.
[0009] In one implementation, the output unit further includes a first enabling PMOS transistor connected to each PMOS transistor pair; the first enabling PMOS transistor is used to acquire a first enabling signal and output a first control signal to each PMOS transistor pair; each PMOS transistor pair is also used to output or stop outputting a second output current to the oscillator based on the first control signal.
[0010] In one implementation, the output unit further includes a current mirror, and the second bias current further includes a reference current. The current mirror is connected to a first enable PMOS transistor and an oscillator. The first enable PMOS transistor is also used to output a first control signal to the current mirror. The current mirror is used to output or stop outputting the reference current to the oscillator based on the first control signal.
[0011] In one implementation, each PMOS transistor pair includes a first PMOS transistor and a second PMOS transistor connected in series, with the second PMOS transistor connected to an oscillator; the first PMOS transistor is used to adjust the first output current output to the second PMOS transistor based on a data bit to obtain a second output current, and output the second output current to the second PMOS transistor; the second PMOS transistor is used to output or stop outputting the second output current to the oscillator based on a first control signal.
[0012] In one implementation, the oscillator is also used to acquire a second enable signal, and based on the second enable signal, output a second clock signal or a shutdown signal to the voltage converter, the shutdown signal being used to instruct the voltage converter to stop operating.
[0013] In one implementation, the oscillator includes a clock unit, an inverter, and a second enabling PMOS transistor. The inverter is connected to the clock unit and the second enabling PMOS transistor. The clock unit is used to adjust a third clock signal output to the inverter based on a second bias current to obtain a fourth clock signal. The third clock signal is inverted compared to the first clock signal, and the second clock signal is inverted compared to the fourth clock signal. The second enabling PMOS transistor is used to acquire a second enabling signal and output or stop outputting a second control signal. The inverter is used to receive the fourth clock signal and output the second clock signal to the voltage converter; or, receive the second control signal and output a shutdown signal to the voltage converter.
[0014] In a second aspect, this application provides a voltage conversion circuit, which includes a voltage converter and an oscillator circuit according to any implementation of the first aspect; the oscillator circuit is used to acquire a first output voltage of the voltage converter and output a second clock signal to the voltage converter; the voltage converter is used to adjust the first output voltage based on the second clock signal.
[0015] Thirdly, this application provides a vehicle that includes a voltage conversion circuit according to any implementation of the second aspect.
[0016] The technical solution provided in this application has at least the following beneficial effects.
[0017] The current output module in the oscillator circuit adjusts the first bias current based on the first output voltage of the voltage converter to obtain a second bias current. This allows the oscillator to adjust the first clock signal based on the second bias current to obtain a second clock signal, thereby adjusting the output voltage of the voltage converter and improving the stability and accuracy of the output voltage of the voltage converter. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0019] Figure 1 A schematic diagram of an oscillator circuit provided in an embodiment of this application; Figure 2 A schematic diagram of a current output module provided in an embodiment of this application; Figure 3 A circuit diagram of a current output module provided in an embodiment of this application; Figure 4 A circuit diagram of an oscillator provided in an embodiment of this application; Figure 5 A schematic diagram of a voltage conversion circuit provided in an embodiment of this application; Figure 6 This is a flowchart of a voltage regulation method provided in an embodiment of this application. Detailed Implementation
[0020] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0021] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0022] Electrically Erasable Programmable Read-Only Memory (EEPROM) is a type of non-volatile memory. Each storage cell in an EEPROM is a floating-gate metal-oxide-semiconductor (MOS) transistor. A floating-gate MOS transistor includes a control gate and a floating gate. The floating-gate MOS transistor can receive a control voltage through the gate and store electrons through the floating gate.
[0023] If an output voltage provided by a voltage converter is applied to the control gate, a strong electric field is formed between the floating gate and the substrate or source of the floating gate MOS transistor. Under the influence of this strong electric field, electrons near the source or in the substrate enter the floating gate, thereby completing a data writing process.
[0024] Correspondingly, if a negative output voltage provided by the voltage converter is applied to the control gate, electrons in the floating gate leave the floating gate, thus completing a data erasure process.
[0025] Taking the process of writing data to a floating-gate MOSFET as an example, in some cases, a voltage converter is used to receive the input voltage and convert the input voltage into the output voltage.
[0026] In addition, the voltage converter is also used to receive a constant clock signal output from the oscillator circuit and determine the output voltage based on the clock signal. That is, the clock signal is used to indicate the output voltage. For example, the higher the frequency of the clock signal, the higher the output voltage, and the stronger the driving capability of the output voltage on the floating gate MOSFET, the faster the data erase / write speed, and the better the erase / write stability.
[0027] Because the clock signal is constant, but factors such as ambient temperature and input voltage are unstable, the output voltage of the voltage converter is prone to deviating from the target value indicated by the clock signal. In other words, the output voltage fluctuates greatly and has low accuracy, resulting in poor data erasure and write performance in the EEPROM.
[0028] This application provides an oscillator circuit capable of adjusting the output voltage of a voltage converter, thereby improving the stability and accuracy of the voltage converter's output voltage. For example, as shown... Figure 1 As shown, the oscillator circuit 10 provided in this embodiment includes an oscillator 101 and a current output module 102.
[0029] The current output module 102 is used to obtain the first output voltage of the voltage converter, adjust the first bias current output to the oscillator 101 based on the first output voltage to obtain the second bias current, and output the second bias current to the oscillator 101.
[0030] In some embodiments, the first output voltage is the target output voltage of the voltage converter. In other embodiments, the first output voltage is the current output voltage of the voltage converter.
[0031] Oscillator 101 is used to adjust the first clock signal output to the voltage converter based on the second bias current to obtain a second clock signal, and output the second clock signal to the voltage converter. The second clock signal is used to instruct the voltage converter to adjust the second output voltage.
[0032] It can be understood that the current output module 102 adjusts the bias current output to the oscillator 101 based on the first output voltage. The oscillator 101 adjusts the clock signal output to the voltage converter according to the adjusted bias current, so that the voltage converter can adjust its output voltage based on the adjusted clock signal. The output voltage has small fluctuations and high stability and accuracy.
[0033] Optionally, the current output module 102 is also used to output a first bias current to the oscillator 101, and the oscillator 101 is also used to output a first clock signal to the voltage converter based on the first bias current, the first clock signal being used to indicate the first output voltage of the voltage converter.
[0034] In one implementation, see [reference] Figure 2The current output module 102 includes an analog-to-digital converter 1021 and an output unit 1022. The analog-to-digital converter 1021 is connected to the voltage converter and the output unit 1022, and the output unit 1022 is connected to the oscillator 101.
[0035] An analog-to-digital converter 1021 is used to acquire a first output voltage, adjust a first current control signal output to an output unit 1022 based on the first output voltage to obtain a second current control signal, and output the second current control signal to the output unit 1022. For example, the analog-to-digital converter 1021 performs analog-to-digital conversion on the first output voltage to obtain the second current control signal.
[0036] The output unit 1022 is used to adjust the first bias current output to the oscillator 101 based on the second current control signal to obtain the second bias current, and output the second bias current to the oscillator 101.
[0037] It is easy to see that the analog-to-digital converter 1021 converts the first output voltage into a second current control signal, and the output unit 1022 adjusts the bias current output to the oscillator 101 based on the second current control signal, thereby realizing digital adjustment of the bias current and improving the flexibility and accuracy of bias current adjustment.
[0038] For example, the output unit 1022 includes N parallel positive channel metal oxide semiconductor (PMOS) transistor pairs, the second current control signal includes N data bits, the first bias current includes the first output current of each PMOS transistor pair, the second bias current includes the second output current of each PMOS transistor pair, each PMOS transistor pair corresponds one-to-one with the data bits in the second current control signal, and each PMOS transistor pair is connected to the oscillator 101, where N is a positive integer greater than 1.
[0039] Let's take N=5 as an example for explanation. Figure 3 As shown, the first to fifth transistor pairs correspond one-to-one with data bits OPT1 to OPT5. Each PMOS transistor pair is used to adjust the first output current based on the corresponding data bit in the second current control signal to obtain the second output current and output the second output current to the oscillator 101.
[0040] For example, when data bit OPT1 is "1", the first transistor pair is off, and the second output current is zero. When data bit OPT1 is "0", the first transistor pair is on, and the second output current is the current supplied by the power supply VDD received by the first transistor pair.
[0041] It is understood that each PMOS transistor pair can independently adjust and control the current output to the oscillator 101 based on one data bit in the second current control signal, thereby enabling the output unit 1022 to adjust the bias current based on the current control signal. When the first output voltage is high and needs to be lowered, the number of "1" data bits in the first current control signal output by the analog-to-digital converter 1021 increases, the number of PMOS transistor pairs turned on decreases, and thus the second bias current decreases compared to the first bias current. Conversely, when the first output voltage is low and needs to be higher, the number of "0" data bits in the first current control signal output by the analog-to-digital converter 1021 increases, the number of PMOS transistor pairs turned on increases, and thus the second bias current increases compared to the first bias current.
[0042] Optionally, the analog-to-digital converter 1021 is further configured to output a first current control signal to the output unit 1022, and the output unit 1022 is further configured to output a first bias current to the oscillator 101 based on the first current control signal. For example, each PMOS transistor pair in the output unit 1022 is further configured to output a first output current to the oscillator 101 based on the corresponding data bit in the first current control signal.
[0043] In addition, in some embodiments, the output unit 1022 is also used to acquire a first enable signal and output or stop outputting a second bias current to the oscillator 101 based on the first enable signal.
[0044] The first enable signal indicates the data erase / write state of the memory. For example, a first-level first enable signal indicates that the memory data is being erased / written, while a second-level first enable signal indicates that the memory data is not being erased / written. Therefore, when the first enable signal indicates that the memory data is being erased / written, the output unit 1022 can output a second bias current to the oscillator 101 to ensure the stability of the voltage converter output voltage, thereby improving the data erase / write performance of the memory.
[0045] Alternatively, if the first enable signal indicates that the data in the memory is not being erased or written, the output unit 1022 can stop outputting the second bias current to the oscillator 101, thereby reducing the power consumption of the output unit 1022. In addition, since the received bias current is smaller, the power consumption of the oscillator 101 will also be reduced.
[0046] That is, the output unit 1022 can dynamically adjust the bias current output to the oscillator 101 based on the different data erase / write states of the memory indicated by the first enable signal, thereby achieving a balance between improving data erase / write performance and reducing power consumption.
[0047] In one implementation, the output unit 1022 further includes a first enabling PMOS transistor connected to each PMOS transistor pair. This first enabling PMOS transistor is used to acquire a first enabling signal and output a first control signal to each PMOS transistor pair. Each PMOS transistor pair is also used to output or stop outputting the second output current to the oscillator 101 based on the first control signal.
[0048] For example, such as Figure 3 As shown, each PMOS transistor pair includes a first PMOS transistor and a second PMOS transistor connected in series. For example, PMOS transistors P1 to P5 are the first PMOS transistors in the first to fifth transistor pairs, respectively, and PMOS transistors P6 to P10 are the second PMOS transistors in the first to fifth transistor pairs, respectively. The source of the first PMOS transistor is connected to the power supply VDD, the drain of the first PMOS transistor is connected to the source of the second PMOS transistor, and the drain of the second PMOS transistor is connected to the oscillator 101.
[0049] In one implementation, the source of the first enabling PMOS transistor is used to receive the supply voltage, the drain of the first enabling PMOS transistor is connected to the gate of each second PMOS transistor, and the gate of the first enabling PMOS transistor is used to receive the first enabling signal.
[0050] The first PMOS transistor is used to receive the corresponding data bit through its gate, and based on the data bit, to adjust the first output current output from the drain of the first PMOS transistor to the source of the second PMOS transistor to obtain the second output current, and to output the second output current from the drain of the first PMOS transistor to the source of the second PMOS transistor.
[0051] For example, when the corresponding data bit OPT1 is "1", the first PMOS transistor is off, and the second output current from the first PMOS transistor to the second PMOS transistor is zero. When the corresponding data bit OPT1 is "0", the first PMOS transistor is on, and the second output current from the first PMOS transistor to the second PMOS transistor is the current supplied by the power supply VDD received at the source of the first PMOS transistor.
[0052] The second PMOS transistor is used to receive the first control signal through its gate, and based on the first control signal, to output or stop the second output current to the oscillator 101 through its drain.
[0053] For example, when the corresponding first control signal is high, the second PMOS transistor is turned off to stop the output of the second output current. When the corresponding first control signal is low, the second PMOS transistor is turned on to output the second output current.
[0054] It is easy to see that the first PMOS transistor and the second PMOS transistor are connected in series, so that the first PMOS transistor can adjust the first output current based on the corresponding data bit, and the second PMOS transistor can control the second output current to output to the oscillator 101 or stop output based on the first control signal, thereby realizing the graded adjustment of the bias current.
[0055] The first PMOS transistor determines the current magnitude of the corresponding branch based on the data bit. Multiple PMOS transistors cooperate with each other to flexibly adjust the output current of each branch through different combinations of data bits, thereby achieving fine adjustment of the first bias current. The second PMOS transistor can uniformly control the current output state of the corresponding branch according to the first control signal, so that each branch can provide a second bias current to the oscillator 101 when needed, or stop output when no output is required.
[0056] Therefore, the first PMOS transistor and the second PMOS transistor can simultaneously adjust the magnitude of the bias current and control the output start and stop, thereby improving the flexibility, accuracy and reliability of the second bias current control.
[0057] Optionally, the output unit 1022 is also configured to output or stop outputting a first bias current to the oscillator 101 based on a first enable signal. For example, each PMOS transistor pair is also configured to output or stop outputting a first output current to the oscillator 101 based on a first control signal.
[0058] For example, in each PMOS transistor pair, the first PMOS transistor is used to receive a corresponding data bit through its gate, and based on the data bit, output a first output current to the source of the second PMOS transistor through its drain. The second PMOS transistor is used to receive a first control signal through its gate, and based on the first control signal, output or stop outputting the first output current to the oscillator 101 through its drain.
[0059] In one implementation, see [reference] Figure 3 The output unit 1022 also includes a current mirror. The first bias current and / or the second bias current also include a reference current output by the current mirror. The current mirror is connected to a first enable PMOS transistor and an oscillator 101. The first enable PMOS transistor is also used to output a first control signal to the current mirror. The current mirror is used to output or stop outputting the reference current to the oscillator 101 based on the first control signal.
[0060] It is understandable that the first enable PMOS transistor can not only control each PMOS transistor to output or stop the first output current, but also control the current mirror to output or stop the reference current. That is, it can perform unified output control on the second output current formed by data control and the reference current generated by the current mirror.
[0061] Therefore, when the first enable signal changes, the first enable PMOS transistor can simultaneously control the current output state of each PMOS transistor pair and the current mirror, avoiding continuous output from some current branches that would prevent the bias current from being completely turned off, thereby improving the accuracy of the second bias current control. Furthermore, by controlling the second output current and the reference current separately, the second bias current can be adjusted more flexibly and precisely while ensuring a stable output of the reference current, which is beneficial for improving the stability and flexibility of bias current control.
[0062] For example, the current mirror includes a reference PMOS transistor P11 and a mirror PMOS transistor P12, with the drain of the reference PMOS transistor P11, the gate of the reference PMOS transistor P11, the gate of the mirror PMOS transistor P12, and the drain of the first enabled PMOS transistor interconnected.
[0063] The reference PMOS transistor P11 is used to receive reference current through its drain and output reference current to the gate of the mirror PMOS transistor P12 through its gate.
[0064] The mirror PMOS transistor P12 is used to mirror the reference current to obtain the reference current, and then output the reference current to the oscillator 101.
[0065] When the first control signal received at the gate of the mirror PMOS transistor P12 is high, the mirror PMOS transistor P12 is turned off to stop outputting the reference current. When the first control signal is low, the mirror PMOS transistor P12 is turned on to output the reference current.
[0066] In one implementation, the oscillator 101 includes a clock unit and an inverter, with the inverter connected to the clock unit. The clock unit is used to adjust the third clock signal output to the inverter based on a second bias current to obtain a fourth clock signal. The third clock signal is inverted compared to the first clock signal, and the second clock signal is inverted compared to the fourth clock signal.
[0067] An inverter is used to receive a fourth clock signal and output a second clock signal to a voltage converter.
[0068] For example, such as Figure 4As shown, the clock unit includes four delay units and an amplifier. The first and second delay units are connected in series to form a first differential path, and the third and fourth delay units are connected in series to form a second differential path. The input terminal of the first delay unit, the output terminal of the fourth delay unit, and the first input terminal of the amplifier are connected. The input terminal of the third delay unit, the output terminal of the second delay unit, and the second input terminal of the amplifier are connected. Based on this, the clock unit can generate a third or fourth clock signal based on the signal transmission and feedback between the two differential paths, thereby improving the stability of the clock signal generation process.
[0069] Each delay unit includes two complementary metal-oxide-semiconductor (CMOS) transistor groups and one load capacitor. Load capacitors C0 to C3 are the load capacitors of the first to fourth delay units, respectively. The input terminal of the second transistor group is connected to the output terminal of the sixth transistor group, and the output terminal of the second transistor group is connected to the input terminal of the sixth transistor group. The input terminal of the fourth transistor group is connected to the output terminal of the eighth transistor group, and the output terminal of the fourth transistor group is connected to the input terminal of the eighth transistor group.
[0070] This cross-coupled connection method allows the delay unit to adjust the signal based on the mutual feedback between the two signals, thereby enhancing the signal's anti-interference capability, reducing waveform distortion and jitter generated during signal transmission, and making the output third or fourth clock signal have a more stable waveform and clearer signal edges, thus improving the quality of the third or fourth clock signal.
[0071] Each CMOS transistor group includes an upper transistor and a lower transistor connected in series. For example, upper transistors P13 to P20 are the upper transistors of the first to eighth transistor groups, respectively, and lower transistors N1 to N8 are the lower transistors of the first to eighth transistor groups, respectively. Each delay unit receives at least a portion of the second bias current through the two upper transistors and outputs at least a portion of the second bias current to the corresponding load capacitor to charge the load capacitor. Since the charging of the load capacitor takes time, the delay unit can realize the delay processing of the input signal of the delay unit.
[0072] Since the delay amount of the delay unit for the input signal is related to the current received by the upper transistor, the frequency of the third clock signal or the fourth clock signal output by the clock unit is related to this delay amount. Therefore, when the current received by the clock unit changes from the first bias current to the second bias current, the third clock signal output by the clock unit also changes to the fourth clock signal. That is, the clock unit adjusts the third clock signal output to the inverter to obtain the fourth clock signal.
[0073] It can be understood that the upper transistor provides at least a portion of the second bias current to the corresponding load capacitor to charge the load capacitor. The charging process of the load capacitor is the process by which the delay unit delays the input signal. Since the charging speed of the load capacitor is related to the current provided by the upper transistor, adjusting the bias current can correspondingly adjust the delay amount of the delay unit.
[0074] Since the frequency of the third or fourth clock signal output by the clock unit is related to the delay amount of the delay unit, the delay amount of the delay unit also changes when the bias current changes from the first bias current to the second bias current, thus causing a corresponding change in the frequency of the clock signal output by the clock unit. Therefore, the frequency of the clock signal can be flexibly adjusted by regulating the bias current without changing the circuit structure of the clock unit, thereby improving the flexibility and controllability of clock signal frequency adjustment and meeting the clock frequency requirements under different operating conditions.
[0075] The amplifier includes negative channel metal-oxide-semiconductor (NMOS) transistors N9 and N10, and cross-coupled PMOS transistors P21 and P22. NMOS transistors N9 and N10 work together to convert the differential signals output from the second and fourth delay units into a first current. PMOS transistors P21 and P22 work together to convert the first current into a third or fourth clock signal.
[0076] The inverter consists of a PMOS transistor P23 and an NMOS transistor N11 connected in series. PMOS transistor P23 and NMOS transistor N11 work together to invert the third clock signal to obtain the first clock signal, or to invert the fourth clock signal to obtain the second clock signal.
[0077] Optionally, the oscillator 101 is further configured to acquire a second enable signal, and based on the second enable signal, output a second clock signal or a shutdown signal to the voltage converter. The shutdown signal is used to indicate that the voltage converter stops operating. The second enable signal indicates the data erase / write state of the memory, and the second enable signal and the first enable signal can be the same signal or different signals.
[0078] In one implementation, the oscillator 101 further includes a second enable PMOS transistor, which is used to acquire a second enable signal and output or stop outputting a second control signal; and an inverter, which is used to receive a fourth clock signal and output the second clock signal to the voltage converter; or, receive the second control signal and output a shutdown signal to the voltage converter.
[0079] For example, the source of the second enabling PMOS transistor is used to receive the supply voltage, the drain of the second enabling PMOS transistor is connected to the gates of PMOS transistor P23 and NMOS transistor N11, and the gate of the second enabling PMOS transistor is used to receive the second enabling signal.
[0080] For example, when the second enable signal controls the second enable PMOS transistor to turn off, PMOS transistor P23 and NMOS transistor N11 receive the fourth clock signal through their gates and output the second clock signal to the voltage converter; when the second enable signal controls the second enable PMOS transistor to turn on, PMOS transistor P23 and NMOS transistor N11 receive the supply voltage, i.e., the high-level signal, through their gates, and at this time, PMOS transistor P23 and NMOS transistor N11 output the low-level signal to the voltage converter as a turn-off signal.
[0081] It is understood that the second enable signal can control whether the oscillator 101 provides a second clock signal to the voltage converter according to the data erase / write state of the memory. For example, when the memory is in the data erase / write state, the second enable PMOS transistor controls PMOS transistor P23 and NMOS transistor N11 to receive a fourth clock signal, and generates a second clock signal based on the fourth clock signal and outputs it to the voltage converter, thereby driving the voltage converter to work normally; when the memory is not in the data erase / write state, the second enable PMOS transistor controls PMOS transistor P23 and NMOS transistor N11 to receive a high-level signal and outputs a low-level shutdown signal to the voltage converter, thereby controlling the voltage converter to stop working.
[0082] In other words, the second enable PMOS transistor can selectively turn the voltage converter on or off according to the actual operating state of the memory, avoiding the voltage converter from working continuously when data erasure or writing is not required. This helps to reduce the dynamic power consumption of the circuit and reduce the interference caused by unnecessary clock switching and voltage conversion processes.
[0083] Furthermore, the switching between the second enable signal and the fourth clock signal can be achieved through the second enable PMOS transistor, PMOS transistor P23, and NMOS transistor N11. The fourth clock signal can be converted into a second clock signal or a shutdown signal suitable for the voltage converter to receive by the inverter. There is no need to set up an additional independent clock switching circuit or shutdown control circuit. While realizing the control of the voltage converter's working state, it is beneficial to simplify the circuit structure, reduce the circuit area, and reduce the circuit implementation cost.
[0084] This application also provides a voltage conversion circuit. For example... Figure 5 As shown, the voltage conversion circuit 100 includes an oscillator circuit 10 and a voltage converter 20.
[0085] The oscillator circuit 10 is used to acquire the first output voltage of the voltage converter 20 and output a second clock signal to the voltage converter 20. The voltage converter 20 is used to adjust the first output voltage based on the second clock signal.
[0086] In this embodiment, the oscillator circuit 10 is as described above. Figures 1 to 4 The first output voltage of any of the oscillator circuits 10 shown in the figure is used to drive the EEPROM to perform data erasure and writing.
[0087] This application also provides a vehicle that includes any of the voltage converters 20 described in the foregoing embodiments.
[0088] This application also provides a voltage regulation method for a voltage converter, applied to the aforementioned... Figures 1 to 4 The oscillator circuit 10 shown in the image. See also... Figure 6 The voltage regulation method includes the following steps S1 to S2.
[0089] Step S1: Obtain the first output voltage of the voltage converter, adjust the first bias current based on the first output voltage, and obtain and output the second bias current.
[0090] Step S1 can be executed by the current output module 102 in the oscillator circuit 10. The execution principle can be found in the previous description of the current output module 102, which will not be repeated here. For example, step S1 includes the following steps S11 and S12.
[0091] Step S11: Obtain the first output voltage, and based on the first output voltage, adjust the first current control signal to obtain the second current control signal.
[0092] Step S12: Based on the second current control signal, adjust the first bias current to obtain and output the second bias current.
[0093] Steps S11 and S12 above can be executed by the analog-to-digital converter 1021 and the output unit 1022 in the current output module 102, respectively. The execution principle can be found in the relevant description above, and will not be repeated here.
[0094] Optionally, step S12 includes: adjusting the first output current based on the corresponding data bit in the second current control signal to obtain the second output current. This step can be performed by any PMOS transistor pair in the output unit 1022.
[0095] Step S2: Based on the second bias current, adjust the first clock signal output to the voltage converter to obtain the second clock signal, and output the second clock signal to the voltage converter.
[0096] Step S2 can be executed by the oscillator 101 in the oscillator circuit 10. The execution principle can be found in the previous description of the oscillator 101, which will not be repeated here. For example, step S2 includes the following steps S21 and S22.
[0097] Step S21: Based on the second bias current, adjust the third clock signal to obtain the fourth clock signal.
[0098] Step S22: Receive the fourth clock signal and output the second clock signal to the voltage converter.
[0099] Steps S21 and S22 can be executed by the clock unit and inverter in the oscillator 101, respectively.
[0100] In one implementation, the voltage regulation method further includes step S3, acquiring a first enable signal, and outputting or stopping the output of a second bias current based on the first enable signal. Exemplarily, step S3 includes steps S31 and S32. Step S31: acquiring the first enable signal and outputting a first control signal; Step S32: outputting or stopping the output of a second output current based on the first control signal. Step S3 can be executed by the output unit 1022, step S31 by the first enable PMOS transistor, and step S32 by any pair of PMOS transistors in the output unit 1022.
[0101] In one implementation, the voltage regulation method further includes step S4, acquiring a first enable signal, and outputting or stopping the output of a reference current based on the first enable signal. Exemplarily, step S4 includes steps S41 and S42. Step S41: acquiring the first enable signal and outputting a first control signal; Step S42: outputting or stopping the output of the reference current based on the first control signal. Step S41 can be executed by a first enable PMOS transistor, and step S42 can be executed by a current mirror in the output unit 1022.
[0102] Optionally, the voltage regulation method further includes step S5, acquiring a second enable signal, and based on the second enable signal, outputting a second clock signal or a shutdown signal to the voltage converter. For example, step S5 includes steps S51 and S52. Step S51: Acquiring the second enable signal and outputting or stopping the output of the second control signal; Step S52: Receiving a fourth clock signal and outputting the second clock signal to the voltage converter; or, receiving the second control signal and outputting a shutdown signal to the voltage converter. Step S51 can be executed by the second enable PMOS transistor, and step S52 can be executed by the inverter in the oscillator 102.
[0103] The above description describes specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An oscillator circuit, characterized in that, The oscillator circuit includes an oscillator and a current output module; The current output module is used to acquire the first output voltage of the voltage converter, adjust the first bias current output to the oscillator based on the first output voltage to obtain the second bias current, and output the second bias current to the oscillator. The oscillator is used to adjust the first clock signal output to the voltage converter based on the second bias current to obtain a second clock signal, and output the second clock signal to the voltage converter. The second clock signal is used to instruct the voltage converter to adjust the first output voltage.
2. The oscillator circuit according to claim 1, characterized in that, The current output module includes an analog-to-digital converter and an output unit. The analog-to-digital converter is connected to the voltage converter and the output unit, and the output unit is connected to the oscillator. The analog-to-digital converter is used to acquire the first output voltage and, based on the first output voltage, adjust the first current control signal output to the output unit to obtain a second current control signal. The output unit is used to adjust the first bias current output to the oscillator based on the second current control signal to obtain the second bias current, and then output the second bias current to the oscillator.
3. The oscillator circuit according to claim 2, characterized in that, The output unit includes N parallel PMOS transistor pairs. The first bias current includes the first output current of each PMOS transistor pair, and the second bias current includes the second output current of each PMOS transistor pair. Each PMOS transistor pair corresponds one-to-one with the data bits in the second current control signal. Each PMOS transistor pair is connected to the oscillator, and N is a positive integer greater than 1. Each PMOS transistor pair is used to adjust the first output current based on the corresponding data bit in the second current control signal to obtain the second output current and output the second output current to the oscillator.
4. The oscillator circuit according to claim 3, characterized in that, The output unit is further configured to acquire a first enable signal and, based on the first enable signal, output or stop outputting the second bias current to the oscillator.
5. The oscillator circuit according to claim 4, characterized in that, The output unit further includes a first enabling PMOS transistor, which is connected to each PMOS transistor pair; The first enabling PMOS transistor is used to acquire the first enabling signal and output a first control signal to each PMOS transistor pair; Each PMOS transistor pair is also used to output or stop the output of the second output current to the oscillator based on the first control signal.
6. The oscillator circuit according to claim 5, characterized in that, The output unit further includes a current mirror, and the second bias current further includes a reference current. The current mirror is connected to the first enable PMOS transistor and the oscillator. The first enabling PMOS transistor is also used to output the first control signal to the current mirror; The current mirror is used to output or stop the output of the reference current to the oscillator based on the first control signal.
7. The oscillator circuit according to claim 5 or 6, characterized in that, Each PMOS transistor pair includes a first PMOS transistor and a second PMOS transistor connected in series, with the second PMOS transistor connected to the oscillator; The first PMOS transistor is used to adjust the first output current output to the second PMOS transistor based on the data bit to obtain the second output current, and output the second output current to the second PMOS transistor. The second PMOS transistor is used to output or stop outputting the second output current to the oscillator based on the first control signal.
8. The oscillator circuit according to any one of claims 1 to 7, characterized in that, The oscillator is also used to acquire a second enable signal, and based on the second enable signal, output a second clock signal or a shutdown signal to the voltage converter, wherein the shutdown signal is used to instruct the voltage converter to stop working.
9. The oscillator circuit according to claim 8, characterized in that, The oscillator includes a clock unit, an inverter, and a second enable PMOS transistor, wherein the inverter is connected to the clock unit and the second enable PMOS transistor; The clock unit is used to adjust the third clock signal output to the inverter based on the second bias current to obtain a fourth clock signal, wherein the third clock signal is inverted with the first clock signal and the second clock signal is inverted with the fourth clock signal; The second enabling PMOS transistor is used to acquire the second enabling signal and output or stop outputting the second control signal; The inverter is used to receive the fourth clock signal and output the second clock signal to the voltage converter; or, to receive the second control signal and output the shutdown signal to the voltage converter.
10. A voltage conversion circuit, characterized in that, The voltage conversion circuit includes a voltage converter and an oscillator circuit as described in any one of claims 1 to 9; The oscillator circuit is used to obtain the first output voltage of the voltage converter and output a second clock signal to the voltage converter; The voltage converter is used to adjust the first output voltage based on the second clock signal.
11. A vehicle, characterized in that, The vehicle includes the voltage conversion circuit as described in claim 10.
