CN101599770B - Keyboard and keyboard checking method - Google Patents

Keyboard and keyboard checking method Download PDF

Info

Publication number
CN101599770B
CN101599770B CN 200810067632 CN200810067632A CN101599770B CN 101599770 B CN101599770 B CN 101599770B CN 200810067632 CN200810067632 CN 200810067632 CN 200810067632 A CN200810067632 A CN 200810067632A CN 101599770 B CN101599770 B CN 101599770B
Authority
CN
China
Prior art keywords
row
button
triggered
divider resistance
partial pressure
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
CN 200810067632
Other languages
Chinese (zh)
Other versions
CN101599770A (en
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.)
Shenzhen Kaifa Technology Co Ltd
Original Assignee
Shenzhen Kaifa Technology 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 Shenzhen Kaifa Technology Co Ltd filed Critical Shenzhen Kaifa Technology Co Ltd
Priority to CN 200810067632 priority Critical patent/CN101599770B/en
Publication of CN101599770A publication Critical patent/CN101599770A/en
Application granted granted Critical
Publication of CN101599770B publication Critical patent/CN101599770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention relates to a keyboard and a keyboard checking method. The keyboard comprises a key-press matrix and is characterized by also comprising a column divider resistance chain, a row divider resistance chain and a voltage checking circuit, wherein the column divider resistance chain is connected in series between column interfaces of the key-press matrix, the row divider resistance chain is connected in series between row interfaces of the key-press matrix, and the voltage checking circuit is used for checking partial pressure potential. After a key is triggered, the voltage checking circuit compares the checked row partial pressure potential and the checked row reference potential of the triggered key to define a column value of the triggered key and compares the checked column partial pressure potential and the checked column reference potential of the triggered key to define a row value of the triggered key. The method comprises the steps: checking the row partial pressure potential and the column partial pressure potential of the triggered key; and respectively comparing the row and column partial pressure potential and the row and column reference potential of the triggered key to define the column value and the row value of the triggered key. The keyboard and the keyboard checking method are implemented, and the keyboard is only provided with four pins.

Description

A kind of keyboard and keyboard testing method
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 more many, pin count is just more many.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 between the line interface of described key-press matrix capable divider resistance chain and for detection of the voltage detecting circuit of partial pressure potential; After triggering button, voltage detecting circuit compares to determine the train value of the described button that is triggered with the capable partial pressure potential of the detected button that is triggered and row reference potential, and 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 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, the ratio that is used for the capable partial pressure potential will go reference potential and to be triggered button is converted to the train value of the button that is triggered, and the ratio of the row partial pressure potential of described row reference potential and the button that is triggered is converted to the capable 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 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 to determine the train value of the described button that is triggered, 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 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 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 identified 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, comprise key-press matrix 100, be connected on row divider resistance chain L1 between the row interface of described key-press matrix 100, be connected on capable divider resistance chain H1 between the line interface of described key-press matrix, control circuit 101, for detection of 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 to determine the train value of the described button that is triggered with the capable partial pressure potential of the detected button that is triggered and row reference potential, and 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 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 thereby interrupt signal just drags down keyboard like this.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 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 equivalent therefore to determine the difference of the voltage of every ranks 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.Above-mentioned computational 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 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 equivalent therefore to determine the difference of the voltage of every ranks 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.Above-mentioned computational 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 be detected 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, detected 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, 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 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 capable partial pressure potential and the row partial pressure potential of the button that is triggered; Then the capable partial pressure potential with the analog to digital conversion circuit 103 detected buttons that are triggered compares to determine the train value of the described button that is triggered with the row reference potential, and 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.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 train value and the row value of button.

Claims (6)

