Level conversion circuit
By using the AP2306 MOS switch module and peripheral detection module in the circuit, the level conversion of different peripheral devices is realized, the universal problem of peripheral device power interface design is solved, the circuit design is simplified and the stability of the system is improved. sex and compatibility.
Patent Information
- Application Number
- CN202420289679.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-08
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2034-02-08
AI Technical Summary
Different peripheral devices require different power interface designs, resulting in complex circuit architecture and lack of versatility, affecting compatibility and ease of use.
Design a level conversion circuit, using the MOS switch module of AP2306, combined with the peripheral detection module and the main control module, to achieve level conversion through the MOS switch, supporting a wide input voltage range from 3.3V to 24V, simplifying circuit design and reducing compatibility Sexual issues.
It provides a universal level conversion solution, simplifies the circuit design, improves the compatibility between peripheral devices and the main control module, and ensures the stability and reliability of the system under different working conditions.
Smart Images

Figure CN221768019U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of circuits, in particular to a level conversion circuit. Background Art
[0002] There is a major pain point in the input voltage control of peripheral devices. First, different peripherals need to set different power interfaces. In fact, the corresponding equipment and interface design have advantages in terms of ease of use, performance and reliability in engineering implementation, but there is also a problem that cannot be ignored. Universality is more troublesome. Different circuit architectures may need to be designed for different peripheral devices. For this reason, we proposed to use the AP2306 MOS switch to convert the level. It can support a wide range of peripheral inputs from 3.3V to 24V, ensuring the customer's choice and convenience in using peripherals. Summary of the invention
[0003] In order to solve the above-mentioned technical problems, the utility model provides a level conversion circuit.
[0004] The technical solution of the utility model is achieved in this way:
[0005] A level conversion circuit includes a peripheral detection module, a MOS switch module and a main control module.
[0006] The peripheral device detection module is used to detect the signal or state change of the external device;
[0007] The switch module uses a MOS switch to realize a level conversion function, converts the level of the signal from the peripheral detection module, and connects it to the main control module;
[0008] The main control module is responsible for receiving the signal after level conversion and performing logic processing and control.
[0009] Furthermore, the peripheral detection module includes J3, a first pin of J3 is connected to 5V_SYS, the 5V_SYS is connected to a second pin of J3 via a first resistor R60, and the second pin of J3 is connected to a MOS switch module.
[0010] Furthermore, the MOS switch module includes Q7, the D pin of Q7 is connected to the peripheral detection module, the G pin of Q7 is connected to the main control module, and the S pin of Q7 is connected to SI618 and the main control module respectively.
[0011] Furthermore, the main control module includes 3V3_SYS, and the 3V3_SYS is connected to the second resistor R126 and the third resistor R125 respectively.
[0012] Furthermore, the 5V_SYS is the power supply level of the external detection module, and the 3V3_SYS is the logic level of the control unit inside the board.
[0013] Furthermore, the second resistor R126 is a current limiting resistor, the first resistor R60 is an external logic pull-up resistor, and the third resistor R125 is an internal control unit pull-up resistor.
[0014] Furthermore, Q7 is AP2306, which is a low-voltage, easy-to-drive NMOS tube, wherein G is the gate, which controls the conduction and cutoff of the NMOS tube. By applying an appropriate voltage on the gate, the conduction state of the NMOS tube can be controlled. S is the source, which is the entry point of the current and the place where the internal and external circuits of the NMOS tube are connected. D is the drain, which is the output point of the current and the place where the internal and external circuits of the NMOS tube are connected. The gate is used to control the conduction state, the source is the entry point of the current, and the drain is the output point of the current.
[0015] This utility model has the following beneficial effects:
[0016] Since AP2306 supports a wide input voltage range, it can adapt to the input voltage requirements of different peripheral devices, provide a universal solution, and reduce the need for different circuit architectures. Level conversion through the AP2306 MOS switch can simplify circuit design, reduce compatibility issues between peripheral devices and the main control module, make the use of peripheral devices more convenient, provide efficient and stable level conversion, and have good thermal characteristics and reliability, ensuring the stability and reliability of the system under different working conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a structural schematic diagram of the utility model;
[0018] Figure 2 It is the principle design drawing of the utility model. DETAILED DESCRIPTION
[0019] like Figure 1-Figure 2 As shown, the utility model is a level conversion circuit, including a peripheral detection module, a MOS switch module and a main control module.
[0020] The peripheral device detection module is used to detect the signal or state change of the external device;
[0021] The switch module uses a MOS switch to realize a level conversion function, converts the level of the signal from the peripheral detection module, and connects it to the main control module;
[0022] The main control module is responsible for receiving the signal after level conversion and performing logic processing and control.
[0023] Furthermore, the peripheral detection module includes J3, the first pin of J3 is connected to 5V_SYS, providing a 5V voltage for the peripheral detection module, the 5V_SYS is connected to the second pin of J3 through the first resistor R60, which plays a role of level conversion, and the second pin of J3 is connected to the MOS switch module, which passes the signal output of the peripheral detection module to the MOS switch module for further processing.
[0024] The peripheral detection module realizes the power supply, signal input and level conversion functions through the connection of the J3 interface and other components, providing appropriate signal input for the subsequent MOS switch module, thereby realizing the normal operation of the level conversion circuit.
[0025] Further, the MOS switch module includes Q7, the D pin of Q7 is connected to the peripheral detection module, and receives the signal input from the peripheral detection module, the G pin of Q7 is connected to the main control module, and receives the control signal from the main control module by connecting to the main control module, which is used to control the conduction and cutoff of Q7, and the S pin of Q7 is respectively connected to SIG18 and the main control module, wherein the D pin receives the signal input of the peripheral detection module, the G pin receives the control signal of the main control module, which is used to control the conduction and cutoff of Q7, and the S pin transmits the output signal of Q7 to SIG18 and the main control module. The MOS switch module can receive the signal of the peripheral detection module, and control the transmission of the signal according to the control signal of the main control module, thereby realizing the functions of level conversion and signal control.
[0026] Furthermore, the main control module includes 3V3_SYS, and the 3V3_SYS is respectively connected to the second resistor R126 and the third resistor R125. By receiving the power supply voltage from the 3V3_SYS power line, the resistors R126 and R125 are used to perform current limiting or voltage dividing operations, thereby achieving stable power supply to the main control module.
[0027] Furthermore, the 5V_SYS is the power supply level of the external detection module, and the 3V3_SYS is the logic level of the control unit inside the board.
[0028] Furthermore, the second resistor R126 is a current limiting resistor, the first resistor R60 is an external logic pull-up resistor, and the third resistor R125 is an internal control unit pull-up resistor.
[0029] Furthermore, Q7 is AP2306, which is a low-voltage, easy-to-drive NMOS tube, wherein G is the gate, which controls the conduction and cutoff of the NMOS tube. By applying an appropriate voltage on the gate, the conduction state of the NMOS tube can be controlled. S is the source, which is the entry point of the current and the place where the internal and external circuits of the NMOS tube are connected. D is the drain, which is the output point of the current and the place where the internal and external circuits of the NMOS tube are connected. The gate is used to control the conduction state, the source is the entry point of the current, and the drain is the output point of the current.
[0030] Working principle:
[0031] The circuit adopts OD output mode, and low level is effective. Due to the existence of pull-up resistor, under normal circumstances, the S pin of NMOS is 3.3V and the D pin is 5V. The IO port of the external module is connected to the D pin of NMOS. When a signal is detected, the IO port will be set low. At this time, the SIG18 level of the control unit inside the board will be clamped and pulled low through the internal diode of NMOS, completing the process of transmitting signals from the external module to the internal control unit;
[0032] When the control unit transmits a signal to an external module, SIG18 will be set low. At this time, the Ugs voltage of NMOS is greater than the turn-on voltage and is in the on state. The D and S pins are at a low level, and the IO port of the external module is pulled low, completing the process of the internal control unit transmitting the signal to the external module.
Claims
1. A level conversion circuit, characterized in that: Including peripheral detection module, Mos switch module and main control module, The peripheral device detection module is used to detect the signal or state change of the external device; The switch module uses a MOS switch to realize a level conversion function, converts the level of the signal from the peripheral detection module, and connects it to the main control module; The main control module is responsible for receiving the signal after level conversion and performing logic processing and control.
2. A level conversion circuit according to claim 1, characterized in that: The peripheral detection module includes J3, a first pin of J3 is connected to 5V_SYS, the 5V_SYS is connected to a second pin of J3 through a first resistor R60, and the second pin of J3 is connected to a MOS switch module.
3. A level conversion circuit according to claim 1, characterized in that: The MOS switch module includes Q7, the D pin of Q7 is connected to the peripheral detection module, the G pin of Q7 is connected to the main control module, and the S pin of Q7 is connected to SIG18 and the main control module respectively.
4. The level conversion circuit according to claim 1, characterized in that: The main control module includes 3V3_SYS, and the 3V3_SYS is connected to the second resistor R126 and the third resistor R125 respectively.
5. A level conversion circuit according to claim 2, characterized in that: The 5V_SYS is the power supply level of the external detection module, and the 3V3_SYS is the logic level of the control unit inside the board.
6. A level conversion circuit according to claim 4, characterized in that: The second resistor R126 is a current limiting resistor, the first resistor R60 is an external logic pull-up resistor, and the third resistor R125 is an internal control unit pull-up resistor.
7. The level conversion circuit according to claim 3, characterized in that: The Q7 is AP2306, which is a low-voltage, easy-to-drive NMOS tube, wherein G is the gate, which controls the conduction and cutoff of the NMOS tube. By applying an appropriate voltage on the gate, the conduction state of the NMOS tube can be controlled. S is the source, which is the entry point of the current and the place where the inside of the NMOS tube is connected to the external circuit. D is the drain, which is the output point of the current and the place where the inside of the NMOS tube is connected to the external circuit. The gate is used to control the conduction state, the source is the entry point of the current, and the drain is the output point of the current.
