Voltage sampling resistor pairing method and device, storage medium and computer equipment
By using the method of computed arrangement and combination and preset voltage division formula calculation in hardware principle design, the problem of inefficient voltage sampling feedback resistance search and pairing is solved, and more efficient and accurate resistance selection is achieved.
Patent Information
- Application Number
- CN202510132460.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-06
- Publication Date
- 2025-05-13
AI Technical Summary
During the hardware principle design stage, the search and pairing of voltage sampling feedback resistors is low, resulting in low manual calculation efficiency and prone to errors.
By obtaining the output voltage range, voltage divider resistance value range and voltage divider voltage, the E96 series resistance values of the IEC resistance standard file are used to determine multiple E96 voltage divider combinations through arrangement and combination, and the output voltage of each combination is calculated using the preset voltage divider formula, the combination that meets the output voltage range is selected, and a selection list of voltage divider resistance combinations to be selected is generated.
It improves the efficiency of resistor selection, reduces trial and error time, avoids possible errors in manual calculations, and significantly improves the work efficiency and accuracy of the hardware principle design stage.
Smart Images

Figure CN119990028A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of hardware principle design, and in particular to a voltage sampling resistor pairing method, device, storage medium and computer equipment. Background Art
[0002] In the hardware principle design stage of electronic products, the calculation of voltage sampling feedback resistors is a common and important link. Whether it is a DC-DC power supply, an adjustable output of a linear regulator, or an ADC voltage divider sampling circuit, accurate resistor voltage division is required to achieve voltage sampling and feedback. At present, engineers need to determine the resistance value of the voltage divider resistor through complex calculation formulas according to the specific needs of the circuit during the design process. However, manual calculation is not only inefficient, but also prone to errors due to cumbersome steps and a lot of searches. In addition, due to the wide range of resistance values of the E96 series resistors, engineers often need to spend a lot of time on trial and error when looking for the best combination. Therefore, in the hardware principle design, the search and pairing efficiency of voltage sampling feedback resistors is low. Summary of the invention
[0003] The purpose of the present application is to solve at least one of the above-mentioned technical defects, especially the technical defect of low efficiency in searching and matching voltage sampling feedback resistors in the hardware principle design in the prior art.
[0004] In a first aspect, the present application provides a voltage sampling resistor pairing method, the method comprising:
[0005] Obtaining an output voltage range, a first voltage-dividing resistor value range, a second voltage-dividing resistor value range, and a divided voltage;
[0006] According to the first voltage-dividing resistor value range and the second voltage-dividing resistor value range, multiple E96 voltage-dividing resistor combinations are determined by permutation and combination in the E96 series resistance values in the IEC resistance standard file;
[0007] Calculate the output voltage corresponding to each E96 voltage-dividing resistor combination according to the preset voltage-dividing formula, each E96 voltage-dividing resistor combination and the voltage-dividing voltage;
[0008] The E96 voltage-dividing resistor combinations whose output voltages meet the output voltage range are used as the E96 voltage-dividing resistor combinations to be selected, and an E96 voltage-dividing resistor combination selection list is generated according to each E96 voltage-dividing resistor combination to be selected and its corresponding output voltage.
[0009] In one embodiment, the method further comprises:
[0010] When the resistor material library is selected, if it is determined that there is a component voltage-dividing resistor combination to be selected among the multiple component resistance values in the resistor material library according to the first voltage-dividing resistor value range, the second voltage-dividing resistor value range, the preset voltage-dividing formula and the voltage-dividing voltage, then a component voltage-dividing resistor combination selection list is generated according to each component voltage-dividing resistor combination to be selected and its corresponding output voltage;
[0011] The voltage-dividing resistor combination of the selected component to be selected is determined, and the resistor component part number corresponding to the voltage-dividing resistor combination of the selected component to be selected is displayed, so that the user can copy the resistor component part number for circuit design.
[0012] In one embodiment, according to the first voltage-dividing resistor value range, the second voltage-dividing resistor value range, the preset voltage-dividing formula and the voltage-dividing voltage, the step of determining that there is a voltage-dividing resistor combination to be selected among multiple component resistance values in the resistor material library includes:
[0013] If, among the multiple component resistance values in the resistance material library, at least one component resistance value conforms to the first voltage-dividing resistance value range, and at least one component resistance value conforms to the second voltage-dividing resistance value range, then the component resistance values conforming to the first voltage-dividing resistance value range and the component resistance values conforming to the second voltage-dividing resistance value range are arranged and combined to determine multiple component voltage-dividing resistance combinations;
[0014] If after calculating the output voltage corresponding to each component voltage-divider resistor combination according to the preset voltage-divider formula, each component voltage-divider resistor combination and the voltage-divider voltage, the output voltage corresponding to at least one component voltage-divider resistor combination meets the output voltage range, then it is determined that there is a component voltage-divider resistor combination to be selected, and each component voltage-divider resistor combination whose output voltage meets the output voltage range is used as the component voltage-divider resistor combination to be selected.
[0015] In one embodiment, the method further comprises:
[0016] When the resistor material library is selected, if it is determined that there is no component voltage-dividing resistor combination to be selected, a component voltage-dividing resistor combination blank table is generated to allow the user to select from the E96 voltage-dividing resistor combination selection list.
[0017] In one embodiment, the preset voltage division formula is:
[0018]
[0019] in, is the output voltage, and is a voltage divider resistor combination, is the first voltage-dividing resistor, is the second voltage-dividing resistor, is the divided voltage.
[0020] In one embodiment, the method further comprises:
[0021] When it is determined to generate an E96 voltage-divider resistor combination selection list and / or a component voltage-divider resistor combination selection list, the output voltage range, the first voltage-divider resistor value range, the second voltage-divider resistor value range and the voltage-divider voltage corresponding to the generated E96 voltage-divider resistor combination selection list and / or the component voltage-divider resistor combination selection list are saved.
[0022] In one embodiment, the method further comprises:
[0023] In response to a reset request, the acquired output voltage range, the first voltage-dividing resistor value range, the second voltage-dividing resistor value range and the divided voltage, as well as the generated E96 voltage-dividing resistor combination selection list and / or the component voltage-dividing resistor combination selection list are cleared.
[0024] In a second aspect, the present application provides a voltage sampling resistor pairing device, the device comprising:
[0025] An input parameter acquisition module is used to acquire an output voltage range, a first voltage-dividing resistor value range, a second voltage-dividing resistor value range, and a voltage-dividing voltage;
[0026] An E96 voltage-dividing resistor combination determination module is used to determine multiple E96 voltage-dividing resistor combinations by permutation and combination in the E96 series resistance values in the IEC resistance standard file according to the first voltage-dividing resistor value range and the second voltage-dividing resistor value range;
[0027] An output voltage calculation module, used to calculate the output voltage corresponding to each E96 voltage-dividing resistor combination according to a preset voltage-dividing formula, each E96 voltage-dividing resistor combination and the voltage-dividing voltage;
[0028] The E96 voltage-dividing resistor combination selection list generation module is used to use the E96 voltage-dividing resistor combination whose output voltage meets the output voltage range as the E96 voltage-dividing resistor combination to be selected, and generate the E96 voltage-dividing resistor combination selection list according to each E96 voltage-dividing resistor combination to be selected and its corresponding output voltage.
[0029] In a third aspect, the present application provides a storage medium: the storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the voltage sampling resistor pairing method in any of the above embodiments.
[0030] In a fourth aspect, the present application provides a computer device, comprising: one or more processors, and a memory;
[0031] The memory stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the steps of the voltage sampling resistor pairing method in any one of the above embodiments are performed.
[0032] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0033] The present application provides a voltage sampling resistor pairing method, which solves the problem of low efficiency in manually calculating and searching for voltage divider resistors in the prior art through calculation and screening processes. The method first obtains key parameters such as the output voltage range, the voltage divider resistor value range, and the voltage divider voltage, and then quickly determines multiple possible voltage divider resistor combinations through permutations and combinations in the E96 series of the IEC resistor standard file. Then, the output voltage of each combination is calculated using the preset voltage divider formula, and the combination that meets the output voltage range is screened out to generate a selection list of voltage divider resistor combinations to be selected. This method not only improves the efficiency of resistor selection and reduces trial and error time, but also avoids possible errors in manual calculations, and significantly improves the work efficiency and accuracy of the hardware principle design stage. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0035] Figure 1 A schematic diagram of a flow chart of a voltage sampling resistor pairing method provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of the structure of a voltage sampling resistor pairing device provided in an embodiment of the present application;
[0037] Figure 3 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0039] The present application provides a voltage sampling resistor pairing method. The following embodiments are described by taking the method applied to a computer device as an example. It can be understood that the computer device can be any device with data processing functions, including but not limited to a single server, a server cluster, a personal laptop, a desktop computer, etc. Figure 1 As shown, the method may include the following steps:
[0040] S101: Obtain an output voltage range, a first voltage-dividing resistor value range, a second voltage-dividing resistor value range, and a divided voltage.
[0041] Among them, the output voltage range refers to the voltage output range that is expected to be obtained in the circuit design. For example, for a linear regulator, the output voltage range may be 3V to 5V. The first voltage-dividing resistor value range refers to the resistance value range that one resistor in the voltage-dividing circuit can take. The second voltage-dividing resistor value range refers to the resistance value range that another resistor in the voltage-dividing circuit can take. The voltage divider voltage refers to the voltage value that is expected to be obtained through the voltage divider circuit, that is, the voltage difference obtained on the two voltage-dividing resistors.
[0042] In this step, first, the output voltage range, the value range of the first and second voltage-dividing resistors, and the voltage divider voltage can be obtained by the user input or automatically collected from the known design parameters. Next, the resistance value that meets the value range of the first voltage-dividing resistor and the value range of the second voltage-dividing resistor is searched in the E96 standard resistor table, and multiple possible resistance combinations are generated by permutation and combination. Each resistance combination is calculated based on the preset voltage-dividing formula to obtain the corresponding output voltage. The calculated output voltage is compared with the preset output voltage range, and the qualified resistance combination is screened out to form a final resistance selection list.
[0043] It can be understood that, first of all, by obtaining input parameters, including the output voltage range, the first voltage-dividing resistor value range, the second voltage-dividing resistor value range and the voltage-dividing resistor, the conditions for resistor selection can be accurately defined, thereby quickly narrowing the range of resistor selection. Next, the permutation and combination method is used to search in the standard E96 resistor series, avoiding the tedious steps of manually finding each resistor value in traditional design, saving a lot of time. At the same time, by using the preset voltage-dividing formula to calculate the output voltage of each combination, the resistor combination that meets the voltage range requirements can be quickly screened out, reducing the possibility of human error and improving the accuracy and reliability of the design. Finally, by automatically generating a list of candidate resistor combinations, engineers can efficiently make the best choice, thereby improving the overall efficiency and accuracy of hardware design.
[0044] S102: According to the first voltage-dividing resistor value range and the second voltage-dividing resistor value range, multiple E96 voltage-dividing resistor combinations are determined by permutation and combination in the E96 series resistance values in the IEC resistance standard file.
[0045] Among them, the IEC resistor standard file refers to the resistor standard file issued by the International Electrotechnical Commission (IEC), which contains the resistance ranges of multiple standard resistor series, such as E12, E24, E96, etc., which are used to guide the selection and application of resistors. The E96 series is a precision resistor series specified in the IEC standard, including 96 fixed-value resistors, which are usually used for high-precision circuit design. These resistance values are distributed according to the logarithmic law and are suitable for various precision circuits. The E96 voltage divider resistor combination refers to the combination of resistor pairs that meet the requirements of the voltage divider circuit by selecting the resistance values in the E96 series, which is used to realize the target voltage sampling and feedback functions.
[0046] In this step, the IEC resistor standard file is accessed and the list of E96 series resistor values is loaded. After the value ranges of the first and second voltage-dividing resistors are determined, the permutation and combination algorithm is used to traverse all qualified resistor values to generate all possible E96 voltage-dividing resistor combinations. For example, assuming that the value range of the first resistor is 100Ω to 1kΩ and the value range of the second resistor is 10Ω to 100Ω, all possible combinations will be automatically listed, such as 100Ω and 10Ω, 100Ω and 20Ω, etc.
[0047] It can be understood that, first of all, by automatically screening out all possible combinations from the E96 series resistance values according to the first voltage-dividing resistance value range and the second voltage-dividing resistance value range, the tedious process of manual search and calculation by engineers is avoided. The permutation and combination algorithm ensures that all resistance combinations that meet the requirements are generated, and can quickly traverse all possible combinations, greatly shortening the design cycle. In this way, through systematic calculation and automated combination generation, not only the design speed is improved, but also the risk of human error is reduced, allowing engineers to find the best resistance combination that meets the requirements in a shorter time, thereby improving the work efficiency and accuracy of hardware design.
[0048] S103: Calculate the output voltage corresponding to each E96 voltage-dividing resistor combination according to a preset voltage-dividing formula, each E96 voltage-dividing resistor combination and the voltage-dividing voltage.
[0049] The preset voltage divider formula refers to a mathematical formula used to calculate the output voltage of the voltage divider circuit. The output voltage refers to the voltage value calculated by the voltage divider circuit, that is, the voltage measured at the output end of the circuit.
[0050] In this step, each pair of E96 voltage-dividing resistor combinations is calculated according to the preset voltage-dividing formula and voltage-dividing voltage. For each resistor combination, its resistance value is substituted into the formula to automatically calculate the corresponding output voltage.
[0051] It can be understood that, first of all, the preset voltage division formula can accurately calculate the output voltage of each E96 voltage division resistor combination without manual intervention. Through the automated calculation process, it can not only improve the efficiency of calculation, reduce the tedious manual calculation steps, but also avoid the occurrence of human calculation errors.
[0052] S104: taking the E96 voltage-dividing resistor combinations whose output voltages meet the output voltage range as the E96 voltage-dividing resistor combinations to be selected, and generating an E96 voltage-dividing resistor combination selection list according to each E96 voltage-dividing resistor combination to be selected and its corresponding output voltage.
[0053] The E96 voltage-dividing resistor combination to be selected refers to the E96 resistor combination that is selected in the calculation and meets the requirements of the specified output voltage range. The E96 voltage-dividing resistor combination selection list is a list of E96 voltage-dividing resistor combinations that have been screened and meet the requirements of the output voltage range and their corresponding output voltages. This list helps engineers quickly view all resistor combinations that meet the requirements.
[0054] In this step, all possible E96 voltage-dividing resistor combinations and their corresponding output voltage values are first calculated. Next, all resistor combinations whose output voltages meet the requirements of the preset output voltage range are screened out to form a list of E96 voltage-dividing resistor combinations to be selected. In one example, for each resistor combination that meets the output voltage range, its resistance value and its corresponding output voltage are listed together to form an E96 voltage-dividing resistor combination selection list, which can be sorted or further screened as needed, such as sorting by resistance value or output voltage accuracy. Furthermore, when pairing out the resistor combination, the minimum PCB package that the resistor combination meets the power safety range can be recommended.
[0055] It can be understood that, first of all, screening out the E96 voltage divider resistor combinations that meet the output voltage range can effectively narrow the selection range without having to manually screen and verify each combination, thus saving a lot of time and effort. Secondly, generating a complete E96 voltage divider resistor combination selection list can view all qualified combinations at a glance and make the best choice based on resistance value or other criteria. This not only reduces the trial and error process, but also improves the accuracy and reliability of the design. By automatically generating a selection list, engineers can find the resistor combination that meets the design requirements more quickly, promoting the rapid advancement of hardware design.
[0056] In the above embodiment, the problem of low efficiency in manually calculating and searching for voltage divider resistors in the prior art is solved through calculation and screening processes. The method first obtains key parameters such as the output voltage range, the voltage divider resistor value range, and the voltage divider voltage, and then quickly determines multiple possible voltage divider resistor combinations through permutations and combinations in the E96 series of the IEC resistor standard file. Next, the output voltage of each combination is calculated using a preset voltage divider formula, and the combination that meets the output voltage range is screened out to generate a selection list of voltage divider resistor combinations to be selected. This method not only improves the efficiency of resistor selection and reduces trial and error time, but also avoids possible errors in manual calculations, significantly improving the work efficiency and accuracy of the hardware principle design stage.
[0057] In one embodiment, the method further comprises:
[0058] When the resistor material library is selected, if it is determined that there is a component voltage-dividing resistor combination to be selected among the multiple component resistance values in the resistor material library according to the first voltage-dividing resistor value range, the second voltage-dividing resistor value range, the preset voltage-dividing formula and the voltage-dividing voltage, then a component voltage-dividing resistor combination selection list is generated according to each component voltage-dividing resistor combination to be selected and its corresponding output voltage;
[0059] The voltage-dividing resistor combination of the selected component to be selected is determined, and the resistor component part number corresponding to the voltage-dividing resistor combination of the selected component to be selected is displayed, so that the user can copy the resistor component part number for circuit design.
[0060] Among them, the resistor material library refers to a database or resource library that stores data on various resistor components, including resistor components of different resistance values, their specifications, models and other related information. The component voltage-dividing resistor combination to be selected refers to a resistor pairing formed by selecting resistor components that meet the voltage output requirements in the resistor material library. The component voltage-dividing resistor combination selection list is a list of resistor pairs generated after screening the resistor combinations that meet the requirements, listing each resistor combination and its corresponding output voltage. The resistor component material number refers to the unique identifier or number of the resistor component in the material library, which is used to identify and purchase the component.
[0061] Specifically, when a resistor material library is selected, all resistor element data contained in the library are first loaded. Based on the first voltage-dividing resistor value range and the second voltage-dividing resistor value range, the preset voltage-dividing formula and the voltage-dividing voltage, the resistor elements that meet these conditions are screened out from the resistor material library. Multiple possible resistor combinations are generated by permutations and combinations, and the output voltage of each combination is calculated. All resistor combinations that meet the voltage-dividing voltage requirements and their output voltages are listed to generate a component voltage-dividing resistor combination selection list, so that the user can select the most suitable resistor combination in the selection list, and display the detailed information of the selected resistor combination, including the corresponding resistor element material number. The user can copy these material numbers for circuit design. Furthermore, it is possible to select whether the two resistors use the same PCB package, pair them more conveniently and quickly, and calculate the corresponding power according to the resistor package, and prompt the resistors that do not meet the power safety range.
[0062] In this embodiment, first, according to the given resistance value range and voltage requirement, the resistor combination that meets the requirements can be quickly screened out from the resistor material library. This automated screening avoids the tediousness of manual search and calculation, which not only greatly improves work efficiency, but also reduces the risk of human error. Secondly, the generated component voltage divider resistor combination selection list can quickly browse all the resistor combinations that meet the requirements, saving a lot of trial and error time. Finally, the resistor component material number corresponding to the selected resistor combination is displayed, and the material number can be directly copied for circuit design, which further improves the design efficiency and ensures the accuracy and fluency of the circuit design process.
[0063] In one embodiment, according to the first voltage-dividing resistor value range, the second voltage-dividing resistor value range, the preset voltage-dividing formula and the voltage-dividing voltage, the step of determining that there is a voltage-dividing resistor combination to be selected among the multiple component resistance values in the resistor material library includes:
[0064] If, among the multiple component resistance values in the resistance material library, at least one component resistance value conforms to the first voltage-dividing resistance value range, and at least one component resistance value conforms to the second voltage-dividing resistance value range, then the component resistance values conforming to the first voltage-dividing resistance value range and the component resistance values conforming to the second voltage-dividing resistance value range are arranged and combined to determine multiple component voltage-dividing resistance combinations;
[0065] If after calculating the output voltage corresponding to each component voltage-divider resistor combination according to the preset voltage-divider formula, each component voltage-divider resistor combination and the voltage-divider voltage, the output voltage corresponding to at least one component voltage-divider resistor combination meets the output voltage range, then it is determined that there is a component voltage-divider resistor combination to be selected, and each component voltage-divider resistor combination whose output voltage meets the output voltage range is used as the component voltage-divider resistor combination to be selected.
[0066] Specifically, first, all resistor elements that meet the first voltage-dividing resistance value range and the second voltage-dividing resistance value range are screened out from the resistor material library. If it is determined that there is at least one element resistance value that meets the first voltage-dividing resistance value range, and at least one element resistance value that meets the second voltage-dividing resistance value range, then by arranging and combining these resistor elements, multiple element voltage-dividing resistance combinations are generated. Each generated resistance combination substitutes the resistance value and the voltage-dividing voltage into the preset voltage-dividing formula to calculate the output voltage corresponding to each combination. Next, all resistance combinations whose output voltages meet the preset output voltage range are screened out, and the combinations that meet the requirements will be marked as element voltage-dividing resistance combinations to be selected.
[0067] In this embodiment, by screening resistor elements that meet a specific range from the resistor material library and arranging and combining them, the inefficient steps of manual search and calculation are avoided, and the occurrence of manual errors is reduced. By using the preset voltage division formula, the output voltage of each resistor combination can be accurately calculated, and the combination that meets the output voltage range can be automatically screened to quickly determine the resistor combination to be selected. This not only greatly shortens the circuit design time, but also improves the decision-making efficiency in the design process, ensuring that the final selected resistor combination can meet the preset voltage requirements.
[0068] In one embodiment, the method further comprises:
[0069] When the resistor material library is selected, if it is determined that there is no component voltage-dividing resistor combination to be selected, a component voltage-dividing resistor combination blank table is generated to allow the user to select from the E96 voltage-dividing resistor combination selection list.
[0070] Specifically, when the user selects a resistor material library, it will first determine whether there are resistor elements that meet the first voltage divider resistor value range and the second voltage divider resistor value range based on the component resistance values in the resistor material library. If not, a blank table of component voltage divider resistor combinations is generated. If so, the output voltage of these resistor elements is calculated using a preset voltage divider formula, and which component combinations meet the output voltage range is checked. If there is no combination that meets the conditions, a blank table of component voltage divider resistor combinations is also generated. This blank table shows that the user needs to further manually select a resistor combination and select it from the E96 voltage divider resistor combination selection list. Although the table is blank, it provides a clear framework to help users understand which resistor combinations need to be manually supplemented.
[0071] In this embodiment, when there is no combination that meets the requirements, a blank table is generated and the user is allowed to select manually, which not only ensures flexibility but also provides users with more freedom. In this case, the user can perform more detailed manual screening or adjustment in the resistor material library to ensure that the final selected resistor combination fully meets the requirements. This mechanism enhances the adaptability of the design process, while avoiding breaks in the design process, allowing users to complete circuit design more efficiently.
[0072] In one embodiment, the preset voltage division formula is:
[0073]
[0074] in, is the output voltage, and is a voltage divider resistor combination, is the first voltage-dividing resistor, is the second voltage-dividing resistor, is the divided voltage.
[0075] Specifically, the formula describes a simple voltage divider circuit where is the output voltage of the circuit, and It is two voltage-dividing resistors connected in series. is the input voltage applied to the two resistors, that is, the divided voltage. According to Ohm's law and the voltage distribution principle of the series circuit, the output voltage is the input voltage go through and The voltage obtained after resistor division.
[0076] In one embodiment, the method further comprises:
[0077] When it is determined to generate an E96 voltage-divider resistor combination selection list and / or a component voltage-divider resistor combination selection list, the output voltage range, the first voltage-divider resistor value range, the second voltage-divider resistor value range and the voltage-divider voltage corresponding to the generated E96 voltage-divider resistor combination selection list and / or the component voltage-divider resistor combination selection list are saved.
[0078] Specifically, when the E96 voltage-dividing resistor combination selection list and / or the component voltage-dividing resistor combination selection list are generated, these generated lists and their corresponding design parameters, such as output voltage range, first and second voltage-dividing resistor value ranges, voltage-dividing voltage, etc., are automatically saved. For example, assuming that the user selects a certain resistor material library and performs resistance calculations, and generates a qualified resistor combination selection list, these resistor combinations and their output voltage ranges will be saved. Later, if you need to review the list or adjust the resistance value, you only need to query the record, avoiding repeated calculations.
[0079] In this embodiment, saving the E96 voltage-dividing resistor combination selection list and / or the component voltage-dividing resistor combination selection list and its related parameters can effectively reduce errors in the calculation and selection process, and also facilitate users to review, adjust or reuse historical data, thereby improving work efficiency and design accuracy. By saving these data, designers can quickly understand the conditions and parameters on which the current design is based, avoid design errors caused by parameter changes, and ensure design consistency and traceability, especially in the design process of multiple modifications or iterations.
[0080] In one embodiment, the method further comprises:
[0081] In response to a reset request, the acquired output voltage range, the first voltage-dividing resistor value range, the second voltage-dividing resistor value range and the divided voltage, as well as the generated E96 voltage-dividing resistor combination selection list and / or the component voltage-dividing resistor combination selection list are cleared.
[0082] Specifically, when the reset request is triggered, a series of clearing operations will be performed to ensure that all previously acquired data and generated lists are reset to the initial state. Specifically, the current voltage range data is deleted and restored to the default empty value or initial setting to ensure that subsequent calculations will not be affected by previous data; the first voltage divider resistance range and the second voltage divider resistance range data are cleared and reset to the initial setting or default value to ensure that the new design will not misuse the previous data; the voltage divider voltage is cleared to prevent the original voltage divider voltage from affecting the subsequent resistance calculation; all the generated resistance combination lists will also be cleared to prevent the old combination from interfering with the new round of resistance selection.
[0083] For example, suppose that in a resistor selection tool, the user enters the design parameters and generates a list of E96 resistor combinations. When the user decides to start over or modify the design requirements, clicking the "Reset" button will clear all related data and the generated resistor combination list, providing a clean starting point for a new design process.
[0084] In this embodiment, the operation of clearing data and lists ensures that subsequent searches for paired resistors will not be disturbed by previous input or calculation processes, thereby avoiding the use of outdated or erroneous parameters in a new design process.
[0085] The following describes the voltage sampling resistor pairing device provided in the embodiment of the present application. The voltage sampling resistor pairing device described below and the voltage sampling resistor pairing method described above can be referred to each other. Figure 2 As shown, the present application provides a voltage sampling resistor pairing device, the device comprising:
[0086] An input parameter acquisition module 201 is used to acquire an output voltage range, a first voltage-dividing resistor value range, a second voltage-dividing resistor value range, and a divided voltage;
[0087] An E96 voltage-dividing resistor combination determination module 202 is used to determine a plurality of E96 voltage-dividing resistor combinations by permutation and combination in the E96 series resistance values in the IEC resistance standard file according to the first voltage-dividing resistor value range and the second voltage-dividing resistor value range;
[0088] The output voltage calculation module 203 is used to calculate the output voltage corresponding to each E96 voltage-dividing resistor combination according to a preset voltage-dividing formula, each E96 voltage-dividing resistor combination and the voltage-dividing voltage;
[0089] The E96 voltage-dividing resistor combination selection list generating module 204 is used to select the E96 voltage-dividing resistor combination whose output voltage meets the output voltage range as the E96 voltage-dividing resistor combination to be selected, and to generate the E96 voltage-dividing resistor combination selection list according to each E96 voltage-dividing resistor combination to be selected and its corresponding output voltage.
[0090] In one embodiment, the apparatus further comprises:
[0091] A component voltage-dividing resistor combination selection list generating module is used for, when the resistor material library is selected, if it is determined that there is a component voltage-dividing resistor combination to be selected among the multiple component resistance values in the resistor material library according to the first voltage-dividing resistor value range, the second voltage-dividing resistor value range, the preset voltage-dividing formula and the voltage-dividing voltage, then generating a component voltage-dividing resistor combination selection list according to each component voltage-dividing resistor combination to be selected and its corresponding output voltage;
[0092] The resistor component material number display module is used to determine the voltage-dividing resistor combination of the selected component to be selected, and display the resistor component material number corresponding to the voltage-dividing resistor combination of the selected component to be selected, so that the user can copy the resistor component material number for circuit design.
[0093] In one embodiment, the component voltage divider resistor combination selection list generation module includes:
[0094] A component voltage-dividing resistance combination determining unit, for determining a plurality of component voltage-dividing resistance combinations by permuting and combining the component resistance values that meet the first voltage-dividing resistance value range and the component resistance values that meet the second voltage-dividing resistance value range, if at least one component resistance value meets the first voltage-dividing resistance value range and at least one component resistance value meets the second voltage-dividing resistance value range among the plurality of component resistance values in the resistance material library;
[0095] The unit for determining the component voltage-divider resistor combination to be selected is used to determine that there is a component voltage-divider resistor combination to be selected if the output voltage corresponding to each component voltage-divider resistor combination is calculated according to a preset voltage-divider formula, each component voltage-divider resistor combination and the voltage-divider voltage, and if the output voltage corresponding to at least one component voltage-divider resistor combination meets the output voltage range, and each component voltage-divider resistor combination whose output voltage meets the output voltage range is used as the component voltage-divider resistor combination to be selected.
[0096] In one embodiment, the apparatus further comprises:
[0097] The component voltage divider resistor combination blank table generation module is used to generate a component voltage divider resistor combination blank table when the resistor material library is selected and it is determined that there is no component voltage divider resistor combination to be selected, so that the user can select from the E96 voltage divider resistor combination selection list.
[0098] In one embodiment, the preset voltage division formula is:
[0099]
[0100] in, is the output voltage, and is a voltage divider resistor combination, is the first voltage-dividing resistor, is the second voltage-dividing resistor, is the divided voltage.
[0101] In one embodiment, the apparatus further comprises:
[0102] A record saving module is used to save the output voltage range, the first voltage-dividing resistor value range, the second voltage-dividing resistor value range and the voltage-dividing voltage corresponding to the generated E96 voltage-dividing resistor combination selection list and / or the component voltage-dividing resistor combination selection list when it is determined to generate the E96 voltage-dividing resistor combination selection list and / or the component voltage-dividing resistor combination selection list.
[0103] In one embodiment, the apparatus further comprises:
[0104] The reset request response module is used to respond to the reset request and clear the acquired output voltage range, the first voltage-dividing resistor value range, the second voltage-dividing resistor value range and the voltage-dividing voltage, as well as the generated E96 voltage-dividing resistor combination selection list and / or the component voltage-dividing resistor combination selection list.
[0105] In one embodiment, the present application further provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the voltage sampling resistor pairing method as described in any one of the above embodiments.
[0106] In one embodiment, the present application further provides a computer device having computer-readable instructions stored therein. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the voltage sampling resistor pairing method as described in any one of the above embodiments.
[0107] Indicatively, Figure 3 As shown, Figure 3 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 300 may be provided as a server. Figure 3 The computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by a memory 301, for storing instructions executable by the processing component 302, such as an application. The application stored in the memory 301 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 302 is configured to execute instructions to perform the voltage sampling resistor pairing method of any of the above embodiments.
[0108] The computer device 300 may further include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, Free BSD TM, or the like.
[0109] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0110] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not clearly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. Herein, "one", "one", "said", "the" and "it" may also include plural forms, unless the context clearly indicates another way. A plurality refers to at least two cases, such as 2, 3, 5 or 8, etc. "And / or" includes any and all combinations of the relevant listed items.
[0111] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.
[0112] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A voltage sampling resistor pairing method, characterized in that: The method comprises: Obtaining an output voltage range, a first voltage-dividing resistor value range, a second voltage-dividing resistor value range, and a divided voltage; According to the first voltage-dividing resistor value range and the second voltage-dividing resistor value range, multiple E96 voltage-dividing resistor combinations are determined by permutation and combination in the E96 series resistance values in the IEC resistance standard file; Calculate the output voltage corresponding to each of the E96 voltage-dividing resistor combinations according to a preset voltage-dividing formula, each of the E96 voltage-dividing resistor combinations and the voltage-dividing voltage; The E96 voltage-dividing resistor combinations whose output voltages meet the output voltage range are used as the E96 voltage-dividing resistor combinations to be selected, and an E96 voltage-dividing resistor combination selection list is generated according to each of the E96 voltage-dividing resistor combinations to be selected and their corresponding output voltages.
2. The voltage sampling resistor pairing method according to claim 1, characterized in that: The method further comprises: When the resistor material library is selected, if it is determined that there is a component voltage-dividing resistor combination to be selected among the multiple component resistance values in the resistor material library according to the first voltage-dividing resistor value range, the second voltage-dividing resistor value range, the preset voltage-dividing formula and the voltage-dividing voltage, then a component voltage-dividing resistor combination selection list is generated according to each of the component voltage-dividing resistor combinations to be selected and their corresponding output voltages; The voltage-dividing resistor combination of the selected component to be selected is determined, and the resistor component part number corresponding to the voltage-dividing resistor combination of the selected component to be selected is displayed, so that the user can copy the resistor component part number for circuit design.
3. The voltage sampling resistor pairing method according to claim 2, characterized in that: The step of determining that there is a voltage-dividing resistor combination to be selected among a plurality of component resistance values in the resistance material library according to the first voltage-dividing resistor value range, the second voltage-dividing resistor value range, the preset voltage-dividing formula and the voltage-dividing voltage comprises: If, among the plurality of component resistance values in the resistance material library, at least one component resistance value conforms to the first voltage-dividing resistance value range, and at least one component resistance value conforms to the second voltage-dividing resistance value range, then the component resistance values conforming to the first voltage-dividing resistance value range and the component resistance values conforming to the second voltage-dividing resistance value range are arranged and combined to determine a plurality of component voltage-dividing resistance combinations; If after calculating the output voltage corresponding to each of the component voltage-divider resistor combinations according to the preset voltage-divider formula, each of the component voltage-divider resistor combinations and the voltage-divider voltage, the output voltage corresponding to at least one of the component voltage-divider resistor combinations meets the output voltage range, it is determined that there is a component voltage-divider resistor combination to be selected, and each component voltage-divider resistor combination whose output voltage meets the output voltage range is used as a component voltage-divider resistor combination to be selected.
4. The voltage sampling resistor pairing method according to claim 2, characterized in that: The method further comprises: When the resistor material library is selected, if it is determined that there is no component voltage-dividing resistor combination to be selected, a component voltage-dividing resistor combination blank table is generated to allow the user to select from the E96 voltage-dividing resistor combination selection list.
5. The voltage sampling resistor pairing method according to any one of claims 1 to 4, characterized in that: The preset voltage division formula is: in, is the output voltage, and is a voltage divider resistor combination, is the first voltage-dividing resistor, is the second voltage-dividing resistor, is the divided voltage.
6. The voltage sampling resistor pairing method according to any one of claims 2 to 4, characterized in that: The method further comprises: When it is determined to generate an E96 voltage-divider resistor combination selection list and / or a component voltage-divider resistor combination selection list, the output voltage range, the first voltage-divider resistor value range, the second voltage-divider resistor value range and the voltage-divider voltage corresponding to the generated E96 voltage-divider resistor combination selection list and / or the component voltage-divider resistor combination selection list are saved.
7. The voltage sampling resistor pairing method according to any one of claims 2 to 4, characterized in that: The method further comprises: In response to a reset request, the acquired output voltage range, the first voltage-dividing resistor value range, the second voltage-dividing resistor value range and the divided voltage, as well as the generated E96 voltage-dividing resistor combination selection list and / or the component voltage-dividing resistor combination selection list are cleared.
8. A voltage sampling resistor pairing device, characterized in that: The device comprises: An input parameter acquisition module is used to acquire an output voltage range, a first voltage-dividing resistor value range, a second voltage-dividing resistor value range, and a voltage-dividing voltage; An E96 voltage-dividing resistor combination determination module, configured to determine a plurality of E96 voltage-dividing resistor combinations by permutation and combination in the E96 series resistance values in the IEC resistance standard file according to the first voltage-dividing resistor value range and the second voltage-dividing resistor value range; An output voltage calculation module, used for calculating the output voltage corresponding to each of the E96 voltage-dividing resistor combinations according to a preset voltage-dividing formula, each of the E96 voltage-dividing resistor combinations and the voltage-dividing voltage; The E96 voltage-dividing resistor combination selection list generation module is used to use the E96 voltage-dividing resistor combination whose output voltage meets the output voltage range as the E96 voltage-dividing resistor combination to be selected, and generate the E96 voltage-dividing resistor combination selection list according to each of the E96 voltage-dividing resistor combination to be selected and its corresponding output voltage.
9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the voltage sampling resistor pairing method according to any one of claims 1 to 7.
10. A computer device, characterized in that: include: one or more processors, and memory; The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the voltage sampling resistor pairing method according to any one of claims 1 to 7 are executed.