1. 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 between the line interface of described key-press matrix capable divider resistance chain and for detection of the voltage detecting circuit of partial pressure potential;
Described keyboard also comprises:
Control circuit is used for after button is pressed, and provides voltage to described row divider resistance chain and row divider resistance chain;
Analog to digital conversion circuit, the ratio that is used for the capable partial pressure potential will go reference potential and to be triggered button is converted to the train value of the button that is triggered, and the ratio of the row partial pressure potential of row reference potential and the button that is triggered is converted to the capable value of the button that is triggered;
After triggering button, described control circuit applies voltage at described capable divider resistance chain two ends, described row divider resistance chain is opened circuit, described voltage detecting circuit detects the capable partial pressure potential of the button that is triggered, and analog-digital conversion circuit as described will be gone reference potential and the ratio of the capable partial pressure potential of the button that is triggered and is converted to the train value of the button that is triggered; Described control circuit applies voltage at described row divider resistance chain two ends, described capable divider resistance chain is opened circuit, described voltage detecting circuit detects the row partial pressure potential of the button that is triggered, and analog-digital conversion circuit as described is converted to the ratio of the row partial pressure potential of described row reference potential and the button that is triggered the row value of the button that is triggered.
2. keyboard according to claim 1 is characterized in that, the interface of described keyboard is four-wire interface.
3. keyboard according to claim 1 is characterized in that, the resistance on the described divider resistance chain is substitutional resistance.
4. according to the described keyboard of claim 1-3, it is characterized in that 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; Perhaps described capable reference potential is each ohmically dividing potential drop on the described capable divider resistance chain, and described row reference potential is each ohmically dividing potential drop on the described row divider resistance chain.
5. a keyboard testing method is characterized in that, comprising:
A. after button triggers, detect 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 to determine the train value of the described button that is triggered, 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;
Wherein, described step a 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;
Described step b comprises:
B1 will go the ratio of capable partial pressure potential of 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 row reference potential and the button that is triggered the row value of the button that is triggered.
6. according to the described method of claim 5, it is characterized in that 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; Perhaps described capable reference potential is each ohmically dividing potential drop on the described capable divider resistance chain, and described row reference potential is each ohmically dividing potential drop on the described row divider resistance chain.
CN 200810067632 2008-06-03 2008-06-03 Keyboard and keyboard checking method Active CN101599770B (en)

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 CN101599770A (en) 2009-12-09
CN101599770B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142467B (en) * 2013-05-07 2017-08-15 神讯电脑(昆山)有限公司 Keyboard endurance 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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310397A (en) * 2000-02-24 2001-08-29 英业达股份有限公司 Computer keyboard testing method
CN1220128C (en) * 2003-01-22 2005-09-21 王洋 Intelligent secret keyboard with key values being changed randomly
CN100592637C (en) * 2006-10-13 2010-02-24 鸿富锦精密工业(深圳)有限公司 Keyboard scanning circuit and method

Also Published As

Publication number Publication date
CN101599770A (en) 2009-12-09

Similar Documents

Publication Publication Date Title
CN104459400B (en) Detection circuit and detection method for self-tolerant touch screen
US10761638B2 (en) Detection of piezoelectric sensor elements
US10408862B2 (en) Multiple channel capacitive voltage divider scanning method and apparatus
US8248276B2 (en) Scanning circuit and scanning method for keyboard
CN101566845A (en) Multi-channel synchronous vibration data collecting system
CN102866322A (en) Touch device detection method
CN101599770B (en) Keyboard and keyboard checking method
CN101860369A (en) Matrix keyboard and scanning method thereof
US20150006920A1 (en) Keyboard circuit
CN105676053B (en) A kind of touch screen defect detecting system
CN200956611Y (en) Keyboard detecting circuit and television receiver with same
CN207601213U (en) Multiple power supplys of central processing unit slot and grounding leg position conduction detecting system
US20130275632A1 (en) Key detection circuit
CN211426637U (en) Pin internal resistance measuring device
CN2804938Y (en) Keyboard testing circuit
CN207816930U (en) A kind of TP testers
CN106597248B (en) A kind of jigsaw detection device
CN106646212A (en) Multi-button detection device and detection method
CN107340466B (en) Analog signal detection system and analog signal detection method
CN111404528B (en) Reset circuit of charge amplifier and reset time acquisition method
CN209803294U (en) Detection apparatus for matrix button
CN101329379A (en) Method and device for detecting electronic component pin
CN111796208A (en) Keyboard open-short circuit detection device and method
CN206292323U (en) Many key detection devices
CN103368581A (en) Keyboard scanning method and keyboard adopting same

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