CN101599770A - A kind of keyboard and keyboard testing method - Google Patents
A kind of keyboard and keyboard testing method Download PDFInfo
- Publication number
- CN101599770A CN101599770A CNA2008100676324A CN200810067632A CN101599770A CN 101599770 A CN101599770 A CN 101599770A CN A2008100676324 A CNA2008100676324 A CN A2008100676324A CN 200810067632 A CN200810067632 A CN 200810067632A CN 101599770 A CN101599770 A CN 101599770A
- Authority
- CN
- China
- Prior art keywords
- row
- button
- triggered
- partial pressure
- keyboard
- 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.)
- Granted
Links
Images
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The present invention relates to a kind of keyboard and keyboard testing method, described keyboard comprises key-press matrix, it is characterized in that, also comprise row divider resistance chain between the row interface that is connected on described key-press matrix, be connected on the capable divider resistance chain between the line interface of described key-press matrix and be used to detect the voltage detecting circuit of partial pressure potential; After triggering button, voltage detecting circuit compares the capable partial pressure potential of the detected button that is triggered and row reference potential determining the train value of the described button that is triggered, and the row partial pressure potential and the row reference potential of the detected button that is triggered compared to determine the value of going of the described button that is triggered.Described method comprises capable partial pressure potential and the row partial pressure potential that detects the button that is triggered; Row and column partial pressure potential and row and column reference potential with the detected button that is triggered compares with the train value of determining the described button that is triggered and the value of going respectively.Implement keyboard of the present invention and keyboard testing method, keyboard just has only 4 pins.
Description
Technical field
The present invention relates to signal input apparatus, more particularly, relate to a kind of keyboard and keyboard testing method.
Background technology
The conventional keys matrix has the basic structure of tetragonal matrix, and its circuit diagram is shown in figure one, and this is the circuit of one 4 * 7 key-press matrix, and it has the pin of 4 row of the pin of 7 row of R1-R7 and C1-C4, totally 11 pins.Under normal condition, be column scan earlier, the row interface is set to the high potential of high impedance earlier, and line interface is set to low-impedance electronegative potential, if there is any one button to be pressed on the R1-R7, then will detect electronegative potential on the row interface, preservation is read in these data in system then, scan line then, the row interface is set to low-impedance electronegative potential, and line interface is set to the high potential of high impedance then.If there is any one button to be pressed on the C1-C4, then will detect electronegative potential on the line interface, system preserves this numerical value then, then the key assignments of the button that obtains pressing by this two numbers value.This keyboard circuit is very simple, realizes that easily shortcoming is exactly that pin is too many.If button data is many more, pin count is just many more.And on the control circuit board in order to support following more button need reserve more pin, caused versatility and processing characteristics all to reduce greatly.This circuit is arranged owing to do not possess the ability of the detection of pressing again, need special logical circuit realize pressing detection, thereby system's scanning that just must not stop has caused the consumption of unnecessary power consumption like this.
Therefore, need the keyboard that a kind of pin is simplified, power consumption is lower.
Summary of the invention
The technical problem to be solved in the present invention is, at the too much defective of the keyboard pin of prior art, the keyboard that provides a kind of pin to simplify.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of keyboard, comprise key-press matrix, wherein, also comprise row divider resistance chain between the row interface that is connected on described key-press matrix, be connected on the capable divider resistance chain between the line interface of described key-press matrix and be used to detect the voltage detecting circuit of partial pressure potential; After triggering button, voltage detecting circuit compares the capable partial pressure potential of the detected button that is triggered and row reference potential determining the train value of the described button that is triggered, and the row partial pressure potential and the row reference potential of the detected button that is triggered compared to determine the value of going of the described button that is triggered.
In keyboard of the present invention, comprise that also described keyboard also is included in after button is pressed, the control circuit of voltage is provided to described row divider resistance chain and row divider resistance chain.
In keyboard of the present invention, the interface of described keyboard is a four-wire interface.
In keyboard of the present invention, the resistance on the described divider resistance chain is substitutional resistance.
In keyboard of the present invention, described voltage detecting circuit also comprises analog to digital conversion circuit, be used for the row reference potential and the ratio of the capable partial pressure potential of the button that is triggered are converted to the train value of the button that is triggered, the ratio of the described row reference potential and the row partial pressure potential of the button that is triggered be converted to the row value of the button that is triggered.
In keyboard of the present invention, described capable reference potential is the total voltage that applies on the divider resistance chain of being expert at, and described row reference potential is the total voltage that is applied on the row divider resistance chain.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of keyboard testing method, comprising: a. detects the capable partial pressure potential and the row partial pressure potential of the button that is triggered after button triggers; B. the capable partial pressure potential of the detected button that is triggered and row reference potential are compared determining the train value of the described button that is triggered, the row partial pressure potential and the row reference potential of the detected button that is triggered compared to determine the value of going of the described button that is triggered.
In keyboard testing method of the present invention, described step a also comprises: after a1 triggered button, the divider resistance chain two ends of being expert at applied voltage, row divider resistance chain were opened circuit, with the be triggered capable partial pressure potential of button of detection; A2 applies voltage at row divider resistance chain two ends after triggering button, and the divider resistance chain of will going opens circuit, with the be triggered row partial pressure potential of button of detection.
In keyboard testing method of the present invention, described step b comprises: b1 will go the ratio of capable partial pressure potential of the reference potential and the button that is triggered and be converted to the train value of the button that is triggered; B2 is converted to the ratio of the row partial pressure potential of the row reference potential and the button that is triggered the row value of the button that is triggered.
In keyboard testing method of the present invention, described capable reference potential is the total voltage that is applied on the described capable divider resistance chain, and described row reference potential is the total voltage that is applied on the described row divider resistance chain.
Implement keyboard of the present invention and keyboard testing method, have following beneficial effect:
The present invention makes the numerous pin count on the original ranks be reduced to two respectively by the mode of resistance chain, and whole like this matrix keyboard just has only 4 pins.
Further, because the resistance of row and column can not change, therefore the current potential of each each row of row can not change yet, therefore the present invention possesses very high stability and versatility, and device is long-life resistance, cost is low, and the possibility that therefore generation mistake is discerned button also is very low.And be not subjected to the influence of voltage and current variation once to possess the ability of volume production greatly, and when not triggering button, whole keyboard is not applied voltage, thereby power consumption is little.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the circuit diagram of keyboard of the prior art;
Fig. 2 is the electrical block diagram of keyboard of the present invention;
Fig. 3 is the theory diagram of first embodiment of keyboard of the present invention;
Fig. 4 is the equivalent electric circuit that the button of keyboard of the present invention triggers;
Fig. 5 is the circuit theory schematic diagram of keyboard of the present invention;
Fig. 6 is the flow chart of keyboard testing method of the present invention.
Embodiment
Shown in Fig. 2 and 3, keyboard of the present invention comprises key-press matrix 100, is connected on row divider resistance chain L1 between the row interface of described key-press matrix 100, is connected on capable divider resistance chain H1, control circuit 101 between the line interface of described key-press matrix, is used to detect the voltage detecting circuit 102 of partial pressure potential.It all is substitutional resistance that row divider resistance chain L1 and row divider resistance chain H1 go up all resistance.After triggering button, voltage detecting circuit 102 compares the capable partial pressure potential of the detected button that is triggered and row reference potential determining the train value of the described button that is triggered, and the row partial pressure potential and the row reference potential of the detected button that is triggered compared to determine the value of going of the described button that is triggered.
Keyboard interface of the present invention is a four-wire interface, comprise line interface K1, K2 and row interface K3, K4, and it can support infinitely-great number of keys in theory.The beginning keyboard does not power up, just line interface K1 is held with drawing on the high resistant, then that K4 one end of row interface is drop-down with Low ESR, when button is pressed, will be responded interruption and carry out the row value of the button position that is triggered and the testing process (equivalent electric circuit such as Fig. 4) of train value like this thereby interrupt signal just drags down keyboard.Have only when pushing button, the control circuit 101 divider resistance chain H1 two ends of being expert at apply voltage, and L1 opens circuit with row divider resistance chain, and voltage detecting circuit 102 detects the capable partial pressure potential of the button that is triggered.As shown in Figure 5, the line interface K1 of the divider resistance chain H1 left end of being expert at connects power Vcc, and with the line interface K2 ground connection of right-hand member, L1 opens circuit with row divider resistance chain, detects K1 and the capable partial pressure potential between the button position of being pressed.Then analog to digital conversion circuit 103 will be gone the ratio of capable partial pressure potential of the reference potential and the button that is triggered and will be converted to the train value of the button that is triggered.Because resistance is that the equivalent difference that therefore determines the voltage of every ranks is to equate fully, therefore the voltage measuring value of every ranks also is linearly aligned, has regularity.
In one embodiment of the invention, described capable reference voltage is the total voltage that is applied on the described capable divider resistance chain H1, i.e. voltage between line interface K1 and K2.In this embodiment, can calculate the train value of the button that is triggered like this: train value=row partial pressure potential * row resistance number/total voltage.In another embodiment of the present invention, described capable reference voltage can be that row divider resistance chain H1 goes up each ohmically dividing potential drop, therefore: train value=row partial pressure potential/row reference voltage.The aforementioned calculation process all can realize by analog to digital conversion circuit 103.
Then, just drop-down with Low ESR to line interface K1 end, then with K4 one end of row interface with drawing on the high impedance, control circuit 101 will be gone divider resistance chain H1 and be opened circuit, and applying voltage at row divider resistance chain L1 two ends, voltage detecting circuit 102 detects the row partial pressure potential of the button that is triggered.Then analog to digital conversion circuit 103 is converted to the ratio of the row partial pressure potential of the row reference potential and the button that is triggered the row value of the button that is triggered.In one embodiment of the invention, described row reference voltage is the total voltage that is applied on the described row divider resistance chain L1.Because resistance is that the equivalent difference that therefore determines the voltage of every ranks is to equate fully, therefore the voltage measuring value of every ranks also is linearly aligned, has regularity.In this embodiment, can calculate the row value of the button that is triggered like this: row value=row partial pressure potential * row resistance number/total voltage.In another embodiment of the present invention, described row reference voltage can be that row divider resistance chain L1 goes up each ohmically dividing potential drop, therefore: row value=row partial pressure potential/row reference voltage.The aforementioned calculation process all can realize by analog to digital conversion circuit 103.Also can detect the train value of the button that is triggered earlier, detect its row value again.As long as apply voltage to row divider resistance chain L1 two ends earlier by control circuit 101, its order does not influence test result.
In other embodiments of the invention, can detect the capable partial pressure potential of the described button that is triggered earlier by voltage detecting circuit 102, and it is stored in the analog-digital conversion circuit as described 103, detect the row partial pressure potential of the described button that is triggered again by voltage detecting circuit 102, and it is stored in the analog-digital conversion circuit as described 103, the last capable partial pressure potential and the row partial pressure potential that will be obtained again by analog-digital conversion circuit as described 103 compares with the capable reference potential and the row reference potential that are stored in advance in this circuit respectively, to obtain to be triggered the train value and the row value of button.
Fig. 6 is the flow chart of steps of keyboard testing method of the present invention.As shown in Figure 6, after button triggered, in step 601, voltage detecting circuit 102 detected the capable partial pressure potential and the row partial pressure potential of the button that is triggered; Then the capable partial pressure potential of the analog to digital conversion circuit 103 detected buttons that are triggered and row reference potential are compared determining the train value of the described button that is triggered, the row partial pressure potential and the row reference potential of the detected button that is triggered compared the value of going with definite described button that is triggered.
In one embodiment of the invention, the control circuit 101 divider resistance chain H1 two ends of being expert at apply voltage, L1 opens circuit with row divider resistance chain, and voltage detecting circuit 102 detects the capable partial pressure potential of the button that is triggered, and it is stored in the analog-digital conversion circuit as described 103.Then control circuit 101 will be gone divider resistance chain H1 and be opened circuit, and apply voltage at row divider resistance chain L1 two ends, and voltage detecting circuit 102 detects the row partial pressure potential of the button that is triggered, and it is stored in the analog-digital conversion circuit as described 103.The last capable partial pressure potential and the row partial pressure potential that will be obtained again by analog-digital conversion circuit as described 103 compares with the capable reference potential and the row reference potential that are stored in advance in this circuit respectively, to obtain to be triggered the train value and the row value of button.
Claims (10)
1, a kind of keyboard, comprise key-press matrix, it is characterized in that, also comprise row divider resistance chain between the row interface that is connected on described key-press matrix, be connected on the capable divider resistance chain between the line interface of described key-press matrix and be used to detect the voltage detecting circuit of partial pressure potential;
After triggering button, voltage detecting circuit compares the capable partial pressure potential of the detected button that is triggered and row reference potential determining the train value of the described button that is triggered, and the row partial pressure potential and the row reference potential of the detected button that is triggered compared to determine the value of going of the described button that is triggered.
2, keyboard according to claim 1 is characterized in that, described keyboard also is included in after button is pressed, and the control circuit of voltage is provided to described row divider resistance chain and row divider resistance chain.
3, keyboard according to claim 1 is characterized in that, the interface of described keyboard is a four-wire interface.
4, keyboard according to claim 1 is characterized in that, the resistance on the described divider resistance chain is substitutional resistance.
5, keyboard according to claim 1, it is characterized in that, described voltage detecting circuit also comprises analog to digital conversion circuit, be used for the row reference potential and the ratio of the capable partial pressure potential of the button that is triggered are converted to the train value of the button that is triggered, the ratio of the described row reference potential and the row partial pressure potential of the button that is triggered be converted to the row value of the button that is triggered.
According to the described keyboard of claim 1-5, it is characterized in that 6, described capable reference potential is the total voltage that applies on the divider resistance chain of being expert at, described row reference potential is the total voltage that is applied on the row divider resistance chain.
7, a kind of keyboard testing method is characterized in that, comprising:
A. after button triggers, detect the capable partial pressure potential and the row partial pressure potential of the button that is triggered;
B. the capable partial pressure potential of the detected button that is triggered and row reference potential are compared determining the train value of the described button that is triggered, the row partial pressure potential and the row reference potential of the detected button that is triggered compared to determine the value of going of the described button that is triggered.
According to the described method of claim 7, it is characterized in that 8, described step a also comprises:
After a1 triggered button, the divider resistance chain two ends of being expert at applied voltage, and row divider resistance chain is opened circuit, and detected the capable partial pressure potential of the button that is triggered;
A2 applies voltage at row divider resistance chain two ends after triggering button, and the divider resistance chain of will going opens circuit, and detects the row partial pressure potential of the button that is triggered.
According to the described method of claim 7, it is characterized in that 9, described step b comprises:
B1 will go the ratio of capable partial pressure potential of the reference potential and the button that is triggered and be converted to the train value of the button that is triggered;
B2 is converted to the ratio of the row partial pressure potential of the row reference potential and the button that is triggered the row value of the button that is triggered.
According to the described method of claim 7-9, it is characterized in that 10, described capable reference potential is the total voltage that is applied on the described capable divider resistance chain, described row reference potential is the total voltage that is applied on the described row divider resistance chain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810067632 CN101599770B (en) | 2008-06-03 | 2008-06-03 | Keyboard and keyboard checking method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810067632 CN101599770B (en) | 2008-06-03 | 2008-06-03 | Keyboard and keyboard checking method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101599770A true CN101599770A (en) | 2009-12-09 |
CN101599770B CN101599770B (en) | 2013-10-02 |
Family
ID=41421047
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200810067632 Active CN101599770B (en) | 2008-06-03 | 2008-06-03 | Keyboard and keyboard checking method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101599770B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104142467A (en) * | 2013-05-07 | 2014-11-12 | 神讯电脑(昆山)有限公司 | Keyboard service life testing device |
CN106452453A (en) * | 2016-09-23 | 2017-02-22 | 中国地质大学(武汉) | Row/column matrix keyboard interface circuit and row/column matrix keyboard scanning method |
CN108011626A (en) * | 2017-12-14 | 2018-05-08 | 前海联大(深圳)技术有限公司 | A kind of push-button array input circuit realized based on ADC pins |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1310397A (en) * | 2000-02-24 | 2001-08-29 | 英业达股份有限公司 | Computer keyboard testing method |
CN1431575A (en) * | 2003-01-22 | 2003-07-23 | 王洋 | Intelligent secret keyboard with key values being changed randomly |
CN101162905A (en) * | 2006-10-13 | 2008-04-16 | 鸿富锦精密工业(深圳)有限公司 | Keyboard scanning circuit and method |
-
2008
- 2008-06-03 CN CN 200810067632 patent/CN101599770B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1310397A (en) * | 2000-02-24 | 2001-08-29 | 英业达股份有限公司 | Computer keyboard testing method |
CN1431575A (en) * | 2003-01-22 | 2003-07-23 | 王洋 | Intelligent secret keyboard with key values being changed randomly |
CN101162905A (en) * | 2006-10-13 | 2008-04-16 | 鸿富锦精密工业(深圳)有限公司 | Keyboard scanning circuit and method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104142467A (en) * | 2013-05-07 | 2014-11-12 | 神讯电脑(昆山)有限公司 | Keyboard service life testing device |
CN106452453A (en) * | 2016-09-23 | 2017-02-22 | 中国地质大学(武汉) | Row/column matrix keyboard interface circuit and row/column matrix keyboard scanning method |
CN108011626A (en) * | 2017-12-14 | 2018-05-08 | 前海联大(深圳)技术有限公司 | A kind of push-button array input circuit realized based on ADC pins |
Also Published As
Publication number | Publication date |
---|---|
CN101599770B (en) | 2013-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104459400B (en) | Detection circuit and detection method for self-tolerant touch screen | |
CN110856448B (en) | Capacitance detection circuit, touch device and terminal equipment | |
US10761638B2 (en) | Detection of piezoelectric sensor elements | |
US8248276B2 (en) | Scanning circuit and scanning method for keyboard | |
US20120262376A1 (en) | Membrane keyboard scan circuit, scan method and keyboard having the same | |
CN102866322A (en) | Touch device detection method | |
CN101795139A (en) | Method and circuit for detecting press key | |
CN101599770B (en) | Keyboard and keyboard checking method | |
CN201039440Y (en) | A cable control earphone for multi-key and single detection end | |
US20150006920A1 (en) | Keyboard circuit | |
CN102809722A (en) | Wake-up signal test system and test card thereof | |
CN200956611Y (en) | Keyboard detecting circuit and television receiver with same | |
CN103376406A (en) | Key detection circuit | |
CN211426637U (en) | Pin internal resistance measuring device | |
CN214384608U (en) | Simulation keyboard button test circuit | |
CN2804938Y (en) | Keyboard testing circuit | |
CN106646212A (en) | Multi-button detection device and detection method | |
CN111796208A (en) | Keyboard open-short circuit detection device and method | |
CN209803294U (en) | Detection apparatus for matrix button | |
CN109474282A (en) | Key board unit | |
CN202841104U (en) | Button detection circuit | |
CN206292323U (en) | Many key detection devices | |
CN103368581A (en) | Keyboard scanning method and keyboard adopting same | |
CN202383602U (en) | Touch-tone input device | |
CN101441243A (en) | Elevator cable detection device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |