Power supply voltage switching circuit, control method thereof and electronic equipment
By designing a power supply voltage switching circuit, using a constant current buck module and a voltage regulation module, switching of various voltage values is achieved, solving the problem of frequent replacement of power supply equipment in the prior art and reducing power supply costs.
Patent Information
- Application Number
- CN202510116434.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-01-24
AI Technical Summary
When testing electronic equipment with different power supply voltage requirements, the prior art requires frequent replacement of power supply equipment, resulting in high power supply costs and inconvenient switching.
A power supply voltage switching circuit is designed, including a constant current buck module, a voltage regulation module and a controller. Through the voltage regulation module, the target power supply voltage with different voltage values is output to facilitate switching.
It realizes automatic and convenient adjustment of different target resistance values and outputs target power supply voltages of different values, which facilitates switching and reduces power supply costs.
Smart Images

Figure CN120016423A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power supply, and in particular to a power supply voltage switching circuit and a control method thereof, and an electronic device. Background Art
[0002] Precision electronic equipment requires a reliable and efficient power supply system to achieve optimal performance. With the rapid development of electronic technology, the variety of electronic products is becoming more and more abundant. Various electronic products must be tested before leaving the factory to ensure that the electronic products can start and work normally.
[0003] At present, different types of electronic devices have different power supply voltage requirements. For electronic devices with specific power supply voltage requirements, a power supply output target power supply voltage needs to be specially configured. When testing electronic devices with different power supply voltage requirements, it is necessary to re-determine the power supply voltage requirements of the electronic device to be tested, and then configure the target power supply voltage required by the new power supply output. Different electronic devices require different power supply voltages. Therefore, test manufacturers often need to be equipped with a variety of power supply equipment, which increases the power supply cost and is inconvenient to switch the power supply voltage by replacing the power supply equipment. Summary of the invention
[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, a power supply voltage switching circuit and a control method thereof, and an electronic device can output a plurality of target power supply voltages with different voltage values through a voltage regulating module, which is convenient for switching the target power supply voltage and reducing the power supply cost.
[0005] In a first aspect, an embodiment of the present application provides a power supply voltage switching circuit, comprising:
[0006] A constant current buck module, wherein the input end of the constant current buck module is electrically connected to the power input end;
[0007] A voltage regulating module, wherein the input end of the voltage regulating module is connected to the output end of the constant current buck module; the voltage regulating module comprises: a first access control unit, a second access control unit, and a third access control unit connected in sequence; a first resistor unit connected between the two ends of the first access control unit, a second resistor unit connected between the two ends of the second access control unit, and a third resistor unit connected between the two ends of the third access control unit;
[0008] A controller, the controller being electrically connected to the voltage regulating module;
[0009] The controller is used to: when the target resistance value determined according to the constant circuit current and the target power supply voltage is less than or equal to the resistance adjustment threshold, determine the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal according to the coefficient information on each bit of the target resistance value, and simultaneously control the on-off state of the first access control unit, the second access control unit, and the third access control unit, respectively, and determine the first resistance value of the first resistance unit, the second resistance value of the second resistance unit, and the third resistance value of the third resistance unit, so that the target output end outputs the target power supply voltage; wherein the sum of the first resistance value, the second resistance value, and the third resistance value is equal to the target resistance value.
[0010] In a second aspect, an embodiment of the present application provides a control method for a power supply voltage switching circuit, which is applied to a controller of a power supply voltage switching circuit as described in any one of the embodiments of the first aspect; the power supply voltage switching circuit further includes: a constant current buck module, a voltage regulating module electrically connected to the controller; the voltage regulating module includes: a first access control unit, a second access control unit, and a third access control unit connected in sequence; a first resistor unit connected between two ends of the first access control unit, a second resistor unit connected between two ends of the second access control unit, and a third resistor unit connected between two ends of the third access control unit;
[0011] The method comprises:
[0012] When the target resistance value determined according to the constant circuit current and the target power supply voltage is less than or equal to the resistance adjustment threshold, a first resistance adjustment signal, a second resistance adjustment signal, and a third resistance adjustment signal are determined according to coefficient information on each digit of the target resistance value;
[0013] At the same time, the on-off state of the first access control unit is controlled according to the first resistance adjustment signal, and the first resistance value of the first resistance unit is determined; the on-off state of the second access control unit is controlled according to the second resistance adjustment signal, and the second resistance value of the second resistance unit is determined; the on-off state of the third access control unit is controlled according to the third resistance adjustment signal, and the third resistance value of the third resistance unit is determined, so that the target output end outputs the target power supply voltage; wherein the sum of the first resistance value, the second resistance value and the third resistance value is equal to the target resistance value.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising a power supply voltage switching circuit as described in any one of the embodiments of the first aspect.
[0015] The embodiment of the present application includes: the power supply voltage switching circuit includes: a constant current buck module, a voltage regulating module, and a controller; wherein the input end of the constant current buck module is electrically connected to the power supply input end; the input end of the voltage regulating module is connected to the output end of the constant current buck module; the voltage regulating module includes: a first access control unit, a second access control unit, and a third access control unit connected in sequence; a first resistance unit connected between the two ends of the first access control unit, a second resistance unit connected between the two ends of the second access control unit, and a third resistance unit connected between the two ends of the third access control unit; the controller is electrically connected to the voltage regulating module; when the power supply voltage switching circuit works, through the controller, when the target resistance value determined according to the constant circuit current and the target power supply voltage is less than or equal to the resistance adjustment threshold, according to the coefficient information on each digit of the target resistance value, it is determined After determining the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal, the on-off states of the first access control unit, the second access control unit, and the third access control unit are controlled respectively, and the first resistance value of the first resistance unit, the second resistance value of the second resistance unit, and the third resistance value of the third resistance unit are determined, so that the target output terminal outputs the target power supply voltage; wherein the sum of the first resistance value, the second resistance value, and the third resistance value is equal to the target resistance value; the embodiment of the present application obtains the target resistance value by adjusting the first resistance unit, the second resistance unit, and the third resistance unit in the voltage adjustment module, and outputs the target power supply voltage based on the voltage dividing effect of the voltage adjustment module with the resistance value being the target resistance value; based on the constant circuit current, by automatically and conveniently adjusting different target resistance values, target power supply voltages of different values are output, which is convenient for switching the target power supply voltage and reducing the power supply cost. That is to say, the embodiment of the present application can output a plurality of target power supply voltages with different voltage values through the voltage adjustment module, which is convenient for switching the target power supply voltage and reducing the power supply cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a schematic diagram of the structure of a power supply voltage switching circuit provided by an embodiment of the present application;
[0017] Figure 2 is a specific structural diagram of a power supply voltage switching circuit provided by an embodiment of the present application;
[0018] Figure 3 is a schematic diagram of a specific structure of a voltage regulation module provided by an embodiment of the present application;
[0019] Figure 4 It is a specific structural diagram of a filtering module, a sampling module, a detection module, and a MOS protection module provided by an embodiment of the present application;
[0020] Figure 5 It is a specific structural diagram of a MOS buck module provided by an embodiment of the present application;
[0021] Figure 6 It is a schematic diagram of the steps of a control method of a power supply voltage switching circuit provided by an embodiment of the present application;
[0022] Figure 7 It is a specific schematic diagram of a first preset branch status table, a second preset branch status table, and a second preset branch status table provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0024] It should be noted that although a logical order is shown in the flowchart in the description of the present application, in some cases, the steps shown or described may be performed in an order different from that in the flowchart. In the description of the present application, a number of means one or more, and a plurality of means two or more. The description of "first" and "second" is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0026] The present application provides a power supply voltage switching circuit and a control method thereof, and an electronic device, and relates to the technical field of power supply. The power supply voltage switching circuit includes: a constant current buck module, a voltage regulating module, and a controller; the input end of the constant current buck module is electrically connected to the power supply input end; the input end of the voltage regulating module is connected to the output end of the constant current buck module; the voltage regulating module includes: a first access control unit, a second access control unit, and a third access control unit connected in sequence; a first resistor unit connected between the two ends of the first access control unit, a second resistor unit connected between the two ends of the second access control unit, and a third resistor unit connected between the two ends of the third access control unit; the controller is electrically connected to the voltage regulating module; the present application can output a plurality of target power supply voltages with different voltage values through the voltage regulating module, which is convenient for switching the target power supply voltage and reducing the power supply cost.
[0027] like Figure 1As shown, the power supply voltage switching circuit 1000 includes: a constant current buck module 200, a voltage regulating module 100, and a controller 300; wherein the input end of the constant current buck module 200 is electrically connected to the power supply input end Vin; the input end of the voltage regulating module 100 is connected to the output end of the constant current buck module 200; the voltage regulating module 100 includes: a first access control unit 110, a second access control unit 120, and a third access control unit 130 connected in sequence; a first resistor unit 140 connected between the two ends of the first access control unit 110, a second resistor unit 150 connected between the two ends of the second access control unit 120, and a third resistor unit 160 connected between the two ends of the third access control unit 130; the controller 300 is electrically connected to the voltage regulating module 100.
[0028] Specifically, the power input terminal Vin is used to input an initial voltage to provide power to the constant current buck module 200 and the MOS buck module 900 so that the constant current buck module 200 and the MOS buck module 900 can work normally. The application does not make any specific restrictions on the size of the initial voltage.
[0029] Specifically, the constant current buck module 200 is used to operate within a wider input voltage range, has a voltage stabilization function and provides a constant circuit current.
[0030] Specifically, Figure 3 As shown, Figure 3 It is a schematic diagram of the specific structure of a voltage regulation module 100 provided in one embodiment of the present application.
[0031] Specifically, the first access control unit 110 includes: a first access switch K1, a second access switch K2, and a third access switch K3; the first end of the first access switch K1 is connected to the output end of the constant current buck module 200, and the second end of the first access switch K1 is connected to the second end of the first resistor unit 140; the second access switch K2 is connected between the first end of the first access switch K1 and the first end of the first resistor unit 140; the third access switch K3 is connected between the second end of the first access switch K1 and the second end of the first resistor unit 140.
[0032] Specifically, the second access control unit 120 includes: a fourth access switch K4, a fifth access switch K5, and a sixth access switch K6; a first end of the fourth access switch K4 is connected to the second end of the first access switch K1; a second end of the fourth access switch K4 is connected to the second end of the second resistor unit 150; the fifth access switch K5 is connected between the first end of the fourth access switch K4 and the first end of the second resistor unit 150; and the sixth access switch K6 is connected between the second end of the fourth access switch K4 and the second end of the second resistor unit 150.
[0033] Specifically, the third access control unit 130 includes: a seventh access switch K7, an eighth access switch K8, and a ninth access switch K9; a first end of the seventh access switch K7 is connected to a second end of the fourth access switch K4; a second end of the seventh access switch K7 is connected to a second end of the third resistor unit 160; the eighth access switch K8 is connected between a first end of the seventh access switch K7 and a first end of the third resistor unit 160; and the ninth access switch K9 is connected between a second end of the seventh access switch K7 and a second end of the third resistor unit 160.
[0034] Specifically, the first resistor unit 140 includes: multiple first resistor branches A connected in parallel, each first resistor branch A (numbered A1, A2, ...) has a different total branch resistance; each first resistor branch A is connected in series with a first selection switch Ka (numbered Ka1, Ka2, ...).
[0035] Specifically, the second resistor unit 150 includes: a plurality of second resistor branches B in parallel (numbered B1, B2, ...), each second resistor branch B having a different total branch resistance; each second resistor branch B is connected in series with a second selection switch Kb (numbered Kb1, Kb2, ...).
[0036] Specifically, the third resistor unit 160 includes: a plurality of third resistor branches C in parallel (numbered sequentially as C1, C2, ...), each third resistor branch C having a different total branch resistance; each third resistor branch C is connected in series with a third selection switch Kc (numbered sequentially as Kc1, Kc2, ...).
[0037] The voltage regulating module 100 can automatically and conveniently adjust different target resistance values.
[0038] The controller 300 is used to: when the target resistance value determined according to the constant circuit current and the target power supply voltage is less than or equal to the resistance adjustment threshold, determine the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal according to the coefficient information on each digit of the target resistance value, and control the on-off state of the first access control unit 110, the second access control unit 120, and the third access control unit 130 respectively, determine the first resistance value of the first resistance unit 140, the second resistance value of the second resistance unit 150, and the third resistance value of the third resistance unit 160, so that the target output terminal Vout outputs the target power supply voltage; wherein the sum of the first resistance value, the second resistance value, and the third resistance value is equal to the target resistance value. The embodiment of the present application obtains the target resistance value by adjusting the first resistance unit 140, the second resistance unit 150, and the third resistance unit 160 in the voltage adjustment module 100, and outputs the target power supply voltage based on the voltage dividing effect of the voltage adjustment module 100 with the resistance value being the target resistance value; based on the constant circuit current, by automatically and conveniently adjusting different target resistance values, the target power supply voltage with different values is output, which is convenient for switching the target power supply voltage and reducing the power supply cost. Therefore, the controller 300 of the embodiment of the present application can output a plurality of target power supply voltages with different voltage values through the voltage regulation module 100, which facilitates switching of the target power supply voltage and reduces the power supply cost.
[0039] like Figure 2 As shown, according to some embodiments of the present application, the power supply voltage switching circuit 1000 further includes: an output interface module 400 and a filtering module 500 .
[0040] The filter module 500 is connected between the output end of the voltage regulation module 100 and the input end of the output interface module 400. Specifically, Figure 4 As shown, the filter module 500 includes: a plurality of filter capacitors connected in parallel; the first end of each filter capacitor is grounded, and the second end of each filter capacitor is electrically connected to the output end of the voltage regulating module 100. The filter module 500 is used to effectively improve the power quality and reduce ripple and noise.
[0041] The output interface module 400 has an input terminal electrically connected to a target output terminal Vout; the output terminal of the output interface module 400 is used to connect to the device under test and input the target power supply voltage to the device under test; the target output terminal Vout is used to output the target power supply voltage.
[0042] like Figure 2As shown, according to some embodiments of the present application, the power supply voltage switching circuit 1000 further includes: a sampling module 600, a detection module 700, a MOS protection module 800, and a MOS voltage reduction module 900. Specifically, the sampling module 600 is connected between the output end of the filter module 500 and the input end of the output interface module 400; the sampling module 600 is used to obtain a sampling signal; the input end of the detection module 700 is connected to the output end of the sampling module 600; the output end of the detection module 700 is connected to the controller 300; the detection module 700 is used to detect the voltage value and current value of the sampling signal; the MOS protection module 800 is electrically connected to the controller 300 and to the sampling module 600; the input end of the MOS voltage reduction module 900 is electrically connected to the power supply input end Vin; the output end of the MOS voltage reduction module 900 is electrically connected to the MOS protection module 800.
[0043] Specifically, the MOS protection module 800 is used to implement overcurrent protection when a fault occurs in the circuit, resulting in excessive current or short circuit, to prevent the device from being damaged due to overcurrent. The MOS step-down module 900 is used to supply power to the MOS protection module 800.
[0044] Specifically, during the operation of the power supply voltage switching circuit 1000, when a fault occurs in the circuit causing excessive current, the detection module 700 can detect a sampling signal for detecting overcurrent; thereby, the sampling signal for overcurrent is fed back to the controller 300, and the controller 300 controls the MOS protection module 800 to operate to achieve overcurrent protection.
[0045] Specifically, Figure 4 As shown, the detection module 700 includes a first chip U1, the model of the first chip U1 is INA226, which is a high-precision current, voltage and power monitoring chip. The numbering of each pin of the INA226 chip is as follows Figure 4 As shown, the functions of each pin of the INA226 chip and its surrounding circuits are not described in detail here. The sampling module 600 includes: a sampling chip, a sampling capacitor C7 connected in parallel with the sampling chip; the second end of the sampling chip (i.e., the SEN+ end) is connected to the ninth pin of the INA226 chip, the third end of the sampling chip (i.e., the SEN- end) is connected to the tenth pin of the INA226 chip, and the second end of the sampling chip is respectively connected to the output end of the filter module 500 and one end of the MOS protection module 800; the first end of the sampling chip is respectively connected to the input end of the output interface module 400 and the other end of the MOS protection module 800. The MOS protection module 800 is composed of: a first switch tube, a second switch tube, a third switch tube, a fourth switch tube, a fifth switch tube, five resistors (R19, R18, R17, R26, R27), a first diode, a second diode, a third diode, and a fourth diode; for specific connection relationships, refer to Figure 4The two VSYS terminals of the MOS protection module 800 are connected to the VSYS terminal of the MOS step-down module 900; and the two VSYS_SEL terminals of the MOS protection module 800 are connected to the controller 300. Figure 5 As shown, the MOS buck module 900 includes: a seventh chip U7, the model of the seventh chip U7 is MP2456, which is a single-chip buck switch mode converter, and the numbering of each pin of the MP2456 chip is as follows: Figure 5 As shown, the functions of each pin of MP2456 and its surrounding circuits are not described in detail here.
[0046] like Figure 2 As shown, according to some embodiments of the present application, the power supply voltage switching circuit 1000 also includes: an alarm module D electrically connected to the controller 300; which is used to control an alarm operation in response to a generated alarm prompt signal when the target resistance value is greater than the resistance adjustment threshold, so as to prompt the technician that the target resistance value exceeds the resistance adjustment threshold that can be adjusted by the voltage adjustment module 100.
[0047] like Figure 2 As shown, the power supply voltage switching circuit 1000 also includes: a temperature detection module F, a data storage module G, and a display module E, which are electrically connected to the controller 300 respectively. Specifically, the data storage module G is implemented by a storage chip of model BL24C256A, and the data storage module G is used to store data received by the controller 300. The temperature detection module F is implemented by a chip of model TMP112AIDRLR, and the temperature detection module F is used to detect the temperature in the circuit, so as to detect the abnormal circuit temperature in time when a fault occurs in the circuit or the current generates too much heat, thereby improving the safety of the power supply voltage switching circuit 1000.
[0048] Those skilled in the art will appreciate that the system structure shown in the figure does not constitute a limitation on the embodiments of the present application, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0049] Those skilled in the art will appreciate that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of the system architecture and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
[0050] Based on the above system structure, various embodiments of the control method of the power supply voltage switching circuit of the present application are proposed below.
[0051] like Figure 6As shown, the control method of the power supply voltage switching circuit can be applied to Figure 1 The controller of the power supply voltage switching circuit shown in the figure, the power supply voltage switching circuit also includes: a constant current buck module, a voltage regulating module electrically connected to the controller; the voltage regulating module includes: a first access control unit, a second access control unit, and a third access control unit connected in sequence; a first resistor unit connected between the two ends of the first access control unit, a second resistor unit connected between the two ends of the second access control unit, and a third resistor unit connected between the two ends of the third access control unit; the control method of the power supply voltage switching circuit may include but is not limited to steps S110 to S120.
[0052] Step S110: When the target resistance value determined according to the constant circuit current and the target power supply voltage is less than or equal to the resistance adjustment threshold, the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal are determined according to the coefficient information on each bit of the target resistance value.
[0053] Step S120: simultaneously controlling the on-off state of the first access control unit according to the first resistance adjustment signal and determining the first resistance value of the first resistance unit; controlling the on-off state of the second access control unit according to the second resistance adjustment signal and determining the second resistance value of the second resistance unit; controlling the on-off state of the third access control unit according to the third resistance adjustment signal and determining the third resistance value of the third resistance unit, so that the target output terminal outputs the target power supply voltage; wherein the sum of the first resistance value, the second resistance value and the third resistance value is equal to the target resistance value.
[0054] It should be noted that the resistance adjustment threshold is determined by the sum of the maximum adjustment resistance of the first resistance unit, the maximum adjustment resistance of the second resistance unit, and the maximum adjustment resistance of the third resistance unit in the voltage adjustment module. The structures of the first resistance unit, the second resistance unit, and the third resistance unit in the voltage adjustment module can be set according to actual needs. This application does not make specific restrictions on the first resistance unit, the second resistance unit, and the third resistance unit. Therefore, there is no specific restriction on the maximum adjustment resistance. It is understandable that after configuring the voltage adjustment module, the resistance adjustment threshold can be tested and recorded.
[0055] Further explaining step S110, determining the target resistance value according to the constant circuit current and the target power supply voltage includes: obtaining the target power supply voltage input by the technician through the host computer and the pre-recorded resistance adjustment threshold; in response to the voltage output signal, according to Ohm's law, dividing the target power supply voltage by the constant circuit current to obtain the target resistance value; comparing the target resistance value with the resistance adjustment threshold to obtain a comparison result; performing further resistance adjustment processing or alarm processing based on the comparison result. When the calculated target resistance value is less than or equal to the resistance adjustment threshold, the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal are determined according to the coefficient information on each digit of the target resistance value.
[0056] It can be understood that the target resistance value that can be adjusted in the embodiment of the present application is a positive integer. When the calculated target resistance value is not an integer, it is rounded off to obtain an integer target resistance value.
[0057] According to some embodiments of the present application, the power supply voltage switching circuit also includes an alarm module electrically connected to the controller; in step S110, after determining the target resistance value according to the constant circuit current and the target power supply voltage, the control method also includes: when the target resistance value is greater than the resistance adjustment threshold, generating an alarm prompt signal and feeding it back to the host computer; and controlling the alarm module to work according to the alarm prompt signal. This can promptly prompt the technician that the power supply voltage switching circuit cannot output the currently set target power supply voltage, and the setting is incorrect and the configuration needs to be modified.
[0058] Through steps S110 to S120, when the power supply voltage switching circuit is working, through the controller, first, when the target resistance value determined according to the constant circuit current and the target power supply voltage is less than or equal to the resistance adjustment threshold, the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal are determined according to the coefficient information on each digit of the target resistance value; then, the on-off state of the first access control unit is controlled according to the first resistance adjustment signal to determine the first resistance value of the first resistance unit; the on-off state of the second access control unit is controlled according to the second resistance adjustment signal to determine the second resistance value of the second resistance unit; and the on-off state of the second access control unit is controlled according to the third resistance adjustment signal to determine the second resistance value of the second resistance unit. The signal controls the on-off state of the third access control unit and determines the third resistance value of the third resistor unit, so that the target output terminal outputs the target power supply voltage; wherein the sum of the first resistance value, the second resistance value and the third resistance value is equal to the target resistance value; the embodiment of the present application adjusts the first resistance unit, the second resistance unit and the third resistance unit in the voltage regulating module to obtain the target resistance value, and outputs the target power supply voltage based on the voltage dividing effect of the voltage regulating module with the resistance value being the target resistance value; based on the constant circuit current, by automatically and conveniently adjusting different target resistance values, target power supply voltages with different values are output, which is convenient for switching the target power supply voltage and reducing the power supply cost. That is to say, the embodiment of the present application can output a plurality of target power supply voltages with different voltage values through the voltage regulating module, which is convenient for switching the target power supply voltage and reducing the power supply cost.
[0059] According to some embodiments of the present application, the coefficient information on each digit includes: a high-order coefficient, a middle-order coefficient, and a low-order coefficient. Further illustrating step S110, wherein the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal are determined according to the coefficient information on each digit of the target resistance value, including but not limited to steps S210 to S240.
[0060] Step S210: performing data splitting processing on the target resistance value, and obtaining the low-order coefficient, the middle-order coefficient, and the high-order coefficient in order from small to large.
[0061] Step S220: when the high-order coefficient is not zero, determining that the first access control signal is 1, determining the first selection signal according to the high-order coefficient and the first preset branch state table, and generating the first resistance adjustment signal according to the first access control signal and the first selection signal.
[0062] Step S230: when the median coefficient is not zero, determine that the second access control signal is 1, determine the second selection signal according to the median coefficient and the second preset branch state table, and generate a second resistance adjustment signal according to the second access control signal and the second selection signal.
[0063] Step S240: when the low-order coefficient is not zero, determine that the third access control signal is 1, determine the third selection signal according to the low-order coefficient and the third preset branch state table, and generate a third resistance adjustment signal according to the third access control signal and the third selection signal.
[0064] To further explain step S210, specifically, the coefficient information on each digit includes: a high-order coefficient, a median coefficient, and a low-order coefficient. Specifically, the low-order coefficient refers to the value on the unit digit of the target resistance value, the median coefficient refers to the value on the tens digit of the target resistance value, and the high-order coefficient refers to the value on the thousands and hundreds digits of the target resistance value. The data splitting process of step S210 is illustrated as follows.
[0065] Example 1: When the target resistance value is 9 ohms, the low coefficient is 9, the middle coefficient is 0, and the high coefficient is 0.
[0066] Example 2: When the target resistance value is 10 ohms, the low coefficient is 0, the middle coefficient is 1, and the high coefficient is 0.
[0067] Example 3: When the target resistance value is 999 ohms, the low coefficient is 9, the middle coefficient is 9, and the high coefficient is 9.
[0068] Example 4: When the target resistance value is 1199 ohms, the low coefficient is 9, the middle coefficient is 9, and the high coefficient is 11.
[0069] Further explanation of step S220, specifically, the first selection signal is determined according to the high-order coefficient and the first preset branch state table: the corresponding position to be modified is determined according to the high-order coefficient, and the first initial control signal of all zeros is obtained from the first preset branch state table; the 0 at the position to be modified of the first initial control signal of all zeros is modified to 1 to obtain the first selection signal. The data length of the first initial control signal and the first selection signal is the same as the number of the first resistance branches in the first resistance unit. For example, if there are 15 first resistance branches in the first resistance unit, the first initial control signal is: 0000000000000000. The first selection signal corresponds to the on-off state of the first selection switch in the first resistance branch.
[0070] Further explanation of step S230, specifically, the second selection signal is determined according to the high-order coefficient and the second preset branch state table: the corresponding position to be modified is determined according to the middle-order coefficient, and the second initial control signal of all zero is obtained from the second preset branch state table; the 0 at the position to be modified of the second initial control signal of all zero is modified to 1 to obtain the second selection signal. The data length of the second initial control signal and the second selection signal is the same as the number of the second resistance branches in the second resistance unit. For example, if there are 9 second resistance branches in the second resistance unit, the second initial control signal is: 000000000. The second selection signal corresponds to the on-off state of the first selection switch in the second resistance branch.
[0071] Further explaining step S240, specifically, determining the third selection signal according to the high-order coefficient and the third preset branch state table is: determining the corresponding position to be modified according to the low-order coefficient, obtaining the third initial control signal of all zeros from the third preset branch state table; modifying the 0 at the position to be modified of the third initial control signal of all zeros to 1, and obtaining the third selection signal. The data length of the third initial control signal and the third selection signal is the same as the number of the third resistance branches in the third resistance unit. For example, if there are 9 third resistance branches in the third resistance unit, the third initial control signal is: 000000000. The third selection signal corresponds to the on-off state of the first selection switch in the third resistance branch.
[0072] Based on Example 4, an example is given to illustrate steps S220 to S240.
[0073] like Figure 7 As shown, Example 5:
[0074] First, obtain the first preset branch state table, the second preset branch state table, and the third preset branch state table as follows: Figure 7 As shown, the first initial control signal is determined to be: 000000000000000; the second initial control signal is: 000000000; the third initial control signal is: 000000000. When the target resistance value is 1199 ohms, the low coefficient is determined to be 9, the middle coefficient is 9, and the high coefficient is 11.
[0075] Secondly, when the high-order coefficient is 11, the first access control signal is determined to be 1, and the 0 at the position to be modified (the 11th bit) in the first initial control signal of all zeros is modified to 1, and the first selection signal is obtained as: 000000000010000; thereby, the first resistance adjustment signal is generated according to the first access control signal and the first selection signal.
[0076] At the same time, when the median coefficient is 9, the second access control signal is determined to be 1, and the 0 at the to-be-modified position (9th bit) in the second initial control signal of all zeros is modified to 1, and the second selection signal is obtained as: 000000001; thereby generating a second resistance adjustment signal according to the second access control signal and the second selection signal.
[0077] At the same time, when the low-order coefficient is 9, the third access control signal is determined to be 1, and the 0 at the position to be modified (9th bit) in the third initial control signal of all zeros is modified to 1, and the third selection signal is obtained as: 000000001; thereby, a third resistance adjustment signal is generated according to the third access control signal and the second selection signal.
[0078] According to some embodiments of the present application, step S110 is further described, wherein the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal are determined based on the coefficient information on each bit of the target resistance value, and also includes but is not limited to steps S250 to S270.
[0079] Step S250: when the high-order coefficient is zero, determining that the first access control signal is 0, and generating a first resistance adjustment signal according to the first access control signal.
[0080] Step S260: when the median coefficient is zero, determining that the second access control signal is 0, and generating a second resistance adjustment signal according to the second access control signal.
[0081] Step S270: when the low-order coefficient is zero, determining that the third access control signal is 0, and generating a third resistance adjustment signal according to the third access control signal.
[0082] Specifically, it can be understood that when the high-order coefficient is zero, the first access control signal only includes the first resistance adjustment signal; when the middle-order coefficient is zero, the second access control signal only includes the second resistance adjustment signal; when the low-order coefficient is zero, the third access control signal only includes the third resistance adjustment signal.
[0083] Based on Example 2, an example is given to illustrate the process of determining the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal in combination with steps S220 to S270.
[0084] Example 6:
[0085] First, obtain the first preset branch state table, the second preset branch state table, and the third preset branch state table as follows: Figure 7As shown; determine that the first initial control signal is: 000000000000000; the second initial control signal is: 000000000; the third initial control signal is: 000000000. Based on Example 2, it is obtained that when the target resistance value is 10 ohms, the low-order coefficient is 0, the middle-order coefficient is 1, and the high-order coefficient is 0. It should be noted that the total branch resistance of the first resistance branch in the first preset branch state table increases by 100 ohms in sequence according to the numbering order, and the number of first resistance branches in the first resistance unit can be set to multiple, and the present application does not limit this. The total branch resistance of the second resistance branch in the second preset branch state table increases by 10 ohms in sequence according to the numbering order, and the number of second resistance branches in the second resistance unit is at most 9; the total branch resistance of the third resistance branch in the third preset branch state table increases by 1 ohm in sequence according to the numbering order, and the number of third resistance branches in the third resistance unit is at most 9.
[0086] Secondly, when the high-order coefficient is 0, the first access control signal is determined to be 0, and a first resistance adjustment signal is generated according to the first access control signal.
[0087] At the same time, when the median coefficient is 1, the second access control signal is determined to be 1, and the 0 at the to-be-modified position (bit 1) in the all-zero second initial control signal is modified to 1, and the second selection signal is obtained as: 100000000; thereby generating a second resistance adjustment signal according to the second access control signal and the second selection signal.
[0088] At the same time, when the low-order coefficient is 0, the first access control signal is determined to be 0, and a first resistance adjustment signal is generated according to the first access control signal.
[0089] Through steps S210 to S270, the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal are determined, so as to simultaneously control the on / off states of the first access control unit, the second access control unit, and the third access control unit, respectively, determine the first resistance value of the first resistance unit, the second resistance value of the second resistance unit, and the third resistance value of the third resistance unit, so that the voltage adjustment module has a target resistance value, thereby outputting a target power supply voltage. It is convenient to switch the target power supply voltage and reduce the power supply cost.
[0090] According to some embodiments of the present application, the first selection signal includes a high level signal and a low level signal, and the first selection signal is used to indicate the on-off state of each first selection switch in the first resistance unit.
[0091] Further explanation of step S120, wherein the on-off state of the first access control unit is controlled according to the first resistance adjustment signal, and the first resistance value of the first resistance unit is determined, includes but is not limited to steps S310 to S330.
[0092] Step S310: obtaining a first access control signal from a first resistance adjustment signal.
[0093] Step S320: when the first access control signal is 0, the first access switch is controlled to be closed, and the second access switch and the third access switch are controlled to be opened, so that the first resistance unit is not connected.
[0094] Step S330: When the first access control signal is 1, the first access switch is controlled to be disconnected, and the second access switch and the third access switch are controlled to be closed, so that the first resistance unit is connected; a first selection signal is obtained; in response to a high-level signal of the first selection signal, the corresponding first selection switch in the first resistance unit is controlled to be closed; in response to a low-level signal of the first selection signal, the corresponding first selection switch in the first resistance unit is controlled to be disconnected, and a first resistance value of the first resistance unit is determined.
[0095] It can be understood that controlling the on-off state of the second access control unit and determining the second resistance value of the second resistance unit according to the second resistance adjustment signal includes: obtaining the second access control signal from the second resistance adjustment signal; when the second access control signal is 0, controlling the fourth access switch to be closed, controlling the fifth access switch and the sixth access switch to be disconnected, so that the second resistance unit is not connected; when the second access control signal is 1, controlling the fourth access switch to be disconnected, controlling the fifth access switch and the sixth access switch to be closed, so that the second resistance unit is connected; obtaining the second selection signal; controlling the corresponding second selection switch in the second resistance unit to be closed in response to the high level signal of the second selection signal; controlling the corresponding second selection switch in the second resistance unit to be disconnected in response to the low level signal of the second selection signal, and determining the second resistance value of the second resistance unit.
[0096] It can be understood that controlling the on-off state of the third access control unit and determining the third resistance value of the third resistance unit according to the third resistance adjustment signal includes: obtaining the third access control signal from the third resistance adjustment signal; when the third access control signal is 0, controlling the seventh access switch to be closed, controlling the eighth access switch and the ninth access switch to be disconnected, so that the third resistance unit is not connected; when the third access control signal is 1, controlling the seventh access switch to be disconnected, controlling the eighth access switch and the ninth access switch to be closed, so that the third resistance unit is connected; obtaining the third selection signal; controlling the corresponding third selection switch in the third resistance unit to be closed in response to the high level signal of the third selection signal; controlling the corresponding third selection switch in the third resistance unit to be disconnected in response to the low level signal of the third selection signal, and determining the third resistance value of the third resistance unit.
[0097] Through steps S310 to S330, the first access switch can be controlled to close, and the on / off states of the second access switch and the third access switch can be controlled based on the first access control signal, thereby determining whether the first resistance unit is accessed; and the corresponding on / off states in the first resistance unit can be flexibly selected, thereby determining the first resistance value of the first resistance unit, laying a foundation for obtaining the target resistance value.
[0098] Combination Figure 3 , Figure 7 Example 5 gives an example of the specific process of adjusting the voltage adjustment module to obtain the target resistance value.
[0099] Example 6:
[0100] Based on Example 5: In the first resistance adjustment signal obtained, the first access control signal is 1, and the first selection signal is: 000000000010000. Based on the first access control signal of 1, the first access switch is controlled to be disconnected, and the second access switch and the third access switch are controlled to be closed, so that the first resistance unit is connected; based on the first selection signal (000000000010000), Figure 3 The first selection switch Ka11 corresponding to the first resistance branch numbered A11 in the first resistance unit is closed, and the first selection switches corresponding to the remaining first resistance branches are disconnected, and the first resistance value of the first resistance unit is determined to be equal to the total branch resistance of the first resistance branch numbered A11: 11k ohms.
[0101] Synchronously, based on Example 5: in the obtained second resistance adjustment signal, the second access control signal is 1, and the second selection signal is: 000000001; based on the second access control signal of 1, the fourth access switch is controlled to be disconnected, and the fifth access switch and the sixth access switch are controlled to be closed, so that the second resistance unit is connected; based on the second selection signal (000000001), Figure 3 The second selection switch Kb9 corresponding to the second resistance branch numbered B9 in the second resistance unit is closed, and the second selection switches corresponding to the remaining second resistance branches are disconnected, and the second resistance value of the second resistance unit is determined to be equal to the total branch resistance of the second resistance branch numbered B9: 90 ohms.
[0102] Synchronously, based on Example 5: in the third resistance adjustment signal obtained, the third access control signal is 1, and the third selection signal is: 000000001; based on the third access control signal of 1, the seventh access switch is controlled to be disconnected, and the eighth access switch and the ninth access switch are controlled to be closed, so that the third resistance unit is connected; based on the third selection signal (000000001), Figure 3The third selection switch Kc9 corresponding to the second resistance branch numbered C9 in the third resistance unit is closed, and the third selection switches corresponding to the remaining third resistance branches are disconnected, and the third resistance value of the third resistance unit is determined to be equal to the total branch resistance of the third resistance branch numbered C9: 9 ohms.
[0103] Based on the above operation, the first resistance branch numbered A11, the second resistance branch numbered B9, and the third resistance branch numbered C9 are connected in series to obtain a target resistance value of 1199 ohms; thereby outputting a target power supply voltage.
[0104] In a third aspect, an embodiment of the present application provides an electronic device, comprising a power supply voltage switching circuit as described in any one of the embodiments of the first aspect; it is capable of outputting a plurality of target power supply voltages with different voltage values through a voltage regulation module, thereby facilitating switching of the target power supply voltage and reducing power supply costs.
[0105] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the present application.
Claims
1. A power supply voltage switching circuit, characterized in that: include: A constant current buck module, wherein an input end of the constant current buck module is electrically connected to a power input end; A voltage regulating module, wherein the input end of the voltage regulating module is connected to the output end of the constant current buck module; the voltage regulating module comprises: a first access control unit, a second access control unit, and a third access control unit connected in sequence; a first resistor unit connected between the two ends of the first access control unit, a second resistor unit connected between the two ends of the second access control unit, and a third resistor unit connected between the two ends of the third access control unit; A controller, the controller being electrically connected to the voltage regulating module; The controller is used for: when the target resistance value determined according to the constant circuit current and the target power supply voltage is less than or equal to the resistance adjustment threshold, after determining the first resistance adjustment signal, the second resistance adjustment signal and the third resistance adjustment signal according to the coefficient information on each bit of the target resistance value, simultaneously and respectively controlling the on-off states of the first access control unit, the second access control unit and the third access control unit, and determining the first resistance value of the first resistance unit, the second resistance value of the second resistance unit and the third resistance value of the third resistance unit, so that the target output terminal outputs the target power supply voltage; wherein the sum of the first resistance value, the second resistance value and the third resistance value is equal to the target resistance value.
2. The power supply voltage switching circuit according to claim 1, characterized in that: The first access control unit includes: a first access switch, a second access switch, and a third access switch; the first end of the first access switch is connected to the output end of the constant current buck module, and the second end of the first access switch is connected to the second end of the first resistor unit; the second access switch is connected between the first end of the first access switch and the first end of the first resistor unit; the third access switch is connected between the second end of the first access switch and the second end of the first resistor unit; the first resistor unit includes: a plurality of first resistor branches connected in parallel, and the total branch resistance of each of the first resistor branches is different; each first resistor branch is connected in series with a first selection switch.
3. The power supply voltage switching circuit according to claim 1, characterized in that: The power supply voltage switching circuit also includes: An output interface module, wherein the input end of the output interface module is electrically connected to the target output end; the output end of the output interface module is used to connect to the device under test to input the target power supply voltage to the device under test; and the target output end is used to output the target power supply voltage.
4. The power supply voltage switching circuit according to claim 3, characterized in that: The power supply voltage switching circuit also includes: A filter module, wherein the filter module is connected between the output end of the voltage regulating module and the input end of the output interface module; the filter module comprises: a plurality of filter capacitors connected in parallel; a first end of each of the filter capacitors is grounded, and a second end of each of the filter capacitors is electrically connected to the output end of the voltage regulating module.
5. A control method for a power supply voltage switching circuit, characterized in that: A controller applied to a power supply voltage switching circuit as claimed in any one of claims 1 to 4; The power supply voltage switching circuit further includes: a constant current step-down module, and a voltage regulating module electrically connected to the controller; the voltage regulating module includes: a first access control unit, a second access control unit, and a third access control unit connected in sequence; a first resistor unit connected between two ends of the first access control unit, a second resistor unit connected between two ends of the second access control unit, and a third resistor unit connected between two ends of the third access control unit; The method comprises: When the target resistance value determined according to the constant circuit current and the target power supply voltage is less than or equal to the resistance adjustment threshold, a first resistance adjustment signal, a second resistance adjustment signal, and a third resistance adjustment signal are determined according to coefficient information on each digit of the target resistance value; At the same time, the on-off state of the first access control unit is controlled according to the first resistance adjustment signal, and the first resistance value of the first resistance unit is determined; the on-off state of the second access control unit is controlled according to the second resistance adjustment signal, and the second resistance value of the second resistance unit is determined; the on-off state of the third access control unit is controlled according to the third resistance adjustment signal, and the third resistance value of the third resistance unit is determined, so that the target output end outputs the target power supply voltage; wherein the sum of the first resistance value, the second resistance value and the third resistance value is equal to the target resistance value.
6. The control method of the power supply voltage switching circuit according to claim 5, characterized in that: The coefficient information on each digit includes: a high-order coefficient, a middle-order coefficient, and a low-order coefficient; the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal are determined according to the coefficient information on each digit of the target resistance value, including: Performing data splitting processing on the target resistance value, and obtaining the low-order coefficient, the middle-order coefficient, and the high-order coefficient in ascending order; When the high-order coefficient is not zero, determining that the first access control signal is 1, determining a first selection signal according to the high-order coefficient and a first preset branch state table, and generating the first resistance adjustment signal according to the first access control signal and the first selection signal; When the median coefficient is not zero, determining that the second access control signal is 1, determining a second gating signal according to the median coefficient and a second preset branch state table, and generating the second resistance adjustment signal according to the second access control signal and the second gating signal; When the low-order coefficient is not zero, the third access control signal is determined to be 1, a third selection signal is determined according to the low-order coefficient and a third preset branch state table, and the third resistance adjustment signal is generated according to the third access control signal and the third selection signal.
7. The control method of the power supply voltage switching circuit according to claim 6, characterized in that: The determining of the first resistance adjustment signal, the second resistance adjustment signal, and the third resistance adjustment signal according to the coefficient information on each bit of the target resistance value further includes: When the high-order coefficient is zero, determining that the first access control signal is 0, and generating the first resistance adjustment signal according to the first access control signal; When the median coefficient is zero, determining that the second access control signal is 0, and generating the second resistance adjustment signal according to the second access control signal; When the low-order coefficient is zero, it is determined that the third access control signal is 0, and the third resistance adjustment signal is generated according to the third access control signal.
8. The control method of the power supply voltage switching circuit according to claim 7, characterized in that: The first access control unit includes: a first access switch, a second access switch, and a third access switch; the first end of the first access switch is connected to the output end of the constant current buck module, and the second end of the first access switch is connected to the second end of the first resistor unit; the second access switch is connected between the first end of the first access switch and the first end of the first resistor unit; the third access switch is connected between the second end of the first access switch and the second end of the first resistor unit; the first resistor unit includes: a plurality of first resistor branches connected in parallel, and the total branch resistance of each of the first resistor branches is different; each first resistor branch is connected in series with a first selection switch; The first selection signal includes a high level signal and a low level signal, and the first selection signal is used to indicate the on-off state of each of the first selection switches in the first resistance unit; The controlling the on / off state of the first access control unit and determining the first resistance value of the first resistance unit according to the first resistance adjustment signal includes: Acquire the first access control signal from the first resistance adjustment signal; When the first access control signal is 0, the first access switch is controlled to be closed, and the second access switch and the third access switch are controlled to be opened, so that the first resistance unit is not connected; When the first access control signal is 1, the first access switch is controlled to be disconnected, and the second access switch and the third access switch are controlled to be closed, so that the first resistance unit is connected; a first selection signal is obtained; in response to a high level signal of the first selection signal, the corresponding first selection switch in the first resistance unit is controlled to be closed; in response to a low level signal of the first selection signal, the corresponding first selection switch in the first resistance unit is controlled to be disconnected, and a first resistance value of the first resistance unit is determined.
9. The control method of the power supply voltage switching circuit according to claim 8, characterized in that: The power supply voltage switching circuit also includes an alarm module electrically connected to the controller; After determining the target resistance value according to the constant circuit current and the target power supply voltage, the control method further includes: When the target resistance value is greater than the resistance adjustment threshold, an alarm prompt signal is generated and fed back to the host computer; The alarm module is controlled to work according to the alarm prompt signal.
10. An electronic device, characterized in that: The invention comprises a power supply voltage switching circuit as claimed in any one of claims 1 to 4.
Citation Information
Patent Citations
Power supply circuit, terminal equipment and voltage control method
CN114089802A
Load switching protection circuit
CN211606089U
Constant current control circuit for double light sources
CN220123106U
Battery system
EP3576241A1
LED driver having short circuit protection
US20160270185A1