CN101013896A - Keyboard scanning circuit and scanning method thereof - Google Patents

Keyboard scanning circuit and scanning method thereof Download PDF

Info

Publication number
CN101013896A
CN101013896A CN 200610063432 CN200610063432A CN101013896A CN 101013896 A CN101013896 A CN 101013896A CN 200610063432 CN200610063432 CN 200610063432 CN 200610063432 A CN200610063432 A CN 200610063432A CN 101013896 A CN101013896 A CN 101013896A
Authority
CN
China
Prior art keywords
output
key scan
line
key
button
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
Application number
CN 200610063432
Other languages
Chinese (zh)
Other versions
CN100546202C (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 CHINALC SEMICONDUCTOR CO Ltd
Original Assignee
SHENZHEN CHINALC SEMICONDUCTOR 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 CHINALC SEMICONDUCTOR CO Ltd filed Critical SHENZHEN CHINALC SEMICONDUCTOR CO Ltd
Priority to CNB2006100634322A priority Critical patent/CN100546202C/en
Publication of CN101013896A publication Critical patent/CN101013896A/en
Application granted granted Critical
Publication of CN100546202C publication Critical patent/CN100546202C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses one key scanning circuit and its circuit scanning method, wherein, the scanning circuit comprises I/O cross array, key output unit and key scanning circuit; each key scanning line output is as I/O cross array input wire and output wires. The scanning method is to judge effective key operation when the key output line unit has two level jumps. The invention forms NX(N-1)/2 keys for the N pieces of IO scanning holes.

Description

Keyboard scanning circuit and scan method thereof
Technical field
The present invention relates to the scanning circuit and the scan method of a kind of keyboard scanning circuit and scan method, particularly a kind of matrix type structure.
Background technology
Existing keyboard scanning circuit adopts the matrix structure form more, every input, output line use an IO scanning mouth, scan matrix for X*Y, be X scanning output line, Y scanning incoming line, the output scanning signal is to Y different scanning incoming lines in order for X scanning output line, and the internal judgment circuit sends different sign indicating numbers according to the different output lines and the combination of incoming line.As chip 3010,64 keys need 16 IO scanning mouths, 8 are used for incoming line, other 8 are used for output line, and 7461,32 keys of chip need 12 IO mouths, 8 are used for incoming line, other 4 are used for output line etc., and this scan mode is faced with very big cost pressure in the so fierce market of this competition today, therefore need go to seek a kind of more cheap scan mode.Along with development of science and technology, the application of the progress in epoch, particularly remote controller more and more widely, the bond number of pressing on the remote controller also gets more and more, but the quality requirement to remote controller is more and more higher, and cost pressure is also increasing, so traditional scan mode can not satisfy requirement cheaply.
Summary of the invention
Number of keys needs a large amount of technical problems that scan mouth for a long time in the prior art in order to solve in the present invention, has proposed a kind of keyboard scanning circuit and scan method thereof of the IO of saving scanning mouth.
The keyboard scanning circuit that the present invention proposes comprises: input and output cross matrix, button output line unit, also comprise the key scan line circuit, every key scan line in this key scan line circuit all comprises the reverser of two serial connections, and each sweep signal DO exports KIO through two corresponding reverser outputs as each key scan line; The output KIO while of each key scan line is as the incoming line and the output line of input and output cross matrix.
Preferably, every button output line in the described button output line unit comprises the NAND gate of a reverser and one two input, together as the input of NAND gate, the output EI of described NAND gate is as the judgement signal of actuation of keys through reverser and corresponding sweep signal DO for each key scan line output KIO.
Preferably, the reverser away from sweep signal DO is to be made of a undersized PMOS pipe and a large-sized NMOS pipe in described each key scan line.
The key scan method that the present invention proposes may further comprise the steps:
1) sweep signal of output low level pulse;
2) monitor the output level saltus step situation of each button output line unit, when having and only having two outputs to produce the level saltus steps on the EI, be judged as effective actuation of keys and take place.
Preferably, two adjacent low level pulses in the step 1) have a time interval.
Preferably, step 2) when having monitored two outputs when producing the level saltus steps, be judged as an actuation of keys and taken place in, button be input, the output line corresponding key of these two output connections.
Technique effect of the present invention is: because each key scan line is simultaneously as incoming line and output line, it is bidirectional interface, different key scan lines can constitute the button point in twos, and the key scan line can only be as incoming line or output line in the prior art, and incoming line corresponding key scan line can only constitute the button point with output line corresponding key scan line combination.Number of keys of the present invention can constitute N * (N 1)/2 buttons for N IO scanning mouth, has increased the quantity of button greatly, has reduced production cost.
Description of drawings
Fig. 1 is key scan line of the present invention and output line circuit diagram thereof;
Fig. 2 is a sweep signal output waveform figure of the present invention;
Fig. 3 is the keyboard scanning circuit figure of 4 IO mouths in the preferred embodiment of the present invention.
Embodiment
Further specify technical scheme of the present invention below in conjunction with accompanying drawing and by specific embodiment.As shown in Figure 1, sweep signal DO (0) is through twice anti-phase back output KIO (0) of two reversers.Output KIO (0) while of key scan line is as the incoming line and the output line of button cross matrix.The output KIO (0) of key scan line imports a NAND gate through behind the reverser with sweep signal DO (0), and its output EI (0) is as the judgement signal of actuation of keys.That reverser away from sweep signal DO in each key scan line is to be made of a undersized PMOS pipe and a large-sized NMOS pipe, and the output of this reverser constitutes output KIO.
As shown in Figure 2, sweep signal DO is the signal that internal circuit produces, and is low level pulse, exports square wave in order.And the output low level pulse of two adjacent sweep signals has certain time interval, handles can for like this sequence circuit of back and bringing great convenience, and can avoid the generation of race hazard.Obtain after oppositely through twice because the output KIO of key scan line is sweep signal DO, so its waveform is identical with the waveform of sweep signal DO.
When the output KIO (0) of key scan line does not link to each other with the output of other key scan line, by the circuit of Fig. 1 as can be known its output EI (0) keep high level always, can the output low level pulse.
As shown in Figure 3, the keyboard scanning circuit with 4 IO mouths is that example specifies scanning circuit of the present invention and method.4 tunnel sweep signal DO (0)-DO (3) is respectively through exporting KIO (0)-KIO (3) in the key scan line circuit 10 behind two reversers.Output KIO (0)-KIO (3) constitutes cross matrix as incoming line and output line simultaneously, and has formed 6 buttons of 1 to 6 on input and output cross matrix 11.Output KIO (0) is through importing a NAND gate with sweep signal DO (0) behind the reverser, and its output EI (0) is as the judgement signal of actuation of keys, and 4 IO scanning mouths have just constituted output EI (0)-EI (3).EI when button is not pressed (0)-EI (3) output keeps high level.
Be pressed to be the concrete scanning process of example explanation with button 1 below.When button 1 is pressed, KIO (0) links to each other with KIO (1), because the pulse of low level pulse ratio DO (1) output low level of DO (0) output early, the pulse of output KIO (1) output low level of the time ratio key scan line of output KIO (0) the output low level pulse of key scan line also early behind the process reverser.When the output KIO (0) of key scan line output low level pulse, this moment, the output KIO (1) of key scan line exported high level, because KIO (0) output low level is drop-down by big NMOS pipe, and KIO (1) exports high level by drawing on the little PMOS pipe, and pull-down capability is better than the ability of drawing, and finally they are drawn as near low level, through after once anti-phase, become high level, and DO this moment (1) is output as high level, so EI (1) is output as low level.Then when DO (1) output low level, same principle, EI (0) exports a low level.The internal logic decision circuitry just knows have key to press according to these two low level signals, and knows when have key to press, and the inner lock storage circuit will latch one group of code.Learning on EI (1) and EI (0) corresponding scanning line KIO (1) and the KIO (0) has button to press, and promptly button 1 is pressed.
Use 4 IO scanning mouths can only constitute 4 buttons for prior art, and the present invention can constitute 6 buttons.If 12 IO scanning mouthful, 36 buttons of multipotency structure of prior art adopt the present invention can construct 66 buttons, and number of keys increases greatly.
What deserves to be explained is, the replacement scheme of a lot of modification to be arranged, for example: export anti-phasely, increase the key scan number of pin, use some equivalent Symbol instead and replace, all belong to equivalent of the present invention based on principle of the present invention.Every key scan pin is two-way; promptly do output usefulness, do input usefulness again, each key scan pin all has sweep signal output; meet top computing formula by bond number and key scan pin, all should be considered as content disclosed in this invention and protection scope of the present invention.

