ADC calibration device of STA module
By using the combination of ADC calibration board and PT base plate in the STA module to generate and verify the accurate reference voltage, the problem of inaccurate calibration lines of the STA module ADC is solved, reducing production costs and time, and is suitable for batch calibration in the power industry. Improved function response speed.
Patent Information
- Application Number
- CN202323498799.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2033-12-21
AI Technical Summary
In the prior art, the ADC calibration line of the STA module is inaccurate, which affects the power outage reporting function and the sensitivity of 12V power outage detection. The existing patent requires additional standard ADCs and DACs, which increases the cost and is not suitable for STA modules in the power industry. Batch calibration.
Provide an ADC calibration device for STA module, including an ADC calibration board and a PT base plate, and generates an accurate reference voltage through a reference voltage circuit. The relay control voltage output circuit is automatically selected and inputted to the ADC calibration acquisition terminal of the STA module to be calibrated, and uses the control unit. Calculate and verify calibration lines in the STA module to reduce costs and simplify processes.
It improves the ADC calibration accuracy of the STA module, reduces production costs and test time, is suitable for batch calibration of the production line of the STA module, and enhances the response speed of power outage reporting and 12V power outage function.
Smart Images

Figure CN222089549U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electric low-voltage automation, in particular to an ADC calibration device of a STA module. Background Art
[0002] The STA module in the power industry is a key part of power line communication (PLC). It is responsible for data transmission and reception, thereby realizing functions such as data collection and monitoring of smart meters. It is one of the infrastructures for realizing smart grids and can greatly improve the efficiency and reliability of power systems. The main chip of the STA module in the power industry contains an ADC (analog-to-digital converter) and also provides an ADC calibration function. At present, the production line mainly relies on the ADC calibration function provided by the main chip to complete the ADC calibration of the chip. However, its ADC calibration function uses a successive approximation analog-to-digital converter based on a binary search algorithm. Its comparator is offset, and the ADC calibration has a certain degree of error, resulting in inaccurate ADC calibration lines. The power outage reporting function and 12V power-off detection in the STA module both refer to the ADC calibration line. If the ADC calibration line is inaccurate, it will affect the sensitivity of these two functions. Therefore, it is necessary to set up a special ADC calibration device that can be used for batch calibration of the production line to improve the accuracy of the ADC calibration line in the STA module.
[0003] The Chinese patent with the publication number CN113114242A discloses a system for automatically calibrating the multi-channel sampling gain of ADC, which includes a control unit, a DAC module, a voltage follower, a relay switch group, a standard ADC and an ADC to be tested; the control unit includes a first control terminal, a second control terminal, a first input terminal and a second input terminal; the control unit controls the DAC module to output a fixed voltage through the first control terminal, and the control unit controls the closing of one switch of the relay switch group through the second control terminal; the fixed voltage is input to the input terminal of the relay switch group after passing through the voltage follower; the standard ADC collects the voltage at the output terminal of the voltage follower and then feeds it back to the first input terminal of the control unit, and the ADC to be tested collects the voltage at the output terminal of the relay switch group and then feeds it back to the second input terminal of the control unit. The system uses the DAC output signal to obtain multi-channel analog quantities, and the sampling relay switch can ignore the voltage loss on the switch, ensuring that the standard ADC and the ADC to be tested collect the same analog value, and efficiently and quickly calibrates the gain of multi-channel analog sampling, thereby improving the sampling accuracy of the ADC to be tested.
[0004] However, the above patent requires the establishment of a separate standard ADC and DAC, which increases the cost. The sampling values of the ADC to be tested and the standard ADC are obtained through the control unit of the peripheral device and the sampling channel gain coefficient is calculated based on the sampling values. For the STA module in the power industry, the program for obtaining the calibration straight line is located at the STA module end, which makes it convenient to directly write the obtained calibration straight line into the STA module related program memory to save process and time. It can be seen that the existing patent is not suitable for mass ADC calibration of the production line of STA modules in the power industry. Utility Model Content
[0005] The utility model aims to solve the technical problem of inaccurate ADC calibration straight line of a STA module in the electric power industry in the prior art, and provides an ADC calibration device for a STA module.
[0006] In order to achieve the above-mentioned purpose of the utility model, the utility model provides an ADC calibration device for a STA module, including an ADC calibration board and a PT baseboard; the ADC calibration board is provided with a reference voltage circuit, a relay control voltage output circuit, a STA module access circuit and a PT baseboard IO signal input circuit; the STA module to be calibrated is connected to the ADC calibration board through the STA module access circuit, and the STA module access circuit includes an ADC calibration acquisition terminal; multiple reference voltage output ends of the reference voltage circuit are connected to multiple input ends of the relay control voltage output circuit in a one-to-one correspondence, and the output end of the relay control voltage output circuit is connected to the ADC calibration acquisition terminal; the control end of the relay control voltage output circuit is connected to the output end of the PT baseboard IO signal input circuit; a control unit is provided on the PT baseboard, and the relay control end of the control unit is connected to the input end of the PT baseboard IO signal input circuit.
[0007] The above technical solution: multiple accurate reference voltages are generated by the reference voltage circuit on the ADC calibration board, and the relay control voltage output circuit automatically selects one of the multiple accurate reference voltages under the control of the control unit to connect to the ADC calibration acquisition terminal of the STA to be calibrated. The multiple accurate reference voltages are used for the calibration straight line calculation and calibration straight line verification of the ADC of the STA module to be calibrated, so as to improve the accuracy of the calibration straight line of the STA module, so that the power failure reporting charging enable and 12V power failure enable of the STA module can respond more quickly, thereby improving the competitive advantage of the STA module; at the same time, there is no need to set up additional devices such as ADC and DAC, which reduces the production cost of the factory, and the reference voltage is collected by the STA module to be calibrated, and the calculation and verification program of the ADC calibration straight line is set in the main chip of the STA module to be calibrated. After the verification is passed, it will be automatically written into the storage, and there is no need to set up an additional ADC calibration straight line writing process, which reduces the time cost of the tester, shortens the production cycle of the entire STA module, and is suitable for mass calibration of the ADC of the STA module production line.
[0008] In a preferred implementation manner of the present utility model, the ADC calibration board is plugged into the PT base plate; and / or the STA module to be calibrated is plugged into the ADC calibration connection board via the STA module access circuit.
[0009] The above technical solution connects the ADC calibration board, the PT base plate and the STA module to be calibrated by plug-in, which is easy to operate and saves time.
[0010] In another preferred embodiment of the present invention, the power supply on the PT base plate supplies power to the ADC calibration connection board and the STA module to be calibrated respectively through a power bus bar.
[0011] The above technical solution: powered by the PT base plate, safe and reliable.
[0012] In another preferred embodiment of the utility model, the reference voltage circuit includes an LDO conversion circuit, a first dual-output voltage reference circuit and a second dual-output voltage reference circuit, the input end of the LDO conversion circuit is connected to the power supply, the output end of the LDO conversion circuit is respectively connected to the input end of the first dual-output voltage reference circuit and the input end of the second dual-output voltage reference circuit, the first dual-output voltage reference circuit outputs a first reference voltage and a second reference voltage, and the second dual-output voltage reference circuit outputs a third reference voltage and a fourth reference voltage.
[0013] The above technical solution: the four reference voltages obtained have small ripple and are stable, providing accurate voltage references for ADC calibration.
[0014] In another preferred embodiment of the utility model, the LDO conversion circuit includes a fuse, a first diode, a first capacitor, an LDO chip and a second capacitor, the first end of the fuse is connected to the power supply, the second end of the fuse is connected to the anode of the first diode, the cathode of the first diode is respectively connected to the first end of the first capacitor and the input end of the LDO chip, the output end of the LDO chip is connected to the first end of the second capacitor, and the second end of the second capacitor and the second end of the first capacitor are both connected to the ground.
[0015] The above technical solution: short-circuit protection is performed by a fuse, reverse connection is prevented and current is prevented from flowing back into the power supply by a first diode, and the input voltage and output voltage of the LDO chip are filtered by a first capacitor and a second capacitor respectively to eliminate ripple and interference and provide a stable voltage output.
[0016] In another preferred embodiment of the utility model, the relay-controlled voltage output circuit includes a first relay of four-choices and a second relay of two-choices, the four input ends of the first relay are respectively connected one-to-one with the four reference voltage output ends of the reference voltage circuit, the first output end of the first relay is connected with the first input end of the second relay, the second output end of the first relay is connected with the second input end of the second relay, and the output end of the second relay is connected with the ADC calibration acquisition terminal; the control end of the first relay and the control end of the second relay are both connected to the output end of the PT base plate IO signal input circuit.
[0017] The above technical solution: under the control of the control unit, the four reference voltages of the relay-controlled voltage output circuit are output in a time-sharing manner. Only two control pins are needed to control the first relay and the second relay to realize the output control of the four reference voltages, thus saving control pins.
[0018] In another preferred embodiment of the utility model, the PT base plate IO signal input circuit includes an IO signal input port serial port, a first TVS tube and a second TVS tube, the first end of the IO signal input port serial port is respectively connected to the first end of the first TVS tube and the control end of the first relay, the second end of the IO signal input port serial port is respectively connected to the first end of the second TVS tube and the control end of the second relay, and the second end of the first TVS tube and the second end of the second TVS tube are both connected to the ground.
[0019] The above technical solution: the first end and the second end of the IO signal input serial port are protected from static electricity and surge current by the first TVS tube and the second TVS tube, thereby improving the safety and reliability of the device.
[0020] In another preferred embodiment of the present invention, the relay control end of the control unit includes a first I / O pin and a second I / O pin, the first I / O pin is connected to the first end of the IO signal input port serial port, and the second I / O pin is connected to the second end of the IO signal input port serial port.
[0021] The above technical solution controls the output voltage of the voltage output circuit by controlling the relay through two I / O pins of the control unit, and the control is reliable and easy to implement.
[0022] In another preferred embodiment of the utility model, a first conditioning circuit is further provided between the first end of the IO signal input port serial port and the control end of the first relay, the first conditioning circuit comprising a second resistor, a fourth resistor and a first transistor, the first end of the second resistor is connected to the first end of the IO signal input port serial port, the second end of the second resistor is respectively connected to the first end of the fourth resistor and the base of the first transistor, the collector of the first transistor is connected to the control end of the first relay, and the emitter of the first transistor and the second end of the fourth resistor are both connected to the ground.
[0023] The above technical solution: through the first conditioning circuit, the driving capability of the first end signal of the IO signal input port serial port is improved, and the control reliability is improved.
[0024] In another preferred embodiment of the utility model, a second conditioning circuit is further provided between the second end of the IO signal input port serial port and the control end of the second relay, the second conditioning circuit comprising a third resistor, a first resistor and a second transistor, the first end of the third resistor is connected to the second end of the IO signal input port serial port, the second end of the third resistor is respectively connected to the first end of the first resistor and the base of the second transistor, the collector of the second transistor is connected to the control end of the second relay, and the emitter of the second transistor and the second end of the first resistor are both connected to the ground.
[0025] The above technical solution: through the second conditioning circuit, the driving capability of the second end signal of the IO signal input serial port is improved, thereby improving the control reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is a structural block diagram of an ADC calibration device in a preferred embodiment of the present invention;
[0027] Figure 2 This is a schematic diagram of an ADC calibration device in a preferred embodiment of the utility model;
[0028] Figure 3 This is a schematic diagram of the LDO conversion circuit structure in a preferred implementation of the utility model;
[0029] Figure 4 This is a schematic diagram of the PT bottom plate IO signal input circuit structure in a preferred embodiment of the utility model;
[0030] Figure 5 This is a schematic diagram of the STA module access circuit structure in a preferred implementation of the utility model;
[0031] Figure 6 This is a schematic diagram of the structure of a relay control voltage output circuit in a preferred embodiment of the utility model;
[0032] Figure 7 It is a schematic diagram of the structure of a first dual-output voltage reference circuit and a second dual-output voltage reference circuit in a preferred embodiment of the utility model;
[0033] Figure 8 This is a sampling timing diagram of the IO port of the STA module in an application scenario of the utility model. DETAILED DESCRIPTION
[0034] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0035] In the description of the present invention, it should be understood that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0036] In the description of the present utility model, unless otherwise specified and limited, it should be noted that the terms "installation", "connection" and "connection" should be understood in a broad sense. For example, it can be a mechanical connection or an electrical connection, or it can be the internal connection of two components. It can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.
[0037] The utility model discloses an ADC calibration device for a STA module. In a preferred implementation manner, Figure 1 As shown in the structural block diagram, the ADC calibration device includes an ADC calibration board and a PT baseboard; the ADC calibration board is provided with a reference voltage circuit, a relay control voltage output circuit, a STA module access circuit and a PT baseboard IO signal input circuit; the STA module to be calibrated is connected to the ADC calibration board through the STA module access circuit, and the STA module access circuit includes an ADC calibration acquisition terminal; multiple reference voltage output terminals of the reference voltage circuit are connected to multiple input terminals of the relay control voltage output circuit in a one-to-one correspondence, and the output terminal of the relay control voltage output circuit is connected to the ADC calibration acquisition terminal; the control terminal of the relay control voltage output circuit is connected to the output terminal of the PT baseboard IO signal input circuit; a control unit is provided on the PT baseboard, and the relay control terminal of the control unit is connected to the input terminal of the PT baseboard IO signal input circuit.
[0038] In this embodiment, the ADC calibration board and the PT base plate are both printed circuit boards, preferably but not limited to RF-4 material boards. Preferably, a power supply, such as a 12V power supply, is provided on the PT base plate, and the power supply is connected to the ADC calibration connection board and the STA module to be calibrated through a power bus bar to power them.
[0039] In this embodiment, for the convenience of installation and disassembly, preferably, the ADC calibration board is plugged into the PT bottom plate, such as setting a row of sockets on the upper surface of the PT bottom plate, setting a row of pins corresponding to the row of sockets on the lower surface of the ADC calibration board, and the row of sockets and the pins are connected in cooperation to realize the ADC calibration board being plugged into the PT bottom plate. Alternatively, four sockets distributed on the four corners of the PT bottom plate are set on the upper surface of the PT bottom plate, and positioning columns matching the four sockets are set on the lower surface of the ADC calibration board, and the sockets and the positioning columns cooperate to realize the ADC calibration board being plugged into the PT bottom plate.
[0040] In this embodiment, the STA module to be calibrated is inserted into the ADC calibration connection board through the STA module access circuit, which can simplify the circuit and save costs. The STA module access circuit is preferably a pin header interface. Since there is a protocol for the interface between the STA module and the external communication in the power industry, in order to match the STA module interface protocol, the STA module access circuit is designed as a connection socket that matches the STA module external socket. For example, in an application scenario, Figure 5 As shown, DUT-STA is a schematic diagram of the STA module access circuit, which is a 12-port female socket. Correspondingly, the external socket of the STA module to be tested is a 12-port male socket. The network name of the ADC calibration acquisition terminal is STA. Specifically, the output end of the relay control voltage output circuit and the ADC calibration acquisition terminal can be connected through a pin header.
[0041] In this embodiment, the PT base plate IO signal input circuit is used to transmit the signal of the relay control end of the control unit to the control end of the relay control voltage output circuit. It can be a cable or a pin, or a male or female socket that cooperates with each other. The male socket is arranged on the upper surface of the PT base plate, and the female socket is arranged on the lower surface of the ADC adapter board. The relay control end of the control unit and the control end of the relay control voltage output circuit are connected by plugging. The control unit can be an ARM or a single-chip microcomputer, preferably a chip of the same model as the main chip of the STA module, so as to establish communication with the STA module.
[0042] In this embodiment, the reference voltage circuit is mainly used to provide multiple reference voltages for ADC calibration straight line calculation and verification. For example, in an application scenario, four reference voltages of 3V, 2.5V, 1.25V and 0V are required. After the ADC unit of the STA module to be calibrated collects the reference voltage, the ADC calibration straight line is first calculated. After the ADC calibration straight line is obtained, the ADC calibration straight line is verified using the reference voltage. If the deviation between the ADC acquisition voltage value and the reference voltage value is too large during verification, the ADC fault of the STA module to be calibrated is determined to achieve the purpose of rapid screening. It should be noted that the methods of ADC calibration straight line calculation and verification involved in the STA module to be calibrated are not within the protection scope of this utility model. The reference voltage circuit can be multiple groups of DCDC buck circuits, each group of DCDC buck circuits generates a reference voltage; it can also be multiple groups of LDO buck circuits, each group of LDO buck circuits generates a reference voltage.
[0043] In this embodiment, the relay-controlled voltage output circuit is used to select one of the multiple reference voltages output by the reference voltage circuit and input it into the ADC calibration acquisition terminal, that is, input it into the ADC calibration IO port of the STA module to be calibrated. Therefore, the relay-controlled voltage output circuit can be a plurality of relays connected in parallel, and the first ends of the switches of the plurality of relays are respectively connected to the plurality of output ends of the reference voltage circuit in a one-to-one correspondence, and the second ends of the switches of the plurality of relays are connected together and connected to the ADC calibration acquisition terminal.
[0044] In a preferred embodiment, in order to improve the power conversion efficiency, as Figure 2 As shown, the reference voltage circuit includes an LDO conversion circuit, a first dual-output voltage reference circuit and a second dual-output voltage reference circuit, the input end of the LDO conversion circuit is connected to the power supply, the output end of the LDO conversion circuit is respectively connected to the input end of the first dual-output voltage reference circuit and the input end of the second dual-output voltage reference circuit, the first dual-output voltage reference circuit outputs a first reference voltage and a second reference voltage, and the second dual-output voltage reference circuit outputs a third reference voltage and a fourth reference voltage.
[0045] In this embodiment, preferably, Figure 3As shown, the LDO conversion circuit includes a fuse F1, a first diode D4, a first capacitor C1, an LDO chip U3 and a second capacitor C2. The first end of the fuse F1 is connected to the power supply +12V, the second end of the fuse F1 is connected to the anode of the first diode D4, the cathode of the first diode D4 is respectively connected to the first end of the first capacitor C1 and the input end of the LDO chip U3, the output end of the LDO chip U3 is connected to the first end of the second capacitor C2, and the second end of the second capacitor C2 and the second end of the first capacitor C1 are both connected to the ground. The model of the LDO chip U3 is preferably, but not limited to, 78L05, which is used to convert the 12V voltage into the 5V voltage. The capacitance of the first capacitor C1 and the second capacitor C2 is preferably, but not limited to, 100nF.
[0046] In this embodiment, if Figure 2 As shown, the first dual-output voltage reference circuit and the second dual-output voltage reference circuit preferably include two reference voltage chips and their peripheral circuits respectively. The first dual-output voltage reference circuit can select two reference voltage chips R2030, one converts 5V into a high-precision and high-stability 3V reference voltage output, and the other converts 5V into a high-precision and high-stability 1.5V reference voltage output. The second dual-output voltage reference circuit can select two reference voltage chips R2025, one converts 5V into a high-precision and high-stability 2.5V reference voltage output, and the other converts 5V into a high-precision and high-stability 1.25V reference voltage output. Among them, since the reference voltage 1.5V is not used for ADC calibration, it is grounded for circuit stability. Then, the STA module to be calibrated collects the reference voltage of 3V / 2.5V / 1.25V / 0V through the ADC calibration IO port. The connection circuit of the reference voltage chip R2030 is as shown in FIG. Figure 7 As shown, the connection circuit of the reference voltage chip R2025 is as follows Figure 7 shown.
[0047] In a preferred embodiment, Figure 2 and Figure 6 As shown, the relay-controlled voltage output circuit includes a first relay XS1 of four-select-two and a second relay XS2 of two-select-one, the four input terminals of the first relay XS1 are respectively connected one-to-one with the four reference voltage output terminals (first reference voltage, second reference voltage, third reference voltage and fourth reference voltage) of the reference voltage circuit, the first output terminal of the first relay XS1 is connected with the first input terminal of the second relay XS2, the second output terminal of the first relay XS1 is connected with the second input terminal of the second relay XS2, and the output terminal of the second relay XS2 is connected with the ADC calibration acquisition terminal; the control terminal of the first relay XS1 and the control terminal of the second relay XS2 are both connected with the output terminal of the PT base plate IO signal input circuit.
[0048] In this embodiment, the model of the first relay XS1 is preferably but not limited to HFD4 / 5-S, and the four-choice-two function can be selected according to Figure 6 The first relay XS1 is implemented by a combination of four switches. The model of the second relay XS2 is preferably but not limited to HFD4 / 5-S, and the two-choice function can be implemented according to Figure 6 The partial switch combination of the second relay XS2 shown is realized. The PT bottom board IO signal input circuit only needs to output two control signals to the control end of the first relay XS1 and the control end of the second relay XS2 respectively, so as to select one of the four reference voltages to input into the ADC calibration acquisition terminal.
[0049] In this embodiment, preferably, Figure 4 As shown, the PT base plate IO signal input circuit includes an IO signal input serial port, a first TVS tube and a second TVS tube. The first end of the IO signal input serial port is respectively connected to the first end of the first TVS tube and the control end of the first relay, the second end of the IO signal input serial port is respectively connected to the first end of the second TVS tube and the control end of the second relay, and the second end of the first TVS tube and the second end of the second TVS tube are both connected to the ground.
[0050] In this embodiment, the relay control end of the control unit includes a first I / O pin and a second I / O pin, the first I / O pin is connected to the first end of the IO signal input port serial port, and the second I / O pin is connected to the second end of the IO signal input port serial port. Preferably, the control unit obtains the first I / O pin and / or the second I / O pin through a GPIO pin expansion chip, which can save control unit pins and expand functions, such as Figure 2 As shown, the first I / O pin is the pin GPA0 obtained through the GPIO pin expansion chip MCP23017, and the second I / O pin is the control unit GPIO36.
[0051] In this embodiment, it is further preferred that Figure 6 As shown, a first conditioning circuit is also provided between the first end of the IO signal input port serial port and the control end of the first relay Q1, and the first conditioning circuit includes a second resistor R2, a fourth resistor R4 and a first transistor Q1, the first end of the second resistor R2 is connected to the first end of the IO signal input port serial port, the second end of the second resistor R2 is respectively connected to the first end of the fourth resistor R4 and the base of the first transistor Q1, the collector of the first transistor Q1 is connected to the control end of the first relay XS1, and the emitter of the first transistor Q1 and the second end of the fourth resistor R4 are both connected to the ground. The resistance values of the second resistor R2 and the fourth resistor R4 are preferably 2KΩ. The first transistor Q1 is preferably an NPN transistor.
[0052] In this embodiment, it is further preferred that Figure 6 As shown, a second conditioning circuit is also provided between the second end of the IO signal input port serial port and the control end of the second relay XS2, and the second conditioning circuit includes a third resistor R3, a first resistor R1, and a second transistor Q2. The first end of the third resistor R3 is connected to the second end of the IO signal input port serial port, the second end of the third resistor R3 is respectively connected to the first end of the first resistor R1 and the base of the second transistor Q2, the collector of the second transistor Q2 is connected to the control end of the second relay XS2, and the emitter of the second transistor Q2 and the second end of the first resistor R1 are both connected to the ground. The resistance values of the third resistor R3 and the first resistor R1 are preferably 2KΩ. The second transistor Q2 is preferably an NPN transistor.
[0053] In one application scenario of the utility model, the reference power supply circuit generates four reference voltages of 3V, 2.5V, 1.25V and 0V, and the STA module to be calibrated is plugged into the ADC calibration connection board through the STA module access circuit, and the ADC calibration connection board is plugged into the PT bottom board. The two control pins of the control unit are GPA0 (first I / O pin) and GPIO36 (second I / O pin). The controller control logic is:
[0054] 1) When GPIO36 and GPA0 are both high, the first transistor Q1 is turned on to control the first relay XS1 to be turned on, and the second transistor Q2 is turned on to control the second relay XS2 to be turned on; Pin6 and Pin5 of the XS2 relay are in contact, and Pin6 and Pin5 of the XS1 relay are in contact, that is, the relay control voltage output circuit is 3V.
[0055] 2) When GPIO36 is high and GPA0 is low, the second transistor Q2 is turned on to control the second relay XS2 to be turned on, the first transistor Q1 is not turned on to control XS1 to be turned off, the XS2 relay Pin6 and Pin5 are in contact, and the XS1 relay makes Pin6 and Pin7 contact, that is, the relay control voltage output circuit is 2.5V.
[0056] 3) When GPIO36 is low and GPA0 is high, the second transistor Q2 is off to control the second relay XS2 to be off, and the first transistor Q1 is on to control the first relay XS1 to be on; the XS2 relay Pin6 and Pin7 are in contact, and the XS1 relay makes Pin3 and Pin4 in contact, that is, the relay control voltage output circuit is 1.5V. However, 1.5V is not used for ADC calibration, and it is grounded for circuit stability. Therefore, the relay control voltage output circuit is 0V.
[0057] 4) When GPIO36 and GPA are both low, the second transistor Q2 is not conducting, controlling the relay XS2 to be non-conducting, and the first transistor Q1 is not conducting, controlling the relay XS1 to be non-conducting; the XS2 relay Pin6 and Pin7 are in contact, and the XS1 relay makes Pin3 and Pin2 in contact, that is, the relay controls the voltage output circuit to be 1.25V.
[0058] The STA module collects voltages of 3V / 2.5V / 1.25V / 0V (0V is reserved) through the ADC calibration IO port. The voltage sequence collected by the ADC calibration IO port of the STA module to be calibrated is 1.25V, 2.5V, 1.25V, 2.5V and 3V. The timing diagram is as follows: Figure 8 As shown. In a calibration cycle t0-t1:
[0059] When GPIO36 and GPA0 are both high, the relay controls the voltage output circuit to output 3V, and at the same time, the ADC calibration IO port of the STA module to be calibrated collects 3V;
[0060] When GPIO36 is high and GPA0 is low, the relay control voltage output circuit controls the output of 2.5V, and at the same time, the ADC calibration IO port of the STA module to be calibrated collects 2.5V;
[0061] When GPIO36 and GPA0 are both low, the relay-controlled voltage output circuit controls the output of 1.25V, and the ADC calibration IO port of the STA module to be calibrated collects 1.25V;
[0062] When GPIO36 is low and GPA0 is high, the relay-controlled voltage output circuit controls the output of 0V, and at the same time, the ADC calibration IO port of the STA module to be calibrated collects 0V.
[0063] ADC calibration principle: calibration curve equation: y = kx + b, the software calculates k and b values through the collected 1.25V and 2.5V, and calculates the calibration straight line; then 3V, 2.5 and 1.25V are used for verification to verify the calculated straight line. The error accuracy between the collected voltage value and the theoretical voltage value is 1%.
[0064] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the utility model. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0065] Although the embodiments of the present invention have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. An ADC calibration device for a STA module, characterized in that: Including ADC calibration board and PT base plate; The ADC calibration board is provided with a reference voltage circuit, a relay control voltage output circuit, a STA module access circuit and a PT bottom plate IO signal input circuit; the STA module to be calibrated is connected to the ADC calibration board through the STA module access circuit, and the STA module access circuit includes an ADC calibration acquisition terminal; multiple reference voltage output terminals of the reference voltage circuit are connected to multiple input terminals of the relay control voltage output circuit in a one-to-one correspondence, and the output terminal of the relay control voltage output circuit is connected to the ADC calibration acquisition terminal; the control terminal of the relay control voltage output circuit is connected to the output terminal of the PT bottom plate IO signal input circuit; A control unit is arranged on the PT bottom plate, and a relay control terminal of the control unit is connected to an input terminal of an IO signal input circuit of the PT bottom plate.
2. The ADC calibration device of the STA module according to claim 1, characterized in that: The ADC calibration board is inserted into the PT bottom plate; and / or, The STA module to be calibrated is plugged into the ADC calibration connection board through the STA module access circuit.
3. The ADC calibration device of the STA module according to claim 1 or 2, characterized in that: The power supply on the PT bottom plate supplies power to the ADC calibration connection board and the STA module to be calibrated respectively through the power busbar.
4. The ADC calibration device of the STA module according to claim 3, characterized in that: The reference voltage circuit includes an LDO conversion circuit, a first dual-output voltage reference circuit and a second dual-output voltage reference circuit. The input end of the LDO conversion circuit is connected to a power supply, and the output end of the LDO conversion circuit is respectively connected to the input end of the first dual-output voltage reference circuit and the input end of the second dual-output voltage reference circuit. The first dual-output voltage reference circuit outputs a first reference voltage and a second reference voltage, and the second dual-output voltage reference circuit outputs a third reference voltage and a fourth reference voltage.
5. The ADC calibration device of the STA module according to claim 4, characterized in that: The LDO conversion circuit includes a fuse, a first diode, a first capacitor, an LDO chip and a second capacitor. The first end of the fuse is connected to a power supply, the second end of the fuse is connected to an anode of the first diode, the cathode of the first diode is respectively connected to a first end of the first capacitor and an input end of the LDO chip, the output end of the LDO chip is connected to a first end of the second capacitor, and the second end of the second capacitor and the second end of the first capacitor are both connected to ground.
6. The ADC calibration device of the STA module according to claim 1, 2 or 5, characterized in that: The relay-controlled voltage output circuit includes a first relay of four-select-two and a second relay of two-select-one, the four input ends of the first relay are respectively connected to the four reference voltage output ends of the reference voltage circuit in a one-to-one correspondence, the first output end of the first relay is connected to the first input end of the second relay, the second output end of the first relay is connected to the second input end of the second relay, and the output end of the second relay is connected to the ADC calibration acquisition terminal; The control end of the first relay and the control end of the second relay are both connected to the output end of the PT bottom plate IO signal input circuit.
7. The ADC calibration device of the STA module according to claim 6, characterized in that: The PT base plate IO signal input circuit includes an IO signal input port serial port, a first TVS tube and a second TVS tube. The first end of the IO signal input port serial port is respectively connected to the first end of the first TVS tube and the control end of the first relay, the second end of the IO signal input port serial port is respectively connected to the first end of the second TVS tube and the control end of the second relay, and the second end of the first TVS tube and the second end of the second TVS tube are both connected to the ground.
8. The ADC calibration device of the STA module according to claim 7, characterized in that: The relay control end of the control unit includes a first I / O pin and a second I / O pin, the first I / O pin is connected to a first end of the IO signal input serial port, and the second I / O pin is connected to a second end of the IO signal input serial port.
9. The ADC calibration device of the STA module according to claim 7 or 8, characterized in that: A first conditioning circuit is also provided between the first end of the IO signal input port serial port and the control end of the first relay. The first conditioning circuit includes a second resistor, a fourth resistor and a first transistor. The first end of the second resistor is connected to the first end of the IO signal input port serial port, the second end of the second resistor is respectively connected to the first end of the fourth resistor and the base of the first transistor, the collector of the first transistor is connected to the control end of the first relay, and the emitter of the first transistor and the second end of the fourth resistor are both connected to the ground.
10. The ADC calibration device of the STA module according to claim 9, characterized in that: A second conditioning circuit is also provided between the second end of the IO signal input port serial port and the control end of the second relay. The second conditioning circuit includes a third resistor, a first resistor and a second transistor. The first end of the third resistor is connected to the second end of the IO signal input port serial port, the second end of the third resistor is respectively connected to the first end of the first resistor and the base of the second transistor, the collector of the second transistor is connected to the control end of the second relay, and the emitter of the second transistor and the second end of the first resistor are both connected to the ground.
