Keypad indicator dual-line multiplexing control circuit
By employing a dual-line multiplexing control circuit for keypad and indicator lights in electronic devices, and utilizing the shared control terminal of LEDs and keypad switches connected in reverse parallel, the functions of LED display and keypad detection are multiplexed. This solves the problem of keypad detection circuits and LED display circuits occupying I/O ports separately, thereby improving circuit integration and reducing costs.
Patent Information
- Application Number
- CN202611547513.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-08
- Publication Date
- 2026-11-10
AI Technical Summary
In existing electronic devices, the button detection circuit and the LED display circuit each occupy multiple I/O ports of the main control module, resulting in complex circuit structure and low resource utilization. Furthermore, traditional LED display circuits cannot perform button detection, which increases circuit complexity and cost.
A dual-wire multiplexing control circuit for button and indicator lights is adopted. The first and second LEDs are connected in reverse parallel between the two control terminals of the main control module, and the button switch is connected to the same circuit. The current direction is changed by the output of different level states of the control terminal of the main control module to realize the conduction state of the LED. The button detection terminal collects the node voltage change to determine the button status.
It reduces the number of external connections and wiring space occupied between the button indicator components and the main control module, reduces the complexity of peripheral circuits and hardware costs, improves circuit integration, and is suitable for miniaturized electronic devices.
Smart Images