Claims (6)

1. keyboard scanning circuit, comprise: input and output cross matrix (11), button output line unit (12), it is characterized in that, also comprise key scan line circuit (10), every key scan line in this key scan line circuit (10) all comprises the reverser of two serial connections, and each sweep signal D0 exports KIO through two corresponding reverser outputs as each key scan line; The output KIO while of each key scan line is as the incoming line and the output line of input and output cross matrix (11).
2. keyboard scanning circuit according to claim 1, it is characterized in that, every button output line in the described button output line unit (12) comprises the NAND gate of a reverser and one two input, together as the input of NAND gate, the output EI of described NAND gate is as the judgement signal of actuation of keys through reverser and corresponding sweep signal D0 for each key scan line output KIO.
3. keyboard scanning circuit according to claim 1 and 2 is characterized in that, the reverser away from sweep signal D0 in described each key scan line is to be made of a undersized PMOS pipe and a large-sized NMOS pipe.
4. a key scan method is characterized in that, said method comprising the steps of:
1) sweep signal of output low level pulse;
2) the output level saltus step situation of monitoring button output line unit, as and when only having two outputs to produce the level saltus steps, be judged as effective actuation of keys and take place.
5. key scan method according to claim 4 is characterized in that, two adjacent low level pulses in the described step 1) have a time interval.
6. according to claim 4 or 5 described key scan methods, it is characterized in that, described step 2) two outputs have been monitored when producing the level saltus steps when button output line circuit (12) in, be judged as an actuation of keys and taken place, button is these two input, output line corresponding key that output connects.
CNB2006100634322A 2006-11-01 2006-11-01 Keyboard scanning circuit Expired - Fee Related CN100546202C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100634322A CN100546202C (en) 2006-11-01 2006-11-01 Keyboard scanning circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100634322A CN100546202C (en) 2006-11-01 2006-11-01 Keyboard scanning circuit

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN2009101350285A Division CN101552611B (en) 2006-11-01 2006-11-01 Method for scanning keyboard scanning circuit

