A dynamic switching anti-pressure reversal control method based on display key driving circuit
By using a dynamic switching anti-reverse voltage control method, which utilizes the dynamic switching of controllable switches and clamping diodes, the problem that traditional drivers cannot simultaneously ensure LED protection and button recognition accuracy is solved, thus fulfilling the dual requirements of LED protection and button recognition.
Patent Information
- Application Number
- CN202611305005.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-24
AI Technical Summary
Traditional drivers cannot coordinate with external clamping circuits to switch working states in a time-sharing manner, and cannot balance LED protection and button recognition accuracy.
A dynamic switching anti-reverse voltage control method based on the display button driving circuit is adopted. The main controller controls the dynamic switching of the controllable switch and the clamping diode. The controllable switch is turned on and off according to the system instructions to avoid the LED being subjected to high reverse voltage and ensure accurate button recognition.
This method effectively avoids LED reverse voltage damage without changing the internal architecture of the display button driver chip, while ensuring the accuracy and sensitivity of button recognition and reducing hardware modification costs.
Smart Images

Figure CN123163645A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of LED digital tube and key multiplexing scanning drive control technology, and more specifically, to a dynamic switching anti-reverse voltage control method based on a display key drive circuit. Background Technology
[0002] The TM1650 is an industry-standard integrated driver IC. The chip provides multiple anode drive interfaces (A-DP) and four cathode scan interfaces (DIG1-DIG4). It can simultaneously connect to a common-cathode LED display array and a row-column multiplexed button array in parallel, using a time-division scanning mechanism to alternately drive LED illumination and detect button levels. Its inherent operating logic consists of two phases: In the display scan phase, the DIG ports sequentially output low levels, while the anode interfaces output high and low levels to control LED on / off states; in the button scan phase, the DIG ports sequentially output high levels, and the anode interfaces act as signal detection terminals to identify button press states. Existing standard application circuits lack LED reverse voltage protection. When the LED is off, the anode is at a low level, and the corresponding cathode scan port is at a high level, creating a periodic reverse voltage. Conventional LEDs have a reverse withstand voltage of only 5V, and prolonged exposure to reverse voltage can easily lead to brightness decay and burnout.
[0003] The two existing conventional improvement methods in the industry both have significant drawbacks: one is to use high-voltage reverse-voltage LEDs to passively avoid risks, which significantly increases material costs and cannot eliminate reverse voltage stress; the other is to connect a single LED in parallel with an independent bleeder diode, which involves many components, complicated wiring, and the diode's constant connection circuit will pull down the high level of button scanning, causing missed button detection and reduced detection sensitivity. Neither solution can simultaneously achieve both LED protection and button recognition accuracy; there is an inherent conflict between protection requirements and button detection requirements.
[0004] Therefore, the relevant technology has at least one of the following problems: traditional drivers cannot link with the peripheral clamping circuit to switch the working state in a time-sharing manner, and cannot take into account both LED protection and button recognition accuracy. Summary of the Invention
[0005] This invention solves the technical problem that traditional driver programs cannot coordinate with the external clamping circuit to switch working states in a time-sharing manner, and cannot simultaneously ensure LED protection and button recognition accuracy.
[0006] To address the aforementioned problems, this invention provides a dynamic switching anti-reverse voltage control method based on a display button driving circuit. The display button driving circuit includes: a main controller, a display button driving chip, and a controllable anti-reverse voltage circuit. The controllable anti-reverse voltage circuit includes: a controllable switch and multiple clamping diodes. The controllable switch has a first terminal, a second terminal, and a control terminal. The anodes of the clamping diodes are respectively connected to the cathode bit selection pins of the display button driving chip. The cathodes of the multiple clamping diodes are connected to the first terminal, the second terminal is grounded, and the control terminal is connected to the second output pin of the main controller. The dynamic switching anti-reverse voltage control method includes: controlling the on / off state of the controllable switch according to system instructions issued by the main controller to the display button driving chip. The system instructions include: a display control instruction for the display driving stage and a button detection instruction for the button driving stage. The display control instruction represents a preparation signal for display control issued by the main controller to the display button driving chip, and the button detection instruction represents a preparation signal for button detection issued by the main controller to the display button driving chip.
[0007] Compared with existing technologies, the technical effects achieved by this solution are as follows: Through a simplified peripheral controllable reverse voltage protection circuit, dynamic adjustment is achieved, avoiding adjustments to the internal architecture of the display button driver chip; through program protocol-based differential control, the controllable reverse voltage protection circuit is dynamically switched on or off, effectively preventing the LED from being subjected to high reverse voltage; using display control commands and button detection commands as the basis for stage judgment, the display and button operating conditions can be accurately distinguished without additional data acquisition hardware, resulting in low hardware modification costs; the clamping circuit connection state is dynamically switched in a time-division manner, clamping the cathode potential during the display driving stage to eliminate LED reverse voltage, and disconnecting the clamping circuit during the button driving stage to prevent the level from being pulled low. A single control logic simultaneously meets the dual requirements of LED protection and accurate button recognition.
[0008] In one embodiment of the present invention, controlling the on / off state of the controllable switch according to the system instruction issued by the main controller to the display button driver chip includes: when the system instruction is a display control instruction, the second output pin controls the controllable switch to be turned on; when the system instruction is a button detection instruction, the second output pin controls the controllable switch to be turned off.
[0009] Compared with existing technologies, the technical effects achieved by adopting this technical solution are as follows: a clear mapping relationship is established between system commands and controllable switch states; the controllable switch is turned on upon receiving a display control command and turned off upon receiving a key detection command; the logic is clear, which facilitates program implementation and ensures that the corresponding switch action is triggered as soon as the command is issued.
[0010] In one embodiment of the present invention, during the display button driver chip's execution of display scan drive control, the controllable switch remains in the on state; during the display button driver chip's execution of button scan drive control, the controllable switch remains in the off state.
[0011] Compared with existing technologies, the technical effects achieved by adopting this technical solution are as follows: the controllable switch is kept in the corresponding state throughout the complete scan cycle of the display button driver chip, the display is turned on throughout the scan and the button is turned off throughout the scan, ensuring that the protection logic is effective throughout the scan cycle and avoiding accidental switching during the scan.
[0012] In one embodiment of the present invention, the dynamic switching anti-reverse pressure control method further includes: setting system parameters, display address and display data, and performing LED display scanning drive when the controllable switch is on; and reading key data and performing key recognition when the controllable switch is off.
[0013] Compared with existing technologies, the technical effects achieved by this solution are as follows: binding the switch state with the business process; executing display parameter configuration and LED scanning drive when the switch is on; reading button data to complete button recognition when the switch is off, forming a complete and implementable business control process.
[0014] In one embodiment of the present invention, the output level of the second output pin is controlled according to system instructions; the on / off state of the controllable switch is controlled according to the high or low output level; wherein, the output level operation of the second output pin is an instantaneous I / O operation.
[0015] Compared with existing technologies, the technical effects achieved by adopting this technical solution are as follows: the controllable switch is directly driven by the output level of the second output pin of the main controller, and it is limited to real-time IO operation. The level changes immediately after the instruction is issued, and the switch responds synchronously, eliminating the risk caused by timing lag.
[0016] In one embodiment of the present invention, the display button driver chip is provided with multiple anode drive pins and multiple cathode position selection pins. The dynamic switching anti-reverse voltage control method further includes: when the controllable switch is on, the display button driver chip controls the multiple cathode position selection pins to output low level in sequence, and the multiple anode drive pins output high level to light up the target LED according to the display requirements; when the controllable switch is off, the display button driver chip controls the multiple cathode position selection pins to output high level in sequence, and the multiple anode drive pins serve as level detection ports to collect button press signals.
[0017] Compared with existing technologies, the technical effects achieved by adopting this technical solution are as follows: it fully matches the original time-division scanning mechanism of the display button driver chip, with the cathode at a low level during the display driving stage and at a high level during the button driving stage. The clamping control logic is adapted to the chip output waveform, maximizing the anti-reverse voltage function of the clamping diode cathode clamping, while ensuring that the high-level acquisition of the button is not interfered with.
[0018] In one embodiment of the present invention, the display button driving circuit further includes: a display unit circuit, which includes multiple common cathode display lamp groups, each display lamp group being connected to a corresponding cathode position selection pin, and each display lamp group including multiple light-emitting LEDs, with the anodes of the light-emitting LEDs in the same segment being uniformly connected to the corresponding anode driving pin; and a button unit circuit, which includes multiple button matrix groups, each button matrix group being connected to a corresponding cathode position selection pin, and each button matrix group including multiple independent buttons, with the detection terminals of the independent buttons in the same segment being uniformly connected to the corresponding anode driving pin.
[0019] Compared with existing technologies, the technical effects achieved by adopting this technical solution are: fully compatible with industry-standard common cathode LED arrays and row-column multiplexed button matrices, requiring no modification to the original display and button wiring, and can be implemented simply by adding a controllable anti-reverse voltage circuit, and can directly iterate on existing mature products, with strong versatility.
[0020] In one embodiment of the present invention, when the display button driving circuit is configured with only the display unit circuit and without the button unit circuit, the main controller continuously pulls the second output pin high, and the controllable switch remains constantly on.
[0021] Compared with existing technologies, the technical effects achieved by adopting this technical solution are as follows: setting a normally conducting logic for pure display devices, continuously closing the controllable switch, clamping the cathode potential throughout the process, permanently eliminating LED scanning back voltage, extending LED lifespan, and adapting to digital tube display panels without buttons.
[0022] In one embodiment of the present invention, when the display button driving circuit is configured with only button unit circuit and no display unit circuit, the main controller continuously pulls the second output pin low, and the controllable switch remains normally open.
[0023] Compared with existing technologies, the technical effects achieved by this solution are as follows: for pure button devices, a normally disconnected logic is set up, the controllable switch is continuously disconnected, the clamping diode is completely disconnected from the circuit, the high-level scanning of the cathode is not affected, the button detection sensitivity is guaranteed, and it is compatible with button control panels without displays.
[0024] In one embodiment of the present invention, the controllable switch is selected from any one of NPN transistor, NMOS transistor, and electromagnetic relay.
[0025] Compared with existing technologies, the technical effects achieved by adopting this technical solution are as follows: the controllable switch is compatible with three mainstream switching devices: NPN transistors, NMOS transistors, and electromagnetic relays. Transistors / MOS transistors are selected for low-voltage, small-signal scenarios, while relays are selected for high-voltage, high-current scenarios. The selection can be flexibly made according to the product hardware specifications, and the solution has wider adaptability.
[0026] By adopting the technical solution of the present invention, the following technical effects can be achieved: (1) The clamping circuit connection status is dynamically switched in time-sharing. During the display stage, the clamping cathode potential is used to eliminate the LED reverse voltage. During the button stage, the clamping circuit is disconnected to avoid the level being pulled low. One set of control logic simultaneously meets the dual requirements of LED protection and accurate button recognition. (2) Through a simplified peripheral controllable reverse voltage protection circuit, dynamic adjustment is achieved, avoiding the need for internal architecture adjustments to the display button driver chip; (3) The second output pin is an instant IO operation. After the corresponding system command is issued, the level switching is completed synchronously. The clamping circuit is fully synchronized with the scanning stage, with no time difference, thus avoiding LED reverse voltage and button level distortion throughout the process. Attached Figure Description
[0027] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Figure 1 A circuit diagram of the button driving circuit is shown. Figure 2 for Figure 1 A partially enlarged schematic diagram showing the connection between the display unit circuit, the button unit circuit, and the pins of the display button driver chip; Figure 3 for Figure 1 The diagram shows the connection between the button driver chip and the controllable anti-reverse voltage circuit. Figure 4 This is a circuit diagram of a display button driving circuit in the prior art; Figure 5 This is a detailed flowchart of the dynamic switching anti-reverse voltage control method based on the display button driving circuit provided in Embodiment 1 of the present invention.
[0028] Explanation of reference numerals in the attached figures: 2. Main controller; 10. Display button driver chip; 30. Controllable reverse voltage protection circuit; 40. Display unit circuit; 41. First channel display light group; 50. Button unit circuit; 51. First channel button matrix group. Detailed Implementation
[0029] To make the above-mentioned objectives, features, and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0030]
Example 1
[0031] In one specific embodiment, Y is a controllable switch, and the control terminal of the controllable switch is controlled by the second output pin GPIO2; D1~D4 are clamping diodes, the anodes of clamping diodes D1~D4 are respectively connected to four cathode position selection pins, and the cathodes of clamping diodes D1~D4 are all connected to the first terminal of the controllable switch Y, and the second terminal of the controllable switch Y is grounded. The display button driver chip 10 in this application integrates display scanning drive and button scanning drive functions. The display button driver chip 10 can be externally connected to the display unit circuit 40 and the button unit circuit 50, taking into account both display drive control and button detection drive control; the communication pin of the display button driver chip 10 is electrically connected to the communication interface of the main controller 2 to complete the display segment code sending and button scan data feedback.
[0032] See Figure 3 The preferred driver chip for reuse is the TM1650 chip. The TM1650 chip is a dedicated LED scanning driver control IC that integrates button scanning driver function. See [link to relevant documentation]. Figure 3 The diagram shows the interface layout of the TM1650 chip: The TM1650 chip includes a power supply pin VCC, a ground pin GND, communication pins CLK and DAT, eight anode drive pins A, B, C, D, E, F, G and DP, and four cathode bit selection pins DIG1, DIG2, DIG3 and DIG4; the communication pins CLK and DAT are used for electrical connection with the communication interface of the main controller 2; multiple anode drive pins are simultaneously multiplexed to connect the signal input terminals of the display unit circuit 40 and the key unit circuit 50; and multiple cathode bit selection pins are respectively connected to the scan column terminals of the display unit circuit 40 and the key unit circuit 50.
[0033] Figure 4 In existing display button driver circuits, the display button driver chip 10 integrates display scanning and button scanning functions. This application adds a controllable reverse voltage protection circuit 30 outside the cathode bit selection pin of the display button driver chip 10. Simultaneously, control instructions are added to the display button driver chip 10's driver program. After the main controller 2 sends a write data request system instruction (in this case, the system instruction is a display control instruction), it controls the controllable reverse voltage protection circuit 30 to be turned on via GPIO2, clamping the LED reverse voltage. After the main controller 2 sends a read data request system instruction (in this case, the system instruction is a button control instruction), it controls the controllable reverse voltage protection circuit 30 to be turned off via GPIO2, eliminating loop voltage drop and ensuring button detection accuracy. This solution uses program protocol differentiation control, dynamically controlling the controllable reverse voltage protection circuit 30 to be turned on or off by controlling the on / off state of the controllable switch, effectively preventing the LED from experiencing high reverse voltage. The circuit structure is simple and low-cost, requiring no modification to the internal architecture of the display button driver chip 10, balancing display effect and button sensitivity, and can be widely used in TM1650 driver circuits, improving the reliability of product design.
[0034] Preferably, this solution is applicable to different types of driver ICs with similar output reverse voltage driving methods.
[0035] Preferably, the display control instruction is 0x48 and the button control instruction is 0x4F.
[0036] Furthermore, the controllable switches are switched on and off according to system instructions sent from the main controller to the display button driver chip, including: When the system command is a display control command, the second output pin controls the controllable switch to turn on; When the system command is a key detection command, the second output pin controls the controllable switch to open.
[0037] Furthermore, during the display button driver chip's execution of display scan drive control, the controllable switch remains in the on state; during the display button driver chip's execution of button scan drive control, the controllable switch remains in the off state.
[0038] Furthermore, the dynamic switching anti-back pressure control method also includes: With the controllable switch on, set the system parameters, display address, and display data, and perform LED display scanning drive; When the controllable switch is off, read the button data and perform button recognition.
[0039] Furthermore, the output level of the second output pin is controlled according to system instructions; the on / off state of the controllable switch is controlled according to the high or low output level; wherein, the output level operation of the second output pin is an instantaneous I / O operation.
[0040] Specifically, when the second output pin outputs a high level, the controllable switch is turned on, and multiple clamping diodes are connected to the drive circuit; when the second output pin outputs a low level, the controllable switch is turned off, and multiple clamping diodes are disconnected from the drive circuit.
[0041] See Figure 5 The specific procedure of the original solution in the prior art is as follows: Start - Set system command (0x48) - Set system parameters - Set display address - Set display data - Set system command (0x4F) - Read key data - End; and only read key data is the main controller 2 receiving data information from the display key driver chip 10, that is, the data stream is display key driver chip 10 → main controller 2, and other settings are all output by the MCU, with the data stream being main controller 2 → display key driver chip 10.
[0042] The dynamic switching anti-reverse voltage control method of this application is as follows: When the air conditioner is powered on, the main controller 2 sends data to the display button driver chip 10 for communication; ①. Display driving stage, the communication data stream is main controller 2 → display button driver chip 10: setting system instruction (0x48) - setting GPIO2 to high level - setting system parameters - setting display address - setting display data, that is, after setting system instruction 0x48, the main controller 2 controls the controllable switch Y in the controllable anti-reverse voltage circuit 30 to close, and the clamping diodes D1 to D4 are connected to the display button driver circuit, clamping the level of the cathode bit selection pins DIG1 to DIG4. To prevent reverse voltage from damaging the LED; ②. During the key reading stage, the communication data flow is: main controller 2 → display key driver chip 10 → main controller 2: set system instruction (0x4F) - set GPIO2 to low level - read key data. That is, after setting system instruction 0x4F, the main controller 2 controls the controllable switch in the controllable reverse voltage protection circuit 30 to disconnect, and the clamping diodes D1 to D4 are not connected to the driver circuit to avoid the level of the cathode bit selection pins DIG1 to DIG4 being clamped, and the key high level detection fails (if the clamping voltage is detected when the key is pressed, it is mistakenly judged as low level and no key is pressed); subsequently, ①~② are executed in a loop.
[0043] Specifically, setting GPIO2 to high or low level is a direct I / O operation of the main controller 2, which is executed immediately. That is, the controllable switch is closed before setting the display data and the controllable switch is open before reading the button data.
[0044] Furthermore, the display button driver chip 10 is provided with multiple anode drive pins and multiple cathode bit selection pins, and the dynamic switching anti-reverse voltage control method also includes: When the controllable switch is on, the display button driver chip 10 controls multiple cathode bit selection pins to output low level in sequence, and multiple anode drive pins output high level according to display requirements to light up the target LED; When the controllable switch is off, the display button driver chip 10 controls multiple cathode position selection pins to output high levels in sequence, and multiple anode drive pins serve as level detection ports to collect button press signals.
[0045] Specifically, when the controllable switch is on, the display scanning drive process is executed: the display button driver chip 10 controls the cathode bit selection pins DIG1 to DIG4 to output low levels in sequence, and the anode drive pins A to DP output corresponding high and low levels according to the numbers and symbols to be displayed, lighting up the target LED; at the same time, the clamping diode clamps the cathode potential to ground, reducing the voltage difference between the LED anode and cathode and eliminating reverse breakdown stress; the main controller 2 configures the system parameters, display address, and display data in sequence to complete a full round of LED display scanning.
[0046] When the controllable switch is off, the key recognition process is executed: the display key driver chip 10 controls the cathode position selection pins DIG1 to DIG4 to output high levels in sequence, and the anode drive pins A to DP are used as level detection ports to collect key press signals; the clamping diode is completely disconnected from the circuit and will not pull down the cathode scanning high level to avoid missed key detection or false detection; the main controller 2 reads the key data uploaded by the display key driver chip 10 to complete the key status recognition.
[0047] Furthermore, the display button driving circuit also includes: a display unit circuit 40 and a button unit circuit 50. The display unit circuit 40 includes multiple common cathode indicator lamp groups, each of which is connected to a cathode position selection pin. Each indicator lamp group includes multiple light-emitting LEDs, and the anodes of the light-emitting LEDs in the same segment are uniformly connected to the corresponding anode driving pin. The button unit circuit 50 includes multiple button matrix groups, each of which is connected to a cathode position selection pin. Each button matrix group includes multiple independent buttons, and the detection terminals of the independent buttons in the same segment are uniformly connected to the corresponding anode driving pin.
[0048] Specifically, the display unit circuit 40 includes m common cathode LED groups, each consisting of n LEDs in the same column. Some of these LED groups can be used as n-segment digital displays. The cathodes of the LEDs in the same column are connected to a cathode selection pin of the display button driver chip 10, and the anodes of the LEDs in the same row are connected to an anode drive pin of the display button driver chip 10. Similarly, the button unit circuit 50 includes a button matrix groups, each consisting of b independent buttons in the same column. The right end of each independent button in the same column is connected to a cathode selection pin of the display button driver chip 10, and the left end of each independent button in the same row is connected to an anode drive pin of the display button driver chip 10.
[0049] Preferably, m is 4 and n is 8 to form a 4-digit 8-segment digital tube for displaying temperature and operating mode; a is 4 and b is 8 to form a 4×8 matrix keypad for inputting functions such as temperature adjustment, mode switching, fan speed, and timer; m and a are the same, and n and b are the same, so that the LEDs in the display unit circuit 40 correspond one-to-one with the independent keys in the keypad unit circuit 50.
[0050] like Figure 2 As shown, LED-A1 to LED-DP4 are light-emitting LEDs, and S11 to S84 are independent buttons. The display unit circuit 40 includes four common cathode LED groups, each of which includes eight light-emitting LEDs (i.e., four columns and eight rows of light-emitting LEDs). For example, the first LED group 41 includes eight light-emitting LEDs, LED-A1 to LED-DP1. The button unit circuit 50 includes four button matrix groups, each of which includes eight independent buttons (i.e., four columns and eight rows of independent buttons). For example, the first button matrix group 51 includes eight independent buttons, S11 to S81. Among them, the light-emitting LEDs and independent buttons in the same row and column share the same cathode position selection pin and anode drive pin. For example, LED-A1 and S11 share the cathode position selection pin DIG1 and the anode drive pin A; LED-C3 and S33 share the cathode position selection pin DIG3 and the anode drive pin C.
[0051] Furthermore, when the display button driving circuit is configured with only the display unit circuit 40 and without the button unit circuit 50, the main controller 2 continuously pulls the second output pin high, and the controllable switch remains constantly on.
[0052] Furthermore, when the display button driving circuit is configured with only the button unit circuit 50 and without the display unit circuit 40, the main controller 2 continuously pulls the second output pin low, and the controllable switch remains normally open.
[0053] Specifically, the system differentiates between three scenarios: pure LED load, pure button load, and mixed load. Control logic for the two pairs of controllable switches in the main controller is defined for each scenario: the switch for a pure LED load is permanently on, the switch for a pure button load is permanently off, and the switch for a mixed load is dynamically switched. A single hardware circuit adapts to all three mainstream panel load scenarios without requiring hardware modifications; the control logic can be switched solely through software configuration, significantly improving hardware versatility. Pure LED loads maintain reverse voltage protection throughout, completely eliminating LED reverse breakdown. Pure button loads have their clamping branches disconnected throughout, preventing interference from clamping diode voltage drops that could affect button recognition. Mixed loads feature time-sharing dynamic switching, balancing both functions.
[0054] Furthermore, the controllable switch can be any one of NPN transistors, NMOS transistors, or electromagnetic relays.
[0055] Specifically, this embodiment provides three types of low-cost universal controllable switches, which are compatible with 3.3V and 5V power supply panels. NPN transistors / NMOS transistors are used for small signal control, and electromagnetic relays are used for large current loads, allowing for flexible product selection. The wiring relationship between each controllable switch device and the second output pin, common cathode of the clamping diode, and ground of the main controller 2 is clearly defined. Different devices can be directly grounded, expanding the applicable scenarios of the solution.
[0056] Preferably, when applied to an air conditioner control panel, the controllable switch is preferably an NPN transistor; when applied to a power supply smart meter, the controllable switch is preferably an NMOS transistor; and when applied to an induction cooker control panel, the controllable switch is preferably an electromagnetic relay.
[0057] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A dynamic switching anti-pressure reversal control method based on display key driving circuit, characterized in that, The display button driving circuit includes: a main controller, a display button driving chip, and a controllable reverse voltage protection circuit; the controllable reverse voltage protection circuit includes: a controllable switch and multiple clamping diodes, the controllable switch having a first terminal, a second terminal, and a control terminal, the anodes of the clamping diodes being respectively connected to the cathode bit selection pins of the display button driving chip, the cathodes of the multiple clamping diodes being connected to the first terminal, the second terminal being grounded, and the control terminal being connected to the second output pin of the main controller; the dynamic switching reverse voltage protection control method includes: The controllable switch is turned on and off according to the system instructions sent by the main controller to the display button driver chip; The system instructions include: display control instructions for the display driving stage and key detection instructions for the key driving stage; the display control instructions represent a preparation signal for display control sent by the main controller to the display key driver chip, and the key detection instructions represent a preparation signal for key detection sent by the main controller to the display key driver chip.
2. The dynamic anti-back pressure control method of claim 1, wherein, The step of controlling the on / off state of the controllable switch according to system instructions issued by the main controller to the display button driver chip includes: When the system instruction is the display control instruction, the second output pin controls the controllable switch to be turned on; When the system instruction is the key detection instruction, the second output pin controls the controllable switch to open.
3. The dynamic switching anti-reverse pressure control method according to claim 2, characterized in that, During the display button driver chip's execution of display scan drive control, the controllable switch remains in the on state; During the key scanning drive control process of the display key driver chip, the controllable switch remains in the off state.
4. The dynamic anti-pressure reversal control method according to any one of claims 2-3, characterized in that, The dynamic switching anti-back pressure control method further includes: With the controllable switch turned on, system parameters, display address, and display data are set, and LED display scanning is driven. When the controllable switch is off, the key data is read and key recognition is performed.
5. The dynamic switching anti-reverse voltage control method according to any one of claims 2-3, characterized in that, The system command controls the output level of the second output pin. The controllable switch is turned on or off based on the high or low output level; The output level operation of the second output pin is an instantaneous I / O operation.
6. The dynamic anti-pressure reversal control method of any one of claims 2-3, wherein, The display button driver chip has multiple anode drive pins and multiple cathode position selection pins. The dynamic switching anti-reverse voltage control method further includes: When the controllable switch is turned on, the display button driver chip controls multiple cathode position selection pins to output low level in sequence, and multiple anode drive pins to output high level to light up the target LED according to the display requirements; When the controllable switch is off, the display button driver chip controls multiple cathode position selection pins to output high levels in sequence, and multiple anode drive pins serve as level detection ports to collect button press signals.
7. The dynamic switching anti-reverse voltage control method according to claim 6, characterized in that, The display button driving circuit further includes: The display unit circuit includes multiple common cathode display lamp groups. Each display lamp group is connected to a corresponding cathode position selection pin, and each display lamp group includes multiple light-emitting LEDs. The anodes of the light-emitting LEDs in the same segment are uniformly connected to the corresponding anode drive pin. The button unit circuit includes multiple button matrix groups. Each button matrix group is connected to one cathode position selection pin. Each button matrix group includes multiple independent buttons. The detection terminals of the independent buttons in the same segment are uniformly connected to the corresponding anode drive pin.
8. The dynamic switching anti-reverse voltage control method according to claim 7, characterized in that, When the display button driving circuit is configured only with the display unit circuit and not with the button unit circuit, the main controller continuously pulls the second output pin high, and the controllable switch remains normally on.
9. The dynamic switching anti-reverse voltage control method according to claim 7, characterized in that, When the display button driving circuit is configured only with the button unit circuit and not with the display unit circuit, the main controller continuously pulls the second output pin low, and the controllable switch remains normally open.
10. The dynamic switching anti-reverse voltage control method according to any one of claims 1-3, characterized in that, The controllable switch can be any one of an NPN transistor, an NMOS transistor, or an electromagnetic relay.
