A multi-LED driving and multi-button pin multiplexing circuit and control method thereof

By designing a multi-LED driver and multi-key pin multiplexing circuit, using 3 pins to realize the driving of 6 LED lamps and the detection of 3 keys, the high requirements for pin resources of smart hardware devices are solved and the functions are realized and cost reduction.

CN112188666BActive Publication Date: 2024-12-03SINMIKRO ELEKTRONIKS KO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011232108.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-06
Publication Date
2024-12-03
Estimated Expiration
2040-11-06

AI Technical Summary

Technical Problem

The control chip of smart hardware devices requires rich pin resources to process input and output signals, but micro devices have high requirements for chip size and number of pins, and low-cost solutions hope that the fewer pins, the better, resulting in a complex function. Use design to become necessary.

Method used

Design a multi-LED driving and multi-key pin multiplexing circuit. By integrating chip unit, key unit and LED lamp unit, the 3-pin multiplexing circuit realizes the driving of 6 LED lamps and the detection of 3 keys. The periodic control signal switches between the LED lamp control time period and the key detection time period, and uses the LED driving control circuit and the key detection circuit, combined with the input and output pin circuit to achieve functional multiplexing.

Benefits of technology

It effectively saves the number of pins, reduces the chip packaging volume and cost, realizes the implementation of rich functions, and ensures the control of LED lights and the detection of keys.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112188666B_ABST
    Figure CN112188666B_ABST
Patent Text Reader

Abstract

The present invention provides a multi-LED driving and multi-button pin multiplexing circuit and a control method thereof, the circuit comprises an integrated chip unit, a button unit and an LED lamp unit, the integrated chip unit has a plurality of pin multiplexing circuits and a control signal input terminal for inputting periodic control signals to the plurality of pin multiplexing circuits, the pin multiplexing circuit has an input-output pin circuit for LED lamp switch control and button input multiplexing, and the plurality of pin multiplexing circuits are respectively connected to the button unit and the LED lamp unit through the input-output pin circuit. The method of the present invention is applied to the above-mentioned circuit. The present invention can detect a plurality of buttons and drive a plurality of LED lamps at a low cost, saves a large number of pins, and greatly reduces the chip packaging volume and cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power electronics, and in particular to a multi-LED driving and multi-button pin multiplexing circuit and a control method applied to the circuit. Background Art

[0002] For the control chips of many smart hardware devices, in order to achieve rich and flexible human-computer interaction, more pin resources are needed to control various input and output signals, including button input and light control output.

[0003] However, micro devices have high requirements for chip size and number of chip pins; or some low-cost solutions also hope that the number of chip pins is as small as possible. To achieve rich functions and a small number of pins, some innovative function reuse methods must be used to design pins. Summary of the invention

[0004] The main purpose of the present invention is to provide a low-cost multi-LED driving and multi-button pin multiplexing circuit capable of detecting multiple buttons and driving multiple LED lamps.

[0005] Another object of the present invention is to provide a low-cost control method for a multi-LED driving and multi-button pin multiplexing circuit that can detect multiple combination buttons and drive multiple LED lamps.

[0006] In order to achieve the above-mentioned main purpose, the present invention provides a multi-LED driving and multi-button pin multiplexing circuit, which includes an integrated chip unit, a button unit and an LED lamp unit. The integrated chip unit has multiple pin multiplexing circuits and a control signal input terminal for inputting periodic control signals to multiple pin multiplexing circuits. The pin multiplexing circuit has an input-output pin circuit for LED lamp switch control and button input multiplexing. Multiple pin multiplexing circuits are respectively connected to the button unit and the LED lamp unit through the input-output pin circuit.

[0007] In a further solution, the integrated chip unit has three pin multiplexing circuits, and the integrated chip unit drives the six LED lamps of the LED lamp unit and the three buttons of the button unit through the three pin multiplexing circuits.

[0008] In a further scheme, the pin multiplexing circuit includes an LED drive control circuit, a key detection circuit, and an input-output pin circuit. The first end of the LED drive control circuit is connected to the chip power supply end, the second end of the LED drive control circuit is connected to the input-output pin circuit, the three ends of the LED drive control circuit are connected to the LED drive voltage signal, the first end of the key detection circuit is connected to the chip power supply end, the second end of the key detection circuit is connected to the input-output pin circuit, and the third end of the key detection circuit is connected to the key detection signal.

[0009] In a further scheme, the button unit includes a first button, a second button, and a third button. The control ends of the first button, the second button, and the third button are connected to the third ends of the three button detection circuits in sequence. The first ends of the first button, the second button, and the third button are grounded respectively. The second ends of the first button, the second button, and the third button are connected to the input and output pin circuits of the three pin multiplexing circuits in sequence.

[0010] In a further embodiment, the LED lamp unit includes a first LED lamp, a second LED lamp, a third LED lamp, a fourth LED lamp, a fifth LED lamp, and a sixth LED lamp, the cathode of the first LED lamp is connected to node 1, the anode of the first LED lamp is connected to node 5, the cathode of the second LED lamp is connected to node 5, the anode of the second LED lamp is connected to node 9, the anode of the third LED lamp is connected to node 4, the cathode of the third LED lamp is connected to node 6, the anode of the fourth LED lamp is connected to node 6, the cathode of the fourth LED lamp is connected to node 10, the cathode of the fifth LED lamp is connected to node, the anode of the fifth LED lamp is connected to node 8, the anode of the sixth LED lamp is connected to node 2, and the cathode of the sixth LED lamp is connected to node 8.

[0011] In a further scheme, the first pin multiplexing circuit includes a first LED drive control circuit, a first button detection circuit, and a first input-output pin circuit. The first end of the first LED drive control circuit is connected to the chip power supply end, the second end of the first LED drive control circuit is connected to the first input-output pin circuit, the three ends of the first LED drive control circuit are connected to the LED drive voltage signal, the first end of the first button detection circuit is connected to the chip power supply end, the second end of the first button detection circuit is connected to the first input-output pin circuit, and the third end of the first button detection circuit is connected to the button detection signal.

[0012] In a further scheme, the second pin multiplexing circuit includes a second LED drive control circuit, a second button detection circuit, and a second input-output pin circuit. The first end of the second LED drive control circuit is connected to the chip power supply end, the second end of the second LED drive control circuit is connected to the second input-output pin circuit, the three ends of the second LED drive control circuit are connected to the LED drive voltage signal, the first end of the second button detection circuit is connected to the chip power supply end, the second end of the second button detection circuit is connected to the second input-output pin circuit, and the third end of the second button detection circuit is connected to the button detection signal.

[0013] In a further scheme, the third pin multiplexing circuit includes a third LED drive control circuit, a third button detection circuit, and a third input-output pin circuit. The first end of the third LED drive control circuit is connected to the chip power supply end, the second end of the third LED drive control circuit is connected to the third input-output pin circuit, the third end of the third LED drive control circuit is connected to the LED drive voltage signal, the first end of the third button detection circuit is connected to the chip power supply end, the second end of the third button detection circuit is connected to the third input-output pin circuit, and the third end of the third button detection circuit is connected to the button detection signal.

[0014] In order to achieve the above-mentioned another purpose, the present invention provides a control method for a multi-LED drive and multi-button pin multiplexing circuit, wherein the multi-LED drive and multi-button pin multiplexing circuit adopts the above-mentioned multi-LED drive and multi-button pin multiplexing circuit, and the method comprises the following steps: a periodic control signal for time-sharing multiplexing control of the pin multiplexing circuit is input from a control signal input terminal, wherein the periodic control signal comprises an LED light control time period and a key detection time period; within the LED light control time period, the level of the periodic control signal is used to control the pin multiplexing circuit to operate in a lighting control state, and an LED light control signal for switching and controlling the LED light unit switch is output according to the lighting control signal; within the key detection time period, the level of the periodic control signal is used to control the pin multiplexing circuit to operate in a key input detection state, and the external key input is converted into a key output signal.

[0015] A further solution is that, during the LED light control time period, the level control pin multiplexing circuit of the periodic control signal operates in the lighting control state, and outputs the LED light control signal for controlling the six LED lights of the LED light unit switch according to the lighting control signal; during the key detection time period, the level control pin multiplexing circuit of the periodic control signal operates in the key input detection state, and converts the external key input into the key output signals of the three keys of the key unit.

[0016] It can be seen that the pin multiplexing circuit provided by the present invention can realize the control of 6 LED lights and the detection of 3 buttons by controlling the different states of the built-in LDO chip and switching the pin input and output states according to the designed time slots. Compared with the conventional method that requires 9 pins, a large number of pins are saved, which greatly reduces the packaging volume and cost of the chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a schematic diagram of an embodiment of a multi-LED driving and multi-button pin multiplexing circuit of the present invention.

[0018] Figure 2 The invention discloses a circuit schematic diagram of a plurality of pin multiplexing circuits in a multi-LED driving and multi-button pin multiplexing circuit embodiment.

[0019] Figure 3 It is a circuit principle diagram of a first pin multiplexing circuit in an embodiment of a multi-LED driving and multi-button pin multiplexing circuit of the present invention.

[0020] Figure 4 It is a schematic diagram of a refresh cycle within an LED lamp control time period in an embodiment of a multi-LED driving and multi-button pin multiplexing circuit of the present invention.

[0021] Figure 5 It is a schematic diagram of a lighting time slot of an LED lamp in an embodiment of a multi-LED driving and multi-button pin multiplexing circuit of the present invention.

[0022] The present invention is further described below in conjunction with the accompanying drawings and embodiments. DETAILED DESCRIPTION

[0023] An embodiment of a multi-LED driving and multi-button pin multiplexing circuit:

[0024] See also Figures 1 to 3 The multi-LED driving and multi-button pin multiplexing circuit of the present invention comprises an integrated chip unit, a button unit and an LED lamp unit. The integrated chip unit has a plurality of pin multiplexing circuits and a control signal input terminal for inputting periodic control signals to the plurality of pin multiplexing circuits. The pin multiplexing circuit has an input-output pin circuit for LED lamp switch control and button input multiplexing. The plurality of pin multiplexing circuits are respectively connected to the button unit and the LED lamp unit through the input-output pin circuit.

[0025] In this embodiment, the integrated chip unit has three pin multiplexing circuits, such as LC0 pin multiplexing circuit, LC1 pin multiplexing circuit, and LC2 pin multiplexing circuit. The integrated chip unit drives the six LED lights of the LED lamp unit and the three buttons of the button unit through the three pin multiplexing circuits.

[0026] In this embodiment, the pin multiplexing circuit includes an LED drive control circuit, a key detection circuit, and an input-output pin circuit. The first end of the LED drive control circuit is connected to the chip power supply end, the second end of the LED drive control circuit is connected to the input-output pin circuit, the three ends of the LED drive control circuit are connected to the LED drive voltage signal, the first end of the key detection circuit is connected to the chip power supply end, the second end of the key detection circuit is connected to the input-output pin circuit, and the third end of the key detection circuit is connected to the key detection signal.

[0027] Among them, the LED drive control circuit includes a voltage-dividing drive circuit and an LED drive circuit for receiving an LED drive voltage selection signal. A general LDO circuit (such as a low-voltage linear regulator) provides a 3.1V stable voltage. The voltage-dividing drive circuit uses two resistors of equal size to divide a 1.55V voltage. The LED drive circuit is a dedicated circuit for LED drive control, and internally integrates MCU digital interface, data latch, LED high-voltage drive and other circuits.