Figure CN123075766A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of LED lighting technology, specifically to a dual-line multiplexing control circuit for button indicator lights. Background Technology
[0002] Existing electronic devices typically include push-button switches and LED indicator modules. Push-button switches receive user operation commands, while LED indicator modules display the device's current operating status. To achieve these functions, existing solutions usually require separate control circuits for the push-button switches and LED indicator modules, requiring the main control module to occupy multiple input / output ports. However, in some miniaturized electronic devices, the number of available I / O ports for the main control module is limited. Setting up separate button detection circuits and LED driver circuits simultaneously increases circuit complexity and product cost. Furthermore, traditional LED display circuits typically only achieve unidirectional light emission control and cannot utilize LED driver circuits to further implement button detection functionality, resulting in low circuit resource utilization.
[0003] Therefore, how to simultaneously achieve LED display control and button status detection using limited control ports, in order to reduce the IO resource consumption of the control chip and improve circuit integration, has become an urgent technical problem to be solved. Summary of the Invention
[0004] In view of the technical problems in the background art, where existing button detection circuits and LED display circuits require each to occupy multiple IO ports of the main control module, resulting in complex circuit structure and low chip resource utilization, this application provides a dual-line multiplexing control circuit for button indicator lights.
[0005] To address the aforementioned technical problems, this application also provides a dual-line multiplexing control circuit for key indicator lights, comprising:
[0006] The main control module includes a first control terminal, a second control terminal, and a key detection terminal;
[0007] The LED display circuit includes a first LED and a second LED, which are connected in reverse and coupled to the first control terminal and the second control terminal of the main control module, respectively.
[0008] A push-button switch is connected to the detection loop formed by the LED display circuit and is connected to the first control terminal and the second control terminal.
[0009] The main control module drives the first LED and the second LED to conduct in a preset direction by outputting different level states and current directions through the first control terminal and the second control terminal to realize status indication. When the button switch is triggered, the button detection terminal is used to collect the voltage change of the connection node between the LED display circuit and the button switch to determine the pressing state of the button switch.
[0010] As an improvement of this application, the first LED and the second LED are connected in reverse parallel, the anode of the first LED and the cathode of the second LED are connected to the first control terminal, and the cathode of the first LED and the anode of the second LED are connected to the second control terminal, so that the first LED is turned on when the current flowing between the first control terminal and the second control terminal flows in a first direction, and the second LED is turned on when the current flows in a second direction.
[0011] As an improvement of this application, the first control terminal is connected to one end of the first resistor, and the other end of the first resistor is connected to the anode of the first LED, the cathode of the second LED, and one end of the push-button switch to limit the current flowing through the first LED and the second LED; the second control terminal is connected to the first MOS transistor, which is used to control the conduction state of the circuit in which the LED display circuit is located.
[0012] As an improvement of this application, the drain of the first MOS transistor is coupled to the second control terminal, the cathode of the first LED, and the anode of the second LED. The source of the first MOS transistor is coupled to ground at one end of the second resistor and one end of the first capacitor. The gate of the first MOS transistor is coupled to the first control terminal at the other end of the second resistor, the other end of the first capacitor, and one end of the third resistor. The other end of the third resistor is coupled to the first resistor. The second control terminal changes the operating state of the first LED and the second LED by controlling the conduction state of the first MOS transistor.
[0013] As an improvement of this application, it also includes a first diode and a second MOSFET, wherein the anode of the first diode is connected to the drain of the second MOSFET, the cathode of the first diode is coupled to the button detection terminal, the source of the second MOSFET is connected to ground, and the gate of the second MOSFET is connected to the button detection terminal.
[0014] As an improvement of this application, it further includes a first filter resistor and a first filter capacitor. One end of the first filter resistor and one end of the first filter capacitor are connected to the button detection terminal, and the other end of the first filter resistor and the other end of the first filter capacitor are coupled to ground. The first filter resistor and the first filter capacitor are used to filter and stabilize the detection voltage of the button detection terminal.
[0015] As an improvement of this application, the main control module further includes a test port, which is connected to the button detection terminal through a sampling resistor. The test port is also connected to a fourth resistor and a fifth resistor, which are respectively connected to a 3.3V voltage and ground.
[0016] As an improvement of this application, the fourth resistor is a pull-up resistor and the fifth resistor is a pull-down resistor.
[0017] As an improvement of this application, a power supply voltage regulator circuit is also included. The power supply voltage regulator circuit includes a power input interface, a voltage regulator chip, a second filter capacitor, a third filter capacitor, and a fourth filter capacitor. The power input interface and the input terminal of the voltage regulator chip are connected to an external power supply. The output terminal of the voltage regulator chip outputs a 3.3V operating voltage. The second filter capacitor is connected between the input terminal of the voltage regulator chip and ground. The third filter capacitor and the fourth filter capacitor are connected between the output terminal of the voltage regulator chip and ground.
[0018] As an improvement to this application, a programming interface is also included. The programming interface includes a first programming signal terminal and a second programming signal terminal, a power supply terminal and a ground terminal. The first programming signal terminal is connected to the programming clock signal terminal of the main control module, the second programming signal terminal is connected to the programming data terminal of the main control module, the power supply terminal is connected to a 3.3V power supply, and the ground terminal is grounded.
[0019] The beneficial effects of this application are as follows: The dual-line multiplexing control circuit for button indicator lights provided by this application connects the first LED and the second LED in reverse parallel between two common control signal lines, and connects the button switch to the same common circuit, so that the LED display function and the button status detection function can reuse the two external connection lines corresponding to the first control terminal and the second control terminal; the button detection terminal obtains the voltage change of the common node through the sampling branch, without the need for an additional independent external signal connection line from the button switch to the main control module, thereby reducing the number of external connections between the button indicator component and the main control module and the wiring space occupied, reducing the complexity of the peripheral circuit and the hardware cost, improving the circuit integration, and making it more suitable for miniaturized electronic devices.
[0020] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0021] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in this application will be briefly described below. Obviously, the drawings described below are merely some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without any creative effort.
[0022] Figure 1 This is a schematic diagram of the LED display circuit for the dual-line multiplexing control circuit of the button indicator light in this application;
[0023] Figure 2 This is a schematic diagram of the main control module of the dual-line multiplexing control circuit for button indicator lights in this application;
[0024] Figure 3 This is a schematic diagram of the power supply regulator circuit for the dual-line multiplexing control circuit of the button indicator light in this application;
[0025] Figure 4 This is a schematic diagram of the programming interface for the dual-line multiplexing control circuit for the button indicator lights in this application;
[0026] Figure 5 This is a schematic diagram of the module interaction of the dual-line multiplexing control circuit for the button indicator lights in this application. Detailed Implementation
[0027] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.
[0028] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0029] In this document, the term "comprising" indicates the presence of a described feature, integral, step, operation, element, and / or component, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or collections thereof. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," with exclusions being otherwise specifically emphasized. Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying one or more of the feature. In the description of embodiments of this application, unless otherwise stated, "a plurality of" means two or more.
[0030] In this text, the term "and / or" simply describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " in this text generally indicates that the preceding and following related objects have an "or" relationship.
[0031] With the intelligent development of electronic devices, more and more devices are equipped with buttons and indicator lights to enable user input and device status display. For example, in home appliances, smart terminals, and control devices, user operation commands are usually obtained through button switches, and the current working status of the device is displayed through LED display circuits. In the existing technology, the button detection circuit and the LED display circuit usually adopt independent circuit structures. That is, the button switch needs to be connected to an independent detection circuit, the LED display circuit needs to be connected to an independent driving circuit, and the main control module needs to set up multiple interfaces for driving the LED and detecting the button status.
[0032] On the one hand, since the button detection circuit and the LED driving circuit are independent of each other, they require more circuit board wiring space and increase the number of main control module interfaces, which is not conducive to the miniaturization design of electronic devices. On the other hand, when a dual-color LED indicator function is required, additional LED driving circuits or control components are usually needed to achieve different color display control, resulting in a complex overall circuit structure and increased hardware costs. Therefore, how to achieve compatibility and reuse of LED display function and button detection function while reducing the number of circuit connections and reducing hardware costs has become an urgent technical problem to be solved.
[0033] To address the technical challenge of increasing the number of external connections and the complexity of peripheral wiring due to the independence of the button detection circuitry and the LED display circuitry, please refer to the appendix. Figure 1 -Appendix Figure 5 This application provides a dual-line multiplexing control circuit for button indicator lights, comprising:
[0034] The main control module includes a first control terminal PB0, a second control terminal PB1, and a key detection terminal PA11;
[0035] LED display circuit, including a first LED and a second LED, the first LED and the second LED are connected in parallel in reverse between the first control terminal PB0 and the second control terminal PB1 of the main control module;
[0036] A push-button switch is connected in parallel with the LED display circuit and coupled to the first control terminal PB0 and the second control terminal PB1, respectively.
[0037] The main control module outputs different level states through the first control terminal PB0 and the second control terminal PB1 to change the current direction between the first control terminal PB0 and the second control terminal PB1, so that one of the first LED and the second LED is turned on to realize the status indication; the button detection terminal PA11 is coupled to a common connection node of the LED display circuit and the button switch, and is used to collect the node voltage change caused by the button switch action to determine the button switch pressing state.
[0038] The main control module U2, serving as the core of the entire control circuit, includes a first control terminal PB0, a second control terminal PB1, and a button detection terminal PA11. The first control terminal PB0 corresponds to pin 5 of the main control module U2, the second control terminal PB1 corresponds to pin 6 of the main control module U2, and the button detection terminal PA11 is used to collect voltage changes at the shared node. The main control module U2 outputs different level signals through the first control terminal PB0 and the second control terminal PB1, creating different current paths in the LED display circuit connected between the two control terminals, thereby controlling the selective illumination of either the first or second LED. It should be noted that the "dual lines" in this text refer to the two control signal lines formed by the first control terminal PB0 and the second control terminal PB1, shared with the LED display circuit and the button switch. The button detection terminal PA11 is coupled to one of the shared nodes through a sampling branch to collect the node voltage, eliminating the need for a separate external signal connection line from the button switch to the main control module.
[0039] The first LED (LED2) and the second LED (LED3) form an LED display circuit. The first LED (LED2) is a green indicator (LED_G), and the second LED (LED3) is a red indicator (LED_R). They are connected in parallel with the main control module U2 in opposite directions between the two control terminals. When the main control module U2 creates a current in the first direction between the first control terminal PB0 and the second control terminal PB1, the first LED (LED2) illuminates; when a current in the opposite second direction is created, the second LED (LED3) illuminates, thus achieving two states through the same set of control connection lines.
[0040] The push-button switch SW1 is connected in parallel with the LED display circuit formed by the first LED (LED2) and the second LED (LED3). When the user presses the push-button switch SW1, the impedance and node voltage state of the shared circuit change. The button detection terminal PA11 collects the voltage change of the corresponding node through the sampling branch and determines whether the push-button switch SW1 is triggered based on the detected voltage state. By reusing the connection nodes on both sides of the LED display circuit, the push-button switch can be avoided from being connected to the main control module through a separate external signal line.
[0041] With the above structure, the LED display function and the button detection function are arranged on the same set of two control signal lines. This allows the external button indicator component to establish a connection with the main control module through the two connecting lines corresponding to the first control terminal PB0 and the second control terminal PB1. The button detection terminal PA11 samples the shared node on the main control module side. Compared to providing a separate external signal connection line for the button switch, this reduces the number of connections between components and the space occupied by wiring, improves circuit integration, and reduces the complexity of the peripheral circuit.
[0042] The main control module can be constructed using a control chip with GPIO control and analog detection interfaces, used to output LED control signals and acquire button detection signals. The first control terminal PB0 and the second control terminal PB1 provide drive currents in different directions to the first and second LEDs connected in reverse parallel, and simultaneously serve as two common connection nodes in the detection circuit for the button switch. The button detection terminal PA11 is coupled to one of the common connection nodes through a sampling branch to acquire the voltage change caused by the button press. The first and second LEDs can be light-emitting diodes with different emitting colors to display different colors or different status prompts based on different conduction directions.
[0043] With the above structure, the two connecting lines corresponding to the first control terminal PB0 and the second control terminal PB1 simultaneously form the LED driving circuit and the button detection circuit, allowing the button switch to reuse the existing external connection lines of the LED display circuit. While maintaining the dual-color or dual-state LED indication function, it can reduce the number of external signal connection lines led out separately from the button switch, reduce the wiring complexity between components, and improve the circuit integration.
[0044] In one embodiment, the first LED (LED2) and the second LED (LED3) are connected in anti-parallel configuration. The anode of the first LED (LED2) and the cathode of the second LED (LED3) are connected to the first control terminal PB0, and the cathode of the first LED (LED2) and the anode of the second LED (LED3) are connected to the second control terminal PB1. Therefore, when the first control terminal PB0 outputs a high level and PB1 outputs a low level, current flows through the first LED (LED2) in a first direction, causing it to conduct and emit light. When the first control terminal PB0 outputs a low level and the second control terminal PB1 outputs a high level, current flows through the second LED (LED3) in a second direction opposite to the first direction, causing it to conduct and emit light. By controlling the output states of the first control terminal PB0 and the second control terminal PB1, two LED display states can be achieved using the same set of two control signal lines.
[0045] In one embodiment, the first control terminal PB0 is connected to one end of the first resistor R6, and the other end of the first resistor R6 is connected to the anode of the first LED (LED2), the cathode of the second LED (LED3), and one end of the push-button switch SW1. The second control terminal PB1 is connected to the cathode of the first LED (LED2), the anode of the second LED (LED3), the other end of the push-button switch SW1, and the drain of the first MOSFET Q6, and the source of the first MOSFET Q6 is grounded. The first resistor R6 acts as a current-limiting resistor to limit the operating current in the LED branch. The first MOSFET Q6 is used to change the conduction state between the node where the second control terminal PB1 is located and ground according to its gate voltage, thereby participating in the state switching of the LED display circuit and the detection circuit.
[0046] In one embodiment, the gate of the first MOSFET Q6 is connected to one end of the second resistor R21, one end of the first capacitor C4, and one end of the third resistor R19. The other ends of the second resistor R21 and the first capacitor C4 are grounded, and the other end of the third resistor R19 is connected to the end of the first resistor R6 furthest from the first control terminal PB0. The second resistor R21 provides a pull-down and discharge path for the gate of Q6 to reduce the possibility of false turn-on caused by gate floating. The first capacitor C4 suppresses transient voltage changes at the gate of the first MOSFET Q6 to improve switching stability. The third resistor R19 transfers the voltage of the common connection node where the end of the first resistor R6 furthest from the first control terminal PB0 is located to the gate of the first MOSFET Q6 and limits the gate branch current, so that the first MOSFET Q6 can change the conduction state between the node where the second control terminal PB1 is located and ground according to the voltage state of the node.
[0047] In one embodiment, the system further includes a sampling resistor R12, a first diode D1, and a second MOSFET Q5. One end of the sampling resistor R12 is connected to the end of the first resistor R6 furthest from the first control terminal PB0, and the other end is connected to the button detection terminal PA11. This allows the voltage change of the common connection node to be transmitted to the button detection terminal PA11 and limits the sampling branch current. The first diode D1 is connected between the common connection node and the detection node, forming a directional current transmission path between the two nodes. The drain of the second MOSFET Q5 is connected to the detection node, its source is grounded, and its gate is connected to the button detection terminal PA11. This allows the system to change the conduction state between the detection node and ground based on the voltage state of the button detection terminal PA11. Through the cooperation of the sampling resistor R12, the first diode D1, and the second MOSFET Q5, the node voltages in the common loop can be transmitted and converted according to a preset path, providing stable detection conditions for button state judgment and related testing functions.
[0048] In one embodiment, the button detection terminal PA11 is also connected to a first filter resistor R17 and a first filter capacitor C6, which are connected in parallel between the button detection terminal PA11 and ground. The first filter resistor R17 provides a pull-down and charge discharge path for the button detection terminal PA11 to stabilize the reference level of the button detection terminal PA11; the first filter capacitor C6 suppresses transient voltage changes and high-frequency interference generated during the operation of the button switch SW1 and line switching. The first filter resistor R17, the first filter capacitor C6, and the upstream sampling resistor R12 together constitute a detection signal conditioning network, enabling the button detection terminal PA11 to obtain a relatively stable detection voltage and improving the reliability of button status judgment.
[0049] In one embodiment, the main control module U2 is further provided with a test port TEST1, which is directly connected to the detection node. The detection node is also connected to a fourth resistor R7 and a fifth resistor R13. The fourth resistor R7 is connected between the 3.3V power supply and the detection node, and the fifth resistor R13 is connected between the detection node and ground. The test port TEST1 is used to acquire the voltage state of the detection node; the fourth resistor R7 and the fifth resistor R13 are used to establish the bias level of the detection node, and cooperate with the first diode D1 and the second MOSFET Q5 to enable the detection node to form a distinguishable voltage state under different operating conditions.
[0050] In one embodiment, the fourth resistor R7 is connected as a pull-up resistor between the 3.3V power supply and the detection node, and the fifth resistor R13 is connected as a pull-down resistor between the detection node and ground. The fourth resistor R7 provides a pull-up path to the detection node, and the fifth resistor R13 provides a pull-down path to the detection node. Together, they define the default potential and voltage variation range of the detection node, thereby enabling the test port TEST1 to obtain a stable and discriminative node voltage.
[0051] In one embodiment, a power supply regulator circuit is also included. This circuit comprises a power input interface CON1, a voltage regulator chip U1, a second filter capacitor C1, a third filter capacitor C2, and a fourth filter capacitor C3. The power input interface CON1 is used to connect to an external power supply VCC. The power supply terminal of CON1 is connected to the input terminal VIN of the voltage regulator chip U1, and the ground terminal of CON1 is connected to the GND terminal of U1. The second filter capacitor C1 is connected between the input terminal VIN of U1 and ground to filter the input power supply. The output terminal VOUT of the voltage regulator chip U1 outputs a 3.3V operating voltage. The third and fourth filter capacitors C2 and C3 are connected between the output terminal of the voltage regulator chip U1 and ground to filter and stabilize the 3.3V output voltage. Thus, the external input power supply, after being regulated by U1, forms a stable 3.3V operating power supply, providing operating voltage for the main control module U2, the LED display circuit, and the detection circuit, thereby improving the stability of the entire control circuit.
[0052] In one embodiment, the circuit further includes a programming interface CON2. CON2 includes a first programming signal terminal, a second programming signal terminal, a power supply terminal, and a ground terminal. The first programming signal terminal is connected to the programming clock signal terminal SWCLK of the main control module U2; the second programming signal terminal is connected to the programming data terminal SWDIO of the main control module U2; the power supply terminal is connected to a 3.3V power supply; and the ground terminal is grounded. An external programming device establishes a connection with the main control module U2 through the programming interface CON2, and transmits programming clock signals and programming data through the programming clock signal terminal SWCLK and the programming data terminal SWDIO, thereby realizing the programming, updating, and debugging of the main control module U2. By placing the programming interface CON2 in this control circuit, program writing and debugging can be achieved without changing the core circuitry of the LED display and button detection, which is beneficial for circuit production, maintenance, and functional upgrades.
[0053] The advantages of this application are:
[0054] 1. A dual-line control structure with the first and second LEDs connected in reverse parallel is adopted. Two common control connection lines are formed through the first control terminal PB0 and the second control terminal PB1 of the main control module. By changing the potential relationship between the two connection lines, selective conduction of different LEDs can be achieved. Dual-color or dual-state indication can be achieved with fewer external connection lines, reducing the complexity of the LED driving peripheral circuit.
[0055] 2. The push-button switch is connected in parallel to the LED display circuit and the two external connection lines corresponding to the first control terminal PB0 and the second control terminal PB1 are reused. The button detection terminal PA11 obtains the voltage change of the common node through the sampling branch. There is no need to set up a separate external signal connection line from the push-button switch to the main control module, thereby reducing the number of inter-component connections and wiring space between the button indicator component and the main control module, improving the circuit integration, and making it more suitable for miniaturized electronic devices.
[0056] It should be noted that this application is not limited to the above-described embodiments. The above embodiments are merely examples, and any embodiments with the same structure and effect as the technical concept within the scope of this application are included in the technical scope of this application. Furthermore, various modifications that can be conceived by those skilled in the art to the embodiments, and other ways of constructing by combining some of the constituent elements of the embodiments, without departing from the spirit of this application, are also included in the scope of this application.
Claims
1. A dual-line multiplexing control circuit for button indicator lights, characterized in that, include: The main control module includes a first control terminal, a second control terminal, and a key detection terminal; The LED display circuit includes a first LED and a second LED, which are connected in reverse and coupled to the first control terminal and the second control terminal of the main control module, respectively. A push-button switch is connected to the detection loop formed by the LED display circuit and is connected to the first control terminal and the second control terminal. The main control module drives the first LED and the second LED to conduct in a preset direction by outputting different level states and current directions through the first control terminal and the second control terminal to realize status indication. When the button switch is triggered, the button detection terminal is used to collect the voltage change of the connection node between the LED display circuit and the button switch to determine the pressing state of the button switch. The first LED and the second LED are connected in parallel in reverse. The anode of the first LED and the cathode of the second LED are connected to the first control terminal, and the cathode of the first LED and the anode of the second LED are connected to the second control terminal, so that the first LED is turned on when the current flowing between the first control terminal and the second control terminal flows in a first direction, and the second LED is turned on when the current flows in a second direction. The first control terminal is connected to one end of the first resistor, and the other end of the first resistor is connected to the anode of the first LED, the cathode of the second LED, and one end of the push-button switch to limit the current flowing through the first LED and the second LED; the second control terminal is connected to the first MOSFET, which is used to control the conduction state of the circuit in which the LED display circuit is located; The drain of the first MOS transistor is coupled to the second control terminal, the cathode of the first LED, and the anode of the second LED. The source of the first MOS transistor is coupled to ground at one end of the second resistor and one end of the first capacitor. The gate of the first MOS transistor is coupled to the first control terminal at the other end of the second resistor, the other end of the first capacitor, and one end of the third resistor. The other end of the third resistor is coupled to the first resistor. The second control terminal changes the operating state of the first LED and the second LED by controlling the conduction state of the first MOS transistor.
2. The dual-line multiplexing control circuit for button indicator lights according to claim 1, characterized in that, It also includes a first diode and a second MOSFET. The anode of the first diode is connected to the drain of the second MOSFET, the cathode of the first diode is coupled to the button detection terminal, the source of the second MOSFET is connected to ground, and the gate of the second MOSFET is connected to the button detection terminal.
3. The dual-line multiplexing control circuit for button indicator lights according to claim 2, characterized in that, It also includes a first filter resistor and a first filter capacitor. One end of the first filter resistor and one end of the first filter capacitor are connected to the button detection terminal, and the other end of the first filter resistor and the other end of the first filter capacitor are coupled to ground. The first filter resistor and the first filter capacitor are used to filter and stabilize the detection voltage of the button detection terminal.
4. The dual-line multiplexing control circuit for button indicator lights according to claim 1, characterized in that, The main control module also includes a test port, which is connected to the button detection terminal through a sampling resistor. The test port is also connected to a fourth resistor and a fifth resistor, which are respectively connected to a 3.3V voltage and ground.
5. The dual-line multiplexing control circuit for button indicator lights according to claim 4, characterized in that, The fourth resistor is a pull-up resistor, and the fifth resistor is a pull-down resistor.
6. The dual-line multiplexing control circuit for button indicator lights according to claim 1, characterized in that, It also includes a power supply voltage regulator circuit, which includes a power input interface, a voltage regulator chip, a second filter capacitor, a third filter capacitor, and a fourth filter capacitor. The power input interface and the input terminal of the voltage regulator chip are connected to an external power supply, and the output terminal of the voltage regulator chip outputs a 3.3V operating voltage. The second filter capacitor is connected between the input terminal of the voltage regulator chip and ground, and the third and fourth filter capacitors are connected between the output terminal of the voltage regulator chip and ground.
7. A dual-line multiplexing control circuit for button indicator lights according to claim 6, characterized in that, It also includes a programming interface, which includes a first programming signal terminal and a second programming signal terminal, a power supply terminal and a ground terminal. The first programming signal terminal is connected to the programming clock signal terminal of the main control module, the second programming signal terminal is connected to the programming data terminal of the main control module, the power supply terminal is connected to a 3.3V power supply, and the ground terminal is grounded.
