CN114625050B - Electronic equipment and voltage data transmission method - Google Patents
Electronic equipment and voltage data transmission method Download PDFInfo
- Publication number
- CN114625050B CN114625050B CN202210276913.0A CN202210276913A CN114625050B CN 114625050 B CN114625050 B CN 114625050B CN 202210276913 A CN202210276913 A CN 202210276913A CN 114625050 B CN114625050 B CN 114625050B
- Authority
- CN
- China
- Prior art keywords
- voltage
- mode
- format
- voltage output
- output value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 230000005540 biological transmission Effects 0.000 title abstract description 14
- 238000006243 chemical reaction Methods 0.000 claims abstract description 61
- 238000013461 design Methods 0.000 description 8
- 230000006854 communication Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24215—Scada supervisory control and data acquisition
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Power Sources (AREA)
Abstract
The embodiment of the invention relates to the technical field of circuit control, in particular to electronic equipment and a transmission method of voltage data. Comprising the following steps: a main control chip and a power management chip; the main control chip is used for converting the voltage output value into a voltage command value according to a first format, and transmitting the voltage command value to the power management chip through a power management bus (PMBus) protocol; and the power management chip is used for converting the voltage command value into a voltage output value according to the second format and providing power supply service according to the voltage output value. The first format is Direct Mode, and the second format is voltage identification format VID Mode; or the first format is VID Mode, and the second format is Direct Mode; wherein the configurable parameters in Direct Mode follow a preset relationship; the preset relationship is determined by different conversion modes between the Direct Mode and the VID Mode to the voltage output value and the voltage command value. The main control chip realizes the accurate control of the power management chip, has high efficiency and low cost, and saves resources.
Description
Technical Field
The embodiment of the invention relates to the technical field of circuit control, in particular to electronic equipment and a transmission method of voltage data.
Background
In various electronic devices, a main control chip controls a power management chip to output corresponding voltages. The main control chip converts the voltage output value into a voltage command value according to the voltage data format of the main control chip, and transmits the voltage command value to the power management chip. The power management chip converts the voltage command value into a voltage output value according to the voltage data format of the power management chip, so as to output corresponding voltage.
In order for the power management chip to be able to convert the voltage command value to the correct voltage output value, the power management chip needs to use the same voltage data format as the master control chip. However, in many cases, the formats supported by the main control chip and the power management chip are not compatible, so that the power management chip cannot obtain a correct voltage value, and even cannot analyze the voltage value, so that the main control chip cannot normally control the power management chip, and the circuit board works abnormally.
In summary, an electronic device is provided, which is used for obtaining a correct voltage output value and improving the accuracy of voltage control even if the voltage data format of the power management chip is different from that of the main control chip.
Disclosure of Invention
The embodiment of the invention provides electronic equipment which is used for obtaining a correct voltage output value and improving the accuracy of voltage control under the condition that the voltage data format of a power management chip is different from that of a main control chip.
In a first aspect, an embodiment of the present invention provides an electronic device, including: a main control chip and a power management chip;
the voltage data format of the main control chip is set to be a first format;
The voltage data format of the power management chip is set to a second format;
The first format is a Direct Mode, and the second format is a voltage identification format VID Mode; or, the first format is VID Mode, and the second format is Direct Mode; wherein the configurable parameters in the Direct Mode follow a preset relationship; the preset relation is determined through different conversion modes between the Direct Mode and the VID Mode on the voltage output value and the voltage command value;
the main control chip is used for converting the voltage output value into a voltage command value according to the first format, and transmitting the voltage command value to the power management chip through a power management bus (PMBus) protocol;
The power management chip is used for converting the voltage command value into the voltage output value according to the second format and providing power supply service according to the voltage output value.
The different conversion modes between the voltage output value and the voltage command value are determined through the Direct Mode and the VID Mode, so that the preset relation which the configurable parameters in the Direct Mode must follow can be determined, and the configurable parameters of the Direct Mode can be set according to the preset relation. This is the case. The Direct Mode and the VID Mode have a determined relation, so that the voltage output value analyzed by the power management chip and the voltage output value sent by the main control chip can be ensured to be the same. The main control chip realizes the accurate control of the power management chip, the power management chip does not need to be replaced, the whole circuit design is replaced, and the firmware of the power management chip does not need to be replaced by hardware. High efficiency, low cost and resource saving.
Optionally, the preset relationship is determined by different conversion manners between the Direct Mode and the VID Mode to the voltage output value and the voltage command value, including:
the conversion Mode between the voltage output value and the voltage command value under the VID Mode is determined as follows: x=k×y+a; wherein k and a are known constants, X is a voltage output value, and Y is a voltage command value;
The conversion Mode between the voltage output value and the voltage command value under the Direct Mode is determined as follows: Wherein m, R and b are configurable parameters;
the preset relation followed between the configurable parameters m, R, b and k, a is determined by setting the voltage output values equal.
The Direct Mode and the VID Mode are two formats of the PMBus protocol for data transmission, and the preset relation which the configurable parameters in the Direct Mode must follow can be determined by determining the conversion modes of the two formats and setting the equal voltage output values. And then the configurable parameters of the Direct Mode are set according to the preset relation, so that the Direct Mode and the VID Mode have a definite relation, and the voltage output value analyzed by the power management chip can be ensured to be the same as the voltage output value sent by the main control chip.
Optionally, a comparison relation between a plurality of groups of voltage output values and voltage command values exists in the voltage identification comparison table under the VID Mode; the voltage settings in the different sets of collation relations have different ranges and/or accuracies;
determining a conversion Mode between the voltage output value and the voltage command value under the VID Mode comprises the following steps:
Determining a corresponding set of standard comparison relations in the voltage identification comparison table according to the measuring range and/or the precision of the voltage output value of each pin in the electronic equipment;
and determining a conversion Mode between the voltage output value and the voltage command value under the VID Mode according to the standard comparison relation.
And determining a group of most suitable standard comparison relations in a voltage identification comparison table according to voltage output values required by all pins in the electronic equipment, wherein the k value and the a value determined in the way can be used for determining accurate conversion relations.
Optionally, the main control chip is further configured to obtain a parameter value of the configurable parameter set by the user through a configuration interface; wherein,b=-a;
The main control chip is also used for storing the parameter value of the configurable parameter, and sending the parameter value of the configurable parameter to the power management chip when the voltage data format of the power management chip is Direct Mode.
The configuration interface is provided, a user can set the parameter value of the configurable parameter in the Direct Mode through the configuration interface, the main control chip obtains the parameter value of the configurable parameter, and the parameter value of the configurable parameter can be sent to the power management chip when the voltage data format of the power management chip is the Direct Mode, so that the power management chip can accurately obtain the voltage output value.
In a second aspect, an embodiment of the present invention further provides a method for transmitting voltage data, including:
reading a voltage output value, and converting the voltage output value into a voltage command value according to a first format; the first format is a voltage data format set by the main control chip;
Transmitting the voltage command value to a power management chip through a power management bus (PMBus) protocol; the power management chip converts the voltage command value into the voltage output value according to a second format and provides power supply service according to the voltage output value; the second format is a voltage data format set by the power management chip;
The first format is a Direct Mode, and the second format is a voltage identification format VID Mode; or, the first format is VID Mode, and the second format is Direct Mode; wherein the configurable parameters in the Direct Mode follow a preset relationship; the preset relation is determined by different conversion modes between the Direct Mode and the VID Mode on the voltage output value and the voltage command value.
Optionally, the preset relationship is determined by different conversion manners between the Direct Mode and the VID Mode to the voltage output value and the voltage command value, including:
the conversion Mode between the voltage output value and the voltage command value under the VID Mode is determined as follows: x=k×y+a; wherein k and a are known constants, X is a voltage output value, and Y is a voltage command value;
The conversion Mode between the voltage output value and the voltage command value under the Direct Mode is determined as follows: Wherein m, R and b are configurable parameters;
the preset relation followed between the configurable parameters m, R, b and k, a is determined by setting the voltage output values equal.
Optionally, a comparison relation between a plurality of groups of voltage output values and voltage command values exists in the voltage identification comparison table under the VID Mode; the voltage settings in the different sets of collation relations have different ranges and/or accuracies;
determining a conversion Mode between the voltage output value and the voltage command value under the VID Mode comprises the following steps:
Determining a corresponding set of standard comparison relations in the voltage identification comparison table according to the measuring range and/or the precision of the voltage output value of each pin in the electronic equipment;
and determining a conversion Mode between the voltage output value and the voltage command value under the VID Mode according to the standard comparison relation.
Optionally, before the main control chip reads the voltage output value, the method further includes:
acquiring parameter values of the configurable parameters set by a user through a configuration interface; wherein, b=-a;
And storing the parameter value of the configurable parameter, and sending the parameter value of the configurable parameter to the power management chip when the voltage data format of the power management chip is Direct Mode.
In a third aspect, an embodiment of the present invention further provides a method for transmitting voltage data, including:
Receiving a voltage command value transmitted by a main control chip through a power management bus (PMBus) protocol; the voltage command value is obtained by converting the voltage output value according to a first format after the voltage output value is read by the main control chip; the first format is a voltage data format set by the main control chip;
Converting the voltage command value into the voltage output value according to a second format and providing power supply service according to the voltage output value; the second format is a voltage data format set by the power management chip;
The first format is a Direct Mode, and the second format is a voltage identification format VID Mode; or, the first format is VID Mode, and the second format is Direct Mode; wherein the configurable parameters in the Direct Mode follow a preset relationship; the preset relation is determined by different conversion modes between the Direct Mode and the VID Mode on the voltage output value and the voltage command value.
Optionally, the preset relationship is determined by different conversion manners between the Direct Mode and the VID Mode to the voltage output value and the voltage command value, including:
the conversion Mode between the voltage output value and the voltage command value under the VID Mode is determined as follows: x=k×y+a; wherein k and a are known constants, X is a voltage output value, and Y is a voltage command value;
The conversion Mode between the voltage output value and the voltage command value under the Direct Mode is determined as follows: Wherein m, R and b are configurable parameters;
the preset relation followed between the configurable parameters m, R, b and k, a is determined by setting the voltage output values equal.
In a fourth aspect, an embodiment of the present invention further provides a main control chip, where a voltage data format of the main control chip is set to a Direct Mode, and configurable parameters in the Direct Mode follow a preset relationship; the preset relation is determined through different conversion modes between the Direct Mode and the voltage identification format VID Mode to the voltage output value and the voltage command value; the VID Mode is a voltage data format set by the power management chip; the power management chip and the main control chip communicate through a power management bus PMBus protocol.
In a fifth aspect, an embodiment of the present invention further provides a power management chip, where a voltage data format of the power management chip is set to a Direct Mode, and configurable parameters in the Direct Mode follow a preset relationship; the preset relation is determined through different conversion modes between the Direct Mode and the voltage identification format VID Mode to the voltage output value and the voltage command value; the VID Mode is a voltage data format set by the main control chip; the main control chip and the power management chip communicate through a power management bus PMBus protocol.
In a sixth aspect, embodiments of the present invention further provide a computing device, including:
a memory for storing a computer program;
And the processor is used for calling the computer program stored in the memory and executing the transmission method of the voltage data listed in any mode according to the obtained program.
In a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium storing a computer-executable program for causing a computer to execute the transmission method of voltage data listed in any one of the above-described modes.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
Fig. 2 is a schematic flow chart of a possible voltage data transmission method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of determining a preset relationship followed by a configurable parameter according to an embodiment of the present invention;
fig. 4 is a schematic diagram of communication between a main control chip (PMBus host) and a power management chip (PMBus Voltage Regulator) according to a PMBus protocol according to an embodiment of the present invention;
Fig. 5 illustrates a technical effect achieved by the electronic device according to the embodiment of the present invention compared with the original electronic device.
Detailed Description
For the purposes of making the objects, embodiments and advantages of the present application more apparent, an exemplary embodiment of the present application will be described more fully hereinafter with reference to the accompanying drawings in which exemplary embodiments of the application are shown, it being understood that the exemplary embodiments described are merely some, but not all, of the examples of the application.
Based on the exemplary embodiments described herein, all other embodiments that may be obtained by one of ordinary skill in the art without making any inventive effort are within the scope of the appended claims. Furthermore, while the present disclosure has been described in terms of an exemplary embodiment or embodiments, it should be understood that each aspect of the disclosure can be practiced separately from the other aspects.
It should be noted that the brief description of the terminology in the present application is for the purpose of facilitating understanding of the embodiments described below only and is not intended to limit the embodiments of the present application. Unless otherwise indicated, these terms should be construed in their ordinary and customary meaning.
The terms first, second, third and the like in the description and in the claims and in the above-described figures are used for distinguishing between similar or similar objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated (Unless otheRwise indicated). It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are, for example, capable of operation in sequences other than those illustrated or otherwise described herein.
Furthermore, the terms "comprise" and "have," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to those elements expressly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
Fig. 1 schematically illustrates an electronic device according to an embodiment of the present invention, including a main control chip 100 and a power management chip 200.
The main control chip 100 is a core component of a main board or a hard disk, is a bridge for connecting all devices, is a brain for controlling the running work of the devices, and plays roles of command, operation and cooperation. For example, the master chip 100 may be: CPU (Central Processing Unit ), FPGA (Field Programmable GATE ARRAY, field programmable gate array), DSP (DIGITAL SIGNAL Processor ), and the like.
The power management chip 200 is a chip in the electronic device system, which is responsible for converting, distributing, detecting and other power management of the power, and is mainly responsible for identifying the power supply amplitude of the CPU, generating corresponding short moment waves, and pushing the subsequent-stage circuit to output power. The scope of power management is relatively broad, including power conversion (DC-DC, AC-DC, and DC-AC), power distribution and detection, and systems that combine power conversion and power management. Accordingly, the classification of power management chips also includes such aspects as linear power chips, voltage reference chips, switching power chips, LCD driver chips, LED driver chips, voltage detection chips, battery charge management chips, gate drivers, load switches, wide band gap switches, and the like.
The main control chip can control the power management chip 200 to output corresponding voltage values for the pins according to the voltage output values set by the pins in the electronic device. For example, the main control chip reads the voltage output values set for each pin in the memory, and the voltage output values are respectively pin 1:0.1V; pin 2:0.5V. The master control chip needs to transmit the read voltage output value to the power management chip, and the power management chip can provide the voltage of 0.1V for the pin 1 and 0.5V for the pin 2 according to the voltage output value.
The main control chip can not directly transmit the voltage output value to the power management chip, but converts the voltage output value into a binary voltage command value according to a voltage data format set by the main control chip, the voltage command value is transmitted to the power management chip, and the power management chip converts the voltage command value according to the voltage data format set by the power management chip, so that if the voltage output value can be obtained, power is supplied to each pin according to the indication of the voltage output value.
In the field of hardware servers, a main control chip and a power management chip communicate according to a PMBus (Power Management Bus ) protocol, and the data formats supported by the PMBus protocol mainly include 3 types: (1) Linear Mode for inputting voltage, current, operating temperature and time, etc.; (2) VID Mode (Voltage Identity Document, voltage identification Format) can only be used for output voltage; (3) Direct Mode, supporting transmission of any data.
In actual operation, the main control chip and the power management chip often do not have the same voltage data format, for example, the voltage data format of the main control chip is Direct Mode, and the voltage data format of the power management chip is VID Mode, so that the power management chip cannot correctly convert the voltage command value transmitted by the main control chip into the voltage output value, and therefore correct output of the power supply cannot be performed, and the circuit board works abnormally.
One possible modification is that the hardware changes to change the power management chip and thus the entire circuit design, or that the hardware changes the firmware of the power management chip (in practice the manufacturer of the power management chip is not necessarily supported). The hardware replacement mode has long period, high cost and resource waste.
The embodiment of the invention provides electronic equipment, wherein a main control chip and a power management chip adopt different voltage data formats, but the power management chip can obtain a correct voltage output value by setting configurable parameters in Direct Mode.
The voltage data format of the main control chip is set to be a first format, and the first format can be Direct Mode or VID Mode; the voltage data format of the power management chip is set to a second format, which may be Direct Mode or VID Mode. The first format is different from the second format, namely, the first format is Direct Mode, and the second format is VID Mode; or, the first format is VID Mode, and the second format is Direct Mode.
The conversion Mode between the voltage output value and the voltage command value under Direct Mode is as follows: Wherein m, R and b are configurable parameters; x is the voltage output value and Y is the voltage command value. The preset relation followed between the 3 configurable parameters can be determined by different conversion modes between the Direct Mode and the VID Mode on the voltage output value and the voltage command value, and the parameter values of m, R and b are set according to the preset relation.
Then a defined relationship is provided between the first format and the second format to ensure that the resulting voltage output values are the same. The main control chip realizes the accurate control of the power management chip, the power management chip does not need to be replaced, the whole circuit design is replaced, and the firmware of the power management chip does not need to be replaced by hardware. High efficiency, low cost and resource saving.
Based on the electronic device, the embodiment of the invention also provides a possible transmission method of the voltage data. As shown in fig. 2, includes:
Step 201, a main control chip reads a voltage output value, converts the voltage output value into a voltage command value according to the first format, and the first format is a voltage data format set by the main control chip;
Step 202, a main control chip transmits the voltage command value to a power management chip through a power management bus PMBus protocol;
in step 203, the power management chip converts the voltage command value into the voltage output value according to the second format and provides power service according to the voltage output value. The second format is a voltage data format in which the power management chip is set.
The first format is a Direct Mode, and the second format is a voltage identification format VID Mode; or, the first format is VID Mode, and the second format is Direct Mode; wherein the configurable parameters in the Direct Mode follow a preset relationship; the preset relation is determined by different conversion modes between the Direct Mode and the VID Mode on the voltage output value and the voltage command value.
The different conversion modes between the voltage output value and the voltage command value are determined through the Direct Mode and the VID Mode, so that the preset relation which the configurable parameters in the Direct Mode must follow can be determined, and the configurable parameters of the Direct Mode can be set according to the preset relation. This is the case. The Direct Mode and the VID Mode have a determined relation, so that the voltage output value analyzed by the power management chip and the voltage output value sent by the main control chip can be ensured to be the same. The main control chip realizes the accurate control of the power management chip, the power management chip does not need to be replaced, the whole circuit design is replaced, and the firmware of the power management chip does not need to be replaced by hardware. High efficiency, low cost and resource saving.
Specifically, the preset relationship followed by the configurable parameters is determined by, as shown in fig. 3, including:
Step 301, determining a conversion manner between the voltage output value and the voltage command value under the VID Mode is: x=k×y+a; wherein k and a are known constants, X is a voltage output value, and Y is a voltage command value;
step 302, determining a conversion manner between the voltage output value and the voltage command value under the Direct Mode is: Wherein m, R and b are configurable parameters;
Step 303, determining the preset relation followed between the configurable parameters m, R, b and k, a by setting the voltage output values equal.
The above sequence between step 301 and step 302 may be interchanged or performed simultaneously, and the embodiment of the present invention is not limited thereto.
In step 301, the conversion manner between the voltage output value and the voltage command value at VID Mode may be determined by querying the voltage identification look-up table in the intel power management specification.
The conversion Mode under VID Mode follows the intel VR (Voltage regulation, power management) specification, which has many generations, and the conversion Mode under VID Mode obtained by referring to VR specifications of different generations is also different.
The following describes the resolution of the conversion scheme under VID Mode using the 13 th generation specification, VR13 as an example.
Table 1 is a voltage identification look-up table in VR 13. The voltage identification comparison table has a comparison relation between a plurality of groups of voltage output values and voltage command values; the voltage settings in the different sets of relationships have different ranges and/or accuracies. The comparison of the two sets of voltage output values and voltage command values is shown in Table 1 as HEX-5mV Step Mode Voltage and HEX-10mV Step Mode Voltage, respectively.
TABLE 1
Table 3-6 VID Table
HEX in Table 1 is shown as a voltage command value in hexadecimal numbers (only 0-16 are shown). Each of the 5mV Step Mode Voltage columns and the 10mV Step Mode Voltage columns is a voltage output value corresponding to the voltage command value, except that the interval value of the 5mV Step Mode Voltage columns and the 10mV Step Mode Voltage columns is different (the interval between each voltage output value in the 5mV Step Mode Voltage columns is 5mV;10mV Step Mode Voltage and the interval between each voltage output value in the 5mV;10mV Step Mode Voltage columns is 10 mV), the ranges are different (the range of the voltage output value in the 5mV Step Mode Voltage columns shown in table 1 is 0 to 0.325V; the range of the voltage output value in the 10mV Step Mode Voltage columns shown in table 1 is 0 to 0.65V), and the precision is different (the precision shown in the right column 5mV Step Recommended Accuracy of 5mV Step Mode Voltage is ± 8mV;10mV Step Mode Voltage and the precision shown in the right column 10mV Step Recommended Accuracy is ±10 mV).
As can be seen from table 1, if the control relation of HEX-5mV Step Mode Voltage is selected, when the voltage output value is 0.25V, the voltage command value 1 is obtained when the conversion between the voltage output value and the voltage command value is performed according to VID Mode; when the voltage output value is 0.3V, the voltage command value 11 is obtained when the conversion between the voltage output value and the voltage command value is performed according to VID Mode. If the comparison relation of HEX-10mV Step Mode Voltage is selected, when the voltage output value is 0.5V, converting between the voltage output value and the voltage command value according to VID Mode, and obtaining a voltage command value 1; when the voltage output value is 0.65V, the voltage command value 16 is obtained when the conversion between the voltage output value and the voltage command value is performed according to VID Mode.
It can be seen that each set of control relationships follows a direct proportional relationship, and different control relationships are selected, so that the obtained direct proportional relationships are different.
If the comparison relation of HEX-10mV Step Mode Voltage is selected, the following conversion relation of the voltage command value Y and the voltage output value X can be obtained: x=10×y+490, i.e. y=x/10-49. (HEX is in mV and 10mV Step Mode Voltage is in V).
If the comparison relation of HEX-5mV Step Mode Voltage is selected, the following conversion relation of the voltage command value Y and the voltage output value X can be obtained: x=5×y+490/2, i.e. y=2x/10-49.
To summarize, the conversion manner between the voltage output value and the voltage command value at the VID Mode is as follows: x=k×y+a; where k and a are known constants, and different values of k and a are obtained by adopting different VR specifications, or adopting a comparison relationship with different ranges and accuracies in the same specification.
It will be appreciated that the voltage references for each chip should be determined in conjunction with the voltage output values of the pins in the electronic device in which the chip is used. For example, the voltage output value of each pin is smaller than 0.4V, the accuracy requirement is smaller than ±10mv, then a set of standard comparison relations, namely, the comparison relation of HEX-5mV Step Mode Voltage, are selected, and according to the set of standard comparison relations, the following conversion relations of the voltage command value Y and the voltage output value X can be obtained: x=5×y+490/2.
In step 302, referring to the literature, the conversion manner between the voltage output value and the voltage command value under Direct Mode is as follows: Wherein m, R and b are configurable parameters. That is, y= (mx+b) ×10 R.
In the prior art, m, R and b are randomly configured and have no preset relationship. In order to ensure that the main control chip and the power management chip can realize correct transmission of data, m, R and b of the main control chip adopting the Direct Mode and the power management chip adopting the Direct Mode can be identical, and as can be seen, the main control chip and the power management chip are required to adopt the same voltage data format, and the configurable parameters are identical.
In the embodiment of the invention, the correct transmission of the voltage data can still be realized under the condition that the main control chip and the power management chip adopt different voltage data formats. This requires that the conversion pattern between the voltage output value and the voltage command value at VID Mode be resolved in step 301, and that the preset relationship to be followed between m, R and b be determined in step 303.
In step 303, the preset relationship followed between the configurable parameters m, R, b and k, a is determined by setting the voltage output values equal.
After obtaining two conversion modes, the voltage output values X in the two conversion modes are equal, the two equations are combined, and the coefficients before Y are equal, thus obtainingB= -a. That is, the configurable parameter b in Direct Mode should be the opposite number of a in VID Mode; the configurable parameters m and R in Direct Mode have the following relationship with k in VID Mode: m and R can be optionally configured.
After such a preset relationship is determined, the values of the configurable parameters m, R, b in Direct Mode can be set, and as long as the preset relationship is satisfied, the following effects can be achieved: the main control chip and the power management chip have different voltage data formats, but the power management chip can obtain a correct voltage output value by converting the second format.
For example, if the following conversion relationship between the voltage command value Y and the voltage output value X is set at VID Mode: x=10×y+490, then b= -490 at Direct Mode, m may be set to 1, r to-1; or m is set to 10, and r is set to-2 … … so long as the above-described predetermined relationship is satisfied, which is not limited in the embodiment of the present invention.
The step of determining the preset relationship to be followed by the configurable parameters in fig. 3 may be implemented by a user or by a main control chip, which is not limited in this embodiment of the present invention.
Optionally, a configuration interface may be set on the main control chip, after the user determines the preset relationship, the parameter values of the configurable parameters m, R, b are set according to the preset relationship, and the main control chip obtains the parameter values of the configurable parameters set by the user through the configuration interface and stores the parameter values in the memory. If the voltage data format of the main control chip is Direct Mode, the main control chip obtains parameter values of the configurable parameters set by the user from the memory, and converts the voltage output value into a voltage command value according to the Direct Mode based on the parameter values. If the voltage data format of the power management chip is Direct Mode, the main control chip obtains parameter values of configurable parameters set by a user from the memory, and sends the parameter values of the configurable parameters to the power management chip, and the power management chip can obtain Direct Mode based on the parameter values and convert the voltage command value into a voltage output value according to the Direct Mode.
In order to better explain the embodiments of the present invention, the workflow of the electronic device will be described below in a specific implementation scenario.
FIG. 4 is a schematic diagram showing a master control chip (PMBus host) and a power management chip (PMBus Voltage Regulator) communicating via a PMBus protocol, where the master control chip sends a clock signal PWRMGT _SCL to the power management chip for controlling the operation of the power management chip; the main control chip reads the voltage output value from the memory, converts the voltage output value into a voltage command value according to a first format, sends the voltage command value PWRMGT _SDA to the power management chip, converts the voltage command value into the voltage output value Vcc through a second format, and provides voltage to any pin such as a pin of the main control chip in the figure.
The process by which the master control chip sends voltage command values to the power management chip is described in detail below. The communication process is divided into two links, firstly, vout_mode is sent, and then vout_command (voltage COMMAND value) or other COMMANDs (such as overvoltage fault threshold, etc.) are sent.
The data structure of VOUT_MODE is shown in Table 2, VOUT_MODE [7:5] determines the voltage data format of the master chip, VOUT_MODE [4:0] determines the MODE related other parameters. If the voltage data formats of the main control chips are different, the 3bit data corresponding to VOUT_MODE [7:5] are different.
TABLE 2
Table 3 shows the structure of vout_mode for different voltage data formats. For example, if the voltage data format of the master chip is VID Mode, VOUT_MODE [7:5] is 001.
TABLE 3 Table 3
Vout_command sends 2bytes data. Vout_command is the most widely used of voltage related COMMANDs for transmitting the magnitude of the voltage COMMAND value.
It is noted that vout_mode is transmitted or received if and only if the data format of the output voltage changes, vout_mode being transmitted independently of the output voltage related parameters. The first link will not be involved in the communication process when the data format of the output voltage is not changed. There are various situations where no change occurs to the corresponding different manufacturer's chip, such as not supporting modification.
Table 4 shows the data structures for VOUT_MODE and VOUT_COMMAND at VID Mode, and Table 5 shows the data structures for VOUT_MODE and VOUT_COMMAND at Direct Mode. It can be observed that for both modes vout_command, the bit width and bit high and low order are the same in the case of full bit width.
TABLE 4 Table 4
TABLE 5
Example 1
The voltage data format of the main control chip is set as Direct Mode, and the voltage data format of the power management chip is set as VID Mode. The main control chip reads parameter values of configurable parameters set by a user, wherein b= -490, m=1 and r= -1. The main control chip determines the specific conversion Mode of Direct Mode according to the parameter value of the configurable parameter as follows: substituting b= -490, m=1, r= -1 gives x= (y×10+490). The main control chip reads the voltage output value X to be 0.5V, namely 500mV, obtains the voltage command value to be 1, converts the voltage command value into a binary form to be 01, transmits the voltage command value in the binary form to the power management chip, and the power management chip converts the voltage command value 01 into the voltage output value of 0.5V according to VID Mode and provides power supply service according to the voltage output value.
Example two
The voltage data format of the main control chip is set as VID Mode, and the voltage data format of the power management chip is set as Direct Mode. The main control chip reads parameter values of configurable parameters set by a user, wherein b= -490, m=1 and r= -1. And the main control chip sends the parameter value of the configurable parameter to the power management chip. The specific conversion Mode of the Direct Mode is determined by the power management chip according to the parameter value of the configurable parameter, and the specific conversion Mode is as follows: Substituting b= -490, m=1, r= -1 gives x= (y×10+490). The main control chip reads the voltage output value X to be 0.5V, namely 500mV, converts the voltage output value into a voltage command value 1 according to VID Mode, converts the voltage command value into a binary form, and transmits the voltage command value in the binary form to the power management chip, and the power management chip converts the voltage command value 01 into the voltage output value 0.5V according to Direct Mode and provides power supply service according to the voltage output value.
The electronic equipment provided by the embodiment of the invention can realize the main control chip compatible with different voltage data formats by the same circuit design without changing the whole circuit design, and realize unification of key circuit design schemes in different systems, and reduce the cost and enhance the efficiency; and the same main control chip can be compatible with different circuit design schemes, so that the compatibility of the system is improved. Fig. 5 shows a technical effect achieved by the electronic device according to the embodiment of the invention compared with the original electronic device. In the prior art, only the main control chip and the power management chip adopt the same voltage data format, and can communicate with each other; the electronic equipment provided by the embodiment of the invention can realize communication among chips with different voltage data formats. In fig. 5, host refers to a main control chip, and device refers to a power management chip.
The embodiment of the invention also provides a main control chip, wherein the voltage data format of the main control chip is set to be a Direct Mode, and the configurable parameters in the Direct Mode follow a preset relationship; the preset relation is determined through different conversion modes between the Direct Mode and the voltage identification format VID Mode to the voltage output value and the voltage command value; the VID Mode is a voltage data format set by the power management chip; the power management chip and the main control chip communicate through a power management bus PMBus protocol.
The embodiment of the invention also provides a power management chip, wherein the voltage data format of the power management chip is set to be a Direct format, and the configurable parameters in the Direct Mode follow a preset relationship; the preset relation is determined through different conversion modes between the Direct Mode and the voltage identification format VID Mode to the voltage output value and the voltage command value; the VID Mode is a voltage data format set by the main control chip; the main control chip and the power management chip communicate through a power management bus PMBus protocol.
The embodiment of the invention also provides a computing device, which comprises:
a memory for storing a computer program;
And the processor is used for calling the computer program stored in the memory and executing the transmission method of the voltage data listed in any mode according to the obtained program.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer-executable program for causing a computer to execute the transmission method of voltage data listed in any of the above-described modes.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (7)
1. An electronic device, comprising: a main control chip and a power management chip;
the voltage data format of the main control chip is set to be a first format;
The voltage data format of the power management chip is set to a second format;
The first format is a Direct Mode, and the second format is a voltage identification format VID Mode; or, the first format is VID Mode, and the second format is Direct Mode; the VID Mode is used for outputting a voltage data format, the Direct Mode is used for transmitting data, and the configurable parameters in the Direct Mode follow a preset relationship;
The conversion Mode between the voltage output value and the voltage command value under the VID Mode is determined as follows: x=k×y+a, and the conversion manner between the voltage output value and the voltage command value under the Direct Mode is determined as follows:
Determining the preset relation followed between the configurable parameters m, R, b and k, a by setting the voltage output values equal; wherein k and a are known constants, X is a voltage output value, and Y is a voltage command value;
the main control chip is used for converting the voltage output value into a voltage command value according to the first format, and transmitting the voltage command value to the power management chip through a power management bus (PMBus) protocol;
The power management chip is used for converting the voltage command value into the voltage output value according to the second format and providing power supply service according to the voltage output value.
2. The electronic device of claim 1, wherein the voltage identification look-up table at VID Mode has a look-up relationship of a plurality of sets of voltage output values and voltage command values; the voltage settings in the different sets of collation relations have different ranges and/or accuracies;
determining a conversion Mode between the voltage output value and the voltage command value under the VID Mode comprises the following steps:
Determining a corresponding set of standard comparison relations in the voltage identification comparison table according to the measuring range and/or the precision of the voltage output value of each pin in the electronic equipment;
and determining a conversion Mode between the voltage output value and the voltage command value under the VID Mode according to the standard comparison relation.
3. The electronic device of claim 1, wherein,
The main control chip is also used for acquiring parameter values of the configurable parameters set by a user through a configuration interface; wherein,;b=-a;
The main control chip is also used for storing the parameter value of the configurable parameter, and sending the parameter value of the configurable parameter to the power management chip when the voltage data format of the power management chip is Direct Mode.
4. A method of transmitting data, comprising:
Reading a voltage output value, and converting the voltage output value into a voltage command value according to a first format; the first format is a voltage data format set by the main control chip;
Transmitting the voltage command value to a power management chip through a power management bus (PMBus) protocol, so that the power management chip converts the voltage command value into the voltage output value according to a second format and provides power supply service according to the voltage output value; the second format is a voltage data format set by the power management chip;
The first format is a Direct Mode, and the second format is a voltage identification format VID Mode; or, the first format is VID Mode, and the second format is Direct Mode; the VID Mode is used for outputting a voltage data format, the Direct Mode is used for transmitting data, and the configurable parameters in the Direct Mode follow a preset relationship; the conversion Mode between the voltage output value and the voltage command value under the VID Mode is determined as follows: x=k×y+a, and the conversion manner between the voltage output value and the voltage command value under the Direct Mode is determined as follows: Determining the preset relation followed between the configurable parameters m, R, b and k, a by setting the voltage output values equal; where k and a are known constants, X is the voltage output value, and Y is the voltage command value.
5. The method of claim 4, wherein the voltage identification look-up table at VID Mode has a look-up relationship of a plurality of sets of voltage output values and voltage command values; the voltage settings in the different sets of collation relations have different ranges and/or accuracies;
determining a conversion Mode between the voltage output value and the voltage command value under the VID Mode comprises the following steps:
Determining a corresponding set of standard comparison relations in the voltage identification comparison table according to the measuring range and/or the precision of the voltage output value of each pin in the electronic equipment;
and determining a conversion Mode between the voltage output value and the voltage command value under the VID Mode according to the standard comparison relation.
6. The method of claim 4, further comprising, prior to the master control chip reading the voltage output value:
acquiring parameter values of the configurable parameters set by a user through a configuration interface; wherein, ;b=-a;
And storing the parameter value of the configurable parameter, and sending the parameter value of the configurable parameter to the power management chip when the voltage data format of the power management chip is Direct Mode.
7. A method of transmitting data, comprising:
Receiving a voltage command value transmitted by a main control chip through a power management bus (PMBus) protocol; the voltage command value is obtained by converting the voltage output value according to a first format after the voltage output value is read by the main control chip; the first format is a voltage data format set by the main control chip;
Converting the voltage command value into the voltage output value according to a second format and providing power supply service according to the voltage output value; the second format is a voltage data format set by the power management chip;
The first format is a Direct Mode, and the second format is a voltage identification format VID Mode; or, the first format is VID Mode, and the second format is Direct Mode; the VID Mode is used for outputting a voltage data format, the Direct Mode is used for transmitting data, and the configurable parameters in the Direct Mode follow a preset relationship;
The conversion Mode between the voltage output value and the voltage command value under the VID Mode is determined as follows: x=k×y+a, and the conversion manner between the voltage output value and the voltage command value under the Direct Mode is determined as follows: Determining the preset relation followed between the configurable parameters m, R, b and k, a by setting the voltage output values equal; where k and a are known constants, X is the voltage output value, and Y is the voltage command value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210276913.0A CN114625050B (en) | 2022-03-21 | 2022-03-21 | Electronic equipment and voltage data transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210276913.0A CN114625050B (en) | 2022-03-21 | 2022-03-21 | Electronic equipment and voltage data transmission method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114625050A CN114625050A (en) | 2022-06-14 |
CN114625050B true CN114625050B (en) | 2024-07-26 |
Family
ID=81904766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210276913.0A Active CN114625050B (en) | 2022-03-21 | 2022-03-21 | Electronic equipment and voltage data transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114625050B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102130899A (en) * | 2010-12-28 | 2011-07-20 | 华为技术有限公司 | Power protocol management method, device and applied power system |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2883121A1 (en) * | 2012-08-09 | 2015-06-17 | Telefonaktiebolaget LM Ericsson (PUBL) | Method and module for providing instructions for setting a supply voltage |
CN202815646U (en) * | 2012-08-13 | 2013-03-20 | 中兴通讯股份有限公司 | Intelligent power supply control device for data communication chip and communication equipment |
CN107046629A (en) * | 2016-12-27 | 2017-08-15 | 康佳集团股份有限公司 | A kind of Split TV set and its control method |
CN106972736B (en) * | 2017-05-26 | 2023-06-30 | 深圳市乐得瑞科技有限公司 | Power supply adapting device, control method and device |
WO2019113732A1 (en) * | 2017-12-11 | 2019-06-20 | 深圳市柔宇科技有限公司 | Electronic device and charging control method |
KR20200133062A (en) * | 2019-05-15 | 2020-11-26 | 삼성디스플레이 주식회사 | Display driver integrated circuit and display system having the same |
CN112671062A (en) * | 2020-12-17 | 2021-04-16 | 维沃移动通信有限公司 | Charging control method and device |
CN112737028B (en) * | 2020-12-29 | 2022-12-27 | 维沃移动通信有限公司 | Charging conversion equipment and charging control method |
CN112596453A (en) * | 2021-03-04 | 2021-04-02 | 南京纬多科技有限公司 | Standardized unmanned aerial vehicle electric power control system |
-
2022
- 2022-03-21 CN CN202210276913.0A patent/CN114625050B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102130899A (en) * | 2010-12-28 | 2011-07-20 | 华为技术有限公司 | Power protocol management method, device and applied power system |
Also Published As
Publication number | Publication date |
---|---|
CN114625050A (en) | 2022-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6438462B1 (en) | Semiconductor circuit for an electronic unit | |
US9560217B2 (en) | Adapters, terminal devices, USB connection devices and charging stations | |
CN104216499B (en) | Rack and its power control method | |
US20150019884A1 (en) | Pd in poe system having redundant pse channel inputs | |
CN103793037A (en) | Device and method for electric power management of a plurality of peripheral interfaces | |
DE102015103057A1 (en) | Interface circuits for USB and lighting applications | |
CA2591971C (en) | System and method for measuring fuel cell voltage | |
US7825539B2 (en) | Electronic device with power connection module | |
CN112130061B (en) | Chip synchronous testing device and chip synchronous testing method | |
CN114625050B (en) | Electronic equipment and voltage data transmission method | |
CN102129281A (en) | Dynamic regulation circuit and computer system with the same | |
US8102180B2 (en) | CPU voltage testing system and method thereof | |
TW201411330A (en) | Method and module for providing instructions for setting a supply voltage | |
JPH11160371A (en) | Voltage detection apparatus of battery pack | |
CN109050444A (en) | CAN circuit structure and its vehicle diagnostic equipment | |
CN103201638A (en) | Power supply device | |
CN101373396B (en) | Current limiting protecting apparatus and current limiting protecting method | |
CN106647903B (en) | Method, system and device for supplying power to direct-current stabilized power supply | |
CN101174235A (en) | Test board and test system | |
CN105098816B (en) | HVDC transmission system and its control method | |
US20130328580A1 (en) | Test circuit for power supply unit | |
CN105162329A (en) | Electronic device and identification method for output power of power supplier of electronic device | |
JP6036229B2 (en) | Battery control device, battery control method, and program | |
CN108205371B (en) | Power supply chip, power supply and electric energy supply method | |
CN112463498A (en) | Hardware module testing method, system, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |