CN206096382U - Many buttons switch detection circuit - Google Patents

Many buttons switch detection circuit Download PDF

Info

Publication number
CN206096382U
CN206096382U CN201621095551.1U CN201621095551U CN206096382U CN 206096382 U CN206096382 U CN 206096382U CN 201621095551 U CN201621095551 U CN 201621095551U CN 206096382 U CN206096382 U CN 206096382U
Authority
CN
China
Prior art keywords
key switch
resistance
circuit
mcu module
switch
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
Application number
CN201621095551.1U
Other languages
Chinese (zh)
Inventor
毛军
朱立湘
李润朝
尹志明
林军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Blueway Electronic Co Ltd
Original Assignee
Huizhou Blueway Electronic Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huizhou Blueway Electronic Co Ltd filed Critical Huizhou Blueway Electronic Co Ltd
Priority to CN201621095551.1U priority Critical patent/CN206096382U/en
Application granted granted Critical
Publication of CN206096382U publication Critical patent/CN206096382U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The utility model provides a many buttons switch detection circuit, the circuit includes: the MCU module, MCU module setting has a AD to detect the interface, with MCU serial module's RC oscillating circuit, RC oscillating circuit includes second resistance R2, third resistance R3 and first electric capacity C1, first key switch and second pushbutton switch, first key switch with second resistance R2 establishes ties, the second pushbutton switch with third resistance R3 establishes ties. This scheme in to present single chip microcomputer system commonly used to same signal line on the parallelly connected a plurality of different function button switches method of going on detecting has carried out the innovation and has improved, realize utilizing a numeral mouthful and several resistance -capacitances devices to discern the button action of the different resistances of multichannel, may not take singlechip AD resource for detection mode before preceding, need not take a plurality of numeral mouth resources and voltage conversion circuit yet, saved the cost, improved the resource usage efficiency of singlechip pin.

Description

