Signal acquisition circuit and electronic equipment

By designing a signal acquisition circuit, using the control module and the configuration module to apply high or low levels at the acquisition point, the problem of separately setting circuits in the prior art is solved, and convenient acquisition of high and low levels signals is achieved, and the flexibility and applicability of the system are improved.

CN120335366AActive Publication Date: 2025-07-18BEIJING FENGZHI RUILIAN TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510521257.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2025-07-18
Estimated Expiration
2045-04-24

AI Technical Summary

Technical Problem

In the prior art, when it is necessary to acquire both high-level and low-level signals in the same system, circuits need to be set up separately, resulting in a reduced convenience of signal acquisition.

Method used

A signal acquisition circuit is designed, including a control module, a configuration module and an acquisition module. Through the control module, different control signals are output, the control configuration module applies a high level or a low level at the acquisition point. The acquisition module collects signals and processes the detection signal through a preset triggering strategy. The existing control chip output pin is used for control to avoid additional configuration of the control chip.

Benefits of technology

It realizes the convenience of simultaneously acquiring high-level and low-level signals in the same system, simplifies circuit configuration, improves system flexibility and applicability, reduces hardware transformation costs, and has high reliability and wide voltage adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120335366A_ABST
    Figure CN120335366A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electronic circuits, in particular to a signal acquisition circuit and electronic equipment. The circuit comprises a control module, an acquisition module and a configuration module, the input end of the configuration module is connected to the output end of the control module, the output end of the configuration module is connected with the acquisition point, the input end of the acquisition module is connected with the acquisition point, and the output end of the acquisition module is connected with the input end of the control module; a to-be-acquired signal source is connected with the acquisition point; the control module is used for outputting a first control signal or a second control signal to the configuration module; the configuration module outputs a high level to the acquisition point when receiving the first control signal, or outputs a low level to the acquisition point when receiving the second control signal; the acquisition module is used for acquiring the voltage of the acquisition point to obtain a detection signal and sending the detection signal to the control module; and the control module is used for processing the detection signal based on a preset triggering strategy. By adopting the scheme of the invention, the convenience of signal acquisition can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of electronic circuits, and particularly to a signal acquisition circuit and an electronic device. Background Art

[0002] In the scenario of signal acquisition, there are two different signal acquisition requirements for the acquisition of digital signals: high-level active and low-level active. Generally speaking, the acquisition of high-level active and low-level active requires acquisition circuits with different structures.

[0003] In an actual control system, the same system may simultaneously involve the acquisition requirements for high-level active and low-level active. For example, in an industrial automation production line, a sensor may output a high-level detection signal to indicate the presence of an object, while some sensors may output a low-level signal to indicate the on / off state of a device. Therefore, in practice, in the face of the signal acquisition requirements that need to simultaneously acquire high-level active and low-level active signals, it is often necessary to separately set up circuits and configure corresponding circuit boards for these two signal acquisition requirements, which reduces the convenience of signal acquisition.

[0004] Therefore, how to improve the convenience of signal acquisition is an urgent problem to be solved. Summary of the Invention

[0005] Based on this, in view of the above technical problems, it is necessary to provide a signal acquisition circuit and an electronic device that can improve the convenience of signal acquisition.

[0006] In a first aspect, this application provides a signal acquisition circuit, which includes a control module, an acquisition module, and a configuration module, where:

[0007] The input end of the configuration module is connected to the output end of the control module, the output end of the configuration module is connected to the acquisition point, the input end of the acquisition module is connected to the acquisition point, and the output end of the acquisition module is connected to the input end of the control module; wherein, a signal source to be acquired is connected to the acquisition point;

[0008] The control module is configured to output a first control signal or a second control signal to the configuration module;

[0009] The configuration module is configured to output a high level to the acquisition point when receiving the first control signal, or output a low level to the acquisition point when receiving the second control signal;

[0010] The acquisition module is configured to acquire the voltage at the acquisition point to obtain a detection signal, and send the detection signal to the control module;

[0011] The control module is configured to process the detection signal based on a preset triggering strategy.

[0012] In one embodiment, the first control signal is a high-level signal and the second control signal is a low-level signal.

[0013] In one embodiment, the configuration module includes a first triode and a second triode, where:

[0014] The first triode is an NPN-type triode and the second triode is a PNP-type triode;

[0015] The base of the first triode is connected to the output terminal of the control module, the collector of the first triode is connected to the base of the second triode, and the emitter of the first triode is grounded;

[0016] The emitter of the second triode is connected to a power supply, the collector of the second triode is connected to the acquisition point, and a pull-up resistor is serially connected between the emitter and the base of the second triode.

