Multi-channel detection circuit
By designing a multi-channel detection circuit, using the combination of MCU, signal detection circuit and signal output circuit, the compatible use of first-line communication and low-level detection is achieved, and the problem of lack of compatible circuits in the prior art is solved, saving MCU pin resources and promotes product platform design.
Patent Information
- Application Number
- CN202420402384.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-04
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2034-03-04
AI Technical Summary
There is a lack of a circuit that can be compatible with first-line communication and external level signal detection in the prior art.
A multi-channel detection circuit is designed, including an MCU, a signal detection circuit and a signal output circuit. Through the combination of resistors, capacitors, MOS tubes, transistors and diodes, signal detection and output are realized, and are compatible with first-line communication and low-level detection.
It realizes the MCU's first-line communication in serial port mode and detects the level status of external signals in low-level active mode, saving MCU pin resources, supporting product platform design, and promoting product cost reduction and efficiency improvement.
Smart Images

Figure CN222514625U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of signal detection, in particular to a multi-channel detection circuit. Background Art
[0002] With the continuous development and innovation of electric two-wheeled vehicles, the battery charging of two-wheeled vehicles has been gradually optimized to a data communication line as a communication line communication, so as to establish communication between the whole vehicle and the battery management system (BMS). The external level signal detection circuit is used to detect the level state of the external signal and output the corresponding control signal as needed. At present, the one-line communication circuit and the external level signal detection circuit on the market are basically used independently. For example, the Chinese utility model patent with the authorization announcement number CN219164569U discloses a bidirectional one-line transceiver circuit, including a converter MCU, a one-line circuit bus and a battery management system MCU; the RX pin of the converter MCU is connected to the resistor R6, and the TX pin of the converter MCU is connected to the resistor R8, and the resistor R6 and the resistor R8 are electrically connected to the TX pin and the RX pin of the battery management system MCU respectively through the one-line circuit bus; the utility model can realize one-line communication between the MCU and the battery pipe system (BMS). For another example, the Chinese utility model patent with authorization announcement number CN207184455U discloses a wide voltage range level signal detection circuit, including a constant current drive circuit and an optocoupler isolation output circuit, wherein the constant current drive circuit is electrically connected to the optocoupler isolation output circuit; the constant current drive circuit is electrically connected to a wide voltage input terminal; the utility model can realize the detection of level signals. The above two circuits respectively realize one-line communication and external level signal detection, but there is currently a lack of a circuit that can be compatible with one-line communication and external level signal detection. Utility Model Content
[0003] The purpose of the utility model is to provide a multi-channel detection circuit. The utility model can realize the compatible use of one-line communication and low-level detection circuit.
[0004] The technical solution of the utility model is: a multi-channel detection circuit, comprising an MCU, a signal detection circuit and a signal output circuit; the input end of the signal detection circuit and the output end of the signal output circuit are connected to an external signal end; the output end of the signal detection circuit is connected to the input end of the MCU; the input end of the signal output circuit is connected to the output end of the MCU.
[0005] The above-mentioned multi-channel detection circuit, the signal detection circuit includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a capacitor C1, a MOS tube Q1, a triode Q2 and a diode D1; the cathode of the diode D1 is connected to the external signal and the signal output circuit; the anode of the diode D1 is connected to one end of the resistor R6; the other end of the resistor R6 is connected to one end of the resistor R3 and the gate of the MOS tube Q1; the other end of the resistor R3 is connected to the source of the MOS tube Q1 and one end of the resistor R2 The source of the MOS tube Q1 is connected to the VCC terminal; the drain of the MOS tube Q1 is connected to one end of the resistor R4 and one end of the resistor R5; the other end of the resistor R4 is connected to the base of the transistor Q2; the other end of the resistor R5 is connected to the emitter of the transistor Q2 and one end of the capacitor C1, and the emitter of the transistor Q2 is grounded; the collector of the transistor Q2 is connected to the other end of the resistor R2 and one end of the resistor R1; the other end of the resistor R1 is connected to the other end of the capacitor C1, and the other end of the resistor R1 is connected to the MCU.
[0006] The aforementioned multi-channel detection circuit, the signal output circuit includes a resistor R7, a resistor R8, a resistor R9, a resistor R10, a resistor R11, a capacitor C2, a transistor Q3, a MOS transistor Q4 and a diode D2; one end of the resistor R9 is connected to the MCU; the other end of the resistor R9 is connected to one end of the resistor R10, one end of the capacitor C2 and the gate of the MOS transistor Q4; the other end of the resistor R10 is connected to the other end of the capacitor C2, the source of the MOS transistor Q4 and one end of the resistor R11, and the source of the MOS transistor Q4 is grounded; the drain of the MOS transistor Q4 is connected to one end of the resistor R7 and one end of the resistor R8; the other end of the resistor R7 is connected to the emitter of the transistor Q3, and the emitter of the transistor Q3 is connected to the VCC terminal; the other end of the resistor R8 is connected to the base of the transistor Q3; the collector of the transistor Q3 is connected to the other end of the resistor R11 and the positive electrode of the diode D2; the cathode of the diode D2 is connected to the external signal and the signal detection circuit.
[0007] Compared with the prior art, the utility model has the following beneficial effects:
[0008] When the MCU is configured in serial port mode, the signal detection circuit of the utility model is used as a receiving circuit of one-line communication, which is used to enable the MCU to receive communication signals; the signal sending circuit is used as a sending circuit of one-line communication, which is used to enable the MCU to send communication signals. When the MCU is configured to detect the low-level effective mode, the signal detection circuit of the utility model inputs an external signal, and the signal detection circuit enables the MCU to detect the level state of the external signal; the MCU outputs the level state through the signal sending circuit; the utility model can realize the compatible use of one-line communication and low-level detection circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 It is a circuit diagram of the utility model.
[0010] The markings in the accompanying drawings are: 100 - signal detection circuit, 200 - signal output circuit. DETAILED DESCRIPTION
[0011] The present invention is further described below in conjunction with the accompanying drawings and embodiments, but they are not intended to limit the present invention.
[0012] Embodiment: Multi-channel detection circuit, the structure is as follows Figure 1 As shown, it includes an MCU, a signal detection circuit and a signal output circuit; the input end of the signal detection circuit and the output end of the signal output circuit are connected to the external signal end together; the output end of the signal detection circuit is connected to the input end of the MCU; the input end of the signal output circuit is connected to the output end of the MCU. When the MCU is configured in serial port mode, the signal detection circuit of the utility model is used as a receiving circuit for one-line communication, which is used to enable the MCU to receive communication signals; the signal sending circuit is used as a sending circuit for one-line communication, which is used to enable the MCU to send communication signals. When the URT-RX pin of the MCU is configured to detect a low-level effective mode, the signal detection circuit of the utility model inputs an external signal, and the signal detection circuit enables the MCU to detect the level state of the external signal; the signal sending circuit outputs the level state of the URT-RX pin of the MCU.
[0013] The signal detection circuit 100 includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a capacitor C1, a MOS tube Q1, a triode Q2 and a diode D1; the cathode of the diode D1 is connected to the external signal and the signal output circuit 200; the anode of the diode D1 is connected to one end of the resistor R6; the other end of the resistor R6 is connected to one end of the resistor R3 and the gate of the MOS tube Q1; the other end of the resistor R3 is connected to the source of the MOS tube Q1 and one end of the resistor R2; the MOS tube The source of Q1 is connected to the VCC terminal; the drain of the MOS tube Q1 is connected to one end of the resistor R4 and one end of the resistor R5; the other end of the resistor R4 is connected to the base of the transistor Q2; the other end of the resistor R5 is connected to the emitter of the transistor Q2 and one end of the capacitor C1, and the emitter of the transistor Q2 is grounded; the collector of the transistor Q2 is connected to the other end of the resistor R2 and one end of the resistor R1; the other end of the resistor R1 is connected to the other end of the capacitor C1, and the other end of the resistor R1 is connected to the URT-RX pin of the MCU. When the external signal is at a low level, the level on the gate of the MOS tube Q1 is pulled down to a low level through the diode D1, thereby turning on the MOS tube Q1, so that there is a voltage difference of VCC between the base and the emitter of the transistor Q2, thereby turning on the transistor Q2, pulling down the voltage of the URT-RX pin of the MCU, and causing the MCU to detect a low level; when the external signal is at a high level, the MOS tube Q1 is disconnected, the transistor Q2 is disconnected, and the MCU detects a high level at the VCC terminal.
[0014] The signal output circuit 200 includes a resistor R7, a resistor R8, a resistor R9, a resistor R10, a resistor R11, a capacitor C2, a transistor Q3, a MOS transistor Q4 and a diode D2; one end of the resistor R9 is connected to the URT-RX pin of the MCU; the other end of the resistor R9 is connected to one end of the resistor R10, one end of the capacitor C2 and the gate of the MOS transistor Q4; the other end of the resistor R10 is connected to the other end of the capacitor C2, the source of the MOS transistor Q4 and one end of the resistor R11, and the source of the MOS transistor Q4 is grounded; the drain of the MOS transistor Q4 is connected to one end of the resistor R7 and one end of the resistor R8; the other end of the resistor R7 is connected to the emitter of the transistor Q3, and the emitter of the transistor Q3 is connected to the VCC terminal; the other end of the resistor R8 is connected to the base of the transistor Q3; the collector of the transistor Q3 is connected to the other end of the resistor R11 and the positive electrode of the diode D2; the cathode of the diode D2 is connected to the external signal and the signal detection circuit 100. When the URT-RX pin of the MCU outputs a high level, the MOS tube Q4 is turned on, thereby turning on the transistor Q3, so that the voltage at the VCC end is output to the external signal through the diode D2, thereby realizing a high level output; when the URT-RX pin of the MCU outputs a low level, the MOS tube Q4 is disconnected, the transistor Q3 is disconnected, and the output voltage is pulled down to a low level of ground through the resistor R11, thereby realizing a low level output.
[0015] In addition, when an external signal is accidentally connected to a high voltage, the parameters of diode D1 and diode D2 can be adjusted according to the specific application to isolate the external high voltage and protect circuit components and MCU.
[0016] At present, the one-line communication circuit and the external level signal detection circuit on the market are basically used independently; the utility model can save MCU pin resources and does not need to change the hardware status. It can realize the compatible use of the one-line communication and the low-level detection circuit only through software I / O port configuration, which is helpful for product platform design and promotes product cost reduction and efficiency improvement.
[0017] Working principle: When the MCU is configured in serial port mode, the signal detection circuit 100 of the utility model is used as a receiving circuit for one-line communication, which is used to enable the MCU to receive communication signals; the signal sending circuit 200 is used as a sending circuit for one-line communication, which is used to enable the MCU to send communication signals. When the URT-RX pin of the MCU is configured to detect the low-level effective mode, the signal detection circuit 100 of the utility model inputs an external signal, and the signal detection circuit 100 can enable the MCU to detect the level state of the external signal; the signal sending circuit 200 outputs the level state of the URT-RX pin of the MCU.
[0018] The above embodiments only express the implementation methods of the utility model, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the utility model patent. In this embodiment, up, down, left, right, front, and back only represent their relative positions and do not represent their absolute positions. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the utility model, which all belong to the protection scope of the utility model. Therefore, the protection scope of the utility model patent shall be based on the attached claims.
Claims
1. A multi-channel detection circuit, characterized in that: The invention comprises an MCU, a signal detection circuit (100) and a signal output circuit (200); the input end of the signal detection circuit (100) and the output end of the signal output circuit (200) are connected to an external signal end; the output end of the signal detection circuit (100) is connected to the input end of the MCU; and the input end of the signal output circuit (200) is connected to the output end of the MCU.
2. The multi-channel detection circuit according to claim 1, characterized in that: The signal detection circuit (100) comprises a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a capacitor C1, a MOS tube Q1, a triode Q2 and a diode D1; the cathode of the diode D1 is connected to an external signal and a signal output circuit (200); the anode of the diode D1 is connected to one end of the resistor R6; the other end of the resistor R6 is connected to one end of the resistor R3 and the gate of the MOS tube Q1; the other end of the resistor R3 is connected to the source of the MOS tube Q1 and one end of the resistor R2 The source of the MOS tube Q1 is connected to the VCC terminal; the drain of the MOS tube Q1 is connected to one end of the resistor R4 and one end of the resistor R5; the other end of the resistor R4 is connected to the base of the transistor Q2; the other end of the resistor R5 is connected to the emitter of the transistor Q2 and one end of the capacitor C1, and the emitter of the transistor Q2 is grounded; the collector of the transistor Q2 is connected to the other end of the resistor R2 and one end of the resistor R1; the other end of the resistor R1 is connected to the other end of the capacitor C1, and the other end of the resistor R1 is connected to the MCU.
3. The multi-channel detection circuit according to claim 1, characterized in that: The signal output circuit (200) comprises a resistor R7, a resistor R8, a resistor R9, a resistor R10, a resistor R11, a capacitor C2, a transistor Q3, a MOS transistor Q4 and a diode D2; one end of the resistor R9 is connected to the MCU; the other end of the resistor R9 is connected to one end of the resistor R10, one end of the capacitor C2 and the gate of the MOS transistor Q4; the other end of the resistor R10 is connected to the other end of the capacitor C2, the source of the MOS transistor Q4 and one end of the resistor R11, and the source of the MOS transistor Q4 is grounded; the drain of the MOS transistor Q4 is connected to one end of the resistor R7 and one end of the resistor R8; the other end of the resistor R7 is connected to the emitter of the transistor Q3, and the emitter of the transistor Q3 is connected to the VCC terminal; the other end of the resistor R8 is connected to the base of the transistor Q3; the collector of the transistor Q3 is connected to the other end of the resistor R11 and the positive electrode of the diode D2; the negative electrode of the diode D2 is connected to an external signal and a signal detection circuit (100).
Citation Information
Patent Citations
Wide voltage range level signal detection circuitry
CN207184455U
Bidirectional integrated services digital network transceiver circuit
CN219164569U