[0028] The key detection circuit includes a resistor voltage divider circuit and a voltage comparator. The input end of the resistor voltage divider circuit is connected to the stable voltage provided by the LDO circuit. The output end of the resistor voltage divider circuit is connected to the input-output pin circuit. One input end of the voltage comparator is connected to the input-output pin circuit, and the other input end is used to compare the threshold Vkey. th , and its output end outputs the key judgment result signal.

[0029] Among them, the input and output pin circuit is a general GPIO circuit.

[0030] In this embodiment, the key unit includes a first key SW1, a second key SW2, and a third key SW3. The control ends of the first key SW1, the second key SW2, and the third key SW3 are connected to the third ends of the three key detection circuits in sequence. The first ends of the first key SW1, the second key SW2, and the third key SW3 are grounded respectively. The second ends of the first key SW1, the second key SW2, and the third key SW3 are connected to the input and output pin circuits of the three pin multiplexing circuits in sequence.

[0031] In this embodiment, the LED lamp unit includes a first LED lamp (LED1), a second LED lamp (LED2), a third LED lamp (LED3), a fourth LED lamp (LED4), a fifth LED lamp (LED5), and a sixth LED lamp (LED6). The cathode of the first LED lamp is connected to node 1, the anode of the first LED lamp is connected to node 5, the cathode of the second LED lamp is connected to node 5, the anode of the second LED lamp is connected to node 9, the anode of the third LED lamp is connected to node 4, the cathode of the third LED lamp is connected to node 6, the anode of the fourth LED lamp is connected to node 6, the cathode of the fourth LED lamp is connected to node 10, the cathode of the fifth LED lamp is connected to node, the anode of the fifth LED lamp is connected to node 8, the anode of the sixth LED lamp is connected to node 2, and the cathode of the sixth LED lamp is connected to node 8.

[0032] Specifically, the first pin multiplexing circuit (such as the LC0 pin multiplexing circuit 100) includes a first LED drive control circuit 10, a first key detection circuit 11, and a first input-output pin circuit 12. The first end of the first LED drive control circuit 10 is connected to the chip power supply end, the second end of the first LED drive control circuit 10 is connected to the first input-output pin circuit 12, the three ends of the first LED drive control circuit 10 are connected to the LED drive voltage signal, the first end of the first key detection circuit 11 is connected to the chip power supply end, the second end of the first key detection circuit 11 is connected to the first input-output pin circuit 12, and the third end of the first key detection circuit 11 is connected to the key detection signal.

[0033] Specifically, the second pin multiplexing circuit (such as the LC1 pin multiplexing circuit) includes a second LED drive control circuit 20, a second button detection circuit 21, and a second input-output pin circuit 22. The first end of the second LED drive control circuit 20 is connected to the chip power supply end, the second end of the second LED drive control circuit 20 is connected to the second input-output pin circuit 22, the three ends of the second LED drive control circuit 20 are connected to the LED drive voltage signal, the first end of the second button detection circuit 21 is connected to the chip power supply end, the second end of the second button detection circuit 21 is connected to the second input-output pin circuit 22, and the third end of the second button detection circuit 21 is connected to the button detection signal.

[0034] Specifically, the third pin multiplexing circuit (such as the LC2 pin multiplexing circuit) includes a third LED drive control circuit 30, a third button detection circuit 31, and a third input-output pin circuit 32. The first end of the third LED drive control circuit 30 is connected to the chip power supply end, the second end of the third LED drive control circuit 30 is connected to the third input-output pin circuit 32, the third end of the third LED drive control circuit 30 is connected to the LED drive voltage signal, the first end of the third button detection circuit 31 is connected to the chip power supply end, the second end of the third button detection circuit 31 is connected to the third input-output pin circuit 32, and the third end of the third button detection circuit 31 is connected to the button detection signal.

[0035] The output terminals of the first input-output pin circuit 12 , the second input-output pin circuit 22 , and the third input-output pin circuit 32 are LC0 , LC1 , and LC2 , respectively.