A kind of many key switches detect circuit
Technical field
The utility model is related to switch detection circuit field, more particularly to a kind of many key switches detect circuit.
Background technology
At present using being frequently encountered the multiple different work(that need to parallel connection on same holding wire in the system of single-chip microcomputer The situation that energy button is detected, generally using following two modes:First kind of way utilizes the simulation pin of single-chip microcomputer(AD mouths) The resistance of different key is identified, shown in accompanying drawing 1;The second way utilizes amplifier or comparator by the level on holding wire Carry out process and be decomposed into two or more data signals, recycling the multi-path digital mouth of single-chip microcomputer carries out detection identification, the institute of accompanying drawing 2 Show;But first method needs to take single-chip microcomputer volume cost just few AD mouths, and second method needs many increase conversion electricity Road and multiple digital mouth resources.This patent devises a kind of new many key switch detection modes, by this new detection Mode is realized recognizing the actuation of keys of the different resistances of multichannel with several capacitance resistance wares using a digital mouth, relative to first two Detection mode can be not take up Chip Microcomputer A/D resource, it is not required that take multiple digital mouth resources and voltage conversion circuit, save Cost, improves the resource utilization of single-chip microcomputer pin.
Utility model content
Based on this, the utility model provides a kind of many key switches and detects circuit.
A kind of many key switches detect circuit, and the circuit includes:
MCU module, the MCU module is provided with a Digital Detecting interface;
The RC oscillation circuits connected with the MCU module, the RC oscillation circuits include second resistance R2,3rd resistor R3 With the first electric capacity C1;
First key switch and the second key switch, first key switch is connected with second resistance R2, described Second key switch is connected with 3rd resistor R3.
Preferably, the circuit also includes:
First resistor R1, with second resistance R2,3rd resistor R3 composition three-phase loop.
Preferably, the circuit also includes:
First test point A, is connected with first key switch with the second key switch.
Preferably, the MCU module is also connected with first key switch and second key switch.
Preferably, the quantity of the key switch can be N number of.
Preferably, it is that high resistant is input into detection mouth that the MCU arranges I/O, and the high resistant input detection mouth is can be defeated in high resistant The detection interface that entrance and normal delivery outlet are toggled.
Preferably, the first checkpoint A is the test point that can be recognized by high level pull-up and by I/O.
Beneficial effect:
The utility model provides a kind of many key switches and detects circuit, and the circuit includes:MCU module, the MCU moulds Block is provided with an AD detection interface;The RC oscillation circuits connected with the MCU module, the RC oscillation circuits include that second is electric Resistance R2,3rd resistor R3 and the first electric capacity C1;First key switch and the second key switch, first key switch with it is described Second resistance R2 is connected, and second key switch is connected with 3rd resistor R3, and this scheme is in current SCM system The method that multiple difference in functionality key switches in parallel are detected on commonly used same holding wire has carried out innovation to be improved, Realize recognizing the actuation of keys of the different resistances of multichannel with several capacitance resistance wares using a digital mouth, relative to detecting before front Mode can be not take up Chip Microcomputer A/D resource, it is not required that take multiple digital mouth resources and voltage conversion circuit, save into This, improves the resource utilization of single-chip microcomputer pin.
Description of the drawings
For the technical scheme for being illustrated more clearly that the utility model operation logic and use, below will to operation logic and The accompanying drawing to be used needed for the technology for using is briefly described.It is clear that drawings in the following description are only this reality With some new operation examples, for those of ordinary skill in the art, on the premise of not paying creative work, go back Other accompanying drawings can be obtained according to these accompanying drawings.
Fig. 1 is the circuit diagram that the first key switch of the prior art detects circuit.
Fig. 2 is the circuit diagram that second key switch of the prior art detects circuit.
Fig. 3 is the circuit diagram that a kind of many key switches of the present utility model detect circuit.
Specific embodiment
Below in conjunction with the accompanying drawing in the utility model operation logic, the technical scheme in the utility model embodiment is entered Row is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the utility model, rather than all Embodiment.Based on the embodiment in the utility model, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, belongs to the scope of the utility model protection.
Fig. 3 is refer to, based on this, the utility model provides a kind of many key switches and detects circuit.
A kind of many key switches detect circuit, and the circuit includes:
MCU module 100, the MCU module 100 is provided with a Digital Detecting interface;
The RC oscillation circuits connected with the MCU module 100, the RC oscillation circuits include second resistance R2, the 3rd electric Resistance R3 and the first electric capacity C1;
First key switch S1 and the second key switch S2, the first key switch S1 go here and there with second resistance R2 Connection, the second key switch S2 connects with 3rd resistor R3.
Wherein in one embodiment, the circuit also includes:
First resistor R1, with second resistance R2,3rd resistor R3 composition three-phase loop.
Wherein in one embodiment, the circuit also includes:
First test point A, is connected with first key switch with the second key switch.
Wherein in one embodiment, the MCU module is also connected with first key switch and second button is opened Close.
Wherein in one embodiment, the quantity of the key switch can be N number of.
Wherein in one embodiment, it is that high resistant is input into detection mouth that the MCU arranges I/O, and the high resistant is input into detection mouth For the detection interface that can be toggled in high resistant input port and normal delivery outlet.
Wherein in one embodiment, the first checkpoint A is the detection that can be recognized by high level pull-up and by I/O Point.
Fig. 3 is continued referring to, a kind of logic of many key switch detection modes of the present utility model is as follows:
1. connected mode
As illustrated, two buttons are made a distinction by the resistance R2 that connected, common tie point A is pulled up by high level And recognized by I/O, I/O is connected to A points by the RC loops of R3 and C1;
2. logic is processed
It is that high resistant is input into detection mouth that I/O is arranged when MCU is flat, after it is low level to have recognized push button signalling i.e. A points, by I/ O switches to delivery outlet and externally exports high level, again switches back I/O mouths become high resistant input detection mouth afterwards, then to I/O Mouthful level judged that, because before I/O mouths have C1 is charged, after I/O mouths are switched back, now button is still located In conducting state, C1 can be discharged by A mouths, due to inconsistent by the discharge time of S1 and S2, so passing through the time Differ to recognize that button just now is S1 or S2;
3. key switch and electronic device are selected
Key switch is not limited to the different types of switch for possessing conducting and disconnecting such as holding or non-maintenance, and quantity is not Office is in more than 2 or multiple;
Electronic device is not limited to the value volume and range of product of capacitance-resistance, MCU sizes and function.
The utility model includes there is provided circuit described in a kind of many key switch detection circuits:MCU module, the MCU moulds Block is provided with an AD detection interface;The RC oscillation circuits connected with the MCU module, the RC oscillation circuits include that second is electric Resistance R2,3rd resistor R3 and the first electric capacity C1;First key switch and the second key switch, first key switch with it is described Second resistance R2 is connected, and second key switch is connected with 3rd resistor R3.This scheme is in current SCM system The method that multiple difference in functionality key switches in parallel are detected on commonly used same holding wire has carried out innovation to be improved, Realize recognizing the actuation of keys of the different resistances of multichannel with several capacitance resistance wares using a digital mouth, relative to detecting before front Mode can be not take up Chip Microcomputer A/D resource, it is not required that take multiple digital mouth resources and voltage conversion circuit, save into This, improves the resource utilization of single-chip microcomputer pin.
The utility model operation logic is described in detail above, the explanation of above-mentioned operation logic is only intended to help Understand method of the present utility model and its core concept;Simultaneously for one of ordinary skill in the art, according to the utility model Thought, will change in specific embodiments and applications, in sum, this specification content should not be understood It is to restriction of the present utility model.

Claims (7)

1. a kind of many key switches detect circuit, it is characterised in that the circuit includes:
MCU module, the MCU module is provided with a Digital Detecting interface;
The RC oscillation circuits connected with the MCU module, the RC oscillation circuits include second resistance R2,3rd resistor R3 and the One electric capacity C1;
First key switch and the second key switch, first key switch is connected with second resistance R2, and described second Key switch is connected with 3rd resistor R3.
2. many key switches according to claim 1 detect circuit, it is characterised in that the circuit also includes:
First resistor R1, with second resistance R2,3rd resistor R3 composition three-phase loop.
3. many key switches according to claim 1 detect circuit, it is characterised in that the circuit also includes:
First test point A, is connected with first key switch with the second key switch.
4. many key switches according to claim 1 detect circuit, it is characterised in that the MCU module is also connected with described First key switch and second key switch.
5. many key switches according to claim 1 detect circuit, it is characterised in that the quantity of the key switch can be It is N number of.
6. many key switches according to claim 1 detect circuit, it is characterised in that it is that high resistant is defeated that the MCU arranges I/O Enter detection mouth, the high resistant input detection mouth is the detection interface that can be toggled in high resistant input port and normal delivery outlet.
7. many key switches according to claim 3 detect circuit, it is characterised in that the first checkpoint A is to lead to The test point crossed high level pull-up and recognized by I/O.
CN201621095551.1U 2016-09-30 2016-09-30 Many buttons switch detection circuit Active CN206096382U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201621095551.1U CN206096382U (en) 2016-09-30 2016-09-30 Many buttons switch detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201621095551.1U CN206096382U (en) 2016-09-30 2016-09-30 Many buttons switch detection circuit

Publications (1)

Publication Number Publication Date
CN206096382U true CN206096382U (en) 2017-04-12

Family

ID=58482301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201621095551.1U Active CN206096382U (en) 2016-09-30 2016-09-30 Many buttons switch detection circuit

Country Status (1)

Country Link
CN (1) CN206096382U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536074A (en) * 2018-06-15 2018-09-14 八方电气(苏州)股份有限公司 The management method and system of unibus equipment
CN109900949A (en) * 2019-02-01 2019-06-18 浙江蓝点动力科技有限公司 A kind of key anti-interference processing method based on current detecting
CN113985272A (en) * 2021-11-08 2022-01-28 合肥巨一动力系统有限公司 Trinity electricity drives protection detection device that uncaps

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536074A (en) * 2018-06-15 2018-09-14 八方电气(苏州)股份有限公司 The management method and system of unibus equipment
CN109900949A (en) * 2019-02-01 2019-06-18 浙江蓝点动力科技有限公司 A kind of key anti-interference processing method based on current detecting
CN113985272A (en) * 2021-11-08 2022-01-28 合肥巨一动力系统有限公司 Trinity electricity drives protection detection device that uncaps

Similar Documents

Publication Publication Date Title
CN203387203U (en) Charging switching system possessing USB on-the-go (OTG) function
CN206096382U (en) Many buttons switch detection circuit
CN103973287B (en) On/off circuit
CN106301342B (en) Interface circuit and terminal device
CN202455337U (en) Key circuit based on analog-to-digital conversion
CN206573680U (en) A kind of multi-channel circuit test device
CN106020176B (en) A kind of CC logic controls chip low-power consumption connecting detection method and structure
CN101989749A (en) Charging device and charging method
CN103605017A (en) Detection method of vehicle switch quantity signal
CN201039440Y (en) A cable control earphone for multi-key and single detection end
CN203504522U (en) Touch key control circuit and air conditioner
CN208969205U (en) Detect the circuit of pin floating state
CN104953701B (en) A kind of isolated battery powdered device
CN202404208U (en) Tri-state detection circuit based on I/O port
CN207281214U (en) Type-C interface and connection detection circuit thereof
CN110190841A (en) I/O port multiplexing control circuit and electronic equipment
CN107786193A (en) Touch key detection method and device
CN112162166B (en) USB charging port no-load detection circuit and detection method thereof
CN104536314B (en) Start control circuit, method and electronic equipment based on near-field communication NFC
CN205863955U (en) A kind of USB fast charging device of main frame front interface
CN111537915A (en) Broken string detection circuitry and treasured that charges of polymorphic type charging wire
CN102857231A (en) Key testing circuit
CN204633734U (en) A kind of charger inserts reset circuit and Intelligent bracelet
CN203520090U (en) Hand-held terminal hard switching circuit
CN102745562A (en) Elevator calling and registering system and elevator

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant