CN113125940B - Circuit board correction method and device and electronic equipment - Google Patents

Circuit board correction method and device and electronic equipment Download PDF

Info

Publication number
CN113125940B
CN113125940B CN202110410460.1A CN202110410460A CN113125940B CN 113125940 B CN113125940 B CN 113125940B CN 202110410460 A CN202110410460 A CN 202110410460A CN 113125940 B CN113125940 B CN 113125940B
Authority
CN
China
Prior art keywords
conversion channel
circuit board
voltage value
conversion
channel
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
Application number
CN202110410460.1A
Other languages
Chinese (zh)
Other versions
CN113125940A (en
Inventor
王健
曹灿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qiaohong Numerical Control Science & Technology Shanghai Co ltd
Original Assignee
Qiaohong Numerical Control Science & Technology Shanghai Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qiaohong Numerical Control Science & Technology Shanghai Co ltd filed Critical Qiaohong Numerical Control Science & Technology Shanghai Co ltd
Priority to CN202110410460.1A priority Critical patent/CN113125940B/en
Publication of CN113125940A publication Critical patent/CN113125940A/en
Application granted granted Critical
Publication of CN113125940B publication Critical patent/CN113125940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2832Specific tests of electronic circuits not provided for elsewhere
    • G01R31/2834Automated test systems [ATE]; using microprocessors or computers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof

Abstract

The embodiment of the invention provides a circuit board correction method, a circuit board correction device and electronic equipment, wherein the method comprises the following steps: the controller sets at least two first voltage values for each first conversion channel of the first circuit board; wherein the first circuit board comprises at least one first switching channel; obtaining a second voltage value obtained after each first voltage value is converted through a first conversion channel of the first circuit board and a second conversion channel of the second circuit board; wherein the second switching channel is opposite to the type of the connected first switching channel; obtaining a linear relation of the first conversion channel according to the corresponding relation of the first voltage values and the second voltage values; wherein the linear relationship is used for correcting the conversion result of the first conversion channel. According to the embodiment of the invention, each first conversion channel of the first circuit board can be quickly corrected, the correction time is shortened, the correction efficiency is improved, and the increase of the hardware cost of the adjustable resistor in the hardware circuit is reduced.

Description

Circuit board correction method and device and electronic equipment
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a method and an apparatus for correcting a circuit board, and an electronic device.
Background
The traditional Analog to Digital converter (AD) conversion is simply referred to as Analog to Digital conversion, an external precise power supply is adopted to provide the external power supply for an AD channel, and if the input value is deviated from the external precise power supply, the voltage value is adjusted to approach the theoretical value through an adjustable resistor in a circuit board. Manually correcting data-Analog signal conversion (DA), which is referred to as Digital-to-Analog conversion for short, a voltage value is output by a DA channel of a circuit board through software writing, an actual value is measured through a multimeter, the actual value is deviated from a software written theoretical value, and the voltage value is adjusted to approach the theoretical value through an adjustable resistor in the circuit board.
Traditional manual correction AD or DA all need increase adjustable resistor in hardware circuit and rectify, and adjustable resistor has the pivot, and at abominable industrial field, along with live time's extension, the pivot shifts because of outside vibrations easily, and the resistance changes slightly, and the correction value is then no longer accurate, need reopen circuit board shell, manual calibration again, complex operation.
Disclosure of Invention
The embodiment of the invention aims to provide a circuit board correction method, a circuit board correction device and electronic equipment, so as to solve the problem of complicated correction operation.
In a first aspect, an embodiment of the present invention provides a method for correcting a circuit board, including:
the controller sets at least two preset first voltage values for each first conversion channel of the first circuit board; the first circuit board is a circuit board to be corrected and comprises at least one first conversion channel, and the first conversion channel is an analog-to-digital conversion channel or a digital-to-analog conversion channel;
the controller obtains a second voltage value obtained after each first voltage value is converted through a first conversion channel of the first circuit board and a second conversion channel of the second circuit board; the second circuit board is a reference circuit board and comprises at least one second conversion channel connected with the first conversion channel, and the type of the second conversion channel is opposite to that of the connected first conversion channel;
obtaining a linear relation of the first conversion channel according to the corresponding relation between each first voltage value and each second voltage value, and sending the linear relation to the first circuit board; wherein the linear relationship is used for correcting the conversion result of the first conversion channel.
In a second aspect, an embodiment of the present invention provides a circuit board calibration apparatus, including: the controller is connected with the first circuit board, the second circuit board and the computer end respectively; wherein the content of the first and second substances,
the controller is used for setting at least two preset first voltage values for each first conversion channel of the first circuit board; the first circuit board is a circuit board to be corrected and comprises at least one first conversion channel, and the first conversion channel is an analog-to-digital conversion channel or a digital-to-analog conversion channel;
the controller is further configured to obtain a second voltage value obtained after each first voltage value is converted by the first conversion channel of the first circuit board and the second conversion channel of the second circuit board; the second circuit board is a reference circuit board, the reference circuit board comprises at least one second conversion channel connected with the first conversion channel, and the type of the second conversion channel is opposite to that of the connected first conversion channel;
the computer end is used for obtaining the linear relation of the first conversion channel according to the corresponding relation between each first voltage value and each second voltage value and sending the linear relation to the first circuit board; wherein the linear relationship is used to correct the conversion result of the first conversion channel.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete mutual communication through a bus; the memory is used for storing a computer program; the processor is configured to execute the program stored in the memory to implement the steps of the circuit board calibration method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the circuit board calibration method according to the first aspect are implemented.
As can be seen from the above technical solutions provided by the embodiments of the present invention, in the embodiments of the present invention, at least two preset first voltage values are set for each first conversion channel of the first circuit board by the controller; the first circuit board is a circuit board to be corrected and comprises at least one first conversion channel, and the first conversion channel is an analog-to-digital conversion channel or a digital-to-analog conversion channel; the controller obtains a second voltage value obtained after each first voltage value is converted through a first conversion channel of the first circuit board and a second conversion channel of the second circuit board; the second circuit board is a reference circuit board and comprises at least one second conversion channel connected with the first conversion channel, and the type of the second conversion channel is opposite to that of the connected first conversion channel; obtaining a linear relation of the first conversion channel according to the corresponding relation between each first voltage value and each second voltage value, and sending the linear relation to the first circuit board; wherein the linear relationship is used for correcting the conversion result of the first conversion channel. According to the embodiment of the invention, each first conversion channel of the first circuit board can be quickly corrected, the correction time is shortened, the correction efficiency is improved, and the increase of the hardware cost of the adjustable resistor in the hardware circuit is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a circuit board calibration method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a circuit board calibration apparatus according to an embodiment of the present invention;
fig. 3 is another schematic structural diagram of a circuit board calibration apparatus according to an embodiment of the present invention;
fig. 4 is another schematic flow chart of a circuit board calibration method according to an embodiment of the present invention;
fig. 5 is another schematic structural diagram of a circuit board calibration apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a circuit board correction method and device and electronic equipment.
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, fig. 2 and fig. 3, an embodiment of the present invention provides a method for calibrating a circuit board, where the method is respectively connected to a controller 10, and the method specifically includes the following steps:
step S101, the controller 10 sets at least two preset first voltage values for each first conversion channel of the first circuit board 11; the first circuit board 11 is a circuit board to be corrected, and the first circuit board includes at least one first conversion channel, where the first conversion channel is an analog-to-digital conversion channel or a digital-to-analog conversion channel.
As shown in fig. 2, in the embodiment of the present application, a first circuit board 11 to be calibrated is connected to a second circuit board 12 serving as a reference circuit board, the first circuit board 11 and the second circuit board are respectively connected to a controller 10, and the controller 10 is connected to a computer 13.
Optionally, the Controller 10 may be a Programmable Logic Controller (PLC). The computer terminal 13 may be an upper computer or a PC tool, such as TMMC.
Optionally, the Controller 10 may be connected to the first circuit board 11 and the second circuit board 12 by a Controller Area Network (CAN) bus. The controller 10 communicates with the first circuit board 11 and the second circuit board 12 by using a CANopen communication protocol or any other industrial communication protocol, so that the controller 10 can write data into registers corresponding to each conversion channel of the first circuit board 11 and the second circuit board 12 or read data from the corresponding registers by using messages of the CANopen protocol or any other industrial communication protocol.
The first circuit board 11 includes at least one first conversion channel, which may be an AD conversion channel or a DA conversion channel. The first circuit board 11 and the second circuit board 12 are connected in such a way that each first switching channel of the first circuit board 11 is communicated with one second switching channel of the second circuit board 12, and each second switching channel is opposite to the type of the communicated first switching channel. If the first conversion channel is an AD conversion channel, communicating the first conversion channel with a DA conversion channel in the second circuit board 12; if the first conversion channel is a DA conversion channel, the first conversion channel is communicated with one AD conversion channel in the second circuit board 12. Taking fig. 3 as an example, the first circuit board 11 includes 3 AD conversion channels and 3 DA conversion channels, which are respectively in communication with the 3 DA conversion channels and 3 AD conversion channels of the second circuit board 12 in sequence.
When the calibration of the first circuit board 11 is started, the controller 10 sets at least two first voltage values for the first conversion channels of the first circuit board 11 in advance, specifically, different first voltage values may be set for each first conversion channel, or the same at least two first voltage values may be set for all the first conversion channels, which is not limited specifically herein.
Step S102, the controller obtains second voltage values obtained after the first voltage values are converted through a first conversion channel of the first circuit board and a second conversion channel of the second circuit board; the second circuit board is a reference circuit board, the reference circuit board comprises at least one second conversion channel connected with the first conversion channel, and the second conversion channel is opposite to the type of the connected first conversion channel.
In one embodiment, in the case that the first conversion channel is a DA conversion channel, the controller 10 writes a preset first voltage value into a register of the first conversion channel, performs DA conversion on the first conversion channel, performs AD conversion on the second conversion channel to obtain a second voltage value, and records the second voltage value into a register of the second conversion channel. At this time, the controller 10 acquires a second voltage value obtained by sequentially converting the first voltage value through the first conversion channel and the second conversion channel from a register of the second conversion channel.
In another embodiment, when the first conversion channel is an AD conversion channel, the controller 10 writes a preset first voltage value into the register of the second conversion channel, performs DA conversion on the second conversion channel, performs AD conversion on the first conversion channel to obtain a second voltage value, and records the second voltage value into the register of the first conversion channel. The controller 10 acquires a second voltage value obtained by sequentially converting the first voltage value through a second conversion channel and a first conversion channel from a register of the first conversion channel.
Since the second circuit board is the reference circuit board, the obtained second voltage value can be regarded as the measured value of the first conversion channel.
Step S103, obtaining a correction linear relation of the first conversion channel according to the corresponding relation between each first voltage value and each second voltage value, and sending the correction linear relation to the first circuit board; wherein the linear relationship is used to correct the conversion result of the first conversion channel.
After obtaining the second voltage values corresponding to the at least two set first voltage values, the controller 10 may obtain a linear relationship between the first conversion channel setting value and the measured value according to a corresponding relationship between each first voltage value and the second voltage value. And writing the obtained linear relationship into the memory of the first circuit board 11 through a message of the CANopen communication protocol or any other industrial communication protocol. In the subsequent use process, the first circuit board 11 corrects the conversion result of the first conversion channel based on the linear relationship corresponding to the first conversion channel, and calculates the corrected conversion result.
The linear relationship can be calculated by the computer 13. The controller 10 sends all the obtained first voltage values and second voltage values to the computer 13, and the computer 13 obtains a linear relationship between the set value and the measured value of the first conversion channel according to the corresponding relationship between the first voltage values and the second voltage values.
According to the correction method, when the first circuit board needs to be corrected again for various reasons, the communication port is only required to be inserted into the communication connecting line to be connected with the second circuit board, the PLC and the computer, and the correction method can be automatically executed through a software program to finish correction. The cover does not need to be disassembled, and the field use is convenient.
As can be seen from the above technical solutions provided in the embodiments of the present invention, at least two preset first voltage values are set for each first conversion channel of the first circuit board, a second voltage value obtained by converting each first voltage value through the first conversion channel of the first circuit board and the second conversion channel of the second circuit board is obtained, and then a linear relationship of the first conversion channel is obtained according to a corresponding relationship between each first voltage value and the second voltage value, so that each first conversion channel of the first circuit board can be quickly corrected, the correction time is shortened, the correction efficiency is improved, and meanwhile, the increase of hardware cost of an adjustable resistor in a hardware circuit is also reduced.
Further, as shown in fig. 4, before the step S101, the method further includes:
in step S100, the controller 10 obtains count values corresponding to the maximum voltage, the minimum voltage, and the zero voltage that can be converted by each first conversion channel. Specifically, the count values corresponding to the maximum voltage, the minimum voltage, and the zero-point voltage of the first conversion channel before correction can be read from the register corresponding to the first conversion channel through the CANopen communication protocol.
It should be understood that the at least two first voltage values set by the controller 10 for the first conversion channel may include a maximum voltage and a minimum voltage of the first conversion channel.
Accordingly, the step S103 includes:
the controller 10 sends the count values corresponding to the maximum voltage, the minimum voltage, and the zero voltage of the first conversion channel, and the first voltage value and the second voltage value to the computer terminal 13, obtains the linear relationship of the first conversion channel through the computer terminal 13, and writes the linear relationship into the memory of the first circuit board 11. Therefore, the first circuit board 11 can calculate the conversion result after the first conversion channel is corrected in the range of the measuring range according to the linear relation.
As can be seen from the above technical solutions provided by the embodiments of the present invention, in the embodiments of the present invention, at least two preset first voltage values are set for each first conversion channel of the first circuit board by obtaining the count values corresponding to the maximum voltage, the minimum voltage, and the zero voltage that can be converted by the first conversion channel, a second voltage value obtained by converting each first voltage value through the first conversion channel of the first circuit board and the second conversion channel of the second circuit board is obtained, and then the linear relationship of the first conversion channel is obtained according to the corresponding relationship between each first voltage value and the second voltage value, so that each first conversion channel of the first circuit board can be quickly corrected, the correction time is shortened, the correction efficiency is improved, and the increase of the hardware cost of the adjustable resistor in the hardware circuit is also reduced.
Corresponding to the circuit board calibration method provided in the above embodiment, based on the same technical concept, an embodiment of the present invention further provides a circuit board calibration apparatus, and fig. 5 is a schematic structural diagram of the circuit board calibration apparatus provided in the embodiment of the present invention, where the circuit board calibration apparatus is configured to perform the circuit board calibration method described in fig. 1 to 4, and as shown in fig. 5, the circuit board calibration apparatus includes: the controller comprises a controller 10, a first circuit board 11, a second circuit board 12 and a computer end 13, wherein the controller 10 is respectively connected with the first circuit board 11, the second circuit board 12 and the computer end 13; the controller 10 is configured to set at least two preset first voltage values for each first conversion channel of the first circuit board 11; the first circuit board 11 is a circuit board to be corrected, the first circuit board 11 includes at least one first conversion channel, and the first conversion channel is an analog-to-digital conversion channel or a digital-to-analog conversion channel; the controller 10 is further configured to obtain a second voltage value obtained by converting each first voltage value through the first conversion channel of the first circuit board 11 and the second conversion channel of the second circuit board 12; the second circuit board 12 is a reference circuit board, and the second circuit board 12 includes at least one second switching channel connected to the first switching channel, where the second switching channel is opposite to the type of the connected first switching channel; the computer end 13 is configured to obtain a linear relationship of the first conversion channel according to a corresponding relationship between each first voltage value and each second voltage value, and send the linear relationship to the first circuit board 11; wherein the linear relationship is used for correcting the conversion result of the first conversion channel.
Optionally, the controller 10 communicates with the first circuit board 11 and the second circuit board 12 by using a CANopen protocol.
Optionally, the controller 10 is configured to perform at least one of the following:
under the condition that the first conversion channel is a digital-to-analog conversion channel, writing a preset first voltage value into a register of the first conversion channel;
and writing a preset first voltage value into a register of the second conversion channel under the condition that the first conversion channel is an analog-digital conversion channel.
Optionally, the controller 10 is further configured to perform at least one of:
under the condition that the first conversion channel is a digital-to-analog conversion channel, acquiring a second voltage value obtained by sequentially converting the first voltage value through the first conversion channel and the second conversion channel from a register of the second conversion channel;
and under the condition that the first conversion channel is an analog-to-digital conversion channel, acquiring a second voltage value obtained by sequentially converting the first voltage value through a second conversion channel and the first conversion channel from a register of the first conversion channel.
As can be seen from the above technical solutions provided by the embodiments of the present invention, in the embodiments of the present invention, at least two preset first voltage values are set for each first conversion channel of the first circuit board, a second voltage value obtained by converting each first voltage value through the first conversion channel of the first circuit board and the second conversion channel of the second circuit board is obtained, and then a linear relationship of the first conversion channel is obtained according to a corresponding relationship between each first voltage value and each second voltage value, so that each first conversion channel of the first circuit board can be quickly corrected, the correction time is shortened, the correction efficiency is improved, and meanwhile, the increase of hardware cost of an adjustable resistor in a hardware circuit is also reduced.
Optionally, the controller is further configured to obtain a count value corresponding to a maximum voltage, a minimum voltage, and a zero voltage that can be converted by each first conversion channel.
Optionally, the controller is further configured to send count values corresponding to the maximum voltage, the minimum voltage, and the zero voltage of the first conversion channel, and each of the first voltage value and the second voltage value to a computer terminal, and obtain a linear relationship of the first conversion channel through the computer terminal.
As can be seen from the above technical solutions provided by the embodiments of the present invention, in the embodiments of the present invention, at least two preset first voltage values are set for each first conversion channel of the first circuit board by obtaining the count values corresponding to the maximum voltage, the minimum voltage, and the zero voltage that can be converted by the first conversion channel, a second voltage value obtained by converting each first voltage value through the first conversion channel of the first circuit board and the second conversion channel of the second circuit board is obtained, and then the linear relationship of the first conversion channel is obtained according to the corresponding relationship between each first voltage value and the second voltage value, so that each first conversion channel of the first circuit board can be quickly corrected, the correction time is shortened, the correction efficiency is improved, and the increase of the hardware cost of the adjustable resistor in the hardware circuit is also reduced.
The circuit board correction device provided by the embodiment of the invention can realize each process in the embodiment corresponding to the circuit board correction method, and is not repeated here for avoiding repetition.
It should be noted that the circuit board calibration apparatus provided in the embodiment of the present invention and the circuit board calibration method provided in the embodiment of the present invention are based on the same inventive concept, and therefore, for specific implementation of the embodiment, reference may be made to implementation of the circuit board calibration method, and repeated parts are not described again.
On the basis of the same technical concept, the embodiment of the present invention further provides an electronic device for executing the circuit board calibration method, and fig. 6 is a schematic structural diagram of an electronic device implementing the embodiments of the present invention, as shown in fig. 6. Electronic devices may vary widely in configuration or performance and may include one or more processors 601 and memory 602, where one or more stored applications or data may be stored in memory 602. Wherein the memory 602 may be transient or persistent storage. The application program stored in memory 602 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for the electronic device. Still further, the processor 601 may be configured to communicate with the memory 602 to execute a series of computer-executable instructions in the memory 602 on the electronic device. The electronic device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input-output interfaces 605, one or more keyboards 606.
Specifically, in this embodiment, the electronic device includes a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete mutual communication through a bus; the memory is used for storing a computer program; the processor is used for executing the program stored in the memory and realizing the following method steps:
the controller sets at least two preset first voltage values for each first conversion channel of the first circuit board; the first circuit board is a circuit board to be corrected and comprises at least one first conversion channel, and the first conversion channel is an analog-to-digital conversion channel or a digital-to-analog conversion channel;
the controller obtains a second voltage value obtained after each first voltage value is converted through a first conversion channel of the first circuit board and a second conversion channel of the second circuit board; the second circuit board is a reference circuit board and comprises at least one second conversion channel connected with the first conversion channel, and the type of the second conversion channel is opposite to that of the connected first conversion channel;
obtaining a linear relation of the first conversion channel according to the corresponding relation between each first voltage value and each second voltage value, and sending the linear relation to the first circuit board; wherein the linear relationship is used to correct the conversion result of the first conversion channel.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when executed by a processor, the computer program implements the following method steps:
the controller sets at least two preset first voltage values for each first conversion channel of the first circuit board; the first circuit board is a circuit board to be corrected and comprises at least one first conversion channel, and the first conversion channel is an analog-to-digital conversion channel or a digital-to-analog conversion channel;
the controller obtains second voltage values obtained after the first voltage values are converted through the first conversion channel of the first circuit board and the second conversion channel of the second circuit board; the second circuit board is a reference circuit board and comprises at least one second conversion channel connected with the first conversion channel, and the type of the second conversion channel is opposite to that of the connected first conversion channel;
obtaining a linear relation of the first conversion channel according to the corresponding relation between each first voltage value and each second voltage value, and sending the linear relation to the first circuit board; wherein the linear relationship is used to correct the conversion result of the first conversion channel.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, an electronic device includes one or more processors (CPUs), input/output interfaces, a network interface, and a memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information and/or information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims (8)

1. A method of calibrating a circuit board, the method comprising:
the controller sets at least two preset first voltage values for each first conversion channel of the first circuit board; the first circuit board is a circuit board to be corrected and comprises at least one first conversion channel, and the first conversion channel is an analog-to-digital conversion channel or a digital-to-analog conversion channel;
the controller obtains second voltage values obtained after the first voltage values are converted through the first conversion channel of the first circuit board and the second conversion channel of the second circuit board; the second circuit board is a reference circuit board and comprises at least one second conversion channel connected with the first conversion channel, and the type of the second conversion channel is opposite to that of the connected first conversion channel;
obtaining a linear relation of the first conversion channel according to a corresponding relation between each first voltage value and each second voltage value, and sending the linear relation to the first circuit board; wherein the linear relationship is used for correcting the conversion result of the first conversion channel;
the setting of at least two set voltage values for each first conversion channel of the first circuit board includes:
writing a preset first voltage value into a register of the first conversion channel under the condition that the first conversion channel is a digital-to-analog conversion channel;
and writing a preset first voltage value into a register of the second conversion channel under the condition that the first conversion channel is an analog-digital conversion channel.
2. The method of claim 1, wherein the obtaining of the second voltage value obtained after the first voltage value is converted by the first conversion channel of the first circuit board and the second conversion channel of the second circuit board comprises:
under the condition that the first conversion channel is a digital-to-analog conversion channel, acquiring a second voltage value obtained by sequentially converting the first voltage value through the first conversion channel and the second conversion channel from a register of the second conversion channel;
and under the condition that the first conversion channel is an analog-to-digital conversion channel, acquiring a second voltage value obtained by sequentially converting the first voltage value through a second conversion channel and the first conversion channel from a register of the first conversion channel.
3. The method of claim 1, further comprising:
and acquiring count values corresponding to the maximum voltage, the minimum voltage and the zero voltage which can be converted by each first conversion channel.
4. The method according to claim 3, wherein obtaining the corrected linear relationship of the first conversion channel according to the corresponding relationship between each first voltage value and each second voltage value comprises:
and sending the counting values corresponding to the maximum voltage, the minimum voltage and the zero voltage of the first conversion channel, and each first voltage value and each second voltage value to a computer end, and obtaining the linear relation of the first conversion channel through the computer end.
5. The method of claim 1, wherein the controller communicates with the first circuit board and the second circuit board using a CANopen protocol.
6. A circuit board calibration device, the device comprising: the controller is connected with the first circuit board, the second circuit board and the computer end respectively; wherein, the first and the second end of the pipe are connected with each other,
the controller is used for setting at least two preset first voltage values for each first conversion channel of the first circuit board; the first circuit board is a circuit board to be corrected and comprises at least one first conversion channel, and the first conversion channel is an analog-to-digital conversion channel or a digital-to-analog conversion channel;
the controller is further configured to obtain a second voltage value obtained after each first voltage value is converted by the first conversion channel of the first circuit board and the second conversion channel of the second circuit board; the second circuit board is a reference circuit board, the reference circuit board comprises at least one second conversion channel connected with the first conversion channel, and the type of the second conversion channel is opposite to that of the connected first conversion channel;
the computer end is used for obtaining the linear relation of the first conversion channel according to the corresponding relation between each first voltage value and each second voltage value and sending the linear relation to the first circuit board; wherein the linear relationship is used for correcting the conversion result of the first conversion channel;
the controller is configured to perform at least one of:
writing a preset first voltage value into a register of the first conversion channel under the condition that the first conversion channel is a digital-to-analog conversion channel;
and writing a preset first voltage value into a register of the second conversion channel under the condition that the first conversion channel is an analog-digital conversion channel.
7. An electronic device comprising a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface and the memory complete mutual communication through a bus; the memory is used for storing a computer program; the processor is used for executing the program stored on the memory to realize the steps of the circuit board correction method according to any one of claims 1-5.
8. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the circuit board calibration method according to any one of claims 1 to 5.
CN202110410460.1A 2021-04-16 2021-04-16 Circuit board correction method and device and electronic equipment Active CN113125940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110410460.1A CN113125940B (en) 2021-04-16 2021-04-16 Circuit board correction method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110410460.1A CN113125940B (en) 2021-04-16 2021-04-16 Circuit board correction method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113125940A CN113125940A (en) 2021-07-16
CN113125940B true CN113125940B (en) 2022-08-23

Family

ID=76777167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110410460.1A Active CN113125940B (en) 2021-04-16 2021-04-16 Circuit board correction method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113125940B (en)

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4465995A (en) * 1980-11-07 1984-08-14 Fairchild Camera And Instrument Corp. Method and apparatus for analyzing an analog-to-digital converter with a nonideal digital-to-analog converter
US5583501A (en) * 1994-08-24 1996-12-10 Crystal Semiconductor Corporation Digital-to-analog converter with digital linearity correction
JP2000295102A (en) * 1999-02-03 2000-10-20 Hitachi Electronics Eng Co Ltd Digital calibration method and system for a/d converter or d/a converter
US6924755B1 (en) * 2002-12-02 2005-08-02 Analog Devices, Inc. Multi-channel analog to digital converter which facilitates calibration of the analog to digital converter and respective input channels to the analog to digital converter, and a method for calibrating the analog to digital converter
CN101339815A (en) * 2008-08-14 2009-01-07 浙江大学 Process checking gauge and design method thereof
CN201281609Y (en) * 2008-10-31 2009-07-29 浙江大学 Process check meter
JP2014200116A (en) * 2014-07-30 2014-10-23 セイコーエプソン株式会社 A/d conversion circuit, electronic apparatus and a/d conversion method
CN204178215U (en) * 2014-10-24 2015-02-25 江苏理工学院 A kind of based on the multichannel data acquisition node webserver
CN204886925U (en) * 2015-06-24 2015-12-16 北京自动测试技术研究所 Full sign indicating number test module of digital analog converter and full sign indicating number test system of digital analog converter
CN105159379A (en) * 2015-08-12 2015-12-16 周海波 Calibration device based on multi-voltage reference and method
US9608655B1 (en) * 2016-02-09 2017-03-28 Analog Devices, Inc. ADC background calibration with dual conversions
JP2017118180A (en) * 2015-12-21 2017-06-29 株式会社デンソー A/d converter
CN107070450A (en) * 2016-11-30 2017-08-18 黄山学院 Multichannel DAC phase errors calibration circuit based on charge-domain signal transacting
CN107147393A (en) * 2017-05-09 2017-09-08 中国电子科技集团公司第二十四研究所 ADC self-correcting positive circuits based on successive approximation algorithm
JP2017192037A (en) * 2016-04-13 2017-10-19 株式会社デンソー Ad converter
CN107544018A (en) * 2017-07-21 2018-01-05 芯海科技(深圳)股份有限公司 A kind of more site semaphores detections and fail-ure criterion system and method
CN108631785A (en) * 2017-03-17 2018-10-09 深圳市中兴微电子技术有限公司 A kind of continuous time delta-sigma adc and its coefficient calibration method
CN110716076A (en) * 2019-12-13 2020-01-21 深圳市鼎阳科技股份有限公司 Digital oscilloscope and gain self-correction method for digital oscilloscope
CN111398781A (en) * 2020-03-25 2020-07-10 合肥悦芯半导体科技有限公司 Analog chip test circuit and system
CN112152621A (en) * 2020-09-09 2020-12-29 江苏尚维斯环境科技有限公司 Multi-channel high-precision AD acquisition correction circuit and rapid correction method thereof

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE382947T1 (en) * 2005-05-13 2008-01-15 Abb Research Ltd ELECTRONIC CIRCUIT ARRANGEMENT FOR CONTROL PURPOSES
CN101228697B (en) * 2005-06-16 2011-10-26 高通股份有限公司 Gain error correction in an analog-to-digital converter
JP2008092195A (en) * 2006-09-29 2008-04-17 Fujitsu Ltd Semiconductor integrated circuit, automatic error calculation program, and automatic error calculation method
US20080158026A1 (en) * 2006-12-29 2008-07-03 O'brien David Compensating for harmonic distortion in an instrument channel
JP4592796B2 (en) * 2008-12-15 2010-12-08 三菱電機株式会社 Electronic control unit with analog input signal
US9671485B2 (en) * 2009-10-26 2017-06-06 Fluke Corporation System and method for calibrating a high resolution data acquisition system with a low resolution digital to analog converter
CN103297048A (en) * 2012-03-01 2013-09-11 深圳市蓝韵实业有限公司 Self-calibration AD converter and AD conversion method thereof
US9191023B2 (en) * 2014-02-05 2015-11-17 Analog Devices Global Analog to digital converter and a method of operating an analog to digital converter
CN105227184B (en) * 2015-10-09 2018-07-03 武汉永力科技股份有限公司 A kind of ADC/DAC signals less digit correction method and system
CN105610444A (en) * 2015-12-22 2016-05-25 成都华微电子科技有限公司 Analog-to-digital converter capable of realizing automatic correction of capacitance linearity
CN208937625U (en) * 2018-08-29 2019-06-04 深圳市鼎阳科技有限公司 A kind of electronic load circuit
CN208766653U (en) * 2018-09-21 2019-04-19 北京神经元网络技术有限公司 Analog front-end device applied to two-wire system bus
JP7315319B2 (en) * 2018-12-06 2023-07-26 ローム株式会社 AD converter

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4465995A (en) * 1980-11-07 1984-08-14 Fairchild Camera And Instrument Corp. Method and apparatus for analyzing an analog-to-digital converter with a nonideal digital-to-analog converter
US5583501A (en) * 1994-08-24 1996-12-10 Crystal Semiconductor Corporation Digital-to-analog converter with digital linearity correction
JP2000295102A (en) * 1999-02-03 2000-10-20 Hitachi Electronics Eng Co Ltd Digital calibration method and system for a/d converter or d/a converter
US6924755B1 (en) * 2002-12-02 2005-08-02 Analog Devices, Inc. Multi-channel analog to digital converter which facilitates calibration of the analog to digital converter and respective input channels to the analog to digital converter, and a method for calibrating the analog to digital converter
CN101339815A (en) * 2008-08-14 2009-01-07 浙江大学 Process checking gauge and design method thereof
CN201281609Y (en) * 2008-10-31 2009-07-29 浙江大学 Process check meter
JP2014200116A (en) * 2014-07-30 2014-10-23 セイコーエプソン株式会社 A/d conversion circuit, electronic apparatus and a/d conversion method
CN204178215U (en) * 2014-10-24 2015-02-25 江苏理工学院 A kind of based on the multichannel data acquisition node webserver
CN204886925U (en) * 2015-06-24 2015-12-16 北京自动测试技术研究所 Full sign indicating number test module of digital analog converter and full sign indicating number test system of digital analog converter
CN105159379A (en) * 2015-08-12 2015-12-16 周海波 Calibration device based on multi-voltage reference and method
JP2017118180A (en) * 2015-12-21 2017-06-29 株式会社デンソー A/d converter
US9608655B1 (en) * 2016-02-09 2017-03-28 Analog Devices, Inc. ADC background calibration with dual conversions
JP2017192037A (en) * 2016-04-13 2017-10-19 株式会社デンソー Ad converter
CN107070450A (en) * 2016-11-30 2017-08-18 黄山学院 Multichannel DAC phase errors calibration circuit based on charge-domain signal transacting
CN108631785A (en) * 2017-03-17 2018-10-09 深圳市中兴微电子技术有限公司 A kind of continuous time delta-sigma adc and its coefficient calibration method
CN107147393A (en) * 2017-05-09 2017-09-08 中国电子科技集团公司第二十四研究所 ADC self-correcting positive circuits based on successive approximation algorithm
CN107544018A (en) * 2017-07-21 2018-01-05 芯海科技(深圳)股份有限公司 A kind of more site semaphores detections and fail-ure criterion system and method
CN110716076A (en) * 2019-12-13 2020-01-21 深圳市鼎阳科技股份有限公司 Digital oscilloscope and gain self-correction method for digital oscilloscope
CN111398781A (en) * 2020-03-25 2020-07-10 合肥悦芯半导体科技有限公司 Analog chip test circuit and system
CN112152621A (en) * 2020-09-09 2020-12-29 江苏尚维斯环境科技有限公司 Multi-channel high-precision AD acquisition correction circuit and rapid correction method thereof

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
A self-calibration method for capacitance mismatch in SAR ADC with split-capacitor DAC;Peng Dai, Yiqiang Zhao,Yun Sheng, Yun Zhang;《Microelectronics Journal》;20150410;431-438 *
一个带误差校正的并串行模数转换器;中国科学院物理研究所模数转换器研制小组;《物理》;19790401;第8卷(第3期);219-224 *
一种数字域自校正流水线模数转换器改进结构;李淼,陈后鹏,戎蒙恬;《上海交通大学学报》;20040530;第38卷(第5期);739-746 *
一种模拟PT100热电阻的简易设计;刘月茹;《电脑知识与技术》;20120105;第8卷(第1期);197-198 *
基于模数转换器的非线性校正;黄兆梁;《计量技术》;20060418(第4期);15-17 *
高速高精度SARADC电容电压系数校正;宋健; 张勇; 李婷;《微电子学》;20171220;第47卷(第6期);761-764 *

Also Published As

Publication number Publication date
CN113125940A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN103051339B (en) A kind of AD sampling value correcting method and system
US10840924B2 (en) Phase interpolator
CN104457817A (en) Single chip integrated sensor signal processing circuit
CN108664069B (en) Calibration method and device of band-gap reference circuit
CN113125940B (en) Circuit board correction method and device and electronic equipment
JP4361741B2 (en) Output signal correction method, sensor evaluation circuit, measured quantity converter, and computer program
CN103163924B (en) System on chip (SoC) chip and compensation method and compensation device of operational amplifier offset voltage thereof
CN209197769U (en) Sine and cosine encoder signal processing apparatus and sine and cosine encoder
CN105303049A (en) Rod position value calibration method and system of control rod
CN103901940B (en) Method for generating digital cosine signals
JPS61112938A (en) Compensation circuit of semiconductive pressure sensor
CN217954718U (en) Multichannel proportional power source and detection device
CN104155024A (en) Ultra-low-power high-precision standard digital thermometer stabilizing circuit and error correcting method
CN103616086A (en) Thermal resistance temperature transmitter
CN109782057A (en) Frequency-conversion domestic electric appliances single phase poaer supply inputs wattful power messurement circuit and method
CN204833036U (en) Calibrating device based on many voltage reference
CN113099430B (en) Micrometer measurement data acquisition method, system, device and storage medium
CN213600780U (en) Current sampling serialization parameter configuration circuit
CN202034957U (en) Adjustable hysteresis comparator
US20220200618A1 (en) Method and system for digital pre-distortion using look-up table
JPS615625A (en) Correcting device for linearity of da converter
CN116754986B (en) Welding power supply calibration device with no-load voltage detection function and calibration method
CN111090599B (en) Variable word length determination method, system, equipment and computer storage medium
CN116955896A (en) Method and system for correcting synchronous reactance saturation value of generator quadrature axis
CN114595421A (en) Power supply calibration method and device, power supply system, electronic equipment and 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