CN206601677U - Keyboard circuit and keyboard control system - Google Patents
Keyboard circuit and keyboard control system Download PDFInfo
- Publication number
- CN206601677U CN206601677U CN201720137827.6U CN201720137827U CN206601677U CN 206601677 U CN206601677 U CN 206601677U CN 201720137827 U CN201720137827 U CN 201720137827U CN 206601677 U CN206601677 U CN 206601677U
- Authority
- CN
- China
- Prior art keywords
- port
- button
- control unit
- key control
- different
- 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.)
- Expired - Fee Related
Links
Abstract
The utility model is related to a kind of keyboard circuit and keyboard control system.The i port connection of keyboard circuit and controller.High level is accessed in each port.Keyboard circuit includes i the first buttons, j the second buttons and j key control unit, and j is natural number.One end ground connection of each first button, the other end connection corresponding with different port respectively of different first buttons.One end ground connection of each second button, the one end of the other ends of different second buttons respectively with different key control unit is connected.M port connection in the other end and all of the port of each key control unit.The combination of one group of port of the other end connection of different key control unit is different.Each key control unit is used for after the second button with being each connected is pressed so that the level of all of the port with being each connected is pulled low to low level.The keyboard circuit and keyboard control system add by different port combinations to identify whether the button being pressed, so as to extend the utilization rate of port.
Description
Technical field
The utility model is related to keyboard technique field, more particularly to a kind of keyboard circuit and keyboard control system.
Background technology
Keyboard be it is the most frequently used be also topmost input equipment, can be by English alphabet, numeral, punctuation mark by keyboard
Etc. being input in computer, so as to send order, input data etc. to computer.With the continuous expansion of microsystem application field
Greatly, the application system of many buttons is also more and more.
In traditional keyboard circuit, a button generally one controller of correspondence is (for example:MCU(Microcontroller
Unit, micro-control unit)) port, judge whether button is pressed so as to the level according to port.However, due to
The port number of controller is limited, therefore, under the more occasion of the quantity required of button, can cause the port resource of controller
Situation about not enough distributing, and if reselecting the controller with more port resources, there is cost, R&D cycle, grind
The restriction of problem in terms of hair risk.
Utility model content
Based on this, it is necessary to under the more occasion of the quantity required in button, the port resource of controller can be caused
The problem of situation about not enough distributing, there is provided a kind of keyboard circuit and keyboard control system.
A kind of keyboard circuit, is connected with i port of controller, and i is natural number, and i>1;Each high electricity of port access
It is flat;The keyboard circuit includes i the first buttons, j the second buttons and j key control unit;J is natural number, and j≤
(2i-1-i);
One end ground connection of each first button, and different first button the other end respectively from it is different described in
Port correspondence is connected;One end ground connection of each second button, and different second button the other end respectively with difference
The key control unit one end connection;The other end of each key control unit and m in all ports
The port connection;Wherein, 2≤m≤i;Also, one group of port of the other end connection of the different key control units
Combination is different;
Each key control unit is used for after second button with being each connected is pressed so that with each connecting
The level of all of the port connect is pulled low to low level.
In one of the embodiments, for any key control unit:The key control unit includes m list
The quantity phase for the port being connected to the quantity of conductive devices, and the unilateal conduction device with the key control unit
Together;The different port of the other end of the first end of each unilateal conduction device respectively with being connected to the key control unit connects
Connect, the second end the second button connection corresponding with the key control unit respectively of each unilateal conduction device;And
And, during the unilateal conduction break-over of device, electric current flows to second end by the first end.
In one of the embodiments, the unilateal conduction device includes diode.
In one of the embodiments, the high level is accessed in each port by a resistance respectively.
A kind of keyboard control system, including controller and keyboard circuit, i end of the keyboard circuit and the controller
Mouthful connection, i is natural number, and i>1;Each port access high level;The keyboard circuit includes i the first buttons, j the
Two buttons and j key control unit;J is natural number, and j≤(2i-1-i);
One end ground connection of each first button, and different first button the other end respectively from it is different described in
Port correspondence is connected;One end ground connection of each second button, and different second button the other end respectively with difference
The key control unit one end connection;The other end of each key control unit and m in all ports
The port connection;Wherein, 2≤m≤i;Also, one group of port of the other end connection of the different key control units
Combination is different;
Each key control unit is used for after second button with being each connected is pressed so that with each connecting
The level of all of the port connect is pulled low to low level.
In one of the embodiments, for any key control unit:The key control unit includes m list
The quantity phase for the port being connected to the quantity of conductive devices, and the unilateal conduction device with the key control unit
Together;The different port of the other end of the first end of each unilateal conduction device respectively with being connected to the key control unit connects
Connect, the second end the second button connection corresponding with the key control unit respectively of each unilateal conduction device;And
And, during the unilateal conduction break-over of device, electric current flows to second end by the first end.
In one of the embodiments, the unilateal conduction device includes diode.
In one of the embodiments, the high level is accessed in each port by a resistance respectively.
Above-mentioned keyboard circuit and keyboard control system have the advantage that for:In the keyboard circuit and keyboard control system
In, one end of each first button ground connection, and different the first button the other end respectively from the corresponding connection in different ports, that
, as long as each first button is pressed, connected unique port is connected with ground, so that the level of the port is down to
Low level.In addition, one end ground connection of each second button, and the other end of the second different buttons presses key control from different respectively
M port in one end connection of unit, the other end and all of the port of different key control unit is connected, different buttons
The combination of one group of port of the other end connection of control unit is different, also, each key control unit be used for it is respective
After second button of connection is pressed so that the level of all of the port with being each connected is pulled low to low level.So, it is any
Second button is pressed, and always has the level of port of respective combination by while being pulled low to low level.Therefore, above-mentioned keyboard circuit
And keyboard control system added on the basis of conventional keys circuit, again by different port combinations identify whether by by
Under button, so as to extend the utilization rate of port, can be fitted on the premise of without changing the controller with more multiple resource
The occasion more for the quantity required to button.
Brief description of the drawings
, below will be to embodiment in order to illustrate more clearly of the utility model embodiment or technical scheme of the prior art
Or the accompanying drawing used required in description of the prior art is briefly described, it should be apparent that, drawings in the following description are only
It is some embodiments of the present utility model, for those of ordinary skill in the art, is not paying the premise of creative work
Under, the accompanying drawing of other embodiment can also be obtained according to these accompanying drawings.
The circuit diagram for the keyboard circuit that Fig. 1 provides for an embodiment.
Embodiment
For the ease of understanding the utility model, the utility model is more fully retouched below with reference to relevant drawings
State.Preferred embodiment of the present utility model is given in accompanying drawing.But, the utility model can come real in many different forms
It is existing, however it is not limited to embodiment described herein.On the contrary, the purpose for providing these embodiments is made to public affairs of the present utility model
The understanding for opening content is more thorough comprehensive.
Unless otherwise defined, technical field of all of technologies and scientific terms used here by the article with belonging to utility model
The implication that is generally understood that of technical staff it is identical.It is intended merely to retouch in the term used in the description of utility model herein
State the purpose of specific embodiment, it is not intended that limitation the utility model.Term as used herein "and/or" include one or
The arbitrary and all combination of multiple related Listed Items.
In one embodiment there is provided a kind of keyboard circuit, as shown in Figure 1.The i port of the keyboard circuit and controller
Connection.Controller is, for example, MCU.Port is, for example, I/O ports (input/output) or GPIO (General Purpose Input
Output, universal input/output) port.Wherein, i is natural number, and i>1.Also, high level is accessed in each port.High level
Voltage can be between 3.5~5V.Therefore, each port of controller level in original state is high level.
Specifically, high level is accessed in each port by a resistance respectively.By taking i=4 as an example, MCU_GPIO1 in Fig. 1,
MCU_GPIO2, MCU_GPIO3, MCU_GPIO4 are respectively MCU 4 GPIO ports, and this 4 GPIO ports are corresponded to respectively
High level MCU_VCC is accessed by resistance R4, resistance R3, resistance R2, resistance R1.
In addition, keyboard circuit includes i the first buttons, j the second buttons and j key control unit 110.Wherein, j is
Natural number, and j≤(2i-1-i).Wherein, the first button and the second button are button, simply with the connected mode of controller not
Together.If i=4, j≤11, that is to say, that the number of the second button at most can be 11, be controlled equivalent at this moment only needing to 4
The port of device can just detect whether 15 buttons are pressed.
Wherein, one end ground connection of each first button, and different the first button the other end respectively from different ports pair
It should connect, i.e. the port of the first button and controller is one-to-one relation.So, after any one first button is pressed,
Because one end of each first button is grounded, port and the earth equivalent to the controller being connected with first button are connected, from
And make it that the level of the port is pulled low to low level, and then identify which the first button is pressed.
In addition, one end ground connection of each second button, and the other end of the second different buttons presses keying from different respectively
One end connection of unit 110 processed, i.e. the second button and key control unit 110 are also one-to-one relation.Respectively press key control
M port connection in the other end and all of the port of unit 110, i.e., the other end of each key control unit 110 is respectively with one
The connection of group port.Wherein, 2≤m≤i.Also, the group of one group of port of the other end connection of different key control units 110
Conjunction mode is different.
For any two groups of ports, combination difference refers to the quantity for the port that this two groups of ports each include not
Although there are different or this two groups of ports in identical but port sequence number to the quantity of the port each included with, this two groups of ports
The quantity and sequence number of the port each included are different from.Therefore, each key control unit 110 corresponds unique one group of end
Mouthful, also, each key control unit and the second button are one-to-one relations, so that each group of port is only uniquely corresponded to
One the second button.
In addition, each key control unit 110 is used for after the second button with being each connected is pressed so that with each connecting
The level of all of the port connect is pulled low to low level.Wherein, low level voltage can be 0~0.25V.
Because each key control unit 110 connects one to one each second button, and a pair of each key control unit 110 1
Unique one group of port is answered, therefore, under the control of key control unit 110, as long as one of them second button is pressed, just
The level of corresponding one group of port can be caused all to be pulled low to low level, so as to be recognized accurately which the second button by by
Under.
By taking Fig. 1 as an example, button K1 to button K4 is the first button.Button K5 to button K15 is the second button.Button
K1 to button K4 respectively with port MCU_GPIO1, port MCU_GPIO2, port MCU_GPIO3, a pair of port MCU_GPIO4 1
It should connect.Button K5 to button K15 passes through a key control unit 110 and port MCU_GPIO1, port MCU_ respectively
Wherein unique one group of port connection in GPIO2, port MCU_GPIO3, port MCU_GPIO4 these GPIO ports.Citing comes
Say:Button K5 is connected by a key control unit 110 with port MCU_GPIO1, port MCU_GPIO2;Button K15 passes through
Another key control unit 110 and port MCU_GPIO1, port MCU_GPIO2, port MCU_GPIO3, port MCU_
GPIO4 connections.
In actual applications, if port MCU_GPIO1, port MCU_GPIO2, port MCU_GPIO3, port MCU_
Either port is pulled low to low level in GPIO4, you can judge that corresponding first button is pressed, for example:If port MCU_
GPIO1 is changed into low level, then can determine that button K1 is pressed.If port MCU_GPIO1, port MCU_GPIO2, port MCU_
The level of all of the port of any group of port is reduced to low level in GPIO3, port MCU_GPIO4, then can determine that and the group
Corresponding second button in port is pressed, for example:After button K5 is pressed, port MCU_GPIO1 and port MCU_GPIO2 then can
Dragged down simultaneously, at this moment controller knows that button K5 has been pressed with regard to that can sentence.For another example:After button K15 is pressed, port MCU_
GPIO1, port MCU_GPIO2, port MCU_GPIO3, port MCU_GPIO4 can be dragged down simultaneously, and at this moment controller is with regard to that can sentence
Know that button K15 has been pressed.
In summary, above-mentioned keyboard circuit and keyboard control system add logical on the basis of conventional keys circuit, again
Cross different port combinations to identify whether the button being pressed, so as to extend the utilization rate of the port of controller, Neng Gou
On the premise of changing the controller with more multiple resource, it is adaptable to the occasion more to the quantity required of button.
In one of the embodiments, please continue to refer to Fig. 1, for any key control unit 110, its is specific
Implementation is as follows:Key control unit 110 includes m unilateal conduction device, and the quantity of unilateal conduction device is with pressing keying
The quantity for the port that unit 110 processed is connected is identical.The first end of each unilateal conduction device is respectively with being connected to key control unit
The different port connection of 110 other end, i.e., the first end of each unilateal conduction device and the key control unit 110 corresponding one
Each port in group port connects one to one.Second end of each unilateal conduction device is corresponding with key control unit 110 respectively
The second button connection.Because each button of key control unit 110 and second is one-to-one relation, therefore by keying
Second end of all unilateal conduction devices included in unit 110 processed connects corresponding second button jointly.Also, it is unidirectional
When conductive devices are turned on, electric current flows to the second end by first end.
Because each second button is connected by key control unit 110 with all of the port in corresponding one group of port, because
This, after being pressed in order to avoid the second button, is occurred short circuit, is ensured each port using one way conducting device between each port
Electric current can only all flow to the earth.Specifically, unilateal conduction device can be diode.At this moment, above-mentioned each unilateal conduction device
First end, the second end are respectively the positive pole of diode, negative pole.
It should be noted that because each first button is only connected with one of port of controller, when the first button quilt
After pressing, only a port is connected with the earth, without occurring short-circuit phenomenon between other ports, it is therefore not necessary to
Key control unit 110 is set, you can normally recognize whether each first button is pressed.
It is understood that the specific implementation of key control unit 110 is not limited to above-mentioned situation, if can with
After the second button each connected is pressed so that the level of all of the port with being each connected is pulled low to low level.
For example:Unilateal conduction device, which can also replace with other types, has the device of one direction electric conductivity.
In another embodiment there is provided a kind of keyboard control system, including controller and keyboard circuit, the keyboard electricity
Road is connected with i port of the controller, and the i is natural number, and the i>1.Each port access high level.It is described
Keyboard circuit includes the i the first buttons, j the second buttons and the j key control unit.The j is natural number, and
The j≤(2i-1-i)。
One end ground connection of each first button, and different first button the other end respectively from it is different described in
Port correspondence is connected.One end ground connection of each second button, and different second button the other end respectively with difference
The key control unit one end connection.The other end of each key control unit and m in all ports
The port connection.Wherein, 2≤m≤i.Also, one group of port of the other end connection of the different key control units
Combination is different.
Each key control unit is used for after second button with being each connected is pressed so that with each connecting
The level of all of the port connect is pulled low to low level.
In one of the embodiments, for any key control unit:The key control unit includes the m
Individual unilateal conduction device, and the quantity of the port that is connected with the key control unit of quantity of the unilateal conduction device
It is identical;The first end of each unilateal conduction device respectively with the different port for the other end for being connected to the key control unit
Connection, the second end the second button connection corresponding with the key control unit respectively of each unilateal conduction device;
Also, during the unilateal conduction break-over of device, electric current flows to second end by the first end.
In one of the embodiments, the unilateal conduction device includes diode.
In one of the embodiments, the high level is accessed in each port by a resistance respectively.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses several embodiments of the present utility model, and it describes more specific and detailed,
But therefore it can not be interpreted as the limitation to utility model patent scope.It should be pointed out that for the common skill of this area
For art personnel, without departing from the concept of the premise utility, various modifications and improvements can be made, these are belonged to
Protection domain of the present utility model.Therefore, the protection domain of the utility model patent should be determined by the appended claims.
Claims (8)
1. a kind of keyboard circuit, is connected with i port of controller, i is natural number, and i>1;Each high electricity of port access
It is flat;Characterized in that, the keyboard circuit includes i the first buttons, j the second buttons and j key control unit;J is certainly
So number, and j≤(2i-1-i);
One end ground connection of each first button, and different first button the other end respectively from the different ports
Correspondence connection;One end ground connection of each second button, and different second button the other end respectively from different institutes
State one end connection of key control unit;M in the other end of each key control unit and all ports are described
Port is connected;Wherein, 2≤m≤i;Also, the combination of one group of port of the other end connection of the different key control units
Mode is different;
Each key control unit is used for after second button with being each connected is pressed so that with being each connected
The level of all of the port is pulled low to low level.
2. keyboard circuit according to claim 1, it is characterised in that for any key control unit:It is described to press
Key control unit includes m unilateal conduction device, and the quantity of the unilateal conduction device is connected with the key control unit
The port quantity it is identical;The first end of each unilateal conduction device is respectively with being connected to the key control unit
The different port connection of the other end, the second end of each unilateal conduction device institute corresponding with the key control unit respectively
State the connection of the second button;Also, during the unilateal conduction break-over of device, electric current flows to second end by the first end.
3. keyboard circuit according to claim 2, it is characterised in that the unilateal conduction device includes diode.
4. the keyboard circuit according to any claim in claims 1 to 3, it is characterised in that each port difference
The high level is accessed by a resistance.
5. a kind of keyboard control system, including controller and keyboard circuit, i port of the keyboard circuit and the controller
Connection, i is natural number, and i>1;Each port access high level;Characterized in that, the keyboard circuit includes i first
Button, j the second buttons and j key control unit;J is natural number, and j≤(2i-1-i);
One end ground connection of each first button, and different first button the other end respectively from the different ports
Correspondence connection;One end ground connection of each second button, and different second button the other end respectively from different institutes
State one end connection of key control unit;M in the other end of each key control unit and all ports are described
Port is connected;Wherein, 2≤m≤i;Also, the combination of one group of port of the other end connection of the different key control units
Mode is different;
Each key control unit is used for after second button with being each connected is pressed so that with being each connected
The level of all of the port is pulled low to low level.
6. keyboard control system according to claim 5, it is characterised in that for any key control unit:Institute
Stating key control unit includes m unilateal conduction device, and the quantity and the key control unit of the unilateal conduction device
The quantity of the port of connection is identical;The first end of each unilateal conduction device respectively be connected to it is described by key control list
The different port connection of the other end of member, the second end of each unilateal conduction device is corresponding with the key control unit respectively
Second button connection;Also, during the unilateal conduction break-over of device, electric current flows to described second by the first end
End.
7. keyboard control system according to claim 6, it is characterised in that the unilateal conduction device includes diode.
8. the keyboard control system according to any claim in claim 5 to 7, it is characterised in that each port
The high level is accessed by a resistance respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201720137827.6U CN206601677U (en) | 2017-02-15 | 2017-02-15 | Keyboard circuit and keyboard control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201720137827.6U CN206601677U (en) | 2017-02-15 | 2017-02-15 | Keyboard circuit and keyboard control system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN206601677U true CN206601677U (en) | 2017-10-31 |
Family
ID=60146738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201720137827.6U Expired - Fee Related CN206601677U (en) | 2017-02-15 | 2017-02-15 | Keyboard circuit and keyboard control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN206601677U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106681519A (en) * | 2017-02-15 | 2017-05-17 | 深圳市科美集成电路有限公司 | Keyboard circuit and keyboard control system |
-
2017
- 2017-02-15 CN CN201720137827.6U patent/CN206601677U/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106681519A (en) * | 2017-02-15 | 2017-05-17 | 深圳市科美集成电路有限公司 | Keyboard circuit and keyboard control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104881387B (en) | A kind of USB connection methods and usb hub | |
CN105095132B (en) | The electronic installation and its operating method for the USB master-slave equipment pattern that can automatically switch | |
CN103684407B (en) | Otg | |
CN104461992A (en) | Electronic device | |
CN206601677U (en) | Keyboard circuit and keyboard control system | |
CN205610613U (en) | Keying circuit | |
CN107102917A (en) | A kind of reliability framework for improving multi-server system | |
CN201837695U (en) | Mobile terminal data line detection circuit and detection device | |
CN206863542U (en) | Key press detecting circuit | |
CN207265995U (en) | It is a kind of to use the key switch electromechanics road with ena-bung function linear voltage regulator | |
CN106681519A (en) | Keyboard circuit and keyboard control system | |
CN104917217B (en) | Three-phase electricity charging circuit and air conditioner | |
CN206147606U (en) | Interface circuit | |
CN205563342U (en) | Voltage output's regulating circuit | |
CN209046639U (en) | A kind of data transmit-receive circuit and communication instrument | |
CN210377434U (en) | Automatic switching control system of multi-network-port multi-host medical display | |
CN204886919U (en) | Plain type logic level converting circuit structure | |
CN201113981Y (en) | Press key detection circuit | |
CN207675861U (en) | A kind of GPIO mouthfuls of break-make test circuit | |
CN206341229U (en) | A kind of telecommunication circuit and household electrical appliance | |
CN206400348U (en) | A kind of construction machinery controller | |
CN207232885U (en) | The logic circuit and laptop of a kind of power down preventing | |
CN101697564B (en) | Circuit structure capable of realizing critical failure signal generation function on network communication terminal equipment | |
CN101430637B (en) | Apparatus capable of detecting independent redundancy magnetic disk array initialization | |
CN2682479Y (en) | Computer I/O port multiposition switch data information input control circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171031 Termination date: 20180215 |
|
CF01 | Termination of patent right due to non-payment of annual fee |