[0017] In one embodiment, a first protection resistor is serially connected between the collector of the first triode and the base of the second triode.

[0018] In one embodiment, the configuration module further includes a first diode and a second protection resistor, where:

[0019] The anode of the first diode is connected to the collector of the second triode, the cathode of the first diode is connected to the first end of the second protection resistor, and the second end of the second protection resistor is connected to the acquisition point.

[0020] In one embodiment, the acquisition module includes a first voltage-dividing resistor and a second voltage-dividing resistor, where:

[0021] The first end of the first voltage-dividing resistor is connected to the acquisition point, the second end of the first voltage-dividing resistor is connected to the first end of the second voltage-dividing resistor, and the second end of the second voltage-dividing resistor is grounded;

[0022] The second end of the first voltage-dividing resistor is further connected to the input terminal of the control module.

[0023] In one embodiment, the configuration module includes a relay and a third triode, where:

[0024] The first end of the coil of the relay is connected to a power supply, and the second end is connected to the collector of the third triode;

[0025] The base of the third triode is connected to the output terminal of the control module, and the emitter of the third triode is grounded;

[0026] The first end of the normally open contact of the relay is connected to the power supply, and the second end is connected to the acquisition point.

[0027] In one embodiment, the configuration module includes a first N-channel MOS transistor and a second P-channel MOS transistor, where:

[0028] The gate of the first MOS transistor is connected to the output terminal of the control module, and the source of the first MOS transistor is grounded;

[0029] The drain of the first MOS transistor is connected to the gate of the second MOS transistor, the source of the second MOS transistor is connected to the power supply, and the drain of the second MOS transistor is connected to the acquisition point.

[0030] In one embodiment, the acquisition module further includes an electrostatic protection diode, a first filter capacitor, and a second filter capacitor, where:

[0031] The cathode of the electrostatic protection diode is connected to the first end of the first voltage dividing resistor, and the anode of the electrostatic protection diode is grounded;

[0032] The first end of the first filter capacitor is connected to the first end of the first voltage dividing resistor, and the second end of the first filter capacitor is grounded;

[0033] The first end of the second filter capacitor is connected to the second end of the first voltage dividing resistor, and the second end of the second filter capacitor is grounded.

[0034] In one embodiment, when the control module outputs the first control signal, the control module processes the detection signal based on a first trigger strategy;

[0035] When the control module outputs the second control signal, the control module processes the detection signal based on a second trigger strategy.

[0036] In a second aspect, the present application further provides an electronic device, and the electronic device includes the signal acquisition circuit according to any one of the above first aspects.

[0037] The above signal acquisition circuit and electronic device. The control module is an essential module for processing detection signals. At the same time, the control module can also directly output a first control signal to control the configuration module to output a continuous high level applied to the acquisition point, or output a second control signal to control the configuration module to output a continuous low level applied to the acquisition point. Thus, there is no need to separately configure an additional control chip for the configuration module, but the output pins of the existing control chip (control module) can be directly used for configuration, thereby realizing the effective utilization of the control module. That is to say, in the solution of this application, there is no need to separately set corresponding acquisition circuits for the scenarios of high-level effective acquisition and low-level effective acquisition. Instead, a continuous high level or low level can be applied to the acquisition point through a configuration circuit controlled by the control module, and the control module can output the first control signal or the second control signal under program control, thereby improving the convenience of configuration in different signal acquisition requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0039] Figure 1 Schematic diagram of the connection relationship of each module of the acquisition circuit in one embodiment;

[0040] Figure 2 Schematic diagram of Structure A of the configuration module in one embodiment;

[0041] Figure 3 Schematic diagram of Structure B of the configuration module in another embodiment;

[0042] Figure 4 Schematic diagram of Structure C of the configuration module in yet another embodiment;

[0043] Figure 5 Schematic diagram of the configuration module in another embodiment;

[0044] Figure 6 Schematic diagram of the structure of the electronic device in one embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0045] In order to make the objectives, technical solutions and advantages of the present application more clear, the following further details the present application in conjunction with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terms used herein in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application.

[0047] It can be understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.

[0048] It can be understood that for "connection" in the following embodiments, if there is transmission of electrical signals or data between the connected circuits, modules, units, etc., it should be understood as "electrical connection", "communication connection", etc.

[0049] It can be understood that "at least one" means one or more, and "a plurality" means two or more. "At least part of an element" means part or all of the element.

[0050] As used herein, the singular forms "a", "an", and "the" may also include the plural forms unless the context clearly dictates otherwise. It should also be understood that the terms "comprise / include" or "have", etc. specify the presence of the stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the related listed items.

