Switch key input display circuit

By using components such as field effect transistors and Schottky diodes in the switch key input display circuit, key detection and display are realized, solving the problem of wasted IO resources of microcontrollers when the key is pressed, and reducing costs.

CN221995428UActive Publication Date: 2024-11-12NANJING GAOJING PHOTOELECTRIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420346968.9
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-02-26
Publication Date
2024-11-12
Estimated Expiration
2034-02-26

AI Technical Summary

Technical Problem

In the case of many buttons, existing switch key detection circuits require a large number of microcontroller IO resources, resulting in increased costs.

Method used

Design a switch key input display circuit, and use components such as field effect transistors, Schottky diodes and light emitting diodes to realize button detection and display through a small amount of IO resources, including the use of the first resistor and Schottky in each group of LED circuits. Diode and light emitting diode, field effect transistor are connected to the control port of the microcontroller, and the buttons are connected to the positive electrode of Schottky diode and GND, realizing low-level detection and high-level output.

Benefits of technology

The circuit structure is simplified, the number of components is reduced, the IO resources of the microcontroller are saved, and the overall cost is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221995428U_ABST
    Figure CN221995428U_ABST
Patent Text Reader

Abstract

The utility model discloses a switch button input display circuit comprising a field effect transistor, a plurality of groups of LED circuits and a plurality of buttons. Wherein each group of LED circuits comprises a first resistor, a first Schottky diode and a light emitting diode; moreover, in each group of LED circuits, one end of the first resistor is connected with a KEY port of the single-chip microcomputer, and the other end of the first resistor is connected with the positive electrode of the first Schottky diode. The negative electrode of the first Schottky diode is connected with the positive electrode of the light-emitting diode; the negative electrode of the light-emitting diode is connected with the drain electrode of the field response tube; a grid electrode of the field effect transistor is connected with a control port of the single-chip microcomputer, and a source electrode of the field effect transistor is connected with GND; and the plurality of keys are respectively connected to the plurality of groups of LED circuits, one end of each key is connected to a line between the first resistor and the anode of the first Schottky diode, and the other end of each key is connected with the GND. The number of components used by the circuit is small, IO of the single-chip microcomputer can be saved, and cost is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to a switch key input display circuit, belonging to the technical field of switch key display. Background Art

[0002] The detection circuit scheme of the switch button is mature and stable. The conventional design scheme is: to indicate that a certain button is pressed, a light-emitting diode (LED) will be lit up accordingly. The corresponding microcontroller (MCU) needs two pins (IO) to implement it: one input detection and one output control. This type of design scheme has no problem in circuits with fewer buttons. If there are more buttons, the corresponding microcontroller (MCU) pins will be many, which will increase the cost invisibly. Utility Model Content

[0003] In order to solve the deficiencies of the prior art, the utility model provides a switch key input display circuit, which uses a small number of components and can save single-chip computer IO, thereby effectively reducing costs.

[0004] The technical solution adopted by the utility model is:

[0005] A switch button input display circuit includes a field effect tube, multiple groups of LED circuits and multiple buttons; wherein each group of LED circuits includes a first resistor, a first Schottky diode and a light emitting diode; and,

[0006] In each group of LED circuits, one end of the first resistor is connected to the KEY port of the single chip computer, and the other end of the first resistor is connected to the positive electrode of the first Schottky diode; the negative electrode of the first Schottky diode is connected to the positive electrode of the light emitting diode, and the negative electrode of the light emitting diode is connected to the drain of the field response tube;

[0007] The gate of the field effect tube is connected to the control port of the microcontroller, and the source is connected to GND;

[0008] The plurality of buttons are respectively connected to the plurality of LED circuits, and one end of the button is connected to the circuit between the first resistor and the anode of the first Schottky diode, and the other end of the button is connected to GND.

[0009] Preferably, the circuit further comprises a second resistor and a second Schottky diode;

[0010] Two ends of the second resistor are respectively connected to the positive and negative electrodes of the second Schottky diode, and the positive electrode of the second Schottky diode is connected to the drain electrode of the field-resistance transistor;

[0011] The cathode of the second Schottky diode is connected to VCC.

[0012] Preferably, the circuit further comprises a third resistor; one end of the third resistor is connected to the source of the field effect tube, and the other end is connected to VCC.

[0013] The beneficial effects of the utility model are:

[0014] The circuit is simple and uses fewer components, while saving microcontroller IO and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 Enter the circuit diagram of the display circuit for the switch button. DETAILED DESCRIPTION

[0016] The utility model is specifically introduced below in conjunction with the accompanying drawings and embodiments.

[0017] like Figure 1 As shown: This embodiment is a switch key input display circuit, including a field effect tube V12, multiple groups of LED circuits and multiple keys (S1, S2, S3, S4); wherein each group of LED circuits includes a first resistor (R11, R12, R13, R14), a first Schottky diode (V1, V2, V3, V4) and a light emitting diode (H1, H2, H3, H4); and,