[0036] In practical applications, the LED driving control of this embodiment is completed by outputting appropriate voltage and current through the chip pins, including the on and off of the LED, the brightness level, etc.

[0037] According to the principle of LED light emission, LED has afterglow effect, that is, even if the voltage and current are not supplied all the time, the LED will continue to emit light for a certain period of time. For example, if the appropriate voltage and current are supplied 60 times per second to drive the LED, no obvious changes in brightness will be seen, and the afterglow of the LED will still exist during the period when the drive is not supplied.

[0038] Key detection is to input the electrical level generated when a key is pressed into the chip pin and then detect it for a period of time. If the level is maintained, it is considered that the key is pressed.

[0039] If the chip pins can be switched between output and input modes within a certain period, and can provide corresponding voltage and current in the output time slot and detect corresponding voltage in the input time slot, then the LED drive control and key detection functions can be multiplexed on the pins.

[0040] In addition, utilizing the characteristics of LED light-emitting diodes, a positive voltage higher than a threshold and a current drive can light up the LED. A positive voltage lower than the threshold (the voltage is too low, or the positive and negative voltages are reversed) or a current is too small cannot light up the LED. Therefore, several pins can be designed to switch independently at different voltage levels to create different voltage ranges, thereby controlling the on and off of multiple LED lights, rather than just one pin controlling one LED.

[0041] A control method embodiment of a multi-LED driving and multi-button pin multiplexing circuit:

[0042] A control method for a multi-LED drive and multi-button pin multiplexing circuit is applied to the multi-LED drive and multi-button pin multiplexing circuit. The method of the invention comprises the following steps: a periodic control signal for time-sharing multiplexing control of the pin multiplexing circuit is input from a control signal input terminal, wherein the periodic control signal comprises an LED light control time period and a key detection time period; within the LED light control time period, the level of the periodic control signal is used to control the pin multiplexing circuit to operate in a lighting control state, and an LED light control signal for switching and controlling the LED light unit switch is output according to the lighting control signal; within the key detection time period, the level of the periodic control signal is used to control the pin multiplexing circuit to operate in a key input detection state, and an external key input is converted into a key output signal.

[0043] Furthermore, during the LED light control time period, the level control pin multiplexing circuit of the periodic control signal operates in the lighting control state, and outputs the LED light control signal for controlling the six LED lights of the LED light unit switch according to the lighting control signal; during the key detection time period, the level control pin multiplexing circuit of the periodic control signal operates in the key input detection state, and converts the external key input into the key output signals of the three keys of the key unit.

[0044] In practical applications, considering the requirements of different LED lamps for on-state voltage, three levels are defined: H (such as 3.1V), L (0V), M p (H / 2, 1.55V), as shown in Table (I), the technical solution of controlling 6 LED lights with 3 chip pins is elaborated in detail.

[0045] Table (I)

[0046]

[0047] This embodiment utilizes the afterglow effect of LED light emitting diodes, and one of the technologies used is to drive multiple lamps in a time-sharing manner. Figure 1 As shown in the figure, for the 6 LED lights, during the LED light control time period, a refresh cycle is divided into 6 lighting time slots, and each time slot is responsible for lighting one LED light (LED1 to LED6). LC0, LC1, and LC2 are configured to output the above 3 levels according to the lighting requirements. Figure 4 shown.

[0048] In this embodiment, in order to maintain the lighting effect, it is necessary to ensure the duration of each lighting time slot within a refresh cycle through the internal timing circuit design of the chip, so that more than 60 cycles are refreshed within 1S.

[0049] At the same time, in each lighting time slot, the three chip pins are configured to output different states according to the requirements of lighting or extinguishing the light, as shown in Table (II):

[0050] Table (II)

[0051]

[0052]

[0053] In practical applications, the technical solution of controlling LED driving and key multiplexing with three chip pins is elaborated in detail. Based on the method of driving six LED lights with three chip pins, it is also necessary to reuse these three pins to detect three keys at the same time, so the pin states need to be increased, as shown in Table (III):