Publications (2)

Publication Number Publication Date
CN101013896A true CN101013896A (en) 2007-08-08
CN100546202C CN100546202C (en) 2009-09-30

Family

ID=38701218

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100634322A Expired - Fee Related CN100546202C (en) 2006-11-01 2006-11-01 Keyboard scanning circuit

Country Status (1)

Country Link
CN (1) CN100546202C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888250A (en) * 2010-06-03 2010-11-17 无锡力芯微电子股份有限公司 Key system and method thereof
CN101943948B (en) * 2009-07-07 2012-11-14 扬智科技股份有限公司 Keyboard scanning device and keyboard scanning method
CN103095308A (en) * 2012-12-31 2013-05-08 杭州士兰微电子股份有限公司 I/O interface circuit and button scanning device containing the same and scanning method
CN109598872A (en) * 2018-12-06 2019-04-09 深圳市新国都支付技术有限公司 Apply the method and system of interference signal to keyboard by analog waveform
CN109698705A (en) * 2019-01-09 2019-04-30 上海中基国威电子股份有限公司 A kind of multi-thread key judges system
CN110995276A (en) * 2019-05-05 2020-04-10 广州安广电子科技股份有限公司 Three-line key scanning method for T-type scanning key expansion

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112583417B (en) 2019-09-30 2023-08-29 瑞昱半导体股份有限公司 Method for scanning keyboard circuit

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2264940Y (en) * 1996-01-08 1997-10-15 刘春一 Keyboard-type electronic burglar alarm controller
US5805085A (en) * 1996-07-26 1998-09-08 United Microelectronics Corporation Apparatus and method for scanning a key matrix
US6980135B2 (en) * 2002-01-11 2005-12-27 Alcor Micro, Corp. Logic circuit using hardware to process keyboard scanning

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101943948B (en) * 2009-07-07 2012-11-14 扬智科技股份有限公司 Keyboard scanning device and keyboard scanning method
CN101888250A (en) * 2010-06-03 2010-11-17 无锡力芯微电子股份有限公司 Key system and method thereof
CN103095308A (en) * 2012-12-31 2013-05-08 杭州士兰微电子股份有限公司 I/O interface circuit and button scanning device containing the same and scanning method
CN103095308B (en) * 2012-12-31 2015-07-29 杭州士兰微电子股份有限公司 I/O interface circuit and comprise key scan device and the scan method of this circuit
CN109598872A (en) * 2018-12-06 2019-04-09 深圳市新国都支付技术有限公司 Apply the method and system of interference signal to keyboard by analog waveform
CN109598872B (en) * 2018-12-06 2021-02-05 深圳市新国都支付技术有限公司 Method and system for applying interference signal to keyboard through analog waveform
CN109698705A (en) * 2019-01-09 2019-04-30 上海中基国威电子股份有限公司 A kind of multi-thread key judges system
CN110995276A (en) * 2019-05-05 2020-04-10 广州安广电子科技股份有限公司 Three-line key scanning method for T-type scanning key expansion
CN110995276B (en) * 2019-05-05 2024-05-28 广州安广电子科技股份有限公司 Three-wire key scanning method for T-shaped scanning key expansion

