CN101102348A - A keyboard circuit and method for recognizing hand-held mobile device - Google Patents

A keyboard circuit and method for recognizing hand-held mobile device Download PDF

Info

Publication number
CN101102348A
CN101102348A CNA2007101125004A CN200710112500A CN101102348A CN 101102348 A CN101102348 A CN 101102348A CN A2007101125004 A CNA2007101125004 A CN A2007101125004A CN 200710112500 A CN200710112500 A CN 200710112500A CN 101102348 A CN101102348 A CN 101102348A
Authority
CN
China
Prior art keywords
analog
digital converter
pin
button
keyboard circuit
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.)
Pending
Application number
CNA2007101125004A
Other languages
Chinese (zh)
Inventor
张文刚
时慧钦
李启瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNA2007101125004A priority Critical patent/CN101102348A/en
Publication of CN101102348A publication Critical patent/CN101102348A/en
Pending legal-status Critical Current

Links

Abstract

Said key board comprises multi keys; one end of each key is grounded. Said keyboard circuit also comprises an A/D converter; the other end of each key is respectively connected to one pin of said A/D converter via a series-connected resistor; each resistor has a different resistance; said A/D converter pin is also connected to the power via a pull-up resistor when the level value of the pin of the A/D converter is not equal to the default level value, the A/D converter is started to make sampling, and according to the sampling result, makes further treatment.

Description

A kind of keyboard circuit and method that is used for the identification of handheld mobile device button
Technical field
Mobile phone technology in the design of communications of the present invention field is specifically related to be used for keyboard circuit and the method that the button on the handheld mobile device is discerned.
Background technology
Keyboard is very important for equipment such as mobile phones, and it is the important means of man-machine interaction.Present cell phone keyboard circuit adopts general purpose interface bus (GPIO) to constitute the mode of key-press matrix more, as the patent No. is CN200620006542, name is called " cell phone keyboard and have the mobile phone of this keyboard " and the patent No. is CN200420013428, the patent that name is called " a kind of keyboard circuit " all discloses a kind of matrix keyboard circuit, but the matrix keyboard circuit in above two pieces of technical schemes that patent disclosed all without exception taken more GPIO interface, this has brought the complexity in the keyboard structure design.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of keyboard circuit and method that is used for the identification of handheld mobile device button, circuit is simple, overcome the defective that existing matrix keyboard circuit takies more GPIO interface, can detect easily when button is pressed is which button is pressed.
In order to address the above problem, the invention provides a kind of keyboard circuit that is used for the identification of handheld mobile device button, comprise a plurality of buttons, one end ground connection of each button, described keyboard circuit also comprises an analog to digital converter, the other end of described each button links to each other with the pin of described analog to digital converter by a series resistor respectively, and the resistance of each series resistor is different, and the pin of described analog to digital converter is also by moving power supply on the pull-up resistor.
Further, described keyboard circuit also comprises a baseband chip, and described analog to digital converter is positioned at baseband chip.
Further, described analog to digital converter detects the level value of its pin at interval with certain hour, when detecting this level value and be not equal to the acquiescence level, starts analog-to-digital conversion.
Further, described keyboard circuit also comprises an interrupt circuit, this interrupt circuit one end links to each other with the interrupt pin of baseband chip, the other end is electrically connected with the pin of described analog to digital converter, when interrupt circuit is not equal to the acquiescence level at the level value of the pin that detects described analog to digital converter, give interruption of described baseband chip, in interrupt handling routine, start analog-to-digital conversion.
Further, the resistance of described each series resistor guarantees when button is pressed, within the sample range of level value at described analog to digital converter of the pin place of analog to digital converter generation.
The present invention also provides a kind of method that is used for the identification of handheld mobile device button, may further comprise the steps:
End ground connection with each button, the other end links to each other with the pin of described analog to digital converter by a series resistor respectively, and the resistance of each series resistor is different, and between the pin of described analog to digital converter and power supply a pull-up resistor is set, and constitutes a keyboard circuit;
When the level variate of the pin of described analog to digital converter is not equal to the acquiescence level, start analog-to-digital conversion, and according to the digital signal after the conversion identify current by button.
Further, this keyboard circuit also is provided with a baseband chip, described analog to digital converter is arranged in the described baseband chip, and between the pin of the interrupt pin of this baseband chip and analog to digital converter, also be provided with an interrupt circuit, when this interrupt circuit changes at the level of the pin that detects described analog to digital converter, give interruption of described baseband chip, in interrupt handling routine, start analog-to-digital conversion.
Further, described analog to digital converter detects the level value of its pin at interval with certain hour, when detecting this level value and be not equal to the acquiescence level, starts analog-to-digital conversion.
Further, after analog to digital converter starts, the level value that obtains is converted to key value corresponding to current button, identifies current which button according to this value and press, in program, this button operation is responded again, finish user's button operation.
Further, the resistance of described each series resistor guarantees when button is pressed, within the sample range of level value at described analog to digital converter of the pin place of analog to digital converter generation.
In sum, a kind of keyboard circuit and method that is used for the identification of handheld mobile device button provided by the invention, circuit is simple, powerful, can not only detect single button and whether press, and can also detect the situation that a plurality of buttons are pressed simultaneously.
Description of drawings
Fig. 1 is a keyboard circuit structure chart of the present invention.
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is described in detail.
The present invention utilizes the analog to digital converter ADC can be with the characteristic of analog signal conversion for digital signal, and the pull-up resistor dividing potential drop that each button is connected in series the series resistor of mutually different resistance this button when each button is pressed and ADC pin produces the level value of a uniqueness.ADC determines that according to this level value corresponding to the uniqueness of button which button presses.
Present embodiment relates to a kind of keyboard circuit and method that is used for the identification of handheld mobile device button, as shown in Figure 1, comprise a n button and a baseband chip, comprise an analog to digital converter ADC in the baseband chip, described keyboard circuit can also comprise an interrupt circuit, one end of described interrupt circuit is electrically connected mutually with the pin of described ADC, and the other end links to each other with the interrupt pin of described baseband chip, and n button represented with K1~Kn; I (the end ground connection of individual button of 1≤i≤n), the other end links to each other with the pin of ADC by a series resistor Ri, the resistance of each series resistor is different, and the resistance of serial connection should guarantee that when button is pressed the level value that produces at the pin place of ADC is positioned within the ADC sample range; The pin of described ADC is also by moving power Vcc on the pull-up resistor Ru.When not having button to press, the pin of ADC is always high level Vcc; When button Ki presses, the Ki circuit turn-on, Ri and Ru constitute bleeder circuit, make the level on the ADC pin become Vdetect, can calculate the value of Vdetect by following formula:
Vdetect=Vcc*Ri/(Ri+Ru)
After ADC starts Vdetect is converted to key value, identifies current which button according to this value and press, in program, this button operation is responded again, finish user's button operation corresponding to current button.
Can the method by the ADC poll detect the variation of level value, ADC detects the level value of pin at interval with certain hour, when detecting this level value and be not equal to the acquiescence level, starts the ADC sampling, sampled value is further processed again.Also can start ADC, when button is pressed, give interruption of baseband chip, in interrupt handling routine, start the ADC sampling, again the value that samples further be handled by interrupt circuit by the form of interrupting.

Claims (10)

1, a kind of keyboard circuit that is used for the identification of handheld mobile device button, comprise a plurality of buttons, one end ground connection of each button, it is characterized in that, described keyboard circuit also comprises an analog to digital converter, the other end of described each button links to each other with the pin of described analog to digital converter by a series resistor respectively, and the resistance of each series resistor is different, and the pin of described analog to digital converter is also by moving power supply on the pull-up resistor.
2, keyboard circuit as claimed in claim 1 is characterized in that, described keyboard circuit also comprises a baseband chip, and described analog to digital converter is positioned at baseband chip.
3, keyboard circuit as claimed in claim 1 is characterized in that, described analog to digital converter detects the level value of its pin at interval with certain hour, when detecting this level value and be not equal to the acquiescence level, starts analog-to-digital conversion.
4, keyboard circuit as claimed in claim 1, it is characterized in that, described keyboard circuit also comprises an interrupt circuit, this interrupt circuit one end links to each other with the interrupt pin of baseband chip, the other end is electrically connected with the pin of described analog to digital converter, when interrupt circuit is not equal to the acquiescence level at the level value of the pin that detects described analog to digital converter, give interruption of described baseband chip, in interrupt handling routine, start analog-to-digital conversion.
5, keyboard circuit as claimed in claim 1 is characterized in that, the resistance of described each series resistor guarantees when button is pressed, within the sample range of level value at described analog to digital converter of the pin place of analog to digital converter generation.
6, a kind of method that is used for the identification of handheld mobile device button may further comprise the steps:
End ground connection with each button, the other end links to each other with the pin of described analog to digital converter by a series resistor respectively, and the resistance of each series resistor is different, and between the pin of described analog to digital converter and power supply a pull-up resistor is set, and constitutes a keyboard circuit;
When the level variate of the pin of described analog to digital converter is not equal to the acquiescence level, start analog-to-digital conversion, and according to the digital signal after the conversion identify current by button.
7, method as claimed in claim 6, it is characterized in that, this keyboard circuit also is provided with a baseband chip, described analog to digital converter is arranged in the described baseband chip, and between the pin of the interrupt pin of this baseband chip and analog to digital converter, also be provided with an interrupt circuit, when this interrupt circuit changes at the level of the pin that detects described analog to digital converter, give interruption of described baseband chip, in interrupt handling routine, start analog-to-digital conversion.
8, method as claimed in claim 6 is characterized in that, described analog to digital converter detects the level value of its pin at interval with certain hour, when detecting this level value and be not equal to the acquiescence level, starts analog-to-digital conversion.
9, method as claimed in claim 6 is characterized in that, after analog to digital converter starts, the level value that obtains is converted to key value corresponding to current button, identify current which button according to this value and press, in program, this button operation is responded again, finish user's button operation.
10, method as claimed in claim 6 is characterized in that, the resistance of described each series resistor guarantees when button is pressed, within the sample range of level value at described analog to digital converter of the pin place of analog to digital converter generation.
CNA2007101125004A 2007-06-28 2007-06-28 A keyboard circuit and method for recognizing hand-held mobile device Pending CN101102348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101125004A CN101102348A (en) 2007-06-28 2007-06-28 A keyboard circuit and method for recognizing hand-held mobile device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101125004A CN101102348A (en) 2007-06-28 2007-06-28 A keyboard circuit and method for recognizing hand-held mobile device

