Voltage regulation circuit, method and electronic device
Patent Information
- Application Number
- CN202510371917.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-26
- Publication Date
- 2026-09-29
AI Technical Summary
但是,buck-boost电路的成本较高,不适应电子设备低成本的发展趋势
Smart Images

Figure CN122844643A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of voltage regulation technology, specifically to a voltage regulation circuit, method, and electronic device. Background Technology
[0002] As electronic devices continue to be updated and advanced, they may require higher operating voltages or power in certain applications. For example, to accelerate heat dissipation and shorten cooling time, higher-power fans are often used in electronic devices, which in turn requires higher operating voltages.
[0003] Most electronic devices employ buck-boost circuits to regulate system voltage by either boosting or bucking it to meet the voltage requirements of different loads (such as fans). However, buck-boost circuits are expensive and not suited to the trend of low-cost development in electronic devices.
[0004] Therefore, a new solution is urgently needed to address the aforementioned problems. Summary of the Invention
[0005] This application provides a voltage regulation circuit, method, and electronic device. The voltage regulation circuit uses only a buck module and a regulation module to achieve voltage boost or buck regulation of the system voltage, meeting different voltage requirements. The overall cost is low, making it more suitable for the future trend of low-cost development in electronic devices.
[0006] To achieve the above objectives, this application adopts the following technical solution:
[0007] In a first aspect, a voltage regulation circuit is provided, including a control module, a buck module, and a regulation module. The control module outputs an enable signal and a buck regulation signal based on a buck signal, and also outputs an enable signal and a boost regulation signal based on a boost signal. The input terminal of the buck module is connected to a first terminal of the control module. The buck module obtains an output voltage based on the enable signal and regulates the output voltage based on a feedback voltage. The first terminal of the regulation module is connected to a second terminal of the control module, and the second terminal of the regulation module is connected to the output terminal of the buck module. The regulation module increases the feedback voltage based on the buck regulation signal, causing the buck module to decrease the output voltage based on the feedback voltage. The regulation module also decreases the feedback voltage based on the boost regulation signal, causing the buck module to increase the output voltage based on the feedback voltage.
[0008] In this embodiment, the target output voltage can be determined based on factors such as whether the electronic device is connected to DC power and the remaining battery power. Therefore, the boost and buck signals can be determined based on the magnitude of the current output voltage and the target output voltage. The control module first outputs an enable signal and a buck adjustment signal based on the buck signal, and an enable signal and a boost adjustment signal based on the boost signal. Then, the buck module obtains the output voltage based on the enable signal and adjusts the output voltage based on the feedback voltage at the feedback port. Next, the adjustment module increases the feedback voltage based on the buck adjustment signal, causing the buck module to decrease the output voltage according to the feedback voltage; it also decreases the feedback voltage based on the boost adjustment signal, causing the buck module to increase the output voltage according to the feedback voltage. This achieves both boost and buck voltage regulation of the output voltage, meeting the voltage requirements of the same load or different loads. The overall cost is low, better suited to the future trend of low-cost development of electronic devices.
[0009] Alternatively, the control module may include an embedded controller.
[0010] In conjunction with the first aspect, in some implementations of the first aspect, the step-down module includes a step-down chip, a first resistor, and a second resistor. The enable terminal of the step-down chip is connected to the control module, the feedback terminal of the step-down chip is connected to the first terminal of the first resistor and the first terminal of the second resistor, the second terminal of the first resistor is connected to the output terminal of the step-down chip, and the second terminal of the second resistor is grounded.
[0011] In this implementation, the buck chip is used to step down the input voltage to obtain the output voltage. The first resistor and the second resistor form a voltage divider circuit, so that the feedback terminal of the buck chip can detect the voltage division on the second resistor, thereby obtaining the feedback voltage. Based on the feedback voltage, the output voltage is continuously adjusted to keep the feedback voltage stable.
[0012] In conjunction with the first aspect, in some implementations of the first aspect, the regulating module includes a first MOSFET and a third resistor. The gate of the first MOSFET is connected to the control module, the drain of the first MOSFET is connected to the first terminal of the third resistor, the second terminal of the third resistor is connected to the feedback terminal of the buck module, and the source of the first MOSFET is grounded.
[0013] In this implementation, when the first MOSFET is in the ON state, the third resistor and the second resistor form a parallel resistor. The resistance of the parallel resistor is less than the resistance of the second resistor alone, thus reducing the feedback voltage. This causes the buck module to increase the output voltage based on the reduced feedback voltage. Then, when the first MOSFET is in the OFF state, the third resistor is disconnected, and the resistance of the second resistor alone is greater than the resistance of the parallel resistor, thereby increasing the feedback voltage. This causes the buck module to increase the output voltage based on the increased feedback voltage.
[0014] In conjunction with the first aspect, in some implementations of the first aspect, the first general-purpose input / output port of the control module is connected to the gate of the first MOSFET.
[0015] In this implementation, the control module can use a first general-purpose input / output port to control the on and off states of the first MOSFET.
[0016] In conjunction with the first aspect, in some implementations of the first aspect, the regulating module further includes a second MOSFET and a fourth resistor. The gate of the second MOSFET is connected to the control module, the drain of the second MOSFET is connected to the first terminal of the fourth resistor, the second terminal of the fourth resistor is connected to the feedback terminal of the buck module, and the source of the second MOSFET is grounded.
[0017] In this implementation, when both the first and second MOSFETs are in the ON state, the third, fourth, and second resistors form a parallel resistor. The resistance of the parallel resistor is less than the resistance of the second resistor alone, thus reducing the feedback voltage. This causes the buck module to increase the output voltage based on the reduced feedback voltage. Then, when both the first and second MOSFETs are in the OFF state, the third and fourth resistors are disconnected. The resistance of the second resistor alone is greater than the resistance of the parallel resistor, further increasing the feedback voltage. This causes the buck module to increase the output voltage based on the increased feedback voltage.
[0018] In conjunction with the first aspect, in some implementations of the first aspect, the second general-purpose input / output port of the control module is connected to the gate of the second MOSFET.
[0019] In this implementation, the control module can use a second general-purpose input / output port to control the on and off states of the second MOSFET.
[0020] In conjunction with the first aspect, in some implementations of the first aspect, the voltage regulation circuit further includes a fan module. The control module is also used to output a buck pulse width modulation (PWM) signal based on the buck signal and a boost pulse width modulation (PWM) signal based on the boost signal. A first terminal of the fan module is connected to the output terminal of the buck module, and a second terminal of the fan module is connected to the third terminal of the control module. The fan module is used to operate according to the output voltage and to adjust the duty cycle according to the buck PWM signal and the boost PWM signal.
[0021] In this implementation, the fan module operates in a higher power consumption mode based on the boosted output voltage, while simultaneously increasing its duty cycle according to the boost width modulation signal. Conversely, the fan module also operates in a lower power consumption mode based on the bucked output voltage, while simultaneously decreasing its duty cycle according to the buck width modulation signal.
[0022] In conjunction with the first aspect, in some implementations of the first aspect, the voltage regulation circuit further includes a speaker module. The speaker module is connected to the output of the buck module and is used to operate according to the output voltage.
[0023] In this implementation, the speaker module is used to operate in a higher power consumption mode based on the boosted output voltage and in a lower power consumption mode based on the bucked output voltage.
[0024] Secondly, a voltage regulation method based on a voltage regulation circuit is provided. Applied to electronic devices, the voltage regulation method includes: acquiring the current power supply mode of the electronic device; when the power supply mode is a non-DC power supply mode, outputting a boost signal, and controlling the output voltage to maintain within a first voltage threshold range according to the boost signal; when the power supply mode is a DC power supply mode, acquiring the remaining power of the electronic device; when the remaining power of the electronic device is not less than a preset power level, outputting a boost signal, and controlling the output voltage to maintain within the first voltage threshold range according to the boost signal; when the remaining power of the electronic device is less than the preset power level, outputting a buck signal, and controlling the output voltage to maintain within a second voltage threshold range according to the buck signal; the first voltage is greater than the second voltage.
[0025] In this implementation, the current power supply mode is first obtained. When the power supply mode is a non-DC power supply mode (e.g., AC mode), a boost signal is output, and the output voltage is controlled to maintain within a first voltage threshold range based on the boost signal. Conversely, when the power supply mode is DC power supply (e.g., battery mode), the remaining power of the electronic device is obtained. When the remaining power of the electronic device is not less than a preset power level, it indicates sufficient power, and a boost signal can still be output, and the output voltage can continue to be controlled to maintain within the first voltage threshold range based on the boost signal. Conversely, when the remaining power of the electronic device is less than the preset power level, it indicates insufficient power, and a buck signal is output, and the output voltage is controlled to maintain within a second voltage threshold range based on the buck signal. This allows the output voltage to switch between different voltage values to supply the voltage requirements of different loads, or the voltage requirements of the same load under different modes.
[0026] In conjunction with the second aspect, in some implementations of the second aspect, when the power supply mode is DC power supply mode, before obtaining the remaining power of the electronic device, the method further includes: outputting a boost pulse width modulation signal according to the boost signal.
[0027] In this implementation, when the power supply mode is DC power supply mode, before obtaining the remaining power of the electronic device, the electronic device not only controls the output voltage to be maintained within the threshold range of the first voltage according to the boost signal, but also outputs a boost pulse width modulation signal to increase the duty cycle according to the boost signal.
[0028] In conjunction with the second aspect, in some implementations of the second aspect, before outputting the buck signal when the remaining power of the electronic device is less than the preset power, the method further includes: outputting a boost pulse width modulation signal based on the boost signal.
[0029] In this implementation, before outputting a buck signal when the remaining power of the electronic device is less than the preset power, the electronic device not only controls the output voltage to remain within the threshold range of the first voltage according to the boost signal, but also outputs a boost pulse width modulation signal to increase the duty cycle according to the boost signal.
[0030] In conjunction with the second aspect, in some implementations of the second aspect, after controlling the output voltage to be maintained within the threshold range of the second voltage according to the buck signal, it further includes: outputting a buck pulse width modulation signal according to the buck signal.
[0031] In this implementation, the output voltage is not only controlled to remain within the threshold range of the second voltage according to the buck signal, but also a buck pulse width modulation signal is output to reduce the duty cycle according to the buck signal.
[0032] Thirdly, an electronic device is provided, comprising a battery, one or more load devices, and the aforementioned voltage regulation circuit. The input terminal of the voltage regulation circuit is connected to the battery, and the output terminal of the voltage regulation circuit is connected to the one or more load devices. The battery supplies power to the voltage regulation circuit. The one or more load devices are used to perform different functions.
[0033] In this implementation, the battery powers the voltage regulation circuit. The voltage regulation circuit adjusts the battery voltage or the external power supply to power one or more load devices or different operating modes of the same load device, each for different functions.
[0034] Fourthly, an electronic device is provided, comprising: one or more processors, and a memory. The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, wherein the one or more processors invoke the computer instructions to cause the electronic device to perform the method.
[0035] Fifthly, a chip system is provided, the chip system being applied to an electronic device, the chip system including one or more processors, the one or more processors being configured to invoke computer instructions to cause the electronic device to perform the method.
[0036] In a sixth aspect, a computer-readable storage medium is provided, the computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the method. Attached Figure Description
[0037] Figure 1 This is a schematic diagram of a scenario for a mobile communication system to which this application embodiment applies;
[0038] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0039] Figure 3 This is a schematic diagram of the structure of a software system provided in an embodiment of this application;
[0040] Figure 4 This is a schematic diagram of the structure of a voltage regulation circuit provided in an embodiment of this application;
[0041] Figure 5 A circuit diagram of a voltage regulation circuit provided in an embodiment of this application;
[0042] Figure 6 A circuit diagram of another voltage regulation circuit provided in this application embodiment;
[0043] Figure 7 A circuit diagram of another voltage regulation circuit provided in this application embodiment;
[0044] Figure 8 A circuit diagram of another voltage regulation circuit provided in this application embodiment;
[0045] Figure 9 A circuit diagram of another voltage regulation circuit provided in this application embodiment;
[0046] Figure 10 A flowchart of a voltage regulation method provided in an embodiment of this application;
[0047] Figure 11 A flowchart of another voltage regulation method provided in this application embodiment;
[0048] Figure 12 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application;
[0049] Figure 13 This is a schematic diagram of the structure of another electronic device provided in this application embodiment. Detailed Implementation
[0050] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.
[0051] The terms "first," "second," etc., are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0052] To facilitate understanding of the embodiments of this application, the relevant concepts involved in the embodiments of this application will be briefly explained first.
[0053] 1. Alternating current (AC)
[0054] In the field of circuit technology, alternating current (AC) refers to current whose direction changes periodically with time, and the average current over one cycle is zero. That is to say, unlike direct current (DC), whose direction changes periodically over time, AC does not exhibit periodicity.
[0055] 2. Direct current (DC)
[0056] In the field of circuit technology, direct current (DC) is the unidirectional flow or movement of electric charge, typically electrons. The current density varies over time, but the direction of movement is usually the same at all times.
[0057] 3. Buck-boost circuit
[0058] In the field of circuit technology, a buck-boost converter, also known as a step-up / step-down converter, is a single-transistor non-isolated DC-DC converter whose output voltage can be lower or higher than the input voltage, but whose output voltage polarity is opposite to the input voltage. A buck-boost converter can also be viewed as a combination of a buck converter and a boost converter connected in series.
[0059] The buck circuit is a type of step-down converter used for DC-DC voltage conversion. Also known as a step-down circuit, its basic characteristic is that it's a DC-DC converter where the output voltage is lower than the input voltage. In the circuit, the energy stored and released by the inductor is controlled by the switching transistor, thereby regulating the output voltage. Buck circuits are primarily used in switching power supplies, DC-DC converters, and other fields, especially in applications requiring conversion from a high-voltage source to a low-voltage source with high current.
[0060] A boost circuit, also known as a step-up converter, is a switching DC-DC converter that transforms direct current (DC) into a fixed or adjustable DC voltage. The working principle of a boost circuit consists of two parts: charging and discharging.
[0061] Charging process: During charging, the switch is closed (transistor conducts), and the input voltage flows through the inductor. The diode prevents the capacitor from discharging to ground. Since the input is DC, the current in the inductor increases linearly at a certain rate, which is related to the inductor's size. As the inductor current increases, some energy is stored in the inductor.
[0062] Discharge process: When the switch is open (transistor cut off), due to the inductor's current-holding characteristic, the current flowing through the inductor does not immediately become zero, but slowly decreases from its value at the end of charging. Since the original circuit is now disconnected, the inductor can only discharge through the new circuit; that is, the inductor begins to charge the capacitor, increasing the voltage across the capacitor. At this point, the output voltage is already higher than the input voltage, and the boost is complete. In other words, the boost process is essentially an energy transfer process through the inductor. During charging, the inductor absorbs energy; during discharging, the inductor releases energy. If the capacitance is large enough, a continuous current can be maintained at the output during the discharge process.
[0063] 4. General-purpose input / output ports (GPIO).
[0064] In the field of circuit technology and embedded systems, it is often necessary to control many simple external devices or circuits. Some of these devices need to be controlled by the CPU, while others require input signals from the CPU. Furthermore, many devices or circuits only require two states: on and off. For example, the on / off state of an LED. Traditional serial or parallel ports are unsuitable for controlling these devices / circuits. Therefore, microcontroller chips typically provide a "General Purpose Programmable I / O Interface," or GPIO. A GPIO port requires at least two registers: a "General Purpose I / O Port Control Register" for control purposes and a "General Purpose I / O Port Data Register" for storing data.
[0065] 5. Pulse Width Modulation (PWM)
[0066] In the field of circuit technology, PWM (Pulse Width Modulation) is an analog control method that modulates the bias of the base of a transistor or the gate of a MOSFET according to changes in the load, thereby changing the conduction time of the transistor or MOSFET and thus changing the output of a switching power supply. This method allows the output voltage of the power supply to remain constant under changing operating conditions, and is a very effective technique for controlling analog circuits using digital signals from a microprocessor. It is widely used in many fields, from measurement and communication to power control and conversion.
[0067] 6. Embedded controller (EC)
[0068] In the field of circuit technology, the EC (Electronic Control Panel) is an important component in laptops, responsible for functions such as keyboard control, touchpad, power management, and fan control. It is an independent chip with its own software and storage media.
[0069] An embedded controller is a key chip on a laptop motherboard, primarily responsible for tasks such as power management, keyboard control, and temperature monitoring. It is also a crucial component of computer hardware, especially in the laptop industry. It is a microcontroller specifically designed to manage critical input / output devices. The EC's main tasks include controlling the keyboard, mouse, and touchpad, as well as performing power management through the Advanced Configuration and Power Management Interface (ACPI), such as fan control. These functions ensure the laptop's proper operation and optimize energy efficiency.
[0070] 7. Metal-oxide-semiconductor field-effect transistor (MOSFET)
[0071] In the field of circuit technology, a MOSFET is a field-effect transistor widely used in analog and digital circuits. The working principle of a MOSFET is to control the drain current by changing the gate-source voltage and the source-drain voltage, thereby controlling the circuit. Generally, MOSFETs can be classified into N-channel and P-channel types, as well as depletion-mode and enhancement-mode types.
[0072] The above is a brief introduction to the terms used in the embodiments of this application, and will not be repeated below.
[0073] The following is combined with Figures 1 to 3 First, the application scenarios and the structure of the electronic devices used in the embodiments of this application will be introduced.
[0074] Figure 1 This is a schematic diagram of a scenario for a mobile communication system to which an embodiment of this application applies. For example... Figure 1 As shown, users can communicate with base station 20 using electronic device 10. This application does not specifically limit the type of electronic device 10. In some embodiments, electronic device 10 can be a mobile phone, wearable device (e.g., smart bracelet, smartwatch, earphones, etc.), tablet computer, laptop computer, handheld computer, ultra-mobile personal computer (UMPC), cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device, or other IoT (Internet of Things) devices, as well as devices such as televisions, large screens, printers, and projectors. For ease of understanding, the following embodiments use a computer as an example for illustrative purposes.
[0075] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 2As shown in the embodiments of this application, the electronic device 10 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a mobile communication module 150, a wireless communication module 160, a first antenna 151, a second antenna 161, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0076] For example, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0077] It should be noted that, Figure 2 The structure shown does not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include a... Figure 2 The components shown may include more or fewer components, or the electronic device may include... Figure 2 The components shown may be a combination of certain components, or the electronic device may include... Figure 2 Sub-components of some of the components shown. Figure 2 The components shown can be implemented in hardware, software, or a combination of both.
[0078] Processor 110 may include one or more processing units. For example, processor 110 may include at least one of the following processing units: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and neural network processing unit (NPU). These different processing units may be independent devices or integrated devices. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0079] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0080] USB interface 130 is used to connect with other devices, thereby enabling electronic device 10 to communicate with the outside world or charge, etc. For example, it supports various charging protocols for electronic devices, on-the-go (OTG) USB function, analog headset function, digital headset function, and display port (DP) function, etc.
[0081] Figure 2 The connection relationships between the modules shown are merely illustrative and do not constitute a limitation on the connection relationships between the modules of the electronic device. Optionally, the modules of the electronic device may also adopt a combination of various connection methods described in the above embodiments.
[0082] The charging management module 140 receives power from the charger. While charging the battery 142, the charging management module 140 can also power electronic devices via the power management module 141. The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and powers the processor 110, internal memory 121, motor 191, display screen 194, camera 193, and wireless communication module 160, etc. The motor 191 can drive a fan. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (e.g., leakage current, impedance). Optionally, the power management module 141 can be located within the processor 110, or the power management module 141 and the charging management module 140 can be located in the same device.
[0083] The wireless communication function of the electronic device can be implemented through devices such as a first antenna 151, a second antenna 161, a mobile communication module 150, a wireless communication module 160, a modem processor, and a baseband processor. The first antenna 151 and the second antenna 161 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0084] The mobile communication module 150 can provide a wireless communication solution for use in electronic devices, such as at least one of the following: a second-generation (2G) mobile communication solution, a third-generation (3G) mobile communication solution, a fourth-generation (5G) mobile communication solution, or a fifth-generation (5G) mobile communication solution.
[0085] The modem processor may include a modulator and a demodulator. The modulator modulates a low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (e.g., speaker 170A, receiver 170B) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0086] Similar to the mobile communication module 150, the wireless communication module 160 can also provide wireless communication solutions for use in electronic devices, such as at least one of the following: wireless local area networks (WLAN), Bluetooth (BT), Bluetooth Low Energy (BLE), ultra-wideband (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technology.
[0087] In some embodiments, the first antenna 151 of the electronic device is coupled to the mobile communication module 150, and the second antenna 161 of the electronic device is coupled to the wireless communication module 160, enabling the electronic device to communicate with the network and other electronic devices via wireless communication technology.
[0088] The external storage interface 120 can be used to connect an external memory card, such as a secure digital (SD) card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0089] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area.
[0090] In some embodiments, pressure sensor 180A may be disposed on display screen 194. Pressure sensor 180A can be of many types, such as resistive pressure sensor, inductive pressure sensor, or capacitive pressure sensor. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes, and the electronic device determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, the electronic device detects the touch operation based on pressure sensor 180A. The electronic device may also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities may correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS message is executed; when a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS message is executed.
[0091] The fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to unlock devices, access app locks, take photos, and answer calls.
[0092] Touch sensor 180K, also known as a touch device, can be disposed on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a touch screen. Touch sensor 180K is used to detect touch operations applied to or near it. Touch sensor 180K can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be disposed on the surface of the electronic device and in a different location from display screen 194.
[0093] Button 190 includes a power button and volume buttons. Button 190 can be a mechanical button or a touch button. The electronic device can receive button input signals and realize functions related to the button input signals.
[0094] It should be understood that the above is only an example of the structure of electronic device 10. Electronic device 10 may also include other subsystems or devices, which can be set and modified as needed. This application embodiment does not impose any restrictions on this.
[0095] Based on the above structural diagram of the electronic device, the software system involved in the electronic device will be briefly introduced below.
[0096] Figure 3This is a schematic diagram of the structure of a software system for an electronic device provided in an embodiment of this application. The electronic device can be... Figure 2 The electronic device shown. (As shown in the image) Figure 3 As shown, this software system may include an application layer, a system framework layer (FWK), a system runtime layer, a hardware abstraction layer (HAL), and a kernel layer. These will be described in detail below.
[0097] The application layer can include a series of application packages, such as desktop applications, contact applications, calling applications, SMS, gallery, video applications, calendar, camera, navigation applications, map applications, Bluetooth, WLAN, email clients, and other applications.
[0098] The system framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The system framework layer may include predefined functions, such as functions for receiving events sent by the system framework layer.
[0099] Specifically, the system framework layer may include Views, ContentProviders, Resource Manager, Notification Manager, Activity Manager, Windows Manager, etc.
[0100] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0101] Content providers enable applications to access data from other applications (such as a contacts database) or share their own data. Content providers store and retrieve data, making that data accessible to applications. This data can include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0102] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0103] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0104] The Activity Manager is used to manage the application lifecycle and provides commonly used navigation and back functions.
[0105] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0106] The system runtime library layer includes program libraries and runtime libraries. For example, in the Android system, program libraries contain C / C++ libraries that can be used by different components within the Android system. They provide services to developers through the Android application framework. The runtime library includes a core library that provides most of the functionality of the Java programming language core library.
[0107] The Hardware Abstraction Layer (HAL) is the interface layer between the hardware and software layers, used to abstract the hardware. The HAL includes audio / video interfaces, voice communication interfaces, and wireless fidelity (WiFi) interfaces, among others.
[0108] The kernel layer can include display drivers, camera drivers, sensor drivers, etc., which are used to drive the relevant hardware in the hardware layer, such as displays, cameras, and sensors.
[0109] The technical problems existing in the relevant technologies will be described in detail below.
[0110] With the continuous advancement of technology, electronic devices have become increasingly integrated into our daily lives. Examples include tablets and laptops. As electronic devices continue to evolve and improve, they acquire more and more functions, operate at faster speeds, and generate more and more heat. To address this issue, higher voltage or more powerful fans are often used to accelerate heat dissipation and shorten cooling time.
[0111] Currently, buck-boost circuits are commonly used to regulate the system voltage of electronic devices by either boosting or bucking it to meet the voltage requirements of different loads (such as fans). However, buck-boost circuits are relatively expensive and do not align with the trend towards lower-cost electronic devices.
[0112] In view of this, embodiments of this application provide a voltage regulation circuit that can achieve voltage boosting or bucking of the system voltage using only a buck module and a regulating module, meeting different voltage requirements. The overall cost is low, making it more suitable for the future low-cost development trend of electronic devices.
[0113] The following is combined with Figures 4 to 9 The voltage regulation circuit scheme provided in the embodiments of this application will be described in detail below. In the embodiments of this application, the connection between two electrical modules / electronic devices includes communication connection and electrical connection. Here, communication connection refers to a connection that can transmit communication signals. The communication signal can be an electrical signal or an optical signal, and is not limited here. Electrical connection refers to a connection that can transmit electrical signals. Electrical connection includes direct connection and indirect connection. For example, a direct connection between device A and device B means that device A and device B are connected by a wire to transmit electrical signals. An indirect connection between device A and device B means that the first end of device A and device C are connected by a wire, and the second end of device C and device B are connected by a wire, so that device A and device B can transmit electrical signals through device C. For ease of understanding, in the following description, "electrical connection" will be simply referred to as connection.
[0114] Figure 4 This is a schematic diagram of a voltage regulation circuit provided in an embodiment of this application. Figure 4 As shown, in one embodiment of this application, a voltage regulation circuit 30 is provided, applied to an electronic device 10. The voltage regulation circuit 30 includes a control module 301, a buck module 302, and an adjustment module 303. The control module 301 is used to output an enable signal and a buck adjustment signal according to a buck signal, and also to output an enable signal and a boost adjustment signal according to a boost signal. The input terminal of the buck module 302 is connected to a first terminal of the control module 301. The buck module 302 is used to obtain an output voltage according to the enable signal and adjust the output voltage according to a feedback voltage. The first terminal of the adjustment module 303 is connected to a second terminal of the control module 301, and the second terminal of the adjustment module 303 is connected to the output terminal of the buck module 302. The adjustment module 303 is used to increase the feedback voltage according to the buck adjustment signal, so that the buck module 302 decreases the output voltage according to the feedback voltage. The adjustment module 303 is also used to decrease the feedback voltage according to the boost adjustment signal, so that the buck module 302 increases the output voltage according to the feedback voltage.
[0115] Optionally, the control module 301 may be an embedded controller EC, used to control the operation of the step-down module 302 and the regulating module 303.
[0116] For example, depending on whether the electronic device 10 is connected to DC power and the remaining battery power, the electronic device 10 can be controlled to operate in different modes, such as intelligent mode or high-performance (hunter) mode. When the electronic device 10 is in different operating modes, the target output voltage is different. Therefore, based on the relationship between the current output voltage and the target output voltage, it can be determined whether to boost or buck the current output voltage, that is, to output a boost signal or a buck signal.
[0117] First, the control module 301 outputs an enable signal and a buck adjustment signal based on the buck signal, and an enable signal and a boost adjustment signal based on the boost signal. Then, the buck module 302 bucks the input voltage Vin according to the enable signal to obtain the output voltage Vout; simultaneously, it monitors the feedback voltage Vout in real time through the feedback terminal and adjusts the output voltage Vout according to the difference between the feedback voltage and the target voltage to make the feedback voltage equal to the target voltage as much as possible. Next, the adjustment module 303 increases the feedback voltage according to the buck adjustment signal. To maintain a constant feedback voltage, the buck module 302 decreases the output voltage Vout, resulting in a reduced output voltage Vout. The adjustment module 303 also decreases the feedback voltage according to the boost adjustment signal. To maintain a constant feedback voltage, the buck module 302 increases the output voltage Vout, resulting in an increased output voltage Vout. Thus, this voltage regulation circuit 30 uses only the low-cost buck module 302 and adjustment module 303 to achieve both boost and buck voltage regulation of the output voltage, meeting the different voltage requirements of the same load or different loads. The overall cost is lower, making it more suitable for the future trend of low-cost development of electronic devices.
[0118] It should be noted that the input voltage Vin can be the battery voltage, the external power supply voltage, or the system voltage, etc.
[0119] The following is combined with Figures 5-9 The circuit diagram of the voltage regulation circuit 30 provided in the embodiments of this application will be described in detail.
[0120] Example 1 Figure 5 This is a circuit diagram of a voltage regulation circuit provided in an embodiment of this application. Figure 5As shown, in one embodiment of this application, a voltage regulation circuit 30 is provided, applied to an electronic device 10. The voltage regulation circuit 30 includes a control module 301, a buck module 302, and an adjustment module 303. The control module 301 is used to output an enable signal and a buck adjustment signal according to a buck signal, and also to output an enable signal and a boost adjustment signal according to a boost signal. The input terminal of the buck module 302 is connected to a first terminal of the control module 301. The buck module 302 is used to obtain an output voltage according to the enable signal and adjust the output voltage according to a feedback voltage. The first terminal of the adjustment module 303 is connected to a second terminal of the control module 301, and the second terminal of the adjustment module 303 is connected to the output terminal of the buck module 302. The adjustment module 303 is used to increase the feedback voltage according to the buck adjustment signal, so that the buck module 302 decreases the output voltage according to the feedback voltage. The adjustment module 303 is also used to decrease the feedback voltage according to the boost adjustment signal, so that the buck module 302 increases the output voltage according to the feedback voltage.
[0121] For example, the electronic device 10 can be controlled to operate in different modes, such as intelligent mode or high-performance (hunter) mode, depending on factors such as whether DC power is connected to the electronic device 10 and the remaining battery power. When the electronic device 10 is in different operating modes, the target output voltage is different. Therefore, based on the relationship between the current output voltage and the target output voltage, it can be determined whether to boost or buck the current output voltage, i.e., output a boost signal or a buck signal. First, the control module 301 outputs an enable signal and a buck adjustment signal based on the buck signal, and outputs an enable signal and a boost adjustment signal based on the boost signal. Then, the buck module 302 bucks the input voltage Vin according to the enable signal to obtain the output voltage Vout; at the same time, it detects the feedback voltage of the output voltage Vout in real time through the feedback terminal, and adjusts the output voltage Vout according to the difference between the feedback voltage and the target voltage to make the feedback voltage equal to the target voltage as much as possible. Then, the adjustment module 303 increases the feedback voltage according to the buck adjustment signal, and the buck module 302 decreases the output voltage Vout to maintain the feedback voltage unchanged, thus obtaining a reduced output voltage Vout. The adjustment module 303 is also used to reduce the feedback voltage according to the boost adjustment signal. To maintain the feedback voltage constant, the buck module 302 increases the output voltage Vout, resulting in an increased output voltage Vout. Thus, this voltage regulation circuit 30 can achieve both boost and buck regulation of the output voltage using only the low-cost buck module 302 and adjustment module 303, meeting the different voltage requirements of the same load or different loads. The overall cost is low, making it more suitable for the future trend of low-cost development in electronic equipment.
[0122] It should be noted that the buck module 302 includes a buck chip, a first resistor R1, and a second resistor R2. The enable terminal (en) of the buck chip is connected to the control module 301. The feedback terminal (FB) of the buck chip is connected to the first terminal of the first resistor R1 and the first terminal of the second resistor R2. The second terminal of the first resistor R1 is connected to the output terminal of the buck chip, and the second terminal of the second resistor R2 is grounded.
[0123] In this embodiment, the buck converter chip is used to step down the input voltage Vin to obtain the output voltage Vout. The first resistor R1 and the second resistor R2 form a voltage divider circuit, and the voltage divided by the second resistor R2 is the feedback voltage at the feedback terminal FB of the buck converter chip. Then, the buck converter chip can continuously adjust the output voltage according to the magnitude of the feedback voltage, thereby keeping the feedback voltage stable.
[0124] Example 2 Figure 6 This is a circuit diagram of another voltage regulation circuit provided in this application. Figure 6 As shown, in one embodiment of this application, a voltage regulation circuit 30 is provided, applied to an electronic device 10. The voltage regulation circuit 30 includes a control module 301, a buck module 302, and an adjustment module 303. The control module 301 is used to output an enable signal and a buck adjustment signal according to a buck signal, and also to output an enable signal and a boost adjustment signal according to a boost signal. The input terminal of the buck module 302 is connected to a first terminal of the control module 301. The buck module 302 is used to obtain an output voltage according to the enable signal and adjust the output voltage according to a feedback voltage. The first terminal of the adjustment module 303 is connected to a second terminal of the control module 301, and the second terminal of the adjustment module 303 is connected to the output terminal of the buck module 302. The adjustment module 303 is used to increase the feedback voltage according to the buck adjustment signal, so that the buck module 302 decreases the output voltage according to the feedback voltage. The adjustment module 303 is also used to decrease the feedback voltage according to the boost adjustment signal, so that the buck module 302 increases the output voltage according to the feedback voltage.
[0125] For example, the electronic device 10 can be controlled to operate in different modes, such as intelligent mode or high-performance (hunter) mode, depending on factors such as whether DC power is connected to the electronic device 10 and the remaining battery power. When the electronic device 10 is in different operating modes, the target output voltage is different. Therefore, based on the relationship between the current output voltage and the target output voltage, it can be determined whether to boost or buck the current output voltage, i.e., output a boost signal or a buck signal. First, the control module 301 outputs an enable signal and a buck adjustment signal based on the buck signal, and outputs an enable signal and a boost adjustment signal based on the boost signal. Then, the buck module 302 bucks the input voltage Vin according to the enable signal to obtain the output voltage Vout; at the same time, it detects the feedback voltage of the output voltage Vout in real time through the feedback terminal, and adjusts the output voltage Vout according to the difference between the feedback voltage and the target voltage to make the feedback voltage equal to the target voltage as much as possible. Then, the adjustment module 303 increases the feedback voltage according to the buck adjustment signal, and the buck module 302 decreases the output voltage Vout to maintain the feedback voltage unchanged, thus obtaining a reduced output voltage Vout. The adjustment module 303 is also used to reduce the feedback voltage according to the boost adjustment signal. To maintain the feedback voltage constant, the buck module 302 increases the output voltage Vout, resulting in an increased output voltage Vout. Thus, this voltage regulation circuit 30 can achieve both boost and buck regulation of the output voltage using only the low-cost buck module 302 and adjustment module 303, meeting the different voltage requirements of the same load or different loads. The overall cost is low, making it more suitable for the future trend of low-cost development in electronic equipment.
[0126] It should be noted that the adjustment module 303 includes a first MOSFET Q1 and a third resistor R3. The gate of the first MOSFET Q1 is connected to the control module 301, the drain of the first MOSFET Q1 is connected to the first end of the third resistor R3, the second end of the third resistor R3 is connected to the feedback terminal FB of the adjustment module 303, and the source of the first MOSFET Q1 is grounded.
[0127] In this embodiment, the on and off states of the first MOSFET Q1 determine whether the third resistor R3 is connected in parallel with the second resistor R2, thereby changing the feedback voltage of the feedback terminal FB of the buck converter chip, and thus adjusting the output voltage Vout of the buck converter chip to supply different voltage requirements of different load devices or the same load device.
[0128] Specifically, when the first MOSFET Q1 is in the ON state, the third resistor R3 and the second resistor R2 form a parallel resistor. The resistance of the parallel resistor (R2 / / R3) is less than the resistance of the second resistor R2 alone, thereby reducing the feedback voltage of the buck module 302 (e.g., a buck converter). This allows the buck module 302 to increase the output voltage Vout (e.g., 12V) based on the reduced feedback voltage. Then, when the first MOSFET Q1 is in the OFF state, the third resistor R3 is disconnected from the feedback terminal of the buck module 302. The resistance of the second resistor R2 alone is greater than the resistance of the parallel resistor (R2 / / R3), further increasing the feedback voltage of the buck module 302. This causes the buck module 302 to decrease the output voltage Vout (e.g., 10V) based on the increased feedback voltage. Conversely, the output voltage Vout of the buck converter can also be adjusted from a lower voltage (e.g., 10V) to a higher voltage (e.g., 12V).
[0129] Optionally, the control module 301 may use a first general purpose input / output port GPIO1 connected to the gate of the first MOSFET Q1.
[0130] Example 3 Figure 7 This is a circuit diagram of another voltage regulation circuit provided in this application. Figure 7 As shown, in one embodiment of this application, a voltage regulation circuit 30 is provided, applied to an electronic device 10. The voltage regulation circuit 30 includes a control module 301, a buck module 302, and an adjustment module 303. The control module 301 is used to output an enable signal and a buck adjustment signal according to a buck signal, and also to output an enable signal and a boost adjustment signal according to a boost signal. The input terminal of the buck module 302 is connected to a first terminal of the control module 301. The buck module 302 is used to obtain an output voltage according to the enable signal and adjust the output voltage according to a feedback voltage. The first terminal of the adjustment module 303 is connected to a second terminal of the control module 301, and the second terminal of the adjustment module 303 is connected to the output terminal of the buck module 302. The adjustment module 303 is used to increase the feedback voltage according to the buck adjustment signal, so that the buck module 302 decreases the output voltage according to the feedback voltage. The adjustment module 303 is also used to decrease the feedback voltage according to the boost adjustment signal, so that the buck module 302 increases the output voltage according to the feedback voltage.
[0131] For example, the electronic device 10 can be controlled to operate in different modes, such as intelligent mode or high-performance (hunter) mode, depending on factors such as whether DC power is connected to the electronic device 10 and the remaining battery power. When the electronic device 10 is in different operating modes, the target output voltage is different. Therefore, based on the relationship between the current output voltage and the target output voltage, it can be determined whether to boost or buck the current output voltage, i.e., output a boost signal or a buck signal. First, the control module 301 outputs an enable signal and a buck adjustment signal based on the buck signal, and outputs an enable signal and a boost adjustment signal based on the boost signal. Then, the buck module 302 bucks the input voltage Vin according to the enable signal to obtain the output voltage Vout; at the same time, it detects the feedback voltage of the output voltage Vout in real time through the feedback terminal, and adjusts the output voltage Vout according to the difference between the feedback voltage and the target voltage to make the feedback voltage equal to the target voltage as much as possible. Then, the adjustment module 303 increases the feedback voltage according to the buck adjustment signal, and the buck module 302 decreases the output voltage Vout to maintain the feedback voltage unchanged, thus obtaining a reduced output voltage Vout. The adjustment module 303 is also used to reduce the feedback voltage according to the boost adjustment signal. To maintain the feedback voltage constant, the buck module 302 increases the output voltage Vout, resulting in an increased output voltage Vout. Thus, this voltage regulation circuit 30 can achieve both boost and buck regulation of the output voltage using only the low-cost buck module 302 and adjustment module 303, meeting the different voltage requirements of the same load or different loads. The overall cost is low, making it more suitable for the future trend of low-cost development in electronic equipment.
[0132] It should be noted that the adjustment module 303 includes a first MOSFET Q1, a second MOSFET Q2, a third resistor R3, and a fourth resistor R4. The gate of the first MOSFET Q1 is connected to the control module 301, the drain of the first MOSFET Q1 is connected to the first terminal of the third resistor R3, the second terminal of the third resistor R3 is connected to the feedback terminal FB of the buck module 302, and the source of the first MOSFET Q1 is grounded. The gate of the second MOSFET Q2 is connected to the control module 301, the drain of the second MOSFET Q2 is connected to the first terminal of the fourth resistor R4, the second terminal of the fourth resistor R4 is connected to the feedback terminal of the buck module 302, and the source of the second MOSFET Q2 is grounded.
[0133] In this embodiment, the on and off states of the first MOSFET Q1 and the second MOSFET Q2 determine whether to connect the third resistor R3, the fourth resistor R4 and the second resistor R2 in parallel, thereby changing the feedback voltage of the feedback terminal FB of the buck converter chip, and thus adjusting the output voltage Vout of the buck converter chip to supply different load devices or different voltage requirements of the same load device.
[0134] Optionally, the control module 301 may connect the first general purpose input / output port GPIO1 to the gate of the first MOSFET Q1 to control the on and off states of the first MOSFET Q1.
[0135] Optionally, the control module 301 may use a second general purpose input / output port GPIO2 connected to the gate of the second MOSFET Q2 to control the on and off states of the second MOSFET Q2.
[0136] For example, when it is necessary to switch the output voltage Vout of the buck converter chip from a higher first voltage (e.g., 12V) to a lower second voltage (e.g., 10V), as shown in Table 1 below, the first MOSFET Q1 can be turned on and the second MOSFET Q2 can be turned off. This allows the third resistor R3 and the second resistor R2 to form a parallel resistor. The resistance of the parallel resistor (R2 / / R3) is greater than the resistance of the parallel resistors R2, R3, and R4 (R2 / / R3 / / R4), thereby increasing the feedback voltage of the buck module 302 (e.g., the buck converter chip). This allows the buck module 302 to reduce the output voltage Vout based on the increased feedback voltage. For example, the output voltage Vout can be reduced from 12V to 11V. Then, the first MOSFET Q1 and the second MOSFET Q2 can be turned off, disconnecting the third resistor R3 from the feedback terminal of the buck module 302. Since the resistance of the second resistor R2 alone is greater than the resistance of the parallel resistor (R2 / / R3), the feedback voltage of the buck module 302 is further increased. This allows the buck module 302 to further reduce the output voltage Vout based on the increased feedback voltage. For example, the output voltage Vout may decrease from 11V to 10V. This achieves a gradual reduction in the output voltage Vout, preventing drastic fluctuations that could affect the operation of the load devices.
[0137] Table 1 Output Voltage Reduction Control Table
[0138] Voltage transformation GPIO Actions Voltage switched from 12V to 11V GPIO1 is pulled high (Q1 is turned on), GPIO2 is pulled low (Q2 is turned off). Voltage switched from 11V to 10V GPIO1 is pulled low (i.e., Q1 is off), GPIO2 is pulled low (i.e., Q2 is off).
[0139] Conversely, when it is necessary to switch the output voltage Vout of the buck converter chip from a lower second voltage (e.g., 10V) to a higher first voltage (e.g., 12V), as shown in Table 2, the first MOSFET Q1 can be turned on and the second MOSFET Q2 turned off. This allows the third resistor R3 and the second resistor R2 to form a parallel resistor. The resistance of the parallel resistor (R2 / / R3) is less than the resistance of the second resistor R2 alone, thereby reducing the feedback voltage of the buck module 302 (e.g., the buck converter chip). This allows the buck module 302 to increase the output voltage Vout based on the reduced feedback voltage. For example, the output voltage Vout can be increased from 10V to 11V. Then, the first MOSFET Q1 and the second MOSFET Q2 can be turned on, so that the second resistor R2, the third resistor R3, and the fourth resistor R4 form a parallel resistor (R2 / / R3 / / R4). The resistance of the parallel resistor (R2 / / R3 / / R4) is less than the resistance of the parallel resistor (R2 / / R3), thereby further reducing the feedback voltage of the buck module 302. This allows the buck module 302 to further increase the output voltage Vout based on the reduced feedback voltage. For example, the output voltage Vout increases from 11V to 12V. This achieves a gradual increase in the output voltage Vout, avoiding drastic jumps in the output voltage Vout that could affect the operation of the load devices.
[0140] Table 2 Output Voltage Rise Control Table
[0141] Voltage transformation GPIO Actions Voltage switched from 10V to 11V GPIO1 is pulled high (Q1 is turned on), GPIO2 is pulled low (Q2 is turned off). Voltage switched from 11V to 12V GPIO1 is pulled high (Q1 is turned on), GPIO2 is pulled high (Q2 is turned on).
[0142] Example 4 Figure 8 This is a circuit diagram of another voltage regulation circuit provided in this application. Figure 8 As shown, in one embodiment of this application, a voltage regulation circuit 30 is provided, applied to an electronic device 10. The voltage regulation circuit 30 includes a control module 301, a buck module 302, an adjustment module 303, and a fan module 304. The control module 301 is used to output an enable signal and a buck adjustment signal according to a buck signal, and also to output an enable signal and a boost adjustment signal according to a boost signal. The input terminal of the buck module 302 is connected to a first terminal of the control module 301. The buck module 302 is used to obtain an output voltage according to the enable signal and adjust the output voltage according to the feedback voltage. The first terminal of the adjustment module 303 is connected to a second terminal of the control module 301, and the second terminal of the adjustment module 303 is connected to the output terminal of the buck module 302. The adjustment module 303 is used to increase the feedback voltage according to the buck adjustment signal, so that the buck module 302 decreases the output voltage according to the feedback voltage. The adjustment module 303 is also used to decrease the feedback voltage according to the boost adjustment signal, so that the buck module 302 increases the output voltage according to the feedback voltage.
[0143] For example, the electronic device 10 can be controlled to operate in different modes, such as intelligent mode or high-performance (hunter) mode, depending on factors such as whether DC power is connected to the electronic device 10 and the remaining battery power. When the electronic device 10 is in different operating modes, the target output voltage is different. Therefore, based on the relationship between the current output voltage and the target output voltage, it can be determined whether to boost or buck the current output voltage, i.e., output a boost signal or a buck signal. First, the control module 301 outputs an enable signal and a buck adjustment signal based on the buck signal, and outputs an enable signal and a boost adjustment signal based on the boost signal. Then, the buck module 302 bucks the input voltage Vin according to the enable signal to obtain the output voltage Vout; at the same time, it detects the feedback voltage of the output voltage Vout in real time through the feedback terminal, and adjusts the output voltage Vout according to the difference between the feedback voltage and the target voltage to make the feedback voltage equal to the target voltage as much as possible. Then, the adjustment module 303 increases the feedback voltage according to the buck adjustment signal, and the buck module 302 decreases the output voltage Vout to maintain the feedback voltage unchanged, thus obtaining a reduced output voltage Vout. The adjustment module 303 is also used to reduce the feedback voltage according to the boost adjustment signal. To maintain the feedback voltage constant, the buck module 302 increases the output voltage Vout, resulting in an increased output voltage Vout. Thus, this voltage regulation circuit 30 can achieve both boost and buck regulation of the output voltage using only the low-cost buck module 302 and adjustment module 303, meeting the different voltage requirements of the same load or different loads. The overall cost is low, making it more suitable for the future trend of low-cost development in electronic equipment.
[0144] It should be noted that the control module 301 is also used to output a buck pulse width modulation signal based on the buck signal, and to output a boost pulse width modulation signal based on the boost signal. The first terminal of the fan module 304 is connected to the output terminal of the buck module 302, and the second terminal of the fan module 304 is connected to the third terminal of the control module 301. The fan module 304 is used to operate according to the output voltage Vout, and to adjust the duty cycle according to the buck pulse width modulation signal and the boost pulse width modulation signal.
[0145] For example, in this embodiment, when the electronic device 10 is not plugged into an external power source (i.e., in DC mode) and is in smart mode, the fan module 304 can operate with a lower output voltage Vout (e.g., 10V), and the maximum speed of the fan module 304 is 3600 revolutions per minute (rpm). When the electronic device 10 is plugged into an external power source (i.e., in AC mode) and is in high-performance mode, the operating voltage required by the fan module 304 increases, and the maximum speed also increases, making the 10V output voltage Vout insufficient. Therefore, the control module 301 outputs a boost signal to control the buck module 302 and the adjustment module 303 to output a boosted output voltage Vout (e.g., 12V). Simultaneously, to prevent a conflict between the sudden change in the operating voltage and speed of the fan module 304, the duty cycle of the fan module 304 can be increased according to the boost pulse width modulation signal to adapt to the higher output voltage Vout, maintaining stable operation of the fan module 304.
[0146] Then, when the electronic device 10 disconnects its external power supply (i.e., is in DC mode) and switches to intelligent mode, the operating voltage required by the fan module 304 decreases, and its maximum speed also decreases. The electronic device 10 no longer needs to provide a higher output voltage Vout (e.g., 12V) to the fan module 304. Therefore, the control module 301 outputs a step-down signal to control the step-down module 302 and the regulation module 303 to output a stepped-down output voltage Vout (e.g., 10V). Simultaneously, to prevent a conflict between the sudden change in the operating voltage and speed of the fan module 304, the duty cycle of the fan module 304 can be reduced according to the step-down pulse width modulation signal to adapt to the lower output voltage Vout, maintaining stable operation of the fan module 304. This achieves the switching process between the output voltage Vout and duty cycle of the fan module 304 between higher and lower voltage operating modes. Furthermore, the overall cost of this voltage regulation circuit 30 is low, making it more suitable for the future low-cost development trend of the electronic device 10.
[0147] Example 5 Figure 9 This is a circuit diagram of another voltage regulation circuit provided in this application. Figure 9As shown, in one embodiment of this application, a voltage regulation circuit 30 is provided, applied to an electronic device 10. The voltage regulation circuit 30 includes a control module 301, a buck module 302, an adjustment module 303, a fan module 304, and a speaker module 305. The control module 301 is used to output an enable signal and a buck adjustment signal according to a buck signal, and also to output an enable signal and a boost adjustment signal according to a boost signal. The input terminal of the buck module 302 is connected to the first terminal of the control module 301. The buck module 302 is used to obtain an output voltage according to the enable signal and adjust the output voltage according to the feedback voltage. The first terminal of the adjustment module 303 is connected to the second terminal of the control module 301, and the second terminal of the adjustment module 303 is connected to the output terminal of the buck module 302. The adjustment module 303 is used to increase the feedback voltage according to the buck adjustment signal, so that the buck module 302 decreases the output voltage according to the feedback voltage. The adjustment module 303 is also used to decrease the feedback voltage according to the boost adjustment signal, so that the buck module 302 increases the output voltage according to the feedback voltage.
[0148] For example, the electronic device 10 can be controlled to operate in different modes, such as intelligent mode or high-performance (hunter) mode, depending on factors such as whether DC power is connected to the electronic device 10 and the remaining battery power. When the electronic device 10 is in different operating modes, the target output voltage is different. Therefore, based on the relationship between the current output voltage and the target output voltage, it can be determined whether to boost or buck the current output voltage, i.e., output a boost signal or a buck signal. First, the control module 301 outputs an enable signal and a buck adjustment signal based on the buck signal, and outputs an enable signal and a boost adjustment signal based on the boost signal. Then, the buck module 302 bucks the input voltage Vin according to the enable signal to obtain the output voltage Vout; at the same time, it detects the feedback voltage of the output voltage Vout in real time through the feedback terminal, and adjusts the output voltage Vout according to the difference between the feedback voltage and the target voltage to make the feedback voltage equal to the target voltage as much as possible. Then, the adjustment module 303 increases the feedback voltage according to the buck adjustment signal, and the buck module 302 decreases the output voltage Vout to maintain the feedback voltage unchanged, thus obtaining a reduced output voltage Vout. The adjustment module 303 is also used to reduce the feedback voltage according to the boost adjustment signal. To maintain the feedback voltage constant, the buck module 302 increases the output voltage Vout, resulting in an increased output voltage Vout. Thus, this voltage regulation circuit 30 can achieve both boost and buck regulation of the output voltage using only the low-cost buck module 302 and adjustment module 303, meeting the different voltage requirements of the same load or different loads. The overall cost is low, making it more suitable for the future trend of low-cost development in electronic equipment.
[0149] It should be noted that the control module 301 is also used to output a buck pulse width modulation signal based on the buck signal, and to output a boost pulse width modulation signal based on the boost signal. The first terminal of the fan module 304 is connected to the output terminal of the buck module 302, and the second terminal of the fan module 304 is connected to the third terminal of the control module 301. The fan module 304 is used to operate according to the output voltage Vout, and to adjust the duty cycle according to the buck pulse width modulation signal and the boost pulse width modulation signal. The speaker module 305 is connected to the output terminal of the buck module 302, and the speaker module 305 is used to operate according to the output voltage Vout.
[0150] Optionally, speaker module 305 can be an audio public address / audio PA.
[0151] For example, in this embodiment of the application, as shown in Table 3 below, when the electronic device 10 is not plugged into an external power source (i.e., in DC mode) and is in smart mode, the fan module 304 and speaker module 305 can operate with a lower output voltage Vout (e.g., 10V), and the maximum speed of the fan module 304 is 3600 revolutions per minute (rpm). When the electronic device 10 is plugged into an external power source (i.e., in AC mode) and is in high-performance mode, the operating voltage required by the fan module 304 increases to 12V, and the maximum speed also increases to 5500rpm, making the 10V output voltage Vout insufficient. Therefore, the control module 301 outputs a boost signal to control the buck module 302 and the adjustment module 303 to operate, thereby outputting a boosted output voltage Vout (e.g., 12V) to power the fan module 304 and speaker module 305. Meanwhile, in order to prevent the contradiction between the sudden change in operating voltage and speed of the fan module 304, the duty cycle of the fan module 304 can be increased according to the boost pulse width modulation signal to adapt it to the higher output voltage Vout and maintain the stable operation of the fan module 304.
[0152] It should be noted that although the minimum operating voltage of the speaker module 305 can be 10V, when the electronic device 10 is in high-performance mode and the output voltage Vout is 12V, the speaker module 305 can also maintain normal operation at 12V.
[0153] Table 3 Output Voltage and Speed Switching Table
[0154]
[0155] It should be understood that, in one embodiment of Table 3, the electronic device 10 may employ a four-cell battery capable of providing a voltage of 12–20V. When the battery output voltage is ≤12V, due to voltage drop during transmission to the load device, it cannot directly provide 12V to the load device, therefore the voltage regulation circuit 30 is required to boost the output voltage Vout. When the battery output voltage is ≥12V (e.g., 20V), the output voltage is too high and also cannot directly provide 12V to the load device, therefore the voltage regulation circuit 30 is required to reduce the output voltage Vout.
[0156] Then, when the electronic device 10 disconnects the external power supply (i.e., is in DC mode) and switches to intelligent mode, the operating voltage required by the fan module 304 decreases, and the maximum speed also decreases. The electronic device 10 no longer needs to provide a higher output voltage Vout (e.g., 12V) to the fan module 304. Therefore, the control module 301 outputs a step-down signal to control the step-down module 302 and the regulation module 303 to operate, thereby outputting a stepped-down output voltage Vout (e.g., 10V) to supply the fan module 304 and the speaker module 305. At the same time, to prevent a contradiction between the sudden change in the operating voltage and speed of the fan module 304, the duty cycle of the fan module 304 can be reduced according to the step-down pulse width modulation signal to adapt it to the lower output voltage Vout, maintaining the stable operation of the fan module 304. This realizes the switching process of the output voltage Vout and duty cycle of the fan module 304 between higher and lower voltage operating modes, and also realizes the switching process of the output voltage Vout of the speaker module 305 between higher and lower voltage operating modes. Meanwhile, the overall cost of the voltage regulation circuit 30 is low, making it more suitable for the future low-cost development trend of electronic devices 10.
[0157] The following is combined with Figures 10 to 11 The voltage regulation method 40 provided in the embodiments of this application will be described in detail below.
[0158] Figure 10 This is a flowchart of a voltage regulation method provided in an embodiment of this application. Figure 10 As shown, in one embodiment provided in this application, a voltage regulation method 40 is provided, applied to an electronic device 10. The voltage regulation method 40 includes the following steps:
[0159] S401, The electronic device obtains the current power supply mode.
[0160] For example, an electronic device can determine the magnitude of the supply voltage to a load device based on the current power supply mode. For instance, the electronic device may include an intelligent mode and a high-performance mode. When the electronic device is in intelligent mode, it can provide a lower operating voltage (e.g., 10V) to the load device. When the electronic device is in high-performance mode, it can provide a higher operating voltage (e.g., 12V) to the load device.
[0161] S402. Electronic equipment determines whether the power supply mode is DC power supply mode.
[0162] For example, an electronic device can determine the output voltage supplied to a load device based on whether the power supply mode is a DC power supply mode (i.e., DC mode).
[0163] It should be understood that DC power supply mode can be battery power supply mode.
[0164] S403. When the power supply mode is non-DC power supply mode, the electronic device outputs a boost signal and controls the output voltage to be maintained within the threshold range of the first voltage according to the boost signal.
[0165] For example, when the power supply mode of the electronic device is a non-DC power supply mode, it means that the power supply mode is an AC power supply mode (i.e., AC mode). At this time, the input power supply voltage is relatively high. For example, the power supply voltage can be a stable system voltage of 20V, which can provide a higher output voltage to the load device. Therefore, the electronic device can output a boost signal and control the output voltage to maintain it within a threshold range of a first voltage (e.g., 12V) according to the boost signal, so that the load device can operate in high-performance mode.
[0166] It should be understood that in the embodiments of this application, the electronic device may have previously been in a battery-powered state, in smart mode, with a low output voltage. When an external power source (e.g., a charger) is plugged in, the input voltage increases, and the electronic device can enter a high-performance mode, thus increasing the output voltage to allow the load device to operate in a higher power consumption mode.
[0167] S404. When the power supply mode of the electronic device is DC power supply mode, obtain the remaining power of the electronic device.
[0168] For example, when the power supply mode of the electronic device is DC power supply mode, it means that the input power supply voltage is battery power, but the remaining battery power of the electronic device is uncertain, so it is necessary to obtain the remaining battery power of the electronic device.
[0169] S405. The electronic device determines whether the remaining battery power is less than the preset battery power.
[0170] For example, the electronic device can further determine the output voltage supplied to the load device based on whether the remaining power is less than a preset power (e.g., 30%).
[0171] S406. When the remaining power is not less than the preset power, the electronic device outputs a boost signal and controls the output voltage to be maintained within the threshold range of the first voltage according to the boost signal.
[0172] For example, when the remaining power of the electronic device is not less than a preset power level, it indicates that the remaining power is high and it can still provide a high output voltage to the load device. Therefore, the electronic device can output a boost signal and control the output voltage to be maintained within a threshold range of a first voltage (e.g., 12V) according to the boost signal, so that the load device can operate in high-performance mode.
[0173] S407. When the remaining power is less than the preset power, the electronic device outputs a step-down signal and controls the output voltage to be maintained within the threshold range of the second voltage according to the step-down signal.
[0174] It should be noted that the first voltage (e.g., 12V) is greater than the second voltage (e.g., 10V).
[0175] For example, when the remaining power of an electronic device is less than a preset power level, it indicates that the remaining power is low and cannot provide a high output voltage to the load device, but can only provide a low output voltage. Therefore, the electronic device can output a step-down signal and control the output voltage to maintain it within a threshold range of a second voltage (e.g., 10V) according to the step-down signal, so that the load device can operate in intelligent mode.
[0176] Figure 11 This is a flowchart illustrating yet another voltage regulation method provided in this application. Figure 11 As shown, in one embodiment provided in this application, a voltage regulation method 40 is provided, applied to an electronic device 10. The voltage regulation method 40 includes the following steps:
[0177] S401, The electronic device obtains the current power supply mode.
[0178] For example, an electronic device can determine the magnitude of the supply voltage to a load device based on the current power supply mode. For instance, the electronic device may include an intelligent mode and a high-performance mode. When the electronic device is in intelligent mode, it can provide a lower operating voltage (e.g., 10V) to the load device. When the electronic device is in high-performance mode, it can provide a higher operating voltage (e.g., 12V) to the load device.
[0179] S402. Electronic equipment determines whether the power supply mode is DC power supply mode.
[0180] For example, an electronic device can determine the output voltage supplied to a load device based on whether the power supply mode is a DC power supply mode (i.e., DC mode).
[0181] It should be understood that DC power supply mode can be battery power supply mode.
[0182] S4031. When the power supply mode is a non-DC power supply mode, the electronic device outputs a boost signal. At the same time, it controls the output voltage to be maintained within the threshold range of a first voltage according to the boost signal, and outputs a boost pulse width modulation signal according to the boost signal.
[0183] For example, when the power supply mode of the electronic device is a non-DC power supply mode, it means that the power supply mode is an AC power supply mode (i.e., AC mode). At this time, the input power supply voltage is relatively high. For example, the power supply voltage can be a stable system voltage of 20V, which can provide a higher output voltage to the load device. Therefore, the electronic device can output a boost signal and control the output voltage to maintain it within a threshold range of a first voltage (e.g., 12V) according to the boost signal, so that the load device can operate in high-performance mode.
[0184] It should be understood that in the embodiments of this application, the electronic device may have previously been in a battery-powered state, in smart mode, with a low output voltage. When an external power source (e.g., a charger) is plugged in, the input voltage increases, and the electronic device can enter a high-performance mode, thus increasing the output voltage to allow the load device to operate in a higher power consumption mode.
[0185] Meanwhile, in order to prevent sudden changes in the speed of load devices (such as fans), a boost pulse width modulation signal can be output based on the boost signal to synchronously adjust the duty cycle of the load devices, so that the supply voltage and duty cycle of the load devices can adapt to each other.
[0186] S404. When the power supply mode of the electronic device is DC power supply mode, obtain the remaining power of the electronic device.
[0187] For example, when the power supply mode of the electronic device is DC power supply mode, it means that the input power supply voltage is battery power, but the remaining battery power of the electronic device is uncertain, so it is necessary to obtain the remaining battery power of the electronic device.
[0188] S405. The electronic device determines whether the remaining battery power is less than the preset battery power.
[0189] For example, the electronic device can further determine the output voltage supplied to the load device based on whether the remaining power is less than a preset power (e.g., 30%).
[0190] S4061. When the remaining power is not less than a preset power, the electronic device outputs a boost signal. At the same time, it controls the output voltage to be maintained within the threshold range of a first voltage according to the boost signal, and outputs a boost pulse width modulation signal according to the boost signal.
[0191] For example, when the remaining power of the electronic device is not less than a preset power level, it indicates that the remaining power is high and it can still provide a high output voltage to the load device. Therefore, the electronic device can output a boost signal and control the output voltage to be maintained within a threshold range of a first voltage (e.g., 12V) according to the boost signal, so that the load device can operate in high-performance mode.
[0192] Meanwhile, in order to prevent sudden changes in the speed of load devices (such as fans), a boost pulse width modulation signal can be output based on the boost signal to synchronously adjust the duty cycle of the load devices, so that the supply voltage and duty cycle of the load devices can adapt to each other.
[0193] S4071. When the remaining power is less than a preset power, the electronic device outputs a step-down signal. At the same time, it controls the output voltage to be maintained within the threshold range of a second voltage according to the step-down signal, and outputs a step-down pulse width modulation signal according to the step-down signal.
[0194] It should be noted that the first voltage (e.g., 12V) is greater than the second voltage (e.g., 10V).
[0195] For example, when the remaining power of an electronic device is less than a preset power level, it indicates that the remaining power is low and cannot provide a high output voltage to the load device, but can only provide a low output voltage. Therefore, the electronic device can output a step-down signal and control the output voltage to maintain it within a threshold range of a second voltage (e.g., 10V) according to the step-down signal, so that the load device can operate in intelligent mode.
[0196] Meanwhile, in order to prevent sudden changes in the speed of load devices (such as fans), a buck pulse width modulation signal can be output based on the buck signal to synchronously adjust the duty cycle of the load devices, so that the supply voltage and duty cycle of the load devices can adapt to each other.
[0197] The following is a detailed description of the electronic device solution provided in the embodiments of this application.
[0198] Figure 12 This is a schematic diagram of the structure of another electronic device provided in this application embodiment. Figure 12As shown, in one embodiment of this application, an electronic device 10 is provided. The electronic device 10 includes a battery 142, one or more load devices 501, and a voltage regulation circuit 30. The input terminal of the voltage regulation circuit 30 is connected to the battery 142, and the output terminal of the voltage regulation circuit 30 is connected to one or more load devices 501. The battery 142 supplies power to the voltage regulation circuit 30. The one or more load devices 501 are used to perform different functions. For example, the load device 501 can be a fan or a speaker. The fan is used to dissipate heat from the electronic device 10, and the speaker is used to output sound.
[0199] It should be noted that the voltage regulation circuit 30 can also be connected to an external power supply.
[0200] For example, in this embodiment, when the voltage regulation circuit 30 is connected to an external power source or the battery 142's charge is greater than or equal to a preset charge, the voltage regulation circuit 30 increases the output voltage, thereby providing a higher supply voltage to the load device 501 so that the load device can operate in high-performance mode. When the battery 142's charge is less than the preset charge, the voltage regulation circuit 30 decreases the output voltage, thereby providing a lower supply voltage to the load device 501 so that the load device can operate in intelligent mode. This achieves both boost and buck regulation of the output voltage, meeting the different voltage requirements of the same load or different loads. The overall cost is low, better adapting to the future trend of low-cost development of electronic devices.
[0201] It should be understood that the above is only an example of the structure of electronic device 10. Electronic device 10 may also include other subsystems or devices, which can be set and modified as needed. This application embodiment does not impose any restrictions on this.
[0202] Figure 13 This is a schematic diagram of the structure of another electronic device provided in this application embodiment. Figure 13 The dashed lines indicate that the unit or module is optional; the electronic device 10 can be used to implement the voltage regulation method described in the above method embodiments. For example, the electronic device 10 can be an electronic device that integrates a voltage regulation method, such as a smartphone, smart tablet, smart computer, or smart security device.
[0203] The electronic device 10 includes one or more processors 110, which can support the implementation of the control methods in the method embodiments of the electronic device 10. The processor 110 can be a general-purpose processor or a special-purpose processor. For example, the processor 110 can be a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.
[0204] Optionally, the processor 110 can be used to control the electronic device 10, execute software programs, and process data from the software programs. The electronic device 10 may also include a communication unit 905 for inputting (receiving) and outputting (transmitting) signals.
[0205] For example, electronic device 10 may be a chip, communication unit 905 may be the input and / or output circuit of the chip, or communication unit 905 may be the communication interface of the chip, and the chip may be a component of electronic device or other electronic device.
[0206] For example, electronic device 10 can be an electronic device, and communication unit 905 can be a transceiver of electronic device 10. Alternatively, communication unit 905 can include one or more memories 902, which store program 904. Program 904 can be executed by processor 110 to generate instructions 903, causing processor 110 to execute the voltage regulation method described in the above method embodiment according to instructions 903.
[0207] Optionally, the memory 902 may also store data.
[0208] Optionally, the processor 110 can also read data stored in the memory 902, which may be stored at the same memory address as the program 904, or the data may be stored at a different memory address than the program 904.
[0209] Alternatively, the processor 110 and memory 902 can be configured separately or integrated together, for example, integrated on a system-on-chip (SOC) of an electronic device.
[0210] For example, the memory 902 can be used to store the relevant program 904 of the voltage regulation method provided in the embodiments of this application, and the processor 110 can be used to call the relevant program 904 of the voltage regulation method stored in the memory 902 when executing the voltage regulation method, and execute the voltage regulation method of the embodiments of this application.
[0211] Optionally, this application also provides a computer program product that, when executed by processor 110, implements the voltage regulation method in any method embodiment of this application.
[0212] For example, the computer program product can be stored in memory 902, such as program 904. Program 904 is eventually converted into an executable object file that can be executed by processor 110 after processing such as preprocessing, compilation, assembly and linking.
[0213] Optionally, this application also provides a chip system applied to an electronic device 10. The chip system includes one or more processors, which are used to invoke computer instructions to cause the electronic device 10 to perform a voltage regulation method.
[0214] Optionally, this application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer, implements the voltage regulation method described in any of the method embodiments of this application. The computer program may be a high-level language program or an executable object program.
[0215] For example, the computer-readable storage medium is, for instance, memory 902. Memory 902 can be volatile memory or non-volatile memory, or memory 902 can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0216] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0217] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0218] The beneficial effects that the electronic device provided in the above-described embodiments of this application can achieve can be referred to the beneficial effects corresponding to the modules provided above, and will not be repeated here.
[0219] It should be understood that the above description is merely to help those skilled in the art better understand the embodiments of this application, and is not intended to limit the scope of the embodiments of this application. Based on the examples given above, those skilled in the art can obviously make various equivalent modifications or changes. For example, some steps in the various embodiments of the above detection method may be unnecessary, or new steps may be added. Alternatively, any combination of two or more of the above embodiments may be used. Such modifications, changes, or combinations also fall within the scope of the embodiments of this application. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0220] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0221] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0222] It should also be understood that the above description of the embodiments of this application focuses on highlighting the differences between the various embodiments. Any similarities or differences not mentioned can be referred to each other. For the sake of brevity, they will not be repeated here.
[0223] It should also be understood that, in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0224] It should also be understood that in the embodiments of this application, "pre-setting" or "pre-defining" can be achieved by pre-saving the corresponding code, table or other means that can be used to indicate relevant information in the device (e.g., including electronic devices), and this application does not limit the specific implementation method.
[0225] It should also be understood that the methods, situations, categories, and classifications of embodiments in this application are for the convenience of description only and should not constitute a special limitation. Various methods, categories, situations, and features in embodiments can be combined without contradiction.
[0226] It should also be understood that, in the various embodiments of this application, unless otherwise specified or in case of logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0227] Finally, it should be noted that the above descriptions are merely 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 technical scope 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 protection of the claims. In conclusion, the above descriptions are merely preferred embodiments of the technical solutions of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A voltage regulation circuit, characterized in that, It includes a control module, a step-down module, and a regulation module; The control module is used to output an enable signal and a buck regulation signal according to the buck signal, and is also used to output the enable signal and the boost regulation signal according to the boost signal; The input terminal of the step-down module is connected to the first terminal of the control module. The step-down module is used to obtain the output voltage according to the enable signal and adjust the output voltage according to the feedback voltage. The first end of the adjustment module is connected to the second end of the control module, and the second end of the adjustment module is connected to the output end of the step-down module. The adjustment module is used to increase the feedback voltage according to the step-down adjustment signal, so that the step-down module decreases the output voltage according to the feedback voltage. The adjustment module is also used to reduce the feedback voltage according to the boost adjustment signal, so that the buck module increases the output voltage according to the feedback voltage.
2. The voltage regulation circuit as described in claim 1, characterized in that, The step-down module includes a step-down chip, a first resistor, and a second resistor; The enable terminal of the step-down chip is connected to the control module, the feedback terminal of the step-down chip is connected to the first terminal of the first resistor and the first terminal of the second resistor, the second terminal of the first resistor is connected to the output terminal of the step-down chip, and the second terminal of the second resistor is grounded.
3. The voltage regulation circuit as described in claim 1 or 2, characterized in that, The adjustment module includes a first MOSFET and a third resistor; The gate of the first MOSFET is connected to the control module, the drain of the first MOSFET is connected to the first end of the third resistor, the second end of the third resistor is connected to the feedback terminal of the buck module, and the source of the first MOSFET is grounded.
4. The voltage regulation circuit as described in claim 3, characterized in that, The first general purpose input / output port of the control module is connected to the gate of the first MOSFET.
5. The voltage regulation circuit as described in claim 3 or 4, characterized in that, The adjustment module also includes a second MOSFET and a fourth resistor; The gate of the second MOSFET is connected to the control module, the drain of the second MOSFET is connected to the first end of the fourth resistor, the second end of the fourth resistor is connected to the feedback terminal of the buck module, and the source of the second MOSFET is grounded.
6. The voltage regulation circuit as described in claim 5, characterized in that, The second general-purpose input / output port of the control module is connected to the gate of the second MOSFET.
7. The voltage regulation circuit according to any one of claims 1-6, characterized in that, The control module includes an embedded controller.
8. The voltage regulation circuit according to any one of claims 1-7, characterized in that, The voltage regulation circuit also includes a fan module; The control module is also configured to output a buck pulse width modulation signal according to the buck signal, and to output a boost pulse width modulation signal according to the boost signal; The first end of the fan module is connected to the output end of the buck module, and the second end of the fan module is connected to the third end of the control module. The fan module is used to operate according to the output voltage and to adjust the duty cycle according to the buck pulse width modulation signal and the boost pulse width modulation signal.
9. The voltage regulation circuit according to any one of claims 1-8, characterized in that, The voltage regulation circuit also includes a speaker module; The speaker module is connected to the output terminal of the step-down module, and the speaker module is used to operate according to the output voltage.
10. A voltage regulation method based on the voltage regulation circuit according to any one of claims 1-9, characterized in that, The voltage regulation method, applied to electronic devices, includes: The current power supply mode of the electronic device is obtained. When the power supply mode is a non-DC power supply mode, a boost signal is output, and the output voltage is controlled to be maintained within a threshold range of a first voltage according to the boost signal. When the power supply mode is DC power supply mode, obtain the remaining power of the electronic device; When the remaining power of the electronic device is not less than the preset power, the boost signal is output, and the output voltage is controlled to be maintained within the threshold range of the first voltage according to the boost signal; When the remaining power of the electronic device is less than the preset power, it outputs a step-down signal and controls the output voltage to be maintained within a threshold range of a second voltage according to the step-down signal; the first voltage is greater than the second voltage.
11. The voltage regulation method as described in claim 10, characterized in that, Before obtaining the remaining power of the electronic device when the power supply mode is DC power supply mode, the method further includes: A boost pulse width modulation signal is output based on the boost signal.
12. The voltage regulation method as described in claim 10 or 11, characterized in that, Before outputting the step-down signal when the remaining power of the electronic device is less than the preset power, the method further includes: A boost pulse width modulation signal is output based on the boost signal.
13. The voltage regulation method according to any one of claims 10-12, characterized in that, After controlling the output voltage to remain within the threshold range of the second voltage according to the buck signal, the method further includes: A step-down pulse width modulation signal is output based on the step-down signal.
14. An electronic device, characterized in that, The electronic device includes a battery, one or more load devices, and a voltage regulation circuit as described in any one of claims 1 to 9, wherein the input terminal of the voltage regulation circuit is connected to the battery, and the output terminal of the voltage regulation circuit is connected to one or more of the load devices. The battery is used to supply power to the voltage regulation circuit; The one or more load devices are used to perform different functions.
15. An electronic device, characterized in that, The electronic device includes: one or more processors, and memory; The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 10-13.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 10-13.