[0054] Table (III)

[0055]

[0056] Among them, Mw is an intermediate level state of weak driving capability, which can be pulled down by the key resistance when the key is pressed.

[0057] During the key detection time period, each time slot of the three chip pins needs to include a key detection sub-time slot. In the key detection time slot, all three pins are in input state, and will be pulled up to the Mw level through a 20Kohm resistor. If the pin voltage is detected to be less than a certain threshold (such as 0.3V), it will be considered that there is a key action. Finally, the circuit logic will determine whether a key is pressed based on the recognition of continuous key actions, thereby realizing the detection of three keys by three pins.

[0058] Among them, within the LED lamp control time period, a lighting time slot of the LED lamp is as follows Figure 5 As shown, a refresh cycle is Figure 4 As shown, in order to maintain the lighting effect and key detection at the same time, so that more than 60 cycles are refreshed within 1S and the minimum capture times of 20 to 60 for key input detection are sufficient, each time slot is defined as 2 to 5mS, of which the key detection Tb sub-time slot occupies 25%.

[0059] Specifically, the above time period includes the time for lighting and the time for key detection. Refreshing more than 60 times within 1s (the number of times the light is refreshed is also the number of times the key is detected), and in this embodiment, there are 6 LED lights, then 1000 / 60 / 6 is approximately = 2.7ms, which is the maximum time slot time. Assuming that the lighting time slot is defined as 2ms, the sub-time slot for key detection is Tb, which accounts for 25%, that is, 0.5ms. This time can meet the minimum requirement for key detection; the lighting sub-time slot is Ta, which is about 1.5ms.

[0060] Therefore, the pin multiplexing circuit provided by the present invention can realize the control of 6 LED lights and the detection of 3 buttons by controlling the different states of the built-in LDO chip and switching the pin input and output states according to the designed time slots. Compared with the conventional method that requires 9 pins, a large number of pins are saved, and the packaging volume and cost of the chip are greatly reduced.

[0061] It should be noted that the above are only preferred embodiments of the present invention, but the design concept of the invention is not limited thereto, and any non-substantial modifications made to the present invention using this concept also fall within the protection scope of the present invention.

Claims

1. A multi-LED driving and multi-button pin multiplexing circuit, comprising an integrated chip unit, a button unit and an LED lamp unit, characterized in that: The integrated chip unit has a plurality of pin multiplexing circuits and a control signal input terminal for inputting a periodic control signal to the plurality of pin multiplexing circuits, the pin multiplexing circuit has an input-output pin circuit for LED lamp switch control and key input multiplexing, and the plurality of pin multiplexing circuits are respectively connected to the key unit and the LED lamp unit through the input-output pin circuit; The integrated chip unit has three pin multiplexing circuits, and the integrated chip unit drives the six LED lamps of the LED lamp unit and the three buttons of the button unit through the three pin multiplexing circuits; The pin multiplexing circuit includes an LED drive control circuit, a key detection circuit, and an input-output pin circuit. The first end of the LED drive control circuit is connected to the chip power supply end, the second end of the LED drive control circuit is connected to the input-output pin circuit, the third end of the LED drive control circuit is connected to the LED drive voltage signal, the first end of the key detection circuit is connected to the chip power supply end, the second end of the key detection circuit is connected to the input-output pin circuit, and the third end of the key detection circuit is connected to the key detection signal; The key unit comprises a first key, a second key and a third key, the control ends of the first key, the second key and the third key are connected to the third ends of the three key detection circuits in sequence, the first ends of the first key, the second key and the third key are grounded respectively, and the second ends of the first key, the second key and the third key are connected to the input and output pin circuits of the three pin multiplexing circuits in sequence; The LED lamp unit includes a first LED lamp, a second LED lamp, a third LED lamp, a fourth LED lamp, a fifth LED lamp, and a sixth LED lamp. The cathode of the first LED lamp is connected to node 3, the anode of the first LED lamp is connected to node 5, the cathode of the second LED lamp is connected to node 5, the anode of the second LED lamp is connected to node 9, the anode of the third LED lamp is connected to node 4, the cathode of the third LED lamp is connected to node 6, the anode of the fourth LED lamp is connected to node 6, the cathode of the fourth LED lamp is connected to node 10, the cathode of the fifth LED lamp is connected to node 1, the anode of the fifth LED lamp is connected to node 8, the anode of the sixth LED lamp is connected to node 2, the cathode of the sixth LED lamp is connected to node 8, the nodes 1, 2, 3, and 4 are respectively connected to the input and output pin circuits of the first pin multiplexing circuit, the nodes 5 and 6 are respectively connected to the input and output pin circuits of the second pin multiplexing circuit, and the nodes 8, 9, and 10 are respectively connected to the input and output pin circuits of the third pin multiplexing circuit.

