CN102624372A - A touch button circuit - Google Patents
A touch button circuit Download PDFInfo
- Publication number
- CN102624372A CN102624372A CN2011100337115A CN201110033711A CN102624372A CN 102624372 A CN102624372 A CN 102624372A CN 2011100337115 A CN2011100337115 A CN 2011100337115A CN 201110033711 A CN201110033711 A CN 201110033711A CN 102624372 A CN102624372 A CN 102624372A
- Authority
- CN
- China
- Prior art keywords
- control chip
- button
- touch key
- circuit
- pull
- 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
- 239000003990 capacitor Substances 0.000 claims description 14
- 238000012790 confirmation Methods 0.000 claims description 7
- 239000011324 bead Substances 0.000 claims description 3
- 238000001514 detection method Methods 0.000 abstract description 3
- 238000000034 method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Landscapes
- Electronic Switches (AREA)
Abstract
Description
技术领域 technical field
本发明涉及移动通信设备领域,尤其涉及一种触摸按键电路。The invention relates to the field of mobile communication equipment, in particular to a touch button circuit.
背景技术 Background technique
现有的触摸按键电路结构如图1所示,包括:连接主板控制芯片的接线端子11,所述接线端子包括七个端口;分压电阻12,所述分压电阻分为三组,每组包括两个并联连接的电阻;触摸按键控制芯片13,图1中共包括六个触摸按键控制芯片,滤波电容14以及与各个触摸按键控制芯片相连的二极管15。Existing touch button circuit structure as shown in Figure 1, comprises: connect the connection terminal 11 of main board control chip, described connection terminal comprises seven ports;
由图可以看出,现有的触摸按键电路采用触摸IC(integrated circuit,集成电路板)单通道输出方式,既一个触摸按键控制芯片对应一路通道输出。当需要支持的按键很多时,电路的结构将会非常复杂,并且成本也较高。It can be seen from the figure that the existing touch key circuit adopts a touch IC (integrated circuit, integrated circuit board) single-channel output mode, that is, one touch key control chip corresponds to one channel output. When there are many keys to be supported, the structure of the circuit will be very complicated and the cost will be high.
发明内容 Contents of the invention
有鉴于此,本发明提供一种触摸按键电路。其具体方案如下:In view of this, the present invention provides a touch button circuit. The specific plan is as follows:
一种触摸按键电路,包括:接线端子、多通道触摸按键控制芯片和多路按键电路,其中,所述多通道触摸按键控制芯片的通道数量大于或等于所述触摸按键电路的数量;A touch key circuit, comprising: wiring terminals, a multi-channel touch key control chip and a multi-channel key circuit, wherein the number of channels of the multi-channel touch key control chip is greater than or equal to the number of touch key circuits;
其中,每路按键电路分别包括:与所述多通道触摸按键控制芯片的输入端相连的按键,基极与所述输入端对应的输出端相连的三极管,输入端与所述三极管的射极相连的二极管,所述二极管的输出端与接线端子的按键端口相连;所述多通道触摸按键控制芯片输出端通过上拉电阻与电源相连;所述三极管集电极接地;Wherein, each button circuit includes: a button connected to the input terminal of the multi-channel touch button control chip, a triode whose base is connected to the output terminal corresponding to the input terminal, and an input terminal connected to the emitter of the triode a diode, the output end of the diode is connected to the key port of the terminal; the output end of the multi-channel touch key control chip is connected to the power supply through a pull-up resistor; the collector of the triode is grounded;
当所述按键没有按下时,所述输出端输出高电平,所述三极管截止,所述二极管导通,所述按键端口检测到高电平;When the button is not pressed, the output terminal outputs a high level, the triode is cut off, the diode is turned on, and the button port detects a high level;
当所述按键按下时,所述输出端输出低电平,所述三极管导通,所述二极管截止,所述按键端口检测到低电平。When the button is pressed, the output end outputs a low level, the transistor is turned on, the diode is turned off, and the button port detects a low level.
优选的,还包括:与所述多通道触摸按键控制芯片电源输入端相连的滤波模块,所述滤波模块包括:滤波电容。Preferably, it further includes: a filter module connected to the power input terminal of the multi-channel touch key control chip, and the filter module includes: a filter capacitor.
优选的,所述滤波模块还包括:与所述滤波电容并联的磁珠。Preferably, the filter module further includes: a magnetic bead connected in parallel with the filter capacitor.
优选的,所述按键电路还包括:一端与所述二极管输入端相连的分压电阻,所述分压电阻的另一端与所述接线端子相连。Preferably, the button circuit further includes: a voltage dividing resistor with one end connected to the input terminal of the diode, and the other end of the voltage dividing resistor connected to the connecting terminal.
优选的,还包括协议接口,所述协议接口与所述多通道触摸按键控制芯片相连,用于读取所述多通道触摸按键控制芯片内寄存器的值。Preferably, it also includes a protocol interface, the protocol interface is connected to the multi-channel touch key control chip, and is used to read the value of the internal register of the multi-channel touch key control chip.
优选的,还包括与所述接线端子上按键确认端口相连的下拉模块,所述下拉模块包括下拉电阻、下拉电容或并联连接的下拉电阻或下拉电容。Preferably, it also includes a pull-down module connected to the key confirmation port on the connection terminal, and the pull-down module includes a pull-down resistor, a pull-down capacitor, or a parallel-connected pull-down resistor or pull-down capacitor.
优选的,所述接线端子与具有可烧写程序的显示板相连。Preferably, the connecting terminal is connected to a display board with programmable programming.
由此可以看出,本发明公开的触摸按键电路采用多通道触摸按键控制芯片,并通过三极管和二极管的通断实现主程序控制芯片通过接线端子对按键状态进行检测,进而实现控制多个按键的目的,简化了电路结构,降低了器件的数量和成本,当需要支持多个按键时,可以方便的进行扩展,提高了可扩展性,降低了扩展的复杂度。It can be seen from this that the touch key circuit disclosed in the present invention adopts a multi-channel touch key control chip, and realizes that the main program control chip detects the state of the keys through the connection terminals through the on-off of the triode and the diode, and then realizes the control of multiple keys. The purpose is to simplify the circuit structure, reduce the number and cost of devices, and when it is necessary to support multiple keys, it can be easily expanded, which improves the scalability and reduces the complexity of expansion.
附图说明 Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为现有技术中的触摸按键电路的结构示意图;FIG. 1 is a schematic structural diagram of a touch button circuit in the prior art;
图2为本发明实施例公开的触摸按键电路的结构示意图;2 is a schematic structural diagram of a touch button circuit disclosed in an embodiment of the present invention;
图3为本发明实施例公开的接线端子与按键电路的连接结构示意图。FIG. 3 is a schematic diagram of the connection structure between the connection terminal and the button circuit disclosed by the embodiment of the present invention.
具体实施方式 Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明公开了一种触摸按键电路,其结构如图2所示,包括:接线端子21、多通道触摸按键控制芯片22、多路按键电路23,其中,所述多通道触摸按键控制芯片22的通道数量大于或等于所述触摸按键电路的数量,由图2可以看出,本实施例中的触摸按键电路包括6路按键电路。The invention discloses a touch button circuit, its structure is shown in Figure 2, including: a
其中,每路按键电路分别包括:与所述多通道触摸按键控制芯片22的输入端相连的按键231,基极与所述输入端对应的输出端相连的三极管232,输入端与所述三极管232的射极相连的二极管233,所述二极管233的输出端与接线端子21的按键端口相连;所述多通道触摸按键控制芯片22的输出端通过上拉电阻234与电源相连;所述三极管232的集电极接地。Wherein, each button circuit includes: a
以第1路按键电路为例,包括按键KEY_1,KEY_1与多通道触摸按键控制芯片的输入端CS1相连,然后通过第一输出端S1与三极管Q1的基极相连,Q1的发射极与二极管D1输入端相连,二极管D1的输出端与接线端子的按键接口相连。其他路按键电路的结构与第1路按键电路相同。Take the first button circuit as an example, including button KEY_1, KEY_1 is connected to the input terminal CS1 of the multi-channel touch button control chip, and then connected to the base of the transistor Q1 through the first output terminal S1, and the emitter of Q1 is input to the diode D1 The output terminal of the diode D1 is connected with the button interface of the wiring terminal. The structure of other button circuits is the same as that of the first button circuit.
接线端子21与6路按键电路相连的结构示意图如图3所示,由图可以看出,The schematic diagram of the structure of connecting
接线端子21包括:数据扫描端口GRID5、GRID6和GRID7,用于发送扫描信号扫描按键电路,GRID5对应第1和2路按键电路,GRID6对应第3和4路按键电路,GRID7对应第5和6路按键电路,按键确认端口KEY1和KEY2,用于确认是哪一个按键电路中的按键被按下,接地端口GND接地,电源端口VCC与5V电源相连。第2、4和6路按键电路共用一个按键确认端口KEY2,第1、3和5路按键电路共用另一个按键确认端口KEY1,将按键确认端口进行复用。The
本实施例采用动态扫描的控制方式,以第1路按键电路为例,当KEY_1没有被按下时,通道触摸按键控制芯片输出端输出高电平,所述三极管Q1截止,所述二极管D1导通,KEY1检测到高电平;若KEY_1按下,则多通道触摸按键控制芯片上的第一输出端口输出电平为低,此时三极管Q1导通,其他三极管不导通,二极管D1不导通,其他二极管导通,KEY1检测到有效电平-低电平,数据扫描端口GRID5确定是第1或第2路按键电路中的按键被按下,两个判别结果结合,确定出KEY_1被按下。This embodiment adopts the control method of dynamic scanning. Taking the first button circuit as an example, when KEY_1 is not pressed, the output terminal of the channel touch button control chip outputs a high level, the transistor Q1 is turned off, and the diode D1 is turned on. KEY1 detects a high level; if KEY_1 is pressed, the output level of the first output port on the multi-channel touch key control chip is low. At this time, the transistor Q1 is conductive, the other transistors are not conductive, and the diode D1 is not conductive. When the other diodes are turned on, KEY1 detects the active level-low level, the data scanning port GRID5 determines that the key in the 1st or 2nd key circuit is pressed, and the combination of the two discrimination results determines that KEY_1 is pressed Down.
本实施例中的接线端子21与具有可烧写程序的控制芯片的显示板相连,主控制芯片通过接线端子实现对按键状态进行检测,进而实现控制多个按键的目的。The
本实施例并不限定上述连接方式,只要是能够实现对各路按键电路进行检测,实现确定按键目的的连接关系都是本实施例保护的范围。This embodiment does not limit the above connection methods, as long as the detection of each key circuit and the connection relationship for determining the purpose of the key are all within the scope of protection of this embodiment.
进一步的,触摸按键电路还包括:与所述多通道触摸按键控制芯片22的电源输入端相连的滤波模块24,所述滤波模块24包括:滤波电容241,用于滤除通信过程中的交流干扰,更进一步的,滤波模块24还包括与滤波电容241并联的磁珠242,以起到改善电磁干扰,优化电路性能的作用。Further, the touch key circuit also includes: a
除上述结构外,如图2所示,本发明公开的触摸按键电路中的按键电路进一步包括:分压电阻235,分压电阻的一端与所述二极管输入端相连,另一端与接线端子相连。分压电阻235除了实现分压之外,还对按键电路起到限流作用,以保证二极管和三极管的工作的电流不至于超过负荷,造成损坏,影响电路的正常工作。In addition to the above structure, as shown in FIG. 2 , the key circuit in the touch key circuit disclosed by the present invention further includes: a voltage dividing
本实施例公开的触摸按键电路还包括:下拉模块25,本实施例中的下拉模块包括:并联连接的下拉电阻251和下拉电容252,以消除按键电路中的干扰,并确保按键确认端口KEY1和KEY2检测到的电平只有两种状态高或低,保证了检测过程的准确性。The touch button circuit disclosed in this embodiment also includes: a pull-
本实施例并不限定下拉模块必须同时包括下拉电阻和下拉电容,还可以单独的包括下拉电阻或下拉电容。This embodiment does not limit that the pull-down module must include both a pull-down resistor and a pull-down capacitor, and may also include a pull-down resistor or a pull-down capacitor separately.
进一步的,本实施例公开的触摸按键电路还包括协议接口26,通过一个4管脚的接线端子与多通道触摸按键控制芯片22相连,用于读取多通道触摸按键控制芯片22内寄存器的值。Further, the touch key circuit disclosed in this embodiment also includes a
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110033711.5A CN102624372B (en) | 2011-01-31 | 2011-01-31 | Touch key circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110033711.5A CN102624372B (en) | 2011-01-31 | 2011-01-31 | Touch key circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102624372A true CN102624372A (en) | 2012-08-01 |
CN102624372B CN102624372B (en) | 2014-06-18 |
Family
ID=46564076
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110033711.5A Expired - Fee Related CN102624372B (en) | 2011-01-31 | 2011-01-31 | Touch key circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102624372B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103633983A (en) * | 2013-12-09 | 2014-03-12 | 宁波翼动通讯科技有限公司 | Key extension circuit |
CN104080234A (en) * | 2013-03-28 | 2014-10-01 | 林万炯 | Touching and keying integrated LED driver |
CN108809290A (en) * | 2018-08-08 | 2018-11-13 | 中山市悦辰电子实业有限公司 | Anti-pulse interference circuit of touch key |
CN109407911A (en) * | 2018-12-20 | 2019-03-01 | 广州庆源电子有限公司 | Function of movable air conditioner display panel with touch function |
CN111530067A (en) * | 2020-04-02 | 2020-08-14 | 努比亚技术有限公司 | Method for controlling game by multiple keys, mobile terminal and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079911A (en) * | 2006-05-26 | 2007-11-28 | 三星电子株式会社 | Mobile phone having decoration cover used as key input means |
US20070291006A1 (en) * | 2006-06-16 | 2007-12-20 | Samsung Electronics Co., Ltd. | User interface apparatus and method |
US20080011596A1 (en) * | 2006-07-14 | 2008-01-17 | Samsung Electronics Co.; Ltd | Keypad and keypad assembly |
CN201230347Y (en) * | 2008-06-27 | 2009-04-29 | 天津三星电子有限公司 | Digital video camera with iris recognition system |
-
2011
- 2011-01-31 CN CN201110033711.5A patent/CN102624372B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079911A (en) * | 2006-05-26 | 2007-11-28 | 三星电子株式会社 | Mobile phone having decoration cover used as key input means |
US20070291006A1 (en) * | 2006-06-16 | 2007-12-20 | Samsung Electronics Co., Ltd. | User interface apparatus and method |
US20080011596A1 (en) * | 2006-07-14 | 2008-01-17 | Samsung Electronics Co.; Ltd | Keypad and keypad assembly |
CN201230347Y (en) * | 2008-06-27 | 2009-04-29 | 天津三星电子有限公司 | Digital video camera with iris recognition system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104080234A (en) * | 2013-03-28 | 2014-10-01 | 林万炯 | Touching and keying integrated LED driver |
CN104080234B (en) * | 2013-03-28 | 2016-08-17 | 赛尔富电子有限公司 | A kind of touch key-press integral LED driver |
CN103633983A (en) * | 2013-12-09 | 2014-03-12 | 宁波翼动通讯科技有限公司 | Key extension circuit |
CN108809290A (en) * | 2018-08-08 | 2018-11-13 | 中山市悦辰电子实业有限公司 | Anti-pulse interference circuit of touch key |
CN109407911A (en) * | 2018-12-20 | 2019-03-01 | 广州庆源电子有限公司 | Function of movable air conditioner display panel with touch function |
CN111530067A (en) * | 2020-04-02 | 2020-08-14 | 努比亚技术有限公司 | Method for controlling game by multiple keys, mobile terminal and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102624372B (en) | 2014-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3416062B1 (en) | Method and terminal device for establishing connection between devices with universal serial bus usb type-c interface | |
CN101989246A (en) | Electronic device capable of automatically switching master and slave equipment modes of universal serial bus (USB) | |
CN103684407B (en) | Otg | |
EP2863652B1 (en) | Audio interface self-adaptation device | |
US9183162B2 (en) | Electronic device capable of being debugged via earphone port | |
CN102624372A (en) | A touch button circuit | |
CN106301342A (en) | Interface circuit and terminal equipment | |
CN103678226A (en) | General purpose input/output (GPIO) port reuse circuit and method of chip | |
CN107632949A (en) | Data line identification circuit, method and terminal | |
CN102945010B (en) | Method and device for realizing automatic switching of sound source | |
TWI539829B (en) | Detecting circuit | |
CN102117253B (en) | System and method for multiplexing I2C devices with the same address | |
US12130764B2 (en) | Control circuit of blind-mating display having two type-C interfaces, control device thereof, and control method thereof | |
CN106027012B (en) | Pull-down resistor switch circuit | |
CN111615029A (en) | Wireless headset reset circuit, wireless headset and reset method | |
US20140184341A1 (en) | Integration of signal sampling within transistor amplifier stage | |
CN216388040U (en) | Signal detection device, touch pad and electronic equipment | |
CN101436425B (en) | Circuit for controlling power supply of functional module and wireless data terminal equipment | |
CN114003147B (en) | Signal detection device, touch pad and electronic equipment | |
CN203084823U (en) | Card reader capable of automatically identifying polarity of mobile audio interface | |
CN109344016B (en) | USB device capable of switching between host and device modes and switching method | |
CN203537553U (en) | An Interface circuit realizing serial port and infrared multiplex functions | |
CN220419955U (en) | Serial port circuit of video processor and video processor system | |
TWI801972B (en) | Generic interface card | |
CN105739661B (en) | Voltage conversion 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140618 |