A digital combined key circuit
The key signal processing module is combined with the main control chip through the digital combination key circuit, which solves the problem of many pins in traditional key circuits and realizes low-cost and low-complexity key control.
Patent Information
- Application Number
- CN202010114080.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-24
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2040-02-24
AI Technical Summary
The main control chip in traditional key circuits requires multiple working pins, resulting in high system cost and increased complexity, especially in the case of multiple key modules.
The digital combined key circuit is adopted to convert the level signals of multiple key modules into digital signals through the key signal processing module. The main control chip indirectly controls the execution device through the key signal processing module to reduce the number of working pins of the main control chip.
It reduces the cost and system complexity of the main control chip, and realizes digital acquisition of multiple types of key signals and single pin control.
Smart Images

Figure CN111193517B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of key circuits, and more particularly, to a digital combined key circuit. Background Art
[0002] As a basic electronic component, a key plays a very crucial role in the human-computer interaction of electronic products.
[0003] In a traditional key circuit, a main control chip such as a microcontroller unit (MCU) is directly connected to a key module and an execution device. This connection method has certain requirements for the number of pins of the MCU. Especially in the case of multiple key modules and when the execution device requires multiple working pins, this connection method requires the MCU to have a relatively large number of working pins. The more pins the MCU has, the higher the cost. This not only increases the cost of the system but also increases the complexity of the entire system.
[0004] In response to the above problems, there is currently no effective technical solution. Summary of the Invention
[0005] The purpose of the embodiments of this application is to provide a digital combined key circuit, which is used to reduce the demand of the key circuit system for the number of pins of the main control chip, and at the same time enables the main control chip to conveniently collect various key signals.
[0006] The embodiments of this application provide a digital combined key circuit, including:
[0007] Multiple key modules, each key module is used to generate a level signal according to an external trigger signal or a corresponding key operation;
[0008] A key signal processing module, which is respectively connected to the multiple key modules, is used to obtain each level signal and convert the level signal into a digital key signal;
[0009] A main control chip, which is connected to the key signal processing module, is used to obtain the digital key signal and control the corresponding execution device to perform the corresponding operation according to the digital key signal.
[0010] Optionally, in the digital combined key circuit described in the embodiments of this application, the main control chip has an output port, and the output port is directly connected to the execution device. The main control chip is used to generate a corresponding drive signal according to the digital key signal and output the drive signal to the execution device to drive the execution device to perform the corresponding operation.
[0011] Optionally, in the digital combination key circuit described in the embodiments of the present application, the main control chip has an output port, the output port is connected to the key signal processing module, and the key signal processing module is connected to the execution device;
[0012] The main control chip is configured to generate a corresponding execution signal according to the digital key signal, and send the execution signal to the key signal processing module. The key signal processing module generates a drive signal according to the execution signal, and outputs the drive signal to the execution device to drive the execution device to perform a corresponding operation.
[0013] Multiple key modules and the execution device may not be connected to the main control chip. The main control chip indirectly obtains key information through the key signal processing module and can indirectly control the execution device, reducing the requirement for the number of working pins of the main control chip and lowering the cost of the main control chip and the complexity of the system.
[0014] Optionally, in the digital combination key circuit described in the embodiments of the present application, the multiple key modules include at least two of the following: a physical key module, a logical switch quantity key module, and an analog voltage switch quantity key module.
[0015] Optionally, in the digital combination key circuit described in the embodiments of the present application, the physical key module includes a first power interface, a first diode, a physical key, and a first output interface;
[0016] The first power interface, the first diode, the physical key, and the first output interface are connected in sequence.
[0017] Optionally, in the digital combination key circuit described in the embodiments of the present application, the physical key module further includes a first capacitor for eliminating interference, and two ends of the first capacitor are respectively connected to two ends of the physical key.
[0018] Optionally, in the digital combination key circuit described in the embodiments of the present application, the logical switch quantity key module includes a first input interface, a first resistor, a second resistor, a second power interface, a first transistor, a second diode, and a second output interface;
[0019] The first input interface, the first resistor, and the control end of the first transistor are connected in sequence. The second power interface is connected to the power end of the first transistor. The output end of the first transistor, the second diode, and the second output interface are connected in sequence. The first resistor, the control end of the first transistor, and the second resistor are connected to a common node.
[0020] Optionally, in the digital combination key circuit described in the embodiments of the present application, the analog voltage switch key module includes a second input interface, a third input interface, a voltage comparator, a third resistor, a third power supply interface, a second transistor, a third diode, and a third output interface;
[0021] The third input interface is connected to the reverse input terminal of the voltage comparator, the second input interface is connected to the positive input terminal of the voltage comparator, the output terminal of the voltage comparator, the third resistor, and the control terminal of the second transistor are connected in sequence, the third power supply interface is connected to the power supply terminal of the second transistor, the output terminal of the second transistor is connected to the third diode, and the third diode is connected to the third output interface.
[0022] Optionally, in the digital combination key circuit described in the embodiments of the present application, the analog voltage switch key module further includes a fourth resistor, a fifth resistor, and a second capacitor;
[0023] The second input interface, the positive input terminal of the voltage comparator, and the fourth resistor are connected to a common node, the output terminal of the voltage comparator, the third resistor, and the fifth resistor are connected to a common node, and the third resistor, the control terminal of the second transistor, and the second capacitor are connected to a common node.
[0024] Optionally, in the digital combination key circuit described in the embodiments of the present application, the analog voltage switch key module further includes a fourth power supply interface, a sixth resistor, a seventh resistor, a ground terminal, and a third input interface;
[0025] The fourth power supply interface, the sixth resistor, the seventh resistor, and the ground terminal are connected in sequence, and the sixth resistor, the seventh resistor, and the third input interface are connected to a common node. Description of the Drawings
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0027] Figure 1 It is a system block diagram of a digital combination key circuit provided by an embodiment of the present application;
[0028] Figure 2 It is a circuit structure diagram of a physical key module of multiple key modules of a digital combination key circuit provided by an embodiment of the present application;
[0029] Figure 3 This is a circuit structure diagram of a logic switch quantity key module among various key modules of the digital combination key circuit provided by the embodiment of the present application;
[0030] Figure 4 This is a circuit structure diagram of an analog voltage switch quantity key module among various key modules of the digital combination key circuit provided by the embodiment of the present application.
[0031] Icons: 10 - Multiple key modules; 20 - Key signal processing module; 30 - Main control chip; 11 - Physical key module; 111 - First power interface; 112 - Physical key; 113 - First output interface; 12 - Logic switch quantity key module; 121 - First input interface; 122 - Second power interface; 123 - Second output interface; 13 - Analog voltage switch quantity key module; 131 - Second input interface; 132 - Third input interface; 133 - Voltage comparator; 134 - Third power interface; 135 - Third output interface; 136 - Fourth power interface; 137 - Ground terminal. Detailed implementation manners
[0032] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Usually, the components of the embodiments of the present application described and shown in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application claimed, but only represents the selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts belong to the scope of protection of the present application.
[0033] It should be noted that: Similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present application, the terms "first", "second", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0034] Figure 1 This is a principle block diagram of a digital combination key circuit provided by the embodiment of the present application. The digital combination key circuit includes multiple key modules 10, a key signal processing module 20, and a main control chip 30. Among them, the multiple key modules 10 are respectively connected to the key signal processing module 20, and the key signal processing module 20 is connected to the main control chip 30.
[0035] Each key module is used to generate a level signal according to an external trigger signal or a corresponding key operation; the key signal processing module 20 obtains each of the level signals and converts the level signals into digital key signals and stores them in its own memory; the main control chip 30 obtains the digital key signals through the communication pins with the key signal processing module 20 and controls the corresponding execution device to perform corresponding operations according to the digital key signals. For example, in the example of the present application, after the main control chip 30 obtains the key signal, the main control chip 30 can indirectly control the digital tube module through the key signal processing module 20 to make the digital tube module display corresponding content according to the set program.
[0036] Wherein, each of the multiple key modules 10 is used to generate a level signal according to an external trigger signal or a corresponding key operation. The external trigger signal can be a voltage signal output by other chips or a voltage signal output by other circuit modules.
[0037] The multiple key modules 10 can be: a physical key module 11, a logic switch quantity key module 12, and an analog voltage switch quantity key module 13. The physical key module 11 is used to generate a level signal according to a key operation and output it; the logic switch quantity key module 12 is used to generate a level signal according to an externally input logic voltage signal and output it; the analog voltage switch quantity key module 13 is used to generate a level signal according to an externally input analog voltage signal and output it, and is applicable to a user-defined reference voltage.
[0038] In some embodiments, there are key modules of different types among the multiple key modules 10. For example, the multiple key modules 10 can be one physical key module 11 and two logic switch quantity key modules 12, two physical key modules 11 and one analog voltage switch quantity key module 13, two logic switch quantity key modules 12 and two analog voltage switch quantity key modules 13, etc. In other embodiments, the multiple key modules 10 can be multiple key modules of the same type, such as multiple physical key modules 11, multiple logic switch quantity key modules 12, or multiple analog voltage switch quantity key modules 13.
[0039] It should be understood that Figure 1 The multiple key modules 10 shown are composed of one physical key module 11, one logic switch quantity key module 12, and one analog voltage switch quantity key module 13, which is only an example and should not be used as a limitation to the present application.
[0040] In the above solutions provided by the embodiments of the present application, multiple button modules 10 and an execution device can be connected to a button signal processing module 20, and the main control chip 30 indirectly controls the execution device through the button signal processing module 20. The main control chip 30 only needs to be connected to the button signal processing module 20 for communication, greatly reducing the requirement for the number of working pins of the main control chip 30, and solving the problems of a large number of working pins of the main control chip 30, high system complexity, and high cost in the traditional solution. Additionally, if there are button modules of different types among the multiple button modules 10, the button signal processing module 20 can still obtain their button signals and convert the collected level button signals into digital button signals, realizing digital acquisition of single and combined buttons of various types, and solving the problems that in the case of complex button signal types in the traditional method, it is difficult for the main control chip 30 to collect button signals, and a large number of pins are required to connect multiple button modules 10, resulting in high cost of the main control chip 30.
[0041] Further, please refer to Figure 2 , the physical button module 11 includes a first power interface 111, a first diode D1, a physical button 112, and a first output interface 113; the first power interface 111, the first diode D1, the physical button 112, and the first output interface 113 are connected in sequence.
[0042] In some embodiments, the physical button module 11 further includes a first capacitor C1, and both ends of the first capacitor C1 are respectively connected to both ends of the physical button 112; the first capacitor C1 is used to reduce interference and improve the working stability of the physical button module.
[0043] When the physical button 112 is pressed, the physical button module 11 is turned on and outputs a high-level signal; the first diode D1 enables the physical button module 11 to conduct unidirectionally, preventing short circuits when combined buttons are pressed on the button module.
[0044] Further, please refer to Figure 3 , the logic switch quantity button module 12 includes a first input interface 121, a first resistor R1, a second resistor R2, a second power interface 122, a first transistor T1, a second diode D2, and a second output interface 123; the first input interface 121, the first resistor R1, and the control end of the first transistor T1 are connected in sequence, the second power interface 122 and the power end of the first transistor T1 are connected in sequence, the output end of the first transistor T1, the second diode D2, and the second output interface 123 are connected in sequence, and the second resistor R2, the control end of the first transistor T1, and the first resistor R1 are connected to a common node.
[0045] When the external trigger signal of the first input interface 121 is at a high level, the first transistor T1 conducts, which is equivalent to pressing the physical button 112. The logic switch button module 12 conducts and outputs a high-level signal externally; conversely, the logic switch button module 12 turns off and outputs a low-level signal externally.
[0046] The first resistor R1 is used to limit the current of the button module, and the second resistor R2 is used to improve the stability of the transistor operation.
[0047] The logic switch button module 12 realizes the purpose of using the logic level as the button signal by replacing the physical button 112 with the first transistor T1.
[0048] Further, please refer to Figure 4 , the analog voltage switch button module 13 includes a second input interface 131, a third input interface 132, a voltage comparator 133, a third resistor R3, a third power supply interface 134, a second transistor T2, a third diode D3, and a third output interface 135; the analog voltage switch button module 13 uses a voltage comparator 133 to convert the analog voltage into a logic voltage and is applicable to a custom voltage switch.
[0049] Specifically, the third input interface 132 is connected to the inverting input terminal of the voltage comparator 133, the second input interface 131 is connected to the non-inverting input terminal of the voltage comparator 133, the output terminal of the voltage comparator 133, the third resistor R3, and the control terminal of the second transistor T2 are connected in sequence, the third power supply interface 134 and the power supply terminal of the second transistor T2 are connected in sequence, and the output terminal of the second transistor T2, the third diode D3, and the third output interface 135 are connected in sequence. The third input interface 132 inputs a custom reference voltage signal into the inverting input terminal of the voltage comparator 133, and the external trigger signal is input into the non-inverting input terminal of the voltage comparator 133 through the second input interface 131. After comparison by the voltage comparator 133, if the external trigger signal is higher than the custom reference voltage, the output terminal of the voltage comparator 133 outputs a high-level signal to the control terminal of the second transistor T2, otherwise it outputs a low-level signal; when the control terminal of the second transistor T2 receives a high-level signal, the second transistor T2 conducts, which is equivalent to pressing the physical button 112. The analog voltage switch button module 13 conducts and outputs a high-level signal externally through the third output interface 135; otherwise, it outputs a low-level signal externally.
[0050] In some embodiments, the analog voltage switch key module 13 further includes a fourth resistor R4, a fifth resistor R5, and a second capacitor C2. Among them, the second input interface 131, the positive input terminal of the voltage comparator 133, and the fourth resistor R4 are connected to a common node. The output terminal of the voltage comparator 133, the third resistor R3, and the fifth resistor R5 are connected to a common node. The third resistor R3, the control terminal of the second transistor T2, and the second capacitor C2 are connected to a common node.
[0051] In the embodiments of the present application, the fourth resistor R4 is used to keep the second input interface 131 at a low level when there is no input signal to improve stability. The fifth resistor R5 is used to improve the output ability of the voltage comparator. The second capacitor C2 is used to improve the stability of the on / off of the second transistor.
[0052] In some embodiments, the analog voltage switch key module 13 further includes a fourth power supply interface 136, a sixth resistor R6, a seventh resistor R7, and a ground terminal 137. Among them, the fourth power supply interface 136, the sixth resistor R6, the seventh resistor R7, and the ground terminal 137 are connected in sequence. The sixth resistor R6, the seventh resistor R7, and the third input interface 132 are connected to a common node.
[0053] In the embodiments of the present application, by connecting the fourth power supply interface 136, the sixth resistor R6, the seventh resistor R7, and the ground terminal 137 in sequence to form a path, the voltage value of the common node connected to the third input interface 132 can be adjusted by adjusting the ratio of the sixth resistor R6 to the seventh resistor R7, so as to achieve the purpose of customizing the reference voltage.
[0054] Among them, the key signal processing module 20 is respectively connected to a plurality of key modules 10 for obtaining each of the level signals and converting the level signals into digital key signals.
[0055] In some embodiments, the key signal processing module 20 uses a chip to collect key signals and drive the digital tube by using this chip.
[0056] The chip converts the obtained key level signals into digital key signals and stores them in its own key signal memory. When the chip receives an instruction from the main control chip 30 to read the key digital signal, it transmits the stored key digital signal to the main control chip. When the chip receives an execution signal from the main control chip 30, the chip outputs a corresponding drive signal to the execution device according to the received execution signal to drive the execution device to perform corresponding operations.
[0057] Among them, the main control chip 30 is connected to the key signal processing module 20 for obtaining digital key signals and controlling the corresponding execution device to perform corresponding operations according to the digital key signals.
[0058] The main control chip 30 has an output port for outputting a corresponding execution signal generated by the main control chip 30 according to the digital key signal.
[0059] In some embodiments, the output port of the main control chip 30 is directly connected to the execution device. The main control chip 30 is configured to generate a corresponding drive signal according to the digital key signal and output the drive signal to the execution device to drive the execution device to perform a corresponding operation.
[0060] In some embodiments, the output port of the main control chip 30 is connected to the key signal processing module 20, and the key signal processing module 20 is connected to the execution device. The main control chip 30 is configured to generate a corresponding execution signal according to the digital key signal and send the execution signal to the key signal processing module 20. The key signal processing module 20 outputs a drive signal to the execution device according to the execution signal to drive the execution device to perform a corresponding operation.
[0061] In some embodiments, the main control chip uses an MCU.
[0062] The above are only the embodiments of the present application and are not intended to limit the protection scope of the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A digital combined key circuit, characterized in that, The circuit includes: A plurality of key modules, each key module is used to generate a level signal according to an external trigger signal or a corresponding key operation; A key signal processing module, which is respectively connected to the plurality of key modules, is used to obtain each of the level signals and convert the level signals into digital key signals; A main control chip, which is connected to the key signal processing module, is used to obtain the digital key signals, and control a corresponding execution device to perform a corresponding operation according to the digital key signals; Wherein, the plurality of key modules at least include any two of a physical key module, a logical switch quantity key module, and an analog voltage switch quantity key module; The physical key module includes a first power interface, a first diode, a physical key, and a first output interface; the first power interface, the first diode, the physical key, and the first output interface are connected in sequence; The logical switch quantity key module includes a first input interface, a first resistor, a second resistor, a second power interface, a first transistor, a second diode, and a second output interface; the first input interface, the first resistor, and the control end of the first transistor are connected in sequence, the second power interface is connected to the power end of the first transistor, the output end of the first transistor, the second diode, and the second output interface are connected in sequence, and the first resistor, the control end of the first transistor, and the second resistor are connected to a common node; The analog voltage switch quantity key module includes a second input interface, a third input interface, a voltage comparator, a third resistor, a third power interface, a second transistor, a third diode, and a third output interface; the third input interface is connected to the reverse input end of the voltage comparator, the second input interface is connected to the forward input end of the voltage comparator, the output end of the voltage comparator, the third resistor, and the control end of the second transistor are connected in sequence, the third power interface is connected to the power end of the second transistor, the output end of the second transistor is connected to the third diode, and the third diode is connected to the third output interface.
2. The digital combined button circuit according to claim 1, wherein The main control chip has an output port, the output port is directly connected to the execution device, and the main control chip is used to generate a corresponding drive signal according to the digital key signal, and output the drive signal to the execution device to drive the execution device to perform a corresponding operation.
3. The digital combination key circuit according to claim 1, characterized in that The main control chip has an output port, the output port is connected to the key signal processing module, and the key signal processing module is connected to the execution device; The main control chip is used to generate a corresponding execution signal according to the digital key signal, and send the execution signal to the key signal processing module, and the key signal processing module generates a drive signal according to the execution signal, and outputs the drive signal to the execution device to drive the execution device to perform a corresponding operation.
4. The digital combination key circuit according to claim 1, wherein The physical key module further includes a first capacitor for eliminating interference, and two ends of the first capacitor are respectively connected to two ends of the physical key.
5. The digital combination key circuit according to claim 1, characterized in that, The analog voltage switch key module further includes a fourth resistor, a fifth resistor, and a second capacitor; The second input interface, the positive input terminal of the voltage comparator, and the fourth resistor are connected to a common node. The output terminal of the voltage comparator, the third resistor, and the fifth resistor are connected to a common node. The third resistor, the control terminal of the second transistor, and the second capacitor are connected to a common node.
6. The digital combination key circuit according to claim 1, characterized in that, The analog voltage switch key module further includes a fourth power supply interface, a sixth resistor, a seventh resistor, a ground terminal, and a third input interface; The fourth power supply interface, the sixth resistor, the seventh resistor, and the ground terminal are connected in sequence. The sixth resistor, the seventh resistor, and the third input interface are connected to a common node.
Citation Information
Patent Citations
Outage starting circuit with battery equipment and control method
CN103713724A
IGBT temperature detecting circuit and method
CN110375876A
Universal acquisition and control module based on LoRa wireless communication technology
CN209343163U
Digital combined key circuit
CN210958339U