[0018] One end of the first resistor R11 is connected to the KEY 1 port of the single-chip microcomputer, and the other end of the first resistor R11 is connected to the positive electrode of the first Schottky diode V1; the cathode of the first Schottky diode V1 is connected to the positive electrode of the light-emitting diode H1, and the cathode of the light-emitting diode H1 is connected to the drain of the field-response transistor V12; one end of the key S1 is connected to the line between the first resistor R11 and the positive electrode of the first Schottky diode V1, and the other end of the key S1 is connected to GND.

[0019] One end of the first resistor R12 is connected to the KEY 2 port of the single-chip microcomputer, and the other end of the first resistor R12 is connected to the positive electrode of the first Schottky diode V2; the cathode of the first Schottky diode V2 is connected to the positive electrode of the light-emitting diode H2, and the cathode of the light-emitting diode H2 is connected to the drain of the field-response transistor V12; one end of the key S2 is connected to the line between the first resistor R12 and the positive electrode of the first Schottky diode V2, and the other end of the key S2 is connected to GND.

[0020] One end of the first resistor R13 is connected to the KEY 3 port of the single-chip microcomputer, and the other end of the first resistor R13 is connected to the positive electrode of the first Schottky diode V3; the cathode of the first Schottky diode V3 is connected to the positive electrode of the light-emitting diode H3, and the cathode of the light-emitting diode H3 is connected to the drain of the field-response transistor V12; one end of the key S3 is connected to the line between the first resistor R13 and the positive electrode of the first Schottky diode V3, and the other end of the key S3 is connected to GND.

[0021] One end of the first resistor R14 is connected to the KEY 4 port of the single-chip microcomputer, and the other end of the first resistor R14 is connected to the positive electrode of the first Schottky diode V4; the cathode of the first Schottky diode V4 is connected to the positive electrode of the light-emitting diode H4, and the cathode of the light-emitting diode H4 is connected to the drain of the field-response transistor V12; one end of the key S4 is connected to the line between the first resistor R14 and the positive electrode of the first Schottky diode V4, and the other end of the key S4 is connected to GND.

[0022] The gate of field effect transistor V12 is connected to the control port of the microcontroller, and the source is connected to GND.

[0023] In actual application, the initial states of KEY 1, KEY 2, KEY 3, and KEY 4 ports are set to floating input states, and the control port is set to output state, with low level output; after any key (S1 is taken as an example) is pressed, the microcontroller IO continuously detects low level through the first resistor R11; then the KEY 1 port is set to output state, and is set to high level output; the control port is also set to high level output, and at this time the field effect tube V12 is turned on; the high level output by the Panasonic key S1 and the KEY 1 port passes through the first resistor R11, the first Schottky diode V1, the light-emitting diode H1, and the field effect tube V12 to GND, and at this time the light-emitting diode H1 is lit.

[0024] The operation mode after pressing other keys is the same as the operation mode after key S1 is pressed.

[0025] The switch key input display circuit also includes a second resistor R22, a second Schottky diode V11 and a third resistor R23; wherein the two ends of the second resistor R22 are respectively connected to the positive and negative electrodes of the second Schottky diode V11, the positive electrode of the second Schottky diode V11 is connected to the drain of the field effect transistor V12; one end of the third resistor R23 is connected to the source of the field effect transistor V12. The negative electrode of the second Schottky diode V11 and the other end of the third resistor R23 are respectively connected to VCC.

[0026] The second resistor R22 and the second Schottky diode V11 function to pull up the level of the light-emitting diodes (H1, H2, H3, H4) when the field effect tube V12 is turned off, thereby improving the stability of the light-emitting diodes (H1, H2, H3, H4); the third resistor R23 functions to improve the driving capability of the field effect tube V12.

[0027] The above is only a preferred implementation of the utility model patent. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the utility model patent. These improvements and modifications should also be regarded as the protection scope of the utility model patent.

Claims

1. A switch key input display circuit, characterized in that: It includes a field effect tube, multiple groups of LED circuits and multiple buttons; wherein each group of LED circuits includes a first resistor, a first Schottky diode and a light emitting diode; and, In each group of LED circuits, one end of the first resistor is connected to the KEY port of the single chip computer, and the other end of the first resistor is connected to the positive electrode of the first Schottky diode; the negative electrode of the first Schottky diode is connected to the positive electrode of the light emitting diode, and the negative electrode of the light emitting diode is connected to the drain of the field response tube; The gate of the field effect tube is connected to the control port of the microcontroller, and the source is connected to GND; The plurality of buttons are respectively connected to the plurality of LED circuits, and one end of the button is connected to the circuit between the first resistor and the anode of the first Schottky diode, and the other end of the button is connected to GND.

2. A switch key input display circuit according to claim 1, characterized in that: The circuit also includes a second resistor and a second Schottky diode; Two ends of the second resistor are respectively connected to the positive and negative electrodes of the second Schottky diode, and the positive electrode of the second Schottky diode is connected to the drain electrode of the field-resistance transistor; The cathode of the second Schottky diode is connected to VCC.

3. A switch key input display circuit according to claim 1, characterized in that: The circuit also includes a third resistor; one end of the third resistor is connected to the source of the field effect tube, and the other end is connected to VCC.