2. The multi-LED driving and multi-button pin multiplexing circuit according to claim 1, characterized in that: The first pin multiplexing circuit includes a first LED drive control circuit, a first button detection circuit, and a first input-output pin circuit. The first end of the first LED drive control circuit is connected to the chip power supply end, the second end of the first LED drive control circuit is connected to the first input-output pin circuit, the third end of the first LED drive control circuit is connected to the LED drive voltage signal, the first end of the first button detection circuit is connected to the chip power supply end, the second end of the first button detection circuit is connected to the first input-output pin circuit, and the third end of the first button detection circuit is connected to the button detection signal.

3. The multi-LED driving and multi-button pin multiplexing circuit according to claim 2, characterized in that: The second pin multiplexing circuit includes a second LED drive control circuit, a second button detection circuit, and a second input-output pin circuit. The first end of the second LED drive control circuit is connected to the chip power supply end, the second end of the second LED drive control circuit is connected to the second input-output pin circuit, the third end of the second LED drive control circuit is connected to the LED drive voltage signal, the first end of the second button detection circuit is connected to the chip power supply end, the second end of the second button detection circuit is connected to the second input-output pin circuit, and the third end of the second button detection circuit is connected to the button detection signal.

4. The multi-LED driving and multi-button pin multiplexing circuit according to claim 3 is characterized in that: The third pin multiplexing circuit includes a third LED drive control circuit, a third button detection circuit, and a third input-output pin circuit. The first end of the third LED drive control circuit is connected to the chip power supply end, the second end of the third LED drive control circuit is connected to the third input-output pin circuit, the third end of the third LED drive control circuit is connected to the LED drive voltage signal, the first end of the third button detection circuit is connected to the chip power supply end, the second end of the third button detection circuit is connected to the third input-output pin circuit, and the third end of the third button detection circuit is connected to the button detection signal.

5. A control method for a multi-LED driving and multi-button pin multiplexing circuit, characterized in that: The multi-LED driving and multi-button pin multiplexing circuit adopts the multi-LED driving and multi-button pin multiplexing circuit according to any one of claims 1 to 4 above, and the method comprises the following steps: A periodic control signal for time-division multiplexing control of the pin multiplexing circuit is input from the control signal input terminal, wherein the periodic control signal includes an LED light control time period and a key detection time period; During the LED light control period, the level control pin multiplexing circuit of the periodic control signal operates in the lighting control state, and outputs an LED light control signal for switching the LED light unit switch according to the lighting control signal; During the key detection period, the pin multiplexing circuit is controlled by the level of the periodic control signal to work in the key input detection state and convert the external key input into a key output signal.

6. The control method according to claim 5, characterized in that: During the LED lamp control period, the level control pin multiplexing circuit of the periodic control signal operates in the lighting control state, and outputs the LED lamp control signal for controlling the six LED lamps of the LED lamp unit switch according to the lighting control signal; During the key detection period, the pin multiplexing circuit is controlled by the level of the periodic control signal to work in the key input detection state, and the external key input is converted into key output signals of the three keys of the key unit.