[0051] In an exemplary embodiment, as Figure 1 shown, a signal acquisition circuit is provided, which may specifically include a control module, at least one acquisition module, and a configuration module corresponding to each acquisition module respectively, wherein:

[0052] The input end of the configuration module is connected to the output end of the control module, the output end of the configuration module is connected to the acquisition point, the input end of the acquisition module is connected to the acquisition point, and the output end of the acquisition module is connected to the input end of the control module; wherein, the signal source to be acquired is connected to the acquisition point;

[0053] The control module is used to output a first control signal or a second control signal to the configuration module;

[0054] A configuration module, configured to output a high level to the acquisition point when receiving a first control signal, or output a low level to the acquisition point when receiving a second control signal;

[0055] An acquisition module, configured to acquire the voltage at the acquisition point to obtain a detection signal, and send the detection signal to the control module;

[0056] A control module, configured to process the detection signal based on a preset triggering strategy.

[0057] For the embodiments of the present application, the acquisition point may be a virtual position. For example, the acquisition point may be any position on the connection line between the signal source to be acquired and the input end of the acquisition module; the acquisition point may also be a physical point, that is, the signal source to be acquired is connected to the acquisition point, and at the same time the input end of the acquisition module is also connected to the acquisition point.

[0058] Specifically, in the signal acquisition scenario with low-level effective triggering: when the signal is not triggered, it is necessary to make the detection signal collected by the input end of the acquisition module from the acquisition point default to a high level. In this way, when the signal source to be acquired does not output a low level to the acquisition point, the superimposed level state of the acquisition point is a high level, and the detection signal collected by the acquisition module from the acquisition point and fed back to the control module always defaults to the high level provided by the configuration module, and the control module will not generate corresponding action instructions for the high-level detection signal. When the signal source to be acquired outputs a low level to the acquisition point, the superimposed level state of the acquisition point is a low level, and the detection signal collected by the acquisition module from the acquisition point and fed back to the control module is a low level. In this way, the control module will generate corresponding action instructions for the low-level detection signal based on the triggering strategy, that is, the low-level signal output by the signal source to be acquired is effectively detected.

[0059] In the signal acquisition scenario with high-level effective triggering: when the signal is not triggered, it is necessary to make the detection signal collected by the input end of the acquisition module from the acquisition point default to a low level. In this way, when the signal source to be acquired does not output a high level to the acquisition point, the superimposed level state of the acquisition point is a low level, and the detection signal collected by the acquisition module from the acquisition point and fed back to the control module always defaults to the low level provided by the configuration module, and the control module will not generate corresponding action instructions for the low-level detection signal. When the signal source to be acquired outputs a high level to the acquisition point, the superimposed level state of the acquisition point is a high level, and the detection signal collected by the acquisition module from the acquisition point and fed back to the control module is a high level. In this way, the control module will generate corresponding action instructions for the high-level detection signal based on the triggering strategy, that is, the high-level signal output by the signal source to be acquired is effectively detected.

[0060] In the above acquisition circuit, the control module is an essential module for processing detection signals. At the same time, the control module can directly output a first control signal to control the configuration module to output a continuous high level applied to the acquisition point, or output a second control signal to control the configuration module to output a continuous low level applied to the acquisition point. Thus, there is no need to separately configure an additional control chip for the configuration module, but the output pins of the existing control chip (control module) can be directly used for configuration, thereby realizing the effective utilization of the control module. That is to say, in the solution of this application, there is no need to separately set corresponding acquisition circuits for the scenarios of high-level effective acquisition and low-level effective acquisition, but a continuous high level or low level can be applied to the acquisition point through a configuration circuit controlled by the control module, and the control module can output the first control signal or the second control signal under program control, thereby improving the convenience of configuration in different signal acquisition requirements.

[0061] The first control signal at the output end of the control module is a high-level signal, and the second control signal is a low-level signal. Further, the structures of each module are elaborated in detail below. Among them, the configuration module has three circuit structures, namely Structure A, Structure B, and Structure C. The configuration modules of the three structures are elaborated below respectively.

[0062] In one embodiment, referring to Figure 2 , it is the circuit schematic diagram of the configuration module of Structure A; the configuration module includes a first triode Q1 and a second triode Q2, where: the first triode Q1 is an NPN-type triode, and the second triode Q2 is a PNP-type triode. Specifically, the base of the first triode Q1 is connected to the output end of the control module, the collector of the first triode Q1 is connected to the base of the second triode Q2, and the emitter of the first triode Q1 is grounded. The emitter of the second triode Q2 is connected to the power supply UB, the collector of the second triode Q2 is connected to the acquisition point, and a pull-up resistor R8 is also connected in series between the emitter and the base of the second triode Q2.

[0063] When the control module outputs a first control signal to the configuration module, the configuration module needs to output a high-level signal to the acquisition point. At this time, the implementation principle of the configuration module of Structure A is as follows: The control module outputs a high-level first control signal to the base of the first triode Q1. The input of the high level to the base of the first triode Q1 makes the path from the collector to the emitter of the first triode Q1 conductive. Since the emitter of the first triode Q1 is grounded, after the first triode Q1 is turned on, the collector of the first triode Q1 is at a low level. A pull-up resistor R8 is connected in series between the emitter and the base of the second triode Q2. The pull-up resistor R8 will raise the base potential of the second triode Q2 to a high-level state. Since the collector of the first triode Q1 is connected to the base of the second triode Q2, the low level of the collector of the first triode Q1 can pull the base of the second triode Q2 down to a low level. The base of the second triode Q2 is applied with a low level, so that the path from the emitter to the collector of the second triode Q2 is conductive. Since the collector of the second triode Q2 is connected to the acquisition point, when the second triode Q2 is turned on, a high-level voltage is applied to the acquisition point.

[0064] When the control module outputs a second control signal to the configuration module, the configuration module needs to output a low-level signal to the acquisition point. At this time, the implementation principle of the configuration module is as follows: The control module outputs a low-level second control signal to the base of the first triode Q1. When the base of the first triode Q1 inputs a low level, the path from the collector to the emitter of the first triode Q1 will not be conductive. A pull-up resistor R8 is connected in series between the emitter and the base of the second triode Q2. The pull-up resistor R8 will raise the base potential of the second triode Q2 to a high-level state. When the base of the second triode Q2 inputs a high level, the path from the emitter to the collector of the second triode Q2 will not be conductive. That is to say, a low-level voltage is applied to the acquisition point by the collector of the second triode Q2.

[0065] In one embodiment, referring to Figure 2 , a first protection resistor R10 is connected in series between the collector of the first triode Q1 and the base of the second triode Q2. When the first triode Q1 is turned on, the current flows from the external voltage UB to the pull-up resistor R8, then from the pull-up resistor R8 to the collector of the first triode Q1, and then from the collector to the emitter of the first triode Q1 and into the ground. In order to limit the excessive current in this loop and prevent damage to the components, a first protection resistor R10 is connected between the collector of the first triode Q1 and the base of the second triode Q2.

[0066] That is to say, on the one hand, the first protection resistor R10 can limit the magnitude of the current input to the collector of the first triode Q1; on the other hand, when the collector and emitter of the first triode Q1 are conducting, the first protection resistor R10 can perform voltage division with the pull-up resistor R8, thereby reducing the voltage applied by the pull-up resistor R8 to the base of the second triode Q2, making it easier for the base of the second triode Q2 to be pulled low to a low level by the collector of the first triode Q1.

[0067] Further, referring to Figure 2 , a resistor R11 is connected in series between the base of the first triode Q1 and the output terminal of the control module. The resistor R11 can limit the magnitude of the current input to the first triode Q1 and play a role in protecting the components. Also, a pull-down resistor R13 and a first capacitor C6 are connected in series between the base and emitter of the first triode Q1. When the control module does not output the first control signal, the base of the first triode Q1 needs to maintain a stable low-level state. When the base of the first triode Q1 generates an instantaneous high voltage due to charge accumulation, it may cause the first triode Q1 to be mis-conducted. The pull-down resistor R13 can provide a default low level for the base of the first triode Q1; and the pull-down resistor R13 can consume the charge accumulated at the base of the first triode Q1, so that the base of the first triode Q1 maintains a stable low-level state.

[0068] Also, the pull-down resistor R13 can be connected in parallel with the first capacitor C6 to form an RC filter circuit. When the control module outputs a high-level first control signal to the base of the first triode Q1, the pull-down resistor R13 and the first capacitor C6 can filter the input first control signal, making the high level of the first control signal stable.

[0069] Further, a second capacitor C3 is connected in series between the base and emitter of the second triode Q2. The second capacitor C3 can also form an RC filter circuit with the pull-up resistor R8, thereby filtering the voltage of the external UB input to the emitter of the second triode Q2, making the voltage stable.

[0070] In one embodiment, referring to Figure 2 , the configuration module includes a first diode D1 and a second protection resistor R14, where: the anode of the first diode D1 is connected to the collector of the second triode Q2, the cathode of the first diode D1 is connected to the first end of the second protection resistor R14, and the second end of the second protection resistor R14 is connected to the acquisition point.

