CN210168024U - Single-wire transmission key circuit - Google Patents
Single-wire transmission key circuit Download PDFInfo
- Publication number
- CN210168024U CN210168024U CN201920620801.6U CN201920620801U CN210168024U CN 210168024 U CN210168024 U CN 210168024U CN 201920620801 U CN201920620801 U CN 201920620801U CN 210168024 U CN210168024 U CN 210168024U
- Authority
- CN
- China
- Prior art keywords
- key
- mcu
- module
- conversion module
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Abstract
The utility model discloses a single line transmission keying circuit, including power, button module, AD conversion module and MCU, wherein, the input connection of power and button module, button module's output and AD conversion module's input are connected, and AD conversion module's output is connected with MCU's input, and MCU's output and outside treater are connected. The utility model discloses a different voltage signal is gathered in the switching of different buttons to transmit the voltage signal single line of difference to AD conversion module, MCU is transmitted to the rethread single line, with carry out corresponding button operation, practiced thrift circuit cost.
Description
Technical Field
The utility model relates to a keying circuit, a single line transmission keying circuit very much.
Background
The keys are often operated objects in daily life, and people can realize different functions through different keys, so that the keyboard is convenient and quick. In the prior art, when the key function is realized, a plurality of keys need corresponding transmission lines to transmit key signals, and the key signal transmission device comprises keys, a key response circuit, key information transmission, a key processing circuit and the like.
The implementation mode can meet the requirements in common occasions, but in some special occasions, such as the number of transmission lines is limited, the prior art cannot realize the implementation when only one transmission line is available and a plurality of key signals need to be transmitted simultaneously, and the cost of the prior art is higher when the cost of a key circuit is strictly controlled. In order to save transmission lines, chips for processing key signals in advance need to be added for recoding and transmitting, but the cost is increased.
Disclosure of Invention
In order to overcome the defects of the prior art, the utility model provides a single line transmission keying circuit for solve the too much problem of transmission line among the current keying technique.
In order to achieve the above object, the present invention provides the following technical solutions:
a single-wire transmission key circuit comprises a power supply, a key module, an A/D conversion module and an MCU; wherein the content of the first and second substances,
the power supply is connected with the input of the key module, the output end of the key module is connected with the input end of the A/D conversion module, the output end of the A/D conversion module is connected with the input end of the MCU, and the output end of the MCU is connected with the external processor.
Preferably, the key module comprises n resistors and n keys; the n resistors are connected in series, and the output end of each resistor is connected with the input end of the corresponding key.
Preferably, the n resistors have a resistance value of X.
Preferably, each key corresponds to a different operating function.
To sum up, owing to adopted above-mentioned technical scheme, compare with prior art, the utility model discloses following beneficial effect has at least:
the utility model discloses a different voltage signal is gathered to different button closures to transmit AD conversion module and treater with voltage signal through the single line, with the button operation of carrying out the difference, practiced thrift the cost of transmission line, can use in specific button occasion (the transmission line of overall arrangement is one). Just the utility model discloses simple and practical, maneuverability is high.
Description of the drawings:
fig. 1 is a schematic diagram of a single-line transmission key circuit according to the exemplary embodiment 1 of the present invention.
Fig. 2 is a schematic diagram of a single-line transmission key circuit according to the exemplary embodiment 2 of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples and specific embodiments. However, it should not be understood that the scope of the above-mentioned subject matter is limited to the following embodiments, and all the technologies realized based on the present invention are within the scope of the present invention.
In the description of the present invention, it is to be understood that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on the orientations or positional relationships illustrated in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore, should not be construed as limiting the present invention.
In the description of the present invention, unless otherwise specified and limited, it is to be noted that the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, mechanically or electrically connected, or may be connected between two elements through an intermediate medium, or may be directly connected or indirectly connected, and specific meanings of the terms may be understood by those skilled in the art according to specific situations.
Fig. 1 is a schematic diagram of a single-line transmission key circuit structure according to an embodiment of the present invention. A single wire transmission keying circuit comprises a power supply Vcc, a keying module 10, an A/D conversion module 20 and an MCU module 30. The power supply Vcc is connected with the input end of the key module 10, the output end of the key module 10 is connected with the input end of the A/D conversion module 20, the output end of the A/D conversion module 20 is connected with the input end of the MCU module 30, and the output end of the MCU module 30 is connected with the external processor; the output of the key module 10 is also connected to ground.
The key module 10 includes n resistors and n keys, where n is a positive integer. If n is greater than or equal to 2, the n resistors are connected in series, the output end of each resistor is connected with the input end of the corresponding key, and the output end of each key is connected with the input end of the A/D conversion module 20, namely, the n-1 st resistor Rn-1Respectively with the nth resistor RnAnd the (n-1) th key swn-1And (4) connecting.
In this embodiment 1, for example, the key module 10 includes a first resistor R1, a second resistor R2, a third resistor R3, a first key sw1 (switch), a second key sw2, and a third key sw 3.
One end of a first resistor R1 is connected with a power supply Vcc, the other end of the first resistor R1 is respectively connected with one end of a first key sw1 and one end of a second resistor R2, the other end of the second resistor R2 is respectively connected with one end of a second key sw2 and one end of a third resistor R3, the other end of the third resistor R3 is connected with one end of a third key sw3, meanwhile, the other end of the third resistor R3 is grounded, the other ends of the first key sw1, the second key sw2 and the third key sw3 are all connected with an input end of an A/D conversion module, an output end of the A/D conversion module is connected with an input end of an MCU, and an output end of the MCU is connected with an external processor.
In the single-wire transmission key circuit provided by this embodiment, the resistors are connected in series, and the keys are connected in parallel. The resistance values of the resistors are the same and are X, for example, X is 10k omega, the same resistance values of the resistors have the effect that the voltage value in the circuit is divided equally, the voltage of each key is convenient to calculate, and the keys are convenient to identify; the MCU, as a central processing unit, may be a single chip microcomputer (e.g., STC8051), and is configured to recognize a digital signal and control an external processor to perform a key operation. In this embodiment, the circuit of resistance and button can adopt disposable consumptive material design, and AD conversion module and MCU regard as host computer end design, guarantee the quality of host computer end alright avoid changing at any time, can change resistance and button circuit at any time according to actual need and environmental transform like this, reduced the cost of design.
The single-wire transmission key circuit provided by the embodiment has the following working principle: the utility model discloses the circuit is realized by adopting the partial pressure principle of resistance, when different buttons were pressed (sw1 pressed or sw2 pressed or sw3 pressed), corresponding voltage analog signal will be gathered to the AD conversion module, the AD conversion module converts voltage analog signal into corresponding digital signal, then the digital signal transmits to MCU and carries out processing, MCU goes to discern corresponding button information and then makes corresponding response operation through the different signals that different button transmission was come promptly, just so realized the operating function of button.
For example, when the first key sw1 is pressed down and the second key sw2 and the third key sw3 are both disconnected, the A/D conversion module collects a first voltage analog signal and converts the first voltage analog signal to generate a first digital signal, the first digital signal is transmitted to the MCU for identification, and after the identification is finished, the MCU controls the external processor to execute a first operation; when the second key sw2 is pressed down and the first key sw1 and the third key sw3 are both disconnected, the A/D conversion module collects a second voltage analog signal and converts the second voltage analog signal to generate a second digital signal, the second digital signal is transmitted to the MCU for identification, and the MCU controls the external processor to execute a second operation after the identification is finished; when the third key sw2 is pressed down and the first key sw1 and the second key sw2 are both disconnected, the A/D conversion module collects and converts a third voltage analog signal to generate a third digital signal, the third digital signal is transmitted to the MCU for identification, and the MCU controls the external processor to execute a third operation after the identification is finished. I.e. different keys correspond to different operations.
Referring to fig. 2, in embodiment 2, in order to satisfy different functional operations, the number of resistors and keys can be added or reduced on the basis of the present invention, and it should also be understood that the present invention is a circuit, i.e. the resistors and keys in the circuit are n, n is a positive integer, and other connection modes are the same as those in embodiment 1.
Claims (3)
1. A single wire transmission key circuit is characterized by comprising a power supply, a key module, an A/D conversion module and an MCU, wherein,
the power supply is connected with the input of the key module, the output end of the key module is connected with the input end of the A/D conversion module, the output end of the A/D conversion module is connected with the input end of the MCU, and the output end of the MCU is connected with the external processor;
the key module comprises n resistors and n keys; the n resistors are connected in series, and the output end of each resistor is connected with the input end of the corresponding key.
2. The single wire transmission keying circuit of claim 1 wherein n resistors have a resistance of X.
3. A single wire transmission key circuit as claimed in claim 1, wherein each key corresponds to a different operating function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201920620801.6U CN210168024U (en) | 2019-04-30 | 2019-04-30 | Single-wire transmission key circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201920620801.6U CN210168024U (en) | 2019-04-30 | 2019-04-30 | Single-wire transmission key circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN210168024U true CN210168024U (en) | 2020-03-20 |
Family
ID=69791591
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201920620801.6U Active CN210168024U (en) | 2019-04-30 | 2019-04-30 | Single-wire transmission key circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN210168024U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113771779A (en) * | 2021-09-13 | 2021-12-10 | 东风电驱动系统有限公司 | Circuit for multifunctional keys of automobile |
CN113936946A (en) * | 2021-10-29 | 2022-01-14 | 广东美的厨房电器制造有限公司 | Trigger detection circuit of key, key assembly and household appliance |
-
2019
- 2019-04-30 CN CN201920620801.6U patent/CN210168024U/en active Active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113771779A (en) * | 2021-09-13 | 2021-12-10 | 东风电驱动系统有限公司 | Circuit for multifunctional keys of automobile |
CN113936946A (en) * | 2021-10-29 | 2022-01-14 | 广东美的厨房电器制造有限公司 | Trigger detection circuit of key, key assembly and household appliance |
CN113936946B (en) * | 2021-10-29 | 2023-12-22 | 广东美的厨房电器制造有限公司 | Trigger detection circuit, button subassembly and tame electric installation of button |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN210168024U (en) | Single-wire transmission key circuit | |
CN110166868A (en) | A kind of charging box and charging system communicated with wireless headset | |
CN102075194B (en) | Circuit and method for scanning keyboard and electronic equipment | |
US20010027530A1 (en) | Wake-up system and method for universal serial bus of wireless input device | |
CN103701472A (en) | Digital keying circuit and keying equipment | |
CN206399476U (en) | A kind of water analysis circuit | |
CN213875939U (en) | Key detection circuit | |
CN213458027U (en) | USB master-slave equipment switching circuit, control circuit and interactive panel | |
CN201569491U (en) | Noise detecting and warning device | |
CN217880044U (en) | Circuit for realizing N key detection and low-power consumption awakening function through two IO ports | |
CN109032367A (en) | A kind of integrated key mouse panel peculiar to vessel | |
CN115459754A (en) | Current-mode and voltage-mode analog quantity signal acquisition switching circuit and control method | |
CN204376876U (en) | Data acquisition system | |
CN114578939A (en) | Single-line awakening and key detection circuit | |
CN201251769Y (en) | Device capable of locking keystroke | |
CN204390954U (en) | Vehicle-mounted button indicating circuit and vehicle intelligent terminal | |
CN212569479U (en) | Key circuit based on external interrupt triggering | |
CN208444172U (en) | The control circuit of novel intelligent switch on wall | |
CN112803936A (en) | Touch control's binary channels output auto-change over device | |
CN220325609U (en) | Single-wire transmission key circuit | |
CN101594043A (en) | Intelligent power supply | |
CN217587908U (en) | Digital aiming system with function selection and one-key startup and shutdown functions | |
CN214846860U (en) | Electronic lock system for realizing more touch keys by 12-key capacitive touch chip | |
CN218675991U (en) | Transmitting-receiving switching circuit of active capacitance pen | |
CN214380666U (en) | Household electrical appliance control circuit, system and electrical equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211209 Address after: 401120 1-1, 2-1, 3-1, building 5, No. 18, Cuiping Lane 2, Huixing street, Yubei District, Chongqing Patentee after: Chongqing Jinshan Medical Technology Research Institute Co.,Ltd. Address before: 401121 An office building in Jinshan International Industrial City, 18 Neixuan Avenue, Huixing Street, Yubei District, Chongqing Patentee before: CHONGQING JINSHAN MEDICAL APPLIANCE Co.,Ltd. |
|
TR01 | Transfer of patent right |