Publications (1)

Publication Number Publication Date
CN101102348A true CN101102348A (en) 2008-01-09

Family

ID=39036432

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101125004A Pending CN101102348A (en) 2007-06-28 2007-06-28 A keyboard circuit and method for recognizing hand-held mobile device

Country Status (1)

Country Link
CN (1) CN101102348A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493728B (en) * 2008-01-24 2011-08-10 中兴通讯股份有限公司 Line control push-button detecting and recognizing device and method capable of identifying combined key
CN102193634A (en) * 2010-03-03 2011-09-21 上海三旗通信科技有限公司 Method for realizing keyboard expansion by utilizing analog-to-digital conversion
CN101516167B (en) * 2008-02-18 2011-11-09 鸿富锦精密工业(深圳)有限公司 Electronic device
CN102594362A (en) * 2011-12-06 2012-07-18 广东九联科技股份有限公司 Key circuit based on analog-digital conversion
CN103019411A (en) * 2012-12-27 2013-04-03 深圳市海颖纪元科技有限公司 Dual-typing English letter input method
CN103066969A (en) * 2012-12-24 2013-04-24 无锡中星微电子有限公司 Electronic equipment
CN103345306A (en) * 2013-06-30 2013-10-09 惠州市德赛西威汽车电子有限公司 Keyboard circuit and key combination identifying method
CN103490786A (en) * 2012-06-11 2014-01-01 盛群半导体股份有限公司 Keyboard device and keyboard scanning circuit thereof
CN103677298A (en) * 2012-09-07 2014-03-26 曹伟林 Intelligent terminal and keyboard input method of intelligent terminal
CN103686010A (en) * 2013-11-22 2014-03-26 乐视致新电子科技(天津)有限公司 ADC port simulation multi-IO-port key input device, television-system and method
CN104714912A (en) * 2015-03-04 2015-06-17 惠州Tcl移动通信有限公司 Multi-card detection device, multi-card detection system and method thereof
CN107340872A (en) * 2016-04-29 2017-11-10 技嘉科技股份有限公司 Key system and its control method
CN107423196A (en) * 2017-07-07 2017-12-01 Tcl移动通信科技(宁波)有限公司 A kind of more neck condition detection method, detection device and mobile terminals
CN108491091A (en) * 2016-01-05 2018-09-04 湖南工业大学 A kind of independent keyboard state recognition and coding method

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493728B (en) * 2008-01-24 2011-08-10 中兴通讯股份有限公司 Line control push-button detecting and recognizing device and method capable of identifying combined key
CN101516167B (en) * 2008-02-18 2011-11-09 鸿富锦精密工业(深圳)有限公司 Electronic device
CN102193634A (en) * 2010-03-03 2011-09-21 上海三旗通信科技有限公司 Method for realizing keyboard expansion by utilizing analog-to-digital conversion
CN102594362A (en) * 2011-12-06 2012-07-18 广东九联科技股份有限公司 Key circuit based on analog-digital conversion
CN103490786B (en) * 2012-06-11 2016-05-25 盛群半导体股份有限公司 Keyboard device and keyboard scanning circuit thereof
CN103490786A (en) * 2012-06-11 2014-01-01 盛群半导体股份有限公司 Keyboard device and keyboard scanning circuit thereof
CN103677298A (en) * 2012-09-07 2014-03-26 曹伟林 Intelligent terminal and keyboard input method of intelligent terminal
CN103066969A (en) * 2012-12-24 2013-04-24 无锡中星微电子有限公司 Electronic equipment
CN103019411A (en) * 2012-12-27 2013-04-03 深圳市海颖纪元科技有限公司 Dual-typing English letter input method
CN103345306A (en) * 2013-06-30 2013-10-09 惠州市德赛西威汽车电子有限公司 Keyboard circuit and key combination identifying method
CN103345306B (en) * 2013-06-30 2017-08-01 惠州市德赛西威汽车电子股份有限公司 A kind of keyboard circuit and Macintosh recognition methods
CN103686010A (en) * 2013-11-22 2014-03-26 乐视致新电子科技(天津)有限公司 ADC port simulation multi-IO-port key input device, television-system and method
CN104714912A (en) * 2015-03-04 2015-06-17 惠州Tcl移动通信有限公司 Multi-card detection device, multi-card detection system and method thereof
CN104714912B (en) * 2015-03-04 2017-11-10 惠州Tcl移动通信有限公司 A kind of more card detection apparatus, more card detecting systems and its method
CN108491091A (en) * 2016-01-05 2018-09-04 湖南工业大学 A kind of independent keyboard state recognition and coding method
CN108491091B (en) * 2016-01-05 2019-10-18 湖南工业大学 A kind of independent keyboard state recognition and coding method
CN107340872A (en) * 2016-04-29 2017-11-10 技嘉科技股份有限公司 Key system and its control method
CN107423196A (en) * 2017-07-07 2017-12-01 Tcl移动通信科技(宁波)有限公司 A kind of more neck condition detection method, detection device and mobile terminals
CN107423196B (en) * 2017-07-07 2021-09-14 Tcl移动通信科技(宁波)有限公司 Multi-card-slot state detection method, detection equipment and mobile terminal