Also Published As

Publication number Publication date
CN100546202C (en) 2009-09-30

Similar Documents

Publication Publication Date Title
CN100546202C (en) Keyboard scanning circuit
CN101552611B (en) Method for scanning keyboard scanning circuit
CN201830377U (en) Analogue/digital video conversion device for computer
CN201984777U (en) LED (light-emitting diode) digital tube driving circuit
CN105468164B (en) Matrix keyboard scanner uni coding circuit
CN102033568A (en) Multifunctional signal generator and realization method thereof
JP2003150373A5 (en)
CN101634896A (en) Keyboard interface circuit and control method thereof
CN202772872U (en) Circuit design structure for scanning of keyboard and expansion reuse of IO port
CN100498863C (en) Variable length coding method and circuit thereof
CN104202055B (en) Key circuit for detecting key trigger sate in real time, gamepad and method
CN208239817U (en) A kind of driving chip and electronic watch of electronic watch
CN201364568Y (en) Electronic whiteboard system adopting multifunctional digital keyboard
CN201255865Y (en) Keyboard interface circuit
CN200993819Y (en) Variable length coding circuit
CN201556834U (en) Control system of laser
CN203800922U (en) Function switching circuit suitable for chip test
CN105471439B (en) Independent keyboard scanner uni coding circuit
CN205318332U (en) Discernment of stand alone type key board operation and coding circuit
CN108491091A (en) A kind of independent keyboard state recognition and coding method
CN211236893U (en) Servo driving system based on FPGA and TM1638 expansion IO port
CN114974105B (en) Low-power-consumption pixel scanning circuit and method applied to micro display chip
CN204131504U (en) A kind of key circuit of real-time detection button trigger state and game paddle
CN107659315A (en) A kind of sparse binary-coding circuit for compressed sensing
CN203800920U (en) Signal conversion circuit applied to fuse circuit

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
EE01 Entry into force of recordation of patent licensing contract

Assignee: Hunan Lu Hua Microelectronics Co., Ltd.

Assignor: Shenzhen ChinalC Semiconductor Co., Ltd.

Contract fulfillment period: 2009.6.1 to 2019.5.31 contract change

Contract record no.: 2009430000081

Denomination of invention: Keyboard scanning circuit and method

Granted publication date: 20090930

License type: Exclusive license

Record date: 2009.9.28

LIC Patent licence contract for exploitation submitted for record

Free format text: EXCLUSIVE LICENSE; TIME LIMIT OF IMPLEMENTING CONTACT: 2009.6.1 TO 2019.5.31; CHANGE OF CONTRACT

Name of requester: HUNAN LUHUA MICRO-ELECTRONICS CO.,LTD.

Effective date: 20090928

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090930

Termination date: 20111101