[0071] Specifically, since the voltage acting on the acquisition point also includes the voltage output by the signal source to be acquired, and the collector of the second triode Q2 is connected to the acquisition point; therefore, when the emitter of the second triode Q2 conducts to the collector, the first diode D1 has the characteristic of unidirectional conduction, so as to avoid the reverse flow of current from the acquisition point to the collector of the second triode Q2; that is to say, the first diode D1 is a parasitic diode, which can prevent the current from flowing back into the second triode Q2; further, when the emitter of the second triode Q2 conducts to the collector, the second protection resistor R14 can perform voltage division to limit the current between the emitter and the collector of the second triode Q2, thereby protecting the safety of the second triode Q2.

[0072] In one embodiment, referring to Figure 3 , it is the circuit schematic diagram of the configuration module of Structure B; the configuration module includes a relay SW and a third triode Q3, where: the first end of the coil of the relay SW (such as the 1-pin of SW shown in Figure 3 ) is connected to the power supply (5V), and the second end (such as the 2-pin of SW shown in Figure 3 ) is connected to the collector of the third triode Q3; the base of the third triode Q3 is connected to the output end of the control module, and the emitter of the third triode Q3 is grounded; the first end of the normally open contact of the relay SW (such as the 4-pin of SW shown in Figure 3 ) is connected to the power supply, and the second end (such as the 5-pin of SW shown in Figure 3 ) is connected to the acquisition point.

[0073] Further, referring to Figure 3 , a first resistor R1 is connected in series between the base of the third triode Q3 and the output end of the control module, a second resistor R2 is connected in series between the base and the emitter of the third triode Q3, and a capacitor C1 is connected in parallel at both ends of the second resistor R2. On the one hand, the second resistor R2 and the capacitor C1 can filter the first control signal input to the base of the third triode Q3. At the same time, the second resistor R2 can also act as a pull-down resistor to provide a default low level for the base of the third triode Q3, thereby reducing the probability of mis-conduction of the third triode Q3.

[0074] The principle of the configuration module of Structure B is: the control module outputs a low-level second control signal to the base of the third triode Q3; since the base of the third triode Q3 inputs a low level, the conduction between the collector and the emitter of the third triode Q3 is not conducted; thus, the path where the coil of the relay SW is located is not conducted, and the coil of the relay SW is not powered; therefore, the normally open contact of the relay SW remains in the open state, that is, the voltage of the power supply UB cannot be output to the acquisition point through the normally open contact of the relay SW; that is to say, when the control module outputs a low-level second control signal to the configuration module, the configuration module applies a low level at the acquisition point.

[0075] When the control module outputs a first control signal with a high level to the third triode Q3, since the base of the third triode Q3 inputs a high level, the collector and emitter of the third triode Q3 are turned on, that is, the loop where the coil of the relay SW is located is turned on, and the coil of the relay SW is energized; therefore, the normally open contact of the relay SW becomes a closed state, so that the voltage output by the power supply UB can be applied to the acquisition point through the closed normally open contact; that is to say, when the control module outputs a first control signal with a high level to the configuration module, the configuration module applies a high level at the acquisition point.

[0076] Further, referring to Figure 3 a third diode D3 and a third resistor R3 are also connected in series between the second end of the normally open contact of the relay SW and the acquisition point; the third diode D3 is a parasitic diode that can prevent current backflow; further, the third resistor R3 can prevent the power supply from being directly connected to the acquisition point, and the third resistor R3 can limit the magnitude of the current acting on the acquisition point.

[0077] In one embodiment, referring to Figure 4 it is the circuit schematic diagram of the configuration module of structure C; the configuration module includes an N-channel first MOS transistor Q4 and a P-channel second MOS transistor Q5, where: the gate of the first MOS transistor Q4 is connected to the output end of the control module, and the source of the first MOS transistor Q4 is grounded; the drain of the first MOS transistor Q4 is connected to the gate of the second MOS transistor Q5, the source of the second MOS transistor Q5 is connected to the power supply, and the drain of the second MOS transistor Q5 is connected to the acquisition point.

[0078] Further, a fourth resistor R4 is connected in series between the output end of the control module and the gate of the first MOS transistor Q4, and the fourth resistor R4 can limit the magnitude of the current acting on the gate of the first MOS transistor Q4 and play a role in protecting the components. Further, a fifth resistor R5 is connected in series between the gate and source of the first MOS transistor Q4, and a seventh capacitor C7 is connected in parallel at both ends of the fifth resistor R5; the fifth resistor R5 and the seventh capacitor C7 can filter the signal input to the gate of the first MOS transistor Q4, so that the input first control signal or second control signal is stable.

[0079] Further, a sixth resistor R6 is connected in series between the drain of the first MOS transistor Q4 and the gate of the second MOS transistor Q5; a seventh resistor R7 is connected in series between the gate and the source of the second MOS transistor Q5, and an eighth capacitor C8 is connected in parallel across both ends of the seventh resistor R7. Among them, the seventh resistor R7 and the eighth capacitor C8 can filter the voltage input from the power supply UB to the source of the second MOS transistor Q5, so that the input voltage remains stable. At the same time, the condition for conduction between the source and the drain of the second MOS transistor Q5 is that a low-level voltage is input to the gate of the second MOS transistor Q5; therefore, the seventh resistor R7 can also act as a pull-up resistor to keep the gate of the second MOS transistor Q5 at a low level by default, thereby reducing the probability of mis-conduction between the source and the gate of the second MOS transistor Q5.

[0080] The sixth resistor R6 and the seventh resistor R7 can divide the voltage of the power supply, thereby restricting the magnitude of the current acting on the gate of the second MOS transistor Q5 and the drain of the first MOS transistor 4, and playing a protective role for the components.

[0081] Further, a fourth diode D4 and a fifteenth resistor R15 are connected in series between the drain of the second MOS transistor Q5 and the acquisition point; the fourth diode D4 is a parasitic diode that can prevent current backflow; further, the fifteenth resistor R15 can prevent the power supply from being directly connected to the acquisition point, the fifteenth resistor R15 can limit the magnitude of the current acting on the acquisition point, thereby playing a protective role for the subsequent-stage components, and at the same time can also prevent the power supply from being directly grounded and reduce the risk of short circuit.

[0082] The principle of the configuration module of the C structure is as follows: The control module inputs a high-level first control signal to the gate of the first MOS transistor Q4, thereby making the source and the drain of the first MOS transistor Q4 conduct; therefore, the loop from the power supply to the drain of the first MOS transistor Q4 and then to the source of the first MOS transistor Q4 conducts, so that the drain of the first MOS transistor Q4 is grounded and kept at a low level. The low level of the drain of the first MOS transistor Q4 acts on the gate of the second MOS transistor Q5, thereby making the path from the source to the drain of the second MOS transistor Q5 conduct, so that the voltage of the power supply can act on the acquisition point after passing through the source and the drain of the second MOS transistor Q5, and a high level is applied at the acquisition point. That is to say, when the control module outputs a high-level first control signal to the configuration module, the configuration module applies a high level at the acquisition point.

[0083] The control module inputs a second control signal with a low level to the gate of the first MOS transistor Q4, so the source and drain of the first MOS transistor Q4 will not conduct; the drain of the first MOS transistor Q4 is always at a high level provided by the power supply element; the high level of the drain of the first MOS transistor Q4 acts on the gate of the second MOS transistor Q5, so the path from the source to the drain of the second MOS transistor Q5 will not conduct either, and thus the voltage of the power supply cannot act on the acquisition point through the source and drain of the second MOS transistor Q5. Therefore, a low level is applied at the acquisition point. That is to say, when the control module outputs a second control signal with a low level to the configuration module, the configuration module applies a low level at the acquisition point.

[0084] In one embodiment, referring to Figure 5 , the acquisition module includes a first voltage-dividing resistor R9 and a second voltage-dividing resistor R12, where: the first end of the first voltage-dividing resistor R9 is connected to the acquisition point, the second end of the first voltage-dividing resistor R9 is connected to the first end of the second voltage-dividing resistor R12, and the second end of the second voltage-dividing resistor R12 is grounded; the second end of the first voltage-dividing resistor R9 is also connected to the input end of the control module.

[0085] Specifically, the detection signal collected from the acquisition point is input to the input end of the control module after passing through the first voltage-dividing resistor R9; the first voltage-dividing resistor R9 and the second voltage-dividing resistor R12 can divide the voltage collected from the acquisition point, so as to limit the magnitude of the current input from the first voltage-dividing resistor R9 to the control module.

[0086] Furthermore, referring to Figure 5 , the acquisition module further includes an electrostatic protection diode D2, a first filter capacitor C4, and a second filter capacitor C5, where: the cathode of the electrostatic protection diode D2 is connected to the first end of the first voltage-dividing resistor, and the anode of the electrostatic protection diode D2 is grounded; the first end of the first filter capacitor C4 is connected to the first end of the first voltage-dividing resistor, and the second end of the first filter capacitor C4 is grounded; the first end of the second filter capacitor C5 is connected to the second end of the first voltage-dividing resistor, and the second end of the second filter capacitor C5 is grounded.

[0087] Specifically, when a transient overvoltage such as electrostatic discharge occurs in the acquisition module, the electrostatic protection diode D2 will respond quickly, its impedance will decrease instantaneously, clamp the overvoltage at a safe level, and quickly discharge the electrostatic charge to the ground, so as to protect the electronic components at the back end from being damaged. The first filter capacitor C4 and the second filter capacitor C5 can respectively filter the voltage across the first voltage-dividing resistor R9, so that the detection signal input to the control module can be kept stable, in order to reduce the instability of the detection signal caused by the introduction of interference.

[0088] Further, when the control module outputs the first control signal, the control module processes the detection signal based on the first trigger strategy; when the control module outputs the second control signal, the control module processes the detection signal based on the second trigger strategy.

[0089] Specifically, when the control module outputs the first control signal, it faces a low-level effective acquisition scenario. At this time, the configuration module outputs a high level to the acquisition point. When the signal source to be acquired outputs a low level to the acquisition point, the voltage state superimposed on the acquisition point is low. At this time, the acquisition module sends the detection signal of the low level acquired from the acquisition point to the control module, and the control module processes the detection signal based on the first trigger strategy and generates a corresponding action instruction according to the first trigger strategy.

[0090] When the control module outputs the second control signal, it faces a high-level effective acquisition scenario. At this time, the configuration module outputs a low level to the acquisition point. When the signal source to be acquired outputs a high level to the acquisition point, the voltage state superimposed on the acquisition point is high. At this time, the acquisition module sends the detection signal of the high level acquired from the acquisition point to the control module, and the control module processes the detection signal based on the second trigger strategy and generates a corresponding action instruction according to the second trigger strategy.

[0091] Further, the voltage states of each module in the signal acquisition circuit provided by the present application are shown in Table (1):

[0092] Table (1)

[0093] DI_Config DI_Conn DI_Mcu Scene L / Z L / Z L High-level valid acquisition L / Z 9V~28V H High-level valid acquisition H 9V~28V / Z H Low-level valid acquisition H L L Low-level valid acquisition

[0094] Among them, DI_Config is the control signal (the first control signal or the second control signal) output from the control module to the configuration module; DI_Conn is the superimposed voltage of the acquisition point; DI_Mcu is the detection signal acquired by the acquisition module and output to the control module. H represents a high level; L represents a low level; Z represents a high impedance state.

[0095] Further, in the above signal acquisition circuit, it is not limited to single-channel acquisition, and multi-channel acquisition can be performed simultaneously; for example, a configuration module and an acquisition module can be configured as an acquisition unit, and each acquisition unit can perform signal acquisition for a corresponding acquisition point, and the control module can be connected to multiple acquisition units simultaneously, so that the control module can receive and process multiple signals.

[0096] Further, each configuration module can adopt the same structure. For example, they can all adopt Structure A, or they can all adopt Structure B or Structure C; of course, each configuration module can also adopt Structure A, Structure B, and Structure C simultaneously. In the embodiments of the present application, no specific limitation is made in this regard.

[0097] Furthermore, the signal acquisition circuit provided in the application has at least the following advantages:

[0098] 1. The control module can use a single-chip microcomputer, which can be connected to the configuration module (the collector of the first transistor Q1) through the GPIO port, and output a high or low logic level signal through the GPIO port to achieve the switching between the high-level valid acquisition circuit and the low-level valid acquisition circuit. There is no need to make cumbersome changes to the hardware circuit. Only by writing the program of the single-chip microcomputer (control module), the state switching between the high-level valid acquisition circuit and the low-level valid acquisition circuit can be easily achieved. The whole operation process is simple and convenient, which significantly reduces the cost of hardware transformation and improves the flexibility and versatility of the system; at the same time, multiple configuration circuits (A structure, B structure and C structure) and acquisition circuits can be freely combined to support multiple channels of high-effective acquisition and low-effective acquisition at the same time.

[0099] 2. The acquisition circuit is highly reliable and stable, meeting the international standard ISO 16750-2 and the national standard document GB / T28046.2-2019.

[0100] 3. With excellent voltage adaptability, the circuit is perfectly compatible with 12V and 24V systems, and supports a wide range of voltage input from 9V to 32V. It can operate stably regardless of whether it is in a conventional power supply environment or in complex working conditions with voltage fluctuations, ensuring the high reliability and wide applicability of the equipment.

