Pluggable sensor module and compatible burning system
By designing a compatible burning system and plug-in sensor module, and using signal processing common board and interface circuit, the independent calibration and parameter storage of the sensor module are realized, solving the problem that the sensor module cannot enter the burning mode using the TTL signal. Simplified calibration process.
Patent Information
- Application Number
- CN202420313745.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-20
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2034-02-20
AI Technical Summary
The existing sensor modules cannot enter the burn mode and use the TTL signal for calibration, and there is a lack of a standard TTL signal burn program, which leads to complex and inconvenient calibration operations.
A plug-in sensor module is designed, including a signal processing common board, interface circuit, temperature detection circuit and processing circuit. It enters the recording and reset mode through key operation, and converts the calibration parameters transmitted by the upper computer into The TTL format burn signal supports the calibration operation of the TTL format.
It realizes the independent calibration and parameter storage of the sensor module, without the need to introduce the BM signal or add the burn interface, simplifies the calibration process and solves the problem that the sensor module cannot enter the burn mode using the TTL signal.
Smart Images

Figure CN222354422U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of gas detection, in particular to a plug-and-unplug sensor module and a compatible burning system. Background Art
[0002] There are many types of sensors and detection principles, and they should be used in a complex and changeable way. Therefore, the sensors are modularly designed so that they can be operated more intelligently. Since the sensor module must be calibrated before use, and the calibration operation of the sensor requires corresponding instruments and equipment and is completed in the factory, when a fault occurs, the customer cannot complete the calibration operation by himself, and must suspend the use of the equipment and send the sensor module back to the manufacturer for repair. In addition, the existing sensor module has an output port definition, and the output signal is an analog signal with a weak current or voltage signal, which requires an additional burning interface; it does not support the burning program of the standard TTL (transistor-transistor logic level) signal, and the BM signal that controls the burning must be reset before burning; but the sensor module cannot lead out the BM signal, so it cannot enter the burning mode.
[0003] Therefore the prior art still needs to be improved and enhanced. Utility Model Content
[0004] In view of the above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a plug-in sensor module to solve the problem that the existing sensor module cannot enter the burning mode and use the TTL signal for calibration.
[0005] In order to achieve the above purpose, the utility model adopts the following technical solutions:
[0006] The utility model provides a plug-in sensor module, including a signal acquisition board for outputting differential signals, which also includes a signal processing common board, a first row of needles and a second row of needles; the signal processing common board is provided with an interface circuit, a temperature detection circuit, a processing circuit, an input circuit and a power supply circuit;
[0007] The interface circuit is connected to the processing circuit and is also connected to the signal acquisition board through the first row of pins and the second row of pins; the processing circuit is connected to the temperature detection circuit and the input circuit; the power supply circuit is connected to the interface circuit, the temperature detection circuit, the processing circuit and the input circuit;
[0008] The processing circuit enters a burn-in reset mode according to the BM signal transmitted by the input circuit, and performs sensor calibration according to the input burn-in signal;
[0009] The interface circuit filters and de-interferes the differential signal transmitted by the first row of pins, and then transmits it to the processing circuit and converts it into a digital sampling signal;
[0010] The temperature detection circuit detects the ambient temperature and outputs the corresponding temperature pressure value; after the processing circuit performs temperature calibration on the sampling signal according to the temperature pressure value, the output calibration information is uploaded to the signal acquisition board for storage through the second row of pins.
[0011] Optionally, in the plug-in and unplug sensor module, the interface circuit includes a first filter, a second filter, a first resistor, a second resistor, a third resistor and a fourth resistor; the first end of the first filter is connected to the first pin of the first row of pins, the first end of the second filter is connected to the second pin of the first row of pins, the second end of the first filter and the second end of the second filter are both connected to the processing circuit, the third end of the first filter and the third end of the second filter are both connected to the analog ground, one end of the first resistor is connected to one end of the third resistor and the second pin of the second row of pins, one end of the second resistor is connected to one end of the fourth resistor and the third pin of the second row of pins, and the other end of the first resistor is connected to the other end of the second resistor and the second power supply end; the other end of the third resistor, the other end of the fourth resistor and the first pin of the second row of pins are all connected to the processing circuit.
[0012] Optionally, in the plug-in sensor module, the temperature detection circuit includes a temperature sensor, a first capacitor, a second capacitor and a fifth resistor; the first pin of the temperature sensor is connected to one end of the first capacitor and the first power supply end, the second pin of the temperature sensor is connected to one end of the second capacitor and the processing circuit through the fifth resistor, the third pin of the temperature sensor is connected to the other end of the first capacitor and the analog ground, and the other end of the second capacitor is connected to the analog ground.
[0013] Optionally, in the plug-in sensor module, the processing circuit includes an MCU, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a third capacitor and a fourth capacitor; The pin is connected to one end of the sixth resistor and one end of the third capacitor, the other end of the sixth resistor is connected to the first power supply terminal, and the other end of the third capacitor is connected to the digital ground; the P1.0 / IRQ1 / SIN / T0 pin, P1.1 / SOUT pin, and DAC0 pin of the MCU are all connected to the input circuit; the ADC5 / EXT_REF2IN- pin of the MCU is connected to the digital ground through the seventh resistor, the ADC2 pin of the MCU is connected to the second pin of the temperature sensor through the fifth resistor, the ADC1 pin of the MCU is connected to the second end of the second filter, the ADC0 pin of the MCU is connected to the second end of the first filter, the AVDD pin of the MCU is connected to the first analog power supply terminal, the VREF+ pin of the MCU is connected to the second analog power supply terminal and one end of the fourth capacitor, the other end of the fourth capacitor is connected to the digital ground, the P0.1 / SCLK / SCL / ADC7 pin of the MCU is connected to the other end of the fourth resistor, the P0.3 / MOSI / SDA / ADC9 pin of the MCU is connected to the other end of the third resistor, the P2.0 / IRO2 / PWM0 pin of the MCU is connected to the first pin of the second row of pins, the DVDD of the MCU is connected to the first power supply terminal and one end of the ninth resistor, and the The pin is connected to the other end of the ninth resistor and one end of the eighth resistor, and the other end of the eighth resistor is connected to the input circuit; the ADC3 pin, GND_SW pin, AGND pin, DGND pin and EP pin of the MCU are all connected to the digital ground.
[0014] Optionally, in the plug-in and unplug sensor module, the input circuit includes a needle socket interface, a first inductor, a first diode, a second diode, a third diode, a tenth resistor, an eleventh resistor and a twelfth resistor; the first pin of the needle socket interface is connected to the power supply end; the second pin of the needle socket interface is connected to one end of the tenth resistor, the cathode of the first diode and the other end of the eighth resistor; the third pin of the needle socket interface is connected to one end of the eleventh resistor and the cathode of the second diode, the fourth pin of the needle socket interface is connected to the digital ground through the first inductor, and the fifth pin of the needle socket interface is connected to one end of the twelfth resistor and the cathode of the third diode; the other end of the tenth resistor is connected to the P1.1 / SOUT pin of the MCU, the other end of the eleventh resistor is connected to the P1.0 / IRQ1 / SIN / T0 pin of the MCU, and the other end of the twelfth resistor is connected to the DAC0 pin of the MCU; the positive poles of the first diode, the second diode and the third diode are all connected to the digital ground.
[0015] Optionally, in the plug-in and unplug sensor module, the power supply circuit includes a voltage stabilizing module, a conversion module and a reference module; the voltage stabilizing module is connected to the conversion module and the reference module, and the reference module is connected to the conversion module and the processing module;
[0016] The voltage stabilizing module converts the input voltage 5V into a first voltage and a second voltage and stabilizes the voltage;
[0017] The conversion module converts the digital first voltage into a first analog voltage;
[0018] The reference module converts the first analog voltage into a quasi-reference voltage and transmits the converted voltage to the processing circuit.
[0019] A second aspect of the embodiment of the utility model provides a compatible burning system, including a host computer, which also includes a burning tool and the plug-in sensor module;
[0020] The plug-in sensor module is plugged into the burning tool, and the burning tool outputs a BM signal according to the key operation to control the plug-in sensor module to enter the burning reset mode, converts the calibration parameters transmitted by the host computer into a burning signal in TTL format and transmits it to the plug-in sensor module;
[0021] The plug-in and unplug sensor module performs parameter calibration according to the burning signal, collects and stores calibration information.
[0022] Optionally, in the compatible burning system, the burning tool includes a circuit board, on which an interface power supply circuit, a conversion circuit and an interface simulation circuit are provided;
[0023] The interface power supply circuit is connected to the conversion circuit and the interface simulation circuit, the conversion circuit is connected to the interface simulation circuit, and the interface power supply circuit is externally connected to the host computer;
[0024] The interface power supply circuit transmits the calibration parameters transmitted by the host computer to the conversion circuit, converts them into TTL format burning signals, and then outputs them to the plug-in sensor module through the interface analog circuit;
[0025] The interface power supply circuit also steps down the input power supply voltage into a working voltage for power supply;
[0026] The interface simulation circuit outputs a BM signal according to a key operation to control the plug-in and unplug sensor module to enter a burn-in reset mode.
[0027] Optionally, in the compatible burning system, the interface power supply circuit includes a USB interface, a step-down chip, a tenth capacitor and an eleventh capacitor; the DN1 pin, DN2 pin, DP1 pin and DP2 pin of the USB interface are all connected to the conversion circuit; the VBUS pin of the USB interface inputs the power supply voltage VBUS, the GND of the USB interface is connected to the digital ground, the Vin pin of the step-down chip is connected to one end of the tenth capacitor and the VBUS pin of the USB interface, and the other end of the tenth capacitor is connected to the digital ground; the Vout pin of the step-down chip is the working voltage end, and is connected to the digital ground through the eleventh capacitor.
[0028] Optionally, in the compatible burning system, the conversion circuit includes a conversion chip, a fourteenth resistor, a fifteenth resistor, a sixteenth resistor, a twelfth capacitor and a thirteenth capacitor; the D+ pin of the conversion chip is connected to the DP1 pin and the DP2 pin of the USB interface, the D- pin of the conversion chip is connected to the DN1 pin and the DN2 pin of the USB interface, the REGIN pin of the conversion chip is connected to one end of the fourteenth resistor; the other end of the fourteenth resistor is connected to one end of the fifteenth resistor, one end of the twelfth capacitor and the VBUS pin of the conversion chip; the other end of the fifteenth resistor is connected to the working voltage end, and ... The pin is connected to one end of the thirteenth capacitor and the other end of the fourteenth resistor through the sixteenth resistor, the other end of the twelfth capacitor and the other end of the thirteenth capacitor are both connected to the digital ground, and the TXD pin and RXD pin of the conversion chip are both connected to the interface analog circuit.
[0029] Compared with the prior art, the utility model provides a plug-in sensor module and a compatible burning system, wherein the compatible burning system includes a host computer, a burning tool and a plug-in sensor module; the plug-in sensor module is plugged into the burning tool, and the burning tool outputs a BM signal according to a key operation to control the plug-in sensor module to enter a burning reset mode, and converts the calibration parameters transmitted by the host computer into a burning signal in TTL format and transmits it to the plug-in sensor module; the plug-in sensor module performs parameter calibration according to the burning signal, collects calibration information and stores it. By entering the burning reset mode through key operation, the calibration operation in TTL format can be supported without leading out the BM signal or adding a burning interface; the problem that the existing sensor module cannot enter the burning mode and use the TTL signal for calibration is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a structural explosion diagram of the plug-in sensor module provided by the utility model.
[0031] Figure 2 This is a structural block diagram of the compatible burning system provided by the utility model.
[0032] Figure 3 The present invention provides a circuit diagram of the interface circuit.
[0033] Figure 4 The present invention provides a circuit diagram of a temperature detection circuit.
[0034] Figure 5 This is a circuit diagram of the processing circuit provided by the utility model.
[0035] Figure 6 The utility model provides a circuit diagram of the input circuit.
[0036] Figure 7 The utility model provides a circuit diagram of the voltage stabilizing module.
[0037] Figure 8 This is a circuit diagram of the conversion module provided by the utility model.
[0038] Fig. 9 This is a circuit diagram of the reference module provided by the utility model.
[0039] Fig.10 The present invention provides a circuit diagram of an interface power supply circuit.
[0040] Fig.11 The utility model provides a circuit diagram of the conversion circuit.
[0041] Fig.12 The present invention provides a circuit diagram of an interface simulation circuit.
[0042] Fig.13 This is a schematic diagram of the key pressing state and BM signal level provided by the utility model. DETAILED DESCRIPTION
[0043] The utility model provides a plug-in sensor module and a compatible burning system. In order to make the purpose, technical solution and effect of the utility model clearer and more specific, the utility model is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the utility model and are not used to limit the utility model.
[0044] Please also see Figure 1 and Figure 2 The compatible burning system provided in this embodiment includes a plug-in sensor module 10, a burning tool 20 for performing parameter burning on the sensor module, and a host computer. The plug-in sensor module 10 is plugged into the burning tool 20. The burning tool 20 outputs a BM signal according to a key operation to control the plug-in sensor module 10 to enter a burning reset mode (i.e., a JTAG reset / start mode, which can be entered by resetting the BM signal), and converts the calibration parameters transmitted by the host computer into a burning signal in TTL format and transmits it to the plug-in sensor module 10; the plug-in sensor module 10 performs parameter calibration according to the burning signal, collects calibration information (such as concentration value, calibration value) and stores it.
[0045] The plug-in sensor module 10 completes the calibration operation in the factory, and all calibration information is directly stored on the plug-in sensor module 10. By key operation, the burn-in reset mode is entered, and the calibration operation in TTL format can be supported without leading out BM signal or adding burn-in interface; the problem that the existing sensor module cannot enter the burn-in mode and use TTL signal for calibration is solved.
[0046] like Figure 2As shown, the plug-in sensor module 10 includes a sensor needle seat 11, a signal processing common board 12, a signal acquisition board 13, a gas sensor 14 and an upper cover 15; the signal processing common board 12 is arranged on the sensor needle seat 11 and is electrically connected to the sensor needle seat, the signal acquisition board 13 is placed above the signal processing common board 12 and is electrically connected to the signal processing common board 12 through two pin rows (J1 and J2), the plug pins 17 (three) of the gas sensor 14 are inserted into the needle seat 18 (three correspondingly arranged) of the signal acquisition board 13 and are electrically connected to the signal acquisition board 13, and the upper cover 15 covers the gas sensor 14 and is plugged and fixed to the slot of the outer ring of the sensor needle seat 11. The top outer ring of the upper cover 15 and the top outer ring of the sensor needle seat 11 can be sealed by an O-ring 19 respectively.
[0047] The structure of the plug-in sensor module 10 is the prior art. This embodiment mainly improves the circuit function on the signal processing common board 12. The gas sensor 14 transmits the collected gas data (i.e., differential signal) to the signal processing common board 12 through the first row of pins J1 for format conversion, and then feeds back to the signal acquisition board 13 for storage through the second row of pins J2. The burning tool 20 developed and designed for the plug-in sensor module 10 enters the burning reset mode through key operation, so that the signal processing common board 12 can complete the calibration. By matching different types of signal acquisition boards 13 and gas sensors 14, calibration sensing of different gases can be achieved.
[0048] The signal processing common board 12 is provided with an interface circuit 121, a temperature detection circuit 122, a processing circuit 123, an input circuit 124 and a power supply circuit 125; the interface circuit 121 is connected to the processing circuit 123, and is also connected to the signal acquisition board 13 through the first row of pins J1 and the second row of pins J2; the processing circuit 123 is connected to the temperature detection circuit 122 and the input circuit 124; the power supply circuit 125 is connected to the interface circuit 121, the temperature detection circuit 122, the processing circuit 123 and the input circuit 124. The processing circuit 123 enters the burn-in reset mode according to the BM signal transmitted by the input circuit 124, and performs sensor calibration according to the input burn-in signal. The interface circuit 121 filters and de-interferes the differential signal VOUT± output by the signal acquisition board 13, outputs the differential analog signal A0±, and transmits it to the processing circuit 123 to convert it into a digital sampling signal; the temperature detection circuit 122 detects the ambient temperature and outputs the corresponding temperature pressure value A1 to the processing circuit 123; the processing circuit 123 performs temperature calibration on the sampling signal according to the temperature pressure value A1, and outputs the calibration information to be uploaded to the signal acquisition board 13 for storage through the second row of pins J2;
[0049] like Figure 3As shown, the interface circuit 121 includes a first filter NFL1, a second filter NFL2, a first resistor R1, a second resistor R2, a third resistor R3 and a fourth resistor R4; a first end of the first filter NFL1 is connected to the first pin of the first row of pins J1, a first end of the second filter NFL2 is connected to the second pin of the first row of pins J1, a second end of the first filter NFL1 and a second end of the second filter NFL2 are both connected to the processing circuit 123, a third end of the first filter NFL1 and a third end of the second filter NFL2 are both connected to the analog ground, one end of the first resistor R1 is connected to one end of the third resistor R3 and the second pin of the second row of pins J2, one end of the second resistor R2 is connected to one end of the fourth resistor R4 and the third pin of the second row of pins J2, and the other end of the first resistor R1 is connected to the other end of the second resistor R2 and the second power supply end; the other end of the third resistor R3, the other end of the fourth resistor R4 and the first pin of the second row of pins J2 are all connected to the processing circuit 123.
[0050] The analog quantity output by the existing sensor is sampled in differential output mode in order to resist interference. The differential signal VOUT± (including the data concentration output by the sensor, etc.) output by the signal acquisition board 13 is input through the first row of pins J1. The two filters are preferably three-terminal EMI filters of model NFL18SP207X1A3D. After filtering out electromagnetic interference from the external differential signal VOUT±, the differential analog signal A0± is output to the processing circuit 123 for format conversion processing and becomes a digital sampling signal.
[0051] When writing to storage, the MCU in the processing circuit first outputs an enable signal MENB to enable the memory in the signal acquisition board 13. The calibration information to be stored (such as concentration value, calibration value) is output in IIC format, and the corresponding calibration signal (including CLK signal and DATA signal) is uploaded to the signal acquisition board 13 through the second row of pins J2 for writing and storage. R1 and R2 are pull-up resistors, which are used to pull the IIC signal to a high level when no information is stored to avoid erroneous storage.
[0052] According to the power supply requirements of different sensors, select 5.0V or DVDD_3.3V from the two pin headers to output to the signal acquisition board 13 to power the corresponding sensor.
[0053] like Figure 4 As shown, the temperature detection circuit 122 includes a temperature sensor U1, a first capacitor C1, a second capacitor C2 and a fifth resistor R5; the first pin of the temperature sensor U1 is connected to one end of the first capacitor C1 and the first power supply end, the second pin of the temperature sensor U1 is connected to one end of the second capacitor C2 and the processing circuit 123 through the fifth resistor R5, the third pin of the temperature sensor U1 is connected to the other end of the first capacitor C1 and the analog ground, and the other end of the second capacitor C2 is connected to the analog ground.
[0054] The temperature sensor U1 is preferably of TMP235 type, which detects the ambient temperature and outputs the corresponding temperature and pressure value A1, which is an analog output, that is, one temperature corresponds to one voltage value. Temperature has a greater impact on electrochemical and oxygen sensors; by collecting the temperature and pressure value A1 and transmitting it to the processing circuit for temperature calibration, the accuracy of calibration can be improved.
[0055] like Figure 5 As shown, the processing circuit 123 includes an MCU U2, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a third capacitor C3 and a fourth capacitor C4; the MCU U2 The pin is connected to one end of the sixth resistor R6 and one end of the third capacitor C3, the other end of the sixth resistor is connected to the first power supply terminal, and the other end of the third capacitor is connected to the digital ground; the P1.0 / IRQ1 / SIN / T0 pin, the P1.1 / SOUT pin, and the DAC0 pin of the MCU are all connected to the input circuit 124; the ADC5 / EXT_REF2IN- pin of the MCU is connected to the digital ground through the seventh resistor R7, the ADC2 pin of the MCU is connected to the second pin of the temperature sensor U1 through the fifth resistor R5, the ADC1 pin of the MCU is connected to the second end of the second filter NFL2, and the ADC0 pin of the MCU is connected to the first filter The second end of the filter NFL1, the AVDD pin of the MCU is connected to the first analog power supply end, the VREF+ pin of the MCU is connected to the second analog power supply end and one end of the fourth capacitor C4, the other end of the fourth capacitor C4 is connected to the digital ground, the P0.1 / SCLK / SCL / ADC7 pin of the MCU is connected to the other end of the fourth resistor R4, the P0.3 / MOSI / SDA / ADC9 pin of the MCU is connected to the other end of the third resistor R3, the P2.0 / IRO2 / PWM0 pin of the MCU is connected to the first pin of the second row of pins, the DVDD of the MCU is connected to the first power supply end and one end of the ninth resistor, the The pin is connected to the other end of the ninth resistor and one end of the eighth resistor, and the other end of the eighth resistor is connected to the input circuit 124; the ADC3 pin, GND_SW pin, AGND pin, DGND pin and EP pin of the MCU are all connected to the digital ground.
[0056] The preferred model of the MCU is ADuC7061, and R6 and C3 output a reset signal RST to reset the MCU when powered on. Since the conventional download of the MCU is in JTAG test download mode, its pin 29 must be reset to enter the burning mode. This embodiment receives the BM signal transmitted by the burning tool to simulate the level change of the reset signal, so that the MCU enters the burning reset mode, and performs program burning, parameter setting, etc. on the sensor according to the TXD signal and RXD signal converted from the burning signal (RX signal and TX signal).
[0057] It can also convert the differential analog signal A0± into a digital calibration signal (CLK signal and DATA signal), query the temperature coefficient according to the temperature pressure value A1, perform temperature compensation on the calibration signal, and then upload it to the signal acquisition board 13 for storage through the second row of pins.
[0058] Please also read Figure 6 The input circuit 124 includes a needle socket interface J3, a first inductor L1, a first diode D1, a second diode D2, a third diode D3, a tenth resistor R10, an eleventh resistor R11 and a twelfth resistor R12; the first pin of the needle socket interface J3 is connected to the power supply end (providing an input voltage of 5V); the second pin of the needle socket interface J3 is connected to one end of the tenth resistor, the cathode of the first diode D1 and the other end of the eighth resistor; the third pin of the needle socket interface J3 is connected to one end of the eleventh resistor and the cathode of the second diode D2, the fourth pin of the needle socket interface J3 is connected to the digital ground through the first inductor L1, and the fifth pin of the needle socket interface J3 is connected to one end of the twelfth resistor and the cathode of the third diode D3; the other end of the tenth resistor is connected to the P1.1 / SOUT pin of the MCU, the other end of the eleventh resistor is connected to the P1.0 / IRQ1 / SIN / T0 pin of the MCU, and the other end of the twelfth resistor is connected to the DAC0 pin of the MCU; the positive electrodes of the first diode D1, the second diode D2 and the third diode D3 are all connected to the digital ground.
[0059] Among them, the five pins on the needle seat interface J3 correspond to Figure 1 The five pins at the bottom of the sensor pin socket 11 are used to plug the sensor module 10 into the programming tool during calibration. The programming signal transmitted by the programming tool is converted into TXD signal and RXD signal through the pin socket interface J3, which transmits the corresponding program parameter data to the MCU for parameter program programming. D1 to D3 are TVS diodes.
[0060] The power supply circuit 125 includes a voltage stabilizing module, a conversion module and a reference module; the voltage stabilizing module converts the input voltage 5V into a first voltage DVDD_2.5V and a second voltage DVDD_3.3V and stabilizes the voltage; the conversion module converts the digital first voltage DVDD_2.5V into a first analog voltage AVDD_2.5V; the reference module converts the first analog voltage AVDD_2.5V into a quasi-reference voltage AVDD_1.2V and transmits it to the MCU in the processing circuit.
[0061] like Figure 7As shown, the voltage stabilizing module includes a voltage stabilizing chip U3, a first magnetic bead FB1, a fifth capacitor C5, a sixth capacitor C6 and a seventh capacitor C7; the EN1 pin, Vin pin and EN2 pin of the voltage stabilizing chip U3 are connected to each other, and are also connected to one end of the fifth capacitor C5 and one end of the first magnetic bead FB1; the other end of the first magnetic bead is connected to the power supply end, and the other end of the fifth capacitor is connected to the digital ground; the Vout1 pin of the voltage stabilizing chip U3 is the first power supply end, which is connected to the digital ground through the sixth capacitor; the Vout2 pin of the voltage stabilizing chip U3 is the second power supply end, which is connected to the digital ground through the seventh capacitor.
[0062] The voltage regulator chip U3 is preferably VRD2533PTX, which converts the input voltage 5V provided by the power supply end into the first voltage DVDD_2.5V and the second voltage DVDD_3.3V. C5 to C7 are used to filter the connected voltage. The first magnetic bead FB1 is used to protect U3.
[0063] like Figure 8 As shown, the conversion module includes a second magnetic bead FB2, a third magnetic bead FB3, an eighth capacitor C8 and a ninth capacitor C9; one end of the second magnetic bead FB2 is connected to the first power supply end; the other end of the second magnetic bead is the first analog power supply end, connected to one end of the eighth capacitor C8 and one end of the ninth capacitor C9; the other end of the eighth resistor is connected to the other end of the ninth resistor, one end of the third magnetic bead FB3 and the analog ground; the other end of the third magnetic bead is connected to the digital ground.
[0064] Among them, the specifications of FB2 and FB3 are 100R / 100MHz, which are used for signal isolation, and the first voltage DVDD_2.5V is converted into the first analog voltage AVDD_2.5V. The specification of C8 is 10uF / 10V, and the capacitance of C9 is 0.1uF, which is used for filtering and voltage stabilization.
[0065] like Fig. 9 As shown, the reference module includes a voltage regulator TL and a thirteenth resistor R13; the cathode (pin 2) of the voltage regulator TL is the second analog power supply terminal, connecting the reference electrode (pin 1) of the voltage regulator TL and one end of the thirteenth resistor R13, the other end of the thirteenth resistor is connected to the first analog power supply terminal, and the anode of the voltage regulator TL is connected to the analog ground.
[0066] The preferred voltage regulator is TL431, and the first analog voltage AVDD_2.5V is stepped down to the second analog voltage AVDD_1.2V by TL. Preferably, the voltage regulator LM4041 on the left side of the figure can be used to replace TL431, and its pin 3 can be left floating, the pin 1 is connected to one end of R13, and the pin 2 is connected to the analog ground.
[0067] The burning tool 20 includes a circuit board, on which an interface power supply circuit 21, a conversion circuit 22 and an interface simulation circuit 23 are provided; the interface power supply circuit 21 is connected to the conversion circuit 22 and the interface simulation circuit 23, the conversion circuit 22 is connected to the interface simulation circuit 23, and the interface power supply circuit 21 is externally connected to a host computer (i.e., a computer). The interface power supply circuit 21 transmits the calibration parameters transmitted by the host computer to the conversion circuit 22, and after converting them into a burning signal in TTL format, it is output to the plug-in sensor module 10 through the interface simulation circuit 23; the interface power supply circuit 21 also inputs a power supply voltage VBUS that is stepped down to a 3.3V working voltage 3.3V_VCC for power supply. The interface simulation circuit 23 outputs a BM signal according to the key operation to control the plug-in sensor module 10 to enter the burning reset mode.
[0068] like Fig.10 As shown, the interface power supply circuit 21 includes a USB interface J4, a step-down chip U4, a tenth capacitor C10 and an eleventh capacitor C11; the DN1 pin, DN2 pin, DP1 pin and DP2 pin of the USB interface J4 are all connected to the conversion circuit 22; the VBUS pin of the USB interface J4 inputs the power supply voltage VBUS, the GND of the USB interface is connected to the digital ground, the Vin pin of the step-down chip U4 is connected to one end of the tenth capacitor C10 and the VBUS pin of the USB interface J4, and the other end of the tenth capacitor is connected to the digital ground; the Vout pin of the step-down chip U4 is the working voltage end, which is connected to the digital ground through the eleventh capacitor.
[0069] The USB interface J4 is connected to a computer via a data cable to receive the burning program transmitted by the computer. It has two DM signals and DP signals and supports forward and reverse insertion. U4 steps down the input power supply voltage VBUS to a 3.3V working voltage 3.3V_VCC for power supply.
[0070] like Fig.11 As shown, the conversion circuit 22 includes a conversion chip U5, a fourteenth resistor R14, a fifteenth resistor R15, a sixteenth resistor R16, a twelfth capacitor C12 and a thirteenth capacitor C13; the D+ pin of the conversion chip U5 is connected to the DP1 pin and the DP2 pin of the USB interface J4, the D- pin of the conversion chip U5 is connected to the DN1 pin and the DN2 pin of the USB interface J4, and the REGIN pin of the conversion chip U5 is connected to one end of the fourteenth resistor R14; the other end of the fourteenth resistor is connected to one end of the fifteenth resistor R15, one end of the twelfth capacitor C12 and the VBUS pin of the conversion chip U5; the other end of the fifteenth resistor R15 is connected to the working voltage end ... The pin is connected to one end of the thirteenth capacitor and the other end of the fourteenth resistor through the sixteenth resistor R16, the other end of the twelfth capacitor and the other end of the thirteenth capacitor are both connected to the digital ground, and the TXD pin and RXD pin of the conversion chip U5 are both connected to the interface analog circuit 23.
[0071] The preferred model of the conversion chip U5 is CP2102-GMR, which converts the DM signal and DP signal of the serial port into TTL (transistor-transistor logic level) level burning signals (RX signal and TX signal) and transmits them to the interface analog circuit 23. In this embodiment, the working voltage 3.3V_VCC is selected for power supply. In specific implementation, R15 can also be removed, and another resistor is set to connect the power supply voltage VBUS to the VBUS pin of the conversion chip.
[0072] like Fig.12 As shown, the interface simulation circuit 23 includes a sensor interface J5, a first button S1, a second button S2, a first switch tube Q1 (NPN transistor), a second switch tube Q2 (PMOS), an indicator light LE, a seventeenth resistor R17, an eighteenth resistor R18, a nineteenth resistor R19, a twentieth resistor R20 and a fourteenth capacitor C14; the second pin of the sensor interface J5 is connected to the digital ground, the third pin of the sensor interface J5 is connected to the TXD pin of the conversion chip U5, the fourth pin of the sensor interface J5 is connected to the RXD pin of the conversion chip U5 and the first pin of the first button S1, the fifth pin of the sensor interface J5 is connected to the drain of the second switch tube Q2, and the second pin of the first button S1 is suspended. The first button S1 is connected to the digital ground, the first button S2 is connected to the VBUS pin of the USB interface J4, and the third button S2 is left floating; the second button S2 is connected to the power supply, one end of the seventeenth resistor and the emitter of the first switch tube Q1; the base of the first switch tube Q1 is connected to the other end of the seventeenth resistor and the source of the second switch tube Q2 through the eighteenth resistor, the collector of the first switch tube Q1 is connected to one end of the nineteenth resistor R19 and the gate of the second switch tube Q2, and the drain of the second switch tube is connected to one end of the fourteenth capacitor and the positive electrode of the indicator light LE; the other end of the nineteenth resistor, the other end of the fourteenth capacitor and the negative electrode of the indicator light LE are all connected to the digital ground.
[0073] Among them, each pin on the sensor interface J5 is connected to Fig.12 The signal pins of the sensor pin holder 11 shown above correspond to each other. The burning signal (RX signal and TX signal) is transmitted to the plug-in sensor module 10 through J5 for calibration. The DAC signal is the output of the plug-in sensor module 10 and is reserved here.
[0074] Please also read Fig.13The 29th pin of MCU is usually pulled up to a high level by R9. Since the burning tool adopts TTL serial port burning method, the BM signal generated by pressing the combination of two buttons becomes a low level for a period of time and then restores to a high level, simulating the reset signal to control the MCU to enter the burning reset mode, even if the MCU enters the serial download mode, thereby realizing the unification of the download port and the communication port of the sensor, simplifying the port design, and standardizing and miniaturizing the sensor output port.
[0075] Specifically, 1. At the beginning, both buttons are released (not pressed), the first pin of S1 is connected to the second pin, and the BM signal is pulled up to a high level by R8 and R9 (1); the first pin of S2 is connected to the second pin, Q1 is turned on to turn on Q2, and the voltage VCC_5V is output from J5.
[0076] 2. When S1 is pressed, pin 1 of S1 is connected to pin 3, the BM signal is pulled down to a low level (0), and the state of S2 is maintained.
[0077] 3. The state of S1 is maintained, and the BM signal is kept at a low level. S2 is also pressed, and its pin 1 is connected to pin 3, Q1 is turned off, causing Q2 to be turned off, and the voltage VCC_5V stops outputting.
[0078] 4. The state of S1 is maintained, and the BM signal is kept at a low level. S2 is released, and its pin 1 is connected to pin 2, Q1 is turned on, making Q2 turned on, and the voltage VCC_5V is output from J5.
[0079] 5. The state of S2 is maintained; S1 is released, the first pin of S1 is connected to the second pin, and the BM signal is pulled up to a high level by R8 and R9 (1).
[0080] Through the above-mentioned button pressing steps, the BM signal can be simulated as a reset signal to reset the MCU, thereby entering the burning reset mode.
[0081] In summary, the utility model provides a plug-in sensor module and a compatible burning system. The burning tool adopts the TTL serial port burning method. By adding two buttons and controlling the order of their opening and closing combinations, the MCU is reset to enter the burning reset mode of serial download, thereby realizing the unification of the sensor's download port and communication port, simplifying the port design, and standardizing and miniaturizing the sensor output port. It is also compatible with the existing sensor module structure size, saving the module mold opening cost,
[0082] The division of the above functional modules is only for illustration. In practical applications, the above functions can be assigned to different functional modules as needed, that is, divided into different functional modules to complete all or part of the functions described above.
[0083] It is understandable that those skilled in the art can make equivalent substitutions or changes based on the technical solution and utility model concept of the utility model, and all these changes or substitutions should fall within the protection scope of the claims attached to the utility model.
Claims
1. A plug-in sensor module, comprising a signal acquisition board for outputting a differential signal, characterized in that: It also includes a signal processing common board, a first row of pins and a second row of pins; the signal processing common board is provided with an interface circuit, a temperature detection circuit, a processing circuit, an input circuit and a power supply circuit; The interface circuit is connected to the processing circuit and is also connected to the signal acquisition board through the first row of pins and the second row of pins; the processing circuit is connected to the temperature detection circuit and the input circuit; the power supply circuit is connected to the interface circuit, the temperature detection circuit, the processing circuit and the input circuit; The processing circuit enters a burn-in reset mode according to the BM signal transmitted by the input circuit, and performs sensor calibration according to the input burn-in signal; The interface circuit filters and de-interferes the differential signal transmitted by the first row of pins, and then transmits it to the processing circuit and converts it into a digital sampling signal; The temperature detection circuit detects the ambient temperature and outputs the corresponding temperature pressure value; after the processing circuit performs temperature calibration on the sampling signal according to the temperature pressure value, the output calibration information is uploaded to the signal acquisition board for storage through the second row of pins.
2. The plug-in sensor module according to claim 1, characterized in that: The interface circuit comprises a first filter, a second filter, a first resistor, a second resistor, a third resistor and a fourth resistor; a first end of the first filter is connected to the first pin of the first row of pins, a first end of the second filter is connected to the second pin of the first row of pins, a second end of the first filter and a second end of the second filter are both connected to the processing circuit, a third end of the first filter and a third end of the second filter are both connected to the analog ground, one end of the first resistor is connected to one end of the third resistor and the second pin of the second row of pins, one end of the second resistor is connected to one end of the fourth resistor and the third pin of the second row of pins, and the other end of the first resistor is connected to the other end of the second resistor and the second power supply end; The other end of the third resistor, the other end of the fourth resistor and the first pin of the second row of pins are all connected to the processing circuit.
3. The plug-in sensor module according to claim 2, characterized in that: The temperature detection circuit includes a temperature sensor, a first capacitor, a second capacitor and a fifth resistor; the first pin of the temperature sensor is connected to one end of the first capacitor and the first power supply end, the second pin of the temperature sensor is connected to one end of the second capacitor and the processing circuit through the fifth resistor, the third pin of the temperature sensor is connected to the other end of the first capacitor and the analog ground, and the other end of the second capacitor is connected to the analog ground.
4. The plug-in / plug-out sensor module according to claim 3, characterized in that: The processing circuit includes an MCU, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a third capacitor and a fourth capacitor; the RESET pin of the MCU is connected to one end of the sixth resistor and one end of the third capacitor, the other end of the sixth resistor is connected to the first power supply end, and the other end of the third capacitor is connected to the digital ground; the P1.0 / IRQ1 / SIN / T0 pin, the P1.1 / SOUT pin, and the DAC0 pin of the MCU are all connected to the input circuit; the ADC5 / EXT_REF2IN- pin of the MCU is connected to the digital ground through the seventh resistor, the ADC2 pin of the MCU is connected to the second pin of the temperature sensor through the fifth resistor, the ADC1 pin of the MCU is connected to the second end of the second filter, the ADC0 pin of the MCU is connected to the second end of the first filter, and the AVDD pin of the MCU is connected The first analog power supply end, the VREF+ pin of the MCU is connected to the second analog power supply end and one end of the fourth capacitor, the other end of the fourth capacitor is connected to the digital ground, the P0.1 / SCLK / SCL / ADC7 pin of the MCU is connected to the other end of the fourth resistor, the P0.3 / MOSI / SDA / ADC9 pin of the MCU is connected to the other end of the third resistor, the P2.0 / IRO2 / PWM0 pin of the MCU is connected to the first pin of the second row of pins, the DVDD of the MCU is connected to the first power supply end and one end of the ninth resistor, the NTRST / BM pin of the MCU is connected to the other end of the ninth resistor and one end of the eighth resistor, and the other end of the eighth resistor is connected to the input circuit; the ADC3 pin, GND_SW pin, AGND pin, DGND pin and EP pin of the MCU are all connected to the digital ground.
5. The plug-in sensor module according to claim 4, characterized in that: The input circuit includes a needle socket interface, a first inductor, a first diode, a second diode, a third diode, a tenth resistor, an eleventh resistor and a twelfth resistor; the first pin of the needle socket interface is connected to the power supply end; the second pin of the needle socket interface is connected to one end of the tenth resistor, the cathode of the first diode and the other end of the eighth resistor; the third pin of the needle socket interface is connected to one end of the eleventh resistor and the cathode of the second diode, the fourth pin of the needle socket interface is connected to the digital ground through the first inductor, and the fifth pin of the needle socket interface is connected to one end of the twelfth resistor and the cathode of the third diode; the other end of the tenth resistor is connected to the P1.1 / SOUT pin of the MCU, the other end of the eleventh resistor is connected to the P1.0 / IRQ1 / SIN / T0 pin of the MCU, and the other end of the twelfth resistor is connected to the DAC0 pin of the MCU; the positive poles of the first diode, the second diode and the third diode are all connected to the digital ground.
6. The plug-in sensor module according to claim 1, characterized in that: The power supply circuit includes a voltage stabilizing module, a conversion module and a reference module; the voltage stabilizing module is connected to the conversion module and the reference module, and the reference module is connected to the conversion module and the processing module; The voltage stabilizing module converts the input voltage 5V into a first voltage and a second voltage and stabilizes the voltage; The conversion module converts the digital first voltage into a first analog voltage; The reference module converts the first analog voltage into a quasi-reference voltage and transmits the converted voltage to the processing circuit.
7. A compatible burning system, comprising a host computer, characterized in that: It also includes a burning tool and a plug-in sensor module as claimed in any one of claims 1 to 6; The plug-in sensor module is plugged into the burning tool, and the burning tool outputs a BM signal according to the key operation to control the plug-in sensor module to enter the burning reset mode, converts the calibration parameters transmitted by the host computer into a burning signal in TTL format and transmits it to the plug-in sensor module; The plug-in and unplug sensor module performs parameter calibration according to the burning signal, collects and stores calibration information.
8. The compatible burning system according to claim 7, characterized in that: The burning tool comprises a circuit board, on which an interface power supply circuit, a conversion circuit and an interface simulation circuit are arranged; The interface power supply circuit is connected to the conversion circuit and the interface simulation circuit, the conversion circuit is connected to the interface simulation circuit, and the interface power supply circuit is externally connected to the host computer; The interface power supply circuit transmits the calibration parameters transmitted by the host computer to the conversion circuit, converts them into TTL format burning signals, and then outputs them to the plug-in sensor module through the interface analog circuit; The interface power supply circuit also steps down the input power supply voltage into a working voltage for power supply; The interface simulation circuit outputs a BM signal according to a key operation to control the plug-in and unplug sensor module to enter a burn-in reset mode.
9. The compatible burning system according to claim 8, characterized in that: The interface power supply circuit includes a USB interface, a step-down chip, a tenth capacitor and an eleventh capacitor; the DN1 pin, the DN2 pin, the DP1 pin and the DP2 pin of the USB interface are all connected to the conversion circuit; The VBUS pin of the USB interface inputs the power supply voltage VBUS, the GND of the USB interface is connected to the digital ground, the Vin pin of the step-down chip is connected to one end of the tenth capacitor and the VBUS pin of the USB interface, and the other end of the tenth capacitor is connected to the digital ground; the Vout pin of the step-down chip is the working voltage end, which is connected to the digital ground through the eleventh capacitor.
10. The compatible burning system according to claim 8, characterized in that: The conversion circuit includes a conversion chip, a fourteenth resistor, a fifteenth resistor, a sixteenth resistor, a twelfth capacitor and a thirteenth capacitor; the D+ pin of the conversion chip is connected to the DP1 pin and the DP2 pin of the USB interface, the D- pin of the conversion chip is connected to the DN1 pin and the DN2 pin of the USB interface, the REGIN pin of the conversion chip is connected to one end of the fourteenth resistor; the other end of the fourteenth resistor is connected to one end of the fifteenth resistor, one end of the twelfth capacitor and the VBUS pin of the conversion chip; the other end of the fifteenth resistor is connected to the working voltage end, the RST pin of the conversion chip is connected to one end of the thirteenth capacitor and the other end of the fourteenth resistor through the sixteenth resistor, the other end of the twelfth capacitor and the other end of the thirteenth capacitor are both connected to the digital ground, and the TXD pin and RXD pin of the conversion chip are both connected to the interface analog circuit.