Similar Documents

Publication Publication Date Title
CN101102348A (en) A keyboard circuit and method for recognizing hand-held mobile device
CN101493728B (en) Line control push-button detecting and recognizing device and method capable of identifying combined key
CN201859203U (en) Key detection circuit of a singlechip or microprocessor with an analog-digital converter
TWI455609B (en) Electronic device, electronic system, and method for processing signals from an audio accessory thereof
CN100462899C (en) Capacitance contact board data input device and keyboard
EP2579131A2 (en) Key input apparatus and portable terminal
CN201039440Y (en) A cable control earphone for multi-key and single detection end
CN101394185A (en) Press-key detection circuit and method thereof
CN102571056A (en) Key with touch detection function and electronic device comprising same
CN101645947A (en) Method for realizing full keyboard of mobile phone
CN102857231B (en) A kind of key press detecting circuit
KR100718373B1 (en) Apparatus for recognizing to be pushed a key
CN102111467B (en) Mobile phone and key detection device thereof
CN213875939U (en) Key detection circuit
CN103178825B (en) Key control device
CN201667666U (en) Device for realizing mobile phone keyboard extension by utilizing analog-digital conversion
CN201662609U (en) Key detection circuit
CN1331026C (en) Method for realizing active function by assembled keys
US10224927B2 (en) Input device, terminal device, and computer-readable recording medium
CN101159939A (en) Method of performing input mode selection on mobile terminal
US20130275632A1 (en) Key detection circuit
CN201886411U (en) Portable electronic equipment
CN102594363A (en) Scanning method of capacitance touch button and press determination method
CN101888235B (en) Projection touch key
CN202798679U (en) Key detection 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080109