[0101] In an exemplary embodiment, an electronic device is also provided, including any signal acquisition circuit in the above signal acquisition circuit embodiments. The electronic device may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, portable wearable devices, and servers. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc.; portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc.

[0102] In an exemplary embodiment, an electronic device is provided, the internal structure diagram of the electronic device can be as follows Figure 6As shown in the figure. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor (control module) of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and external devices. The communication interface of the electronic device is used to communicate with external terminals in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the electronic device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the outer shell of the electronic device, or an external keyboard, touchpad, or mouse, etc.

[0103] Those skilled in the art can understand that Figure 6 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the electronic device to which the solution of this application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0104] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.

[0105] The above embodiments only express several implementation manners of this application, and their descriptions are relatively specific and detailed, but they should not be understood as a limitation on the patent scope of this application. It should be noted that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can still be made, and these all belong to the protection scope of this application. Therefore, the protection scope of this application should be subject to the appended claims.

Claims

1. A signal acquisition circuit, characterized in that, The signal acquisition circuit includes a control module, an acquisition module, and a configuration module, where: The input end of the configuration module is connected to the output end of the control module, the output end of the configuration module is connected to the acquisition point, the input end of the acquisition module is connected to the acquisition point, and the output end of the acquisition module is connected to the input end of the control module; among them, the signal source to be acquired is connected to the acquisition point; The control module is used to output a first control signal or a second control signal to the configuration module; The configuration module is used to output a high level to the acquisition point when receiving the first control signal, or output a low level to the acquisition point when receiving the second control signal; The acquisition module is used to acquire the voltage at the acquisition point to obtain a detection signal, and send the detection signal to the control module; The control module is used to process the detection signal based on a preset triggering strategy.

2. The circuit according to claim 1, wherein The first control signal is a high-level signal, and the second control signal is a low-level signal.

3. The circuit according to claim 2, wherein The configuration module includes a first triode and a second triode, where: The first triode is an NPN-type triode, and the second triode is a PNP-type triode; The base of the first triode is connected to the output end of the control module, the collector of the first triode is connected to the base of the second triode, and the emitter of the first triode is grounded; The emitter of the second triode is connected to the power supply, the collector of the second triode is connected to the acquisition point, and a pull-up resistor is also connected in series between the emitter and the base of the second triode.

4. The circuit according to claim 3, wherein, A first protection resistor is connected in series between the collector of the first triode and the base of the second triode.

5. The circuit according to claim 3, characterized in that, The configuration module further includes a first diode and a second protection resistor, where: The anode of the first diode is connected to the collector of the second triode, the cathode of the first diode is connected to the first end of the second protection resistor, and the second end of the second protection resistor is connected to the acquisition point.

6. The circuit according to claim 2, wherein The configuration module includes a relay and a third triode, where: The first end of the coil of the relay is connected to the power supply, and the second end is connected to the collector of the third triode; The base of the third triode is connected to the output end of the control module, and the emitter of the third triode is grounded; The first end of the normally open contact of the relay is connected to the power supply, and the second end is connected to the acquisition point.

7. The circuit according to claim 2, wherein The configuration module includes an N-channel first MOS transistor and a P-channel second MOS transistor, where: The gate of the first MOS transistor is connected to the output end of the control module, and the source of the first MOS transistor is grounded; The drain of the first MOS transistor is connected to the gate of the second MOS transistor, the source of the second MOS transistor is connected to the power supply, and the drain of the second MOS transistor is connected to the acquisition point.

8. The circuit according to claim 1, wherein The acquisition module includes a first voltage-dividing resistor and a second voltage-dividing resistor, where: The first end of the first voltage dividing resistor is connected to the acquisition point, the second end of the first voltage dividing resistor is connected to the first end of the second voltage dividing resistor, and the second end of the second voltage dividing resistor is grounded; The second end of the first voltage dividing resistor is also connected to the input end of the control module.

9. The circuit according to any one of claims 1-8, characterized in that, When the control module outputs the first control signal, the control module processes the detection signal based on the first trigger strategy; When the control module outputs the second control signal, the control module processes the detection signal based on the second trigger strategy.

10. An electronic device, characterized in that, The electronic device includes the signal acquisition circuit according to any one of claims 1-9.

Citation Information

Patent Citations

  • PLC (programmable logic controller) with level signal output mode configuration function

    CN104516307A

  • Three-mode clock generation circuit based on phase difference

    CN104917498A

  • Detection system supporting different effective level digital input signals and electronic device

    CN105227174A

  • Signal detection circuit based on switch type sensor

    CN119298885A

  • Low-current LED output driving circuit with low cost and diagnosis function

    CN119854996A