CN106775177A - A kind of induced key detection method and detection means - Google Patents

A kind of induced key detection method and detection means Download PDF

Info

Publication number
CN106775177A
CN106775177A CN201710080762.0A CN201710080762A CN106775177A CN 106775177 A CN106775177 A CN 106775177A CN 201710080762 A CN201710080762 A CN 201710080762A CN 106775177 A CN106775177 A CN 106775177A
Authority
CN
China
Prior art keywords
induced key
signal
pulse
processor
key detection
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
CN201710080762.0A
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.)
JIANGSU QINHENG CO Ltd
Original Assignee
JIANGSU QINHENG 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 JIANGSU QINHENG CO Ltd filed Critical JIANGSU QINHENG CO Ltd
Priority to CN201710080762.0A priority Critical patent/CN106775177A/en
Publication of CN106775177A publication Critical patent/CN106775177A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/94Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the way in which the control signals are generated
    • H03K17/96Touch switches
    • H03K17/962Capacitive touch switches
    • H03K17/9622Capacitive touch switches using a plurality of detectors, e.g. keyboard
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M11/00Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys
    • H03M11/003Phantom keys detection and prevention

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electronic Switches (AREA)

Abstract

The present invention discloses a kind of induced key detection means and detection method, detection method includes that pulse generation module receives the push button signalling selected through port selector, generation pulse signal, counter receives the pulse signal, the counter is arranged in processor, the processor is processed the pulse signal that different time sections are received, and judges induced key state.The present invention, by software and hardware combining, using less hardware, and is the hardware that integrated level is high, relative to analog circuit connection, reduces the interference between device, and sensitivity is high.

Description

A kind of induced key detection method and detection means
Technical field
The present invention relates to induced key technical field, more particularly to a kind of induced key detection means and detection method.
Background technology
Capacitive induction button is a kind of common contactless electronic button, compared to traditional mechanical key, is had Waterproof, long lifespan, stable performance, the advantages of be quick on the draw, thus it is widely used in the control version of various electric equipment products In the middle of face.
The principle of capacitive induction button application " relaxation oscillator " of prior art, but because rely primarily on hardware unit Part, and circuit structure is complicated, causes to generate the technical problem of hardware cost calibration high and inconvenient.
The content of the invention
For above-mentioned technical problem, the present invention provides a kind of induced key detection means, on hardware, by multiplexing Processor generally due timer and counter, realize the technique effect for reducing hardware cost, solve hardware cost The high and low technical problem of flexibility.
A kind of induced key detection method, pulse generation module receives the push button signalling selected through port selector, generation Pulse signal, counter receives the pulse signal, and the counter is arranged in processor, and the processor is to different time The pulse signal that section is received is processed, and judges induced key state.
Described processor is processed the pulse signal that different time sections are received, and judges the tool of induced key state Body step is:
A1, initialization pulse generation module and processor;
The pulse data signal several times that A2, treatment are read from each passage, obtains reference signal;
A3, triggering interrupt routine;
A4, in interrupt routine from current channel read pulsatile once signal data, as live signal;
A5, benchmark signal and live signal, if the absolute value of both differences is more than the threshold value of setting, then it represents that in When disconnected
Interior induced key is pressed, and otherwise represents that induced key is not pressed;
A6, switch to next passage;
A7, jump out interrupt routine;
A8, when produce Interruption when, perform A3-A7.
Preferably, A6 the step of switch to next passage, can after the step A4, the step A5 it Before.
Preferably, the pulse data signal is the cycle of oscillation number in the set time.The set time is by timing Device sets, and the timer is used to produce Interruption.
The pulse data signal can also be the timing length of built-in oscillation cycle times.
Present invention employs the combination of software and hardware, on hardware, by multiplex processor generally due timer and counting Device, reduces hardware cost, while improve flexibility, value cycle, parameters of operating part etc. can be adjusted by software.
The present invention also provides a kind of induced key detection means, including port selector, the pulse life being electrical connected successively Into module and counter, the counter is arranged in processor, and the processor is also comprising for producing determining for Interruption When device.
The pulse generation module is preferably relaxor.
In the application, the other end of the port selector is electrical connected with button.
Present invention employs the combination of software and hardware, hardware cost is reduced, while flexibility is improve, value cycle, portion Part parameter etc. can be adjusted by software.
Brief description of the drawings
Fig. 1 is the example structure block diagram of capacitive induction key detection device one;
Fig. 2 is the typical circuit figure of pulse generation module in capacitive induction key detection device embodiment;
Fig. 3 is the interrupt routine flow chart in the embodiment of capacitive induction key detecting method.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Embodiment 1
Fig. 1 be capacitive induction key detection device typical structure, its mainly include several buttons, port selector, Pulse generation module and processor, are provided with counter and timer in processor.Pulse generation module is received through port selector The push button signalling of selection, generates pulse signal, counter return pulse signal, the pulse that processor is received to different time sections Signal is processed, and judges induced key state.
In one embodiment, the circuit structure of pulse generation module is as shown in Fig. 2 constant-current source a is used as power supply, realization Current control, improves the voltage linear degree of generation signal, and b is cap-sensor.
The present embodiment control module simplifies hardware circuit by software control, interrupts and gathered data is automatically performed, and drops Low error, improves the degree of accuracy and sensitivity.
Embodiment 2
The method for detecting capacitive induction button using the device of above-described embodiment, by continuous acquisition pulse signal and right Than whether electric capacity changes in judging the circuit of pulse generation module, accordingly, it is known that whether induced key is pressed, specifically Comprise the following steps:
Step1, initialization pulse generation module and processor;
The pulse data signal several times that Step2, treatment are read from each passage, obtains reference signal;
Step3, triggering interrupt routine;
Step4, in interrupt routine from current channel read pulsatile once signal data, as live signal;
Step5, benchmark signal and live signal, if the absolute value of both differences is more than the threshold value of setting, table Show that induced key is pressed in the break period, otherwise represent that induced key is not pressed;
Step6, switch to next passage;
Step7, jump out interrupt routine;
Step8, when produce Interruption when, perform step3-step7.
It it is above a sampling period, generally 1~2ms can set different cycles according to CPU disposal abilities.
Step1~step7 is repeated, reference signal and live signal is persistently contrasted, the state of induced key is detected.Interrupt journey The triggering of sequence, is realized by the Interruption of the timer on hardware.
Fig. 3 is the interrupt routine flow chart in embodiment 2, and interrupt routine flow chart has specifically included step3~step7.
In some embodiments, " step6 switches to next passage " is between step4 and step5.
Pulse data signal can be that cycle of oscillation number, or pulse data signal in the set time are that fixation is shaken Swing the timing length of cycle times.The wherein set time is set by timer.
In theory, the reading of live signal, it is also possible to realized by way of software main program is inquired about.
Technological means disclosed in the present invention program is not limited only to the technological means disclosed in above-mentioned implementation method, also includes Constituted technical scheme is combined by above technical characteristic.

Claims (9)

1. a kind of induced key detection method, it is characterised in that:Pulse generation module receives the button selected through port selector Signal, generates pulse signal, and counter receives the pulse signal, and the counter is arranged in processor, the processor The pulse signal that different time sections are received is processed, induced key state is judged.
2. induced key detection method according to claim 1, it is characterised in that:Described processor is to different time sections The pulse signal for receiving is processed, and judges concretely comprising the following steps for induced key state:
A1, initialization pulse generation module and processor;
The pulse data signal several times that A2, treatment are read from each passage, obtains reference signal;
A3, triggering interrupt routine;
A4, in interrupt routine from current channel read pulsatile once signal data, as live signal;
A5, benchmark signal and live signal, if the absolute value of both differences is more than the threshold value of setting, then it represents that during interruption Interior induced key is pressed, and otherwise represents that induced key is not pressed;
A6, switch to next passage;
A7, jump out interrupt routine;
A8, when produce Interruption when, perform A3-A7.
3. induced key detection method according to claim 2, it is characterised in that:It is described the step of switch to next passage A6, after the step A4, before the step A5.
4. the induced key detection method according to Claims 2 or 3, it is characterised in that:The pulse data signal is solid Cycle of oscillation number in fixing time.
5. induced key detection method according to claim 4, it is characterised in that the set time is set by timer Fixed, the timer is used to produce Interruption.
6. the induced key detection method according to Claims 2 or 3, it is characterised in that:The pulse data signal is solid Determine the timing length of cycle of oscillation number of times.
7. a kind of induced key detection means, it is characterised in that:Including the port selector, the pulse generation mould that are electrical connected successively Block and counter, the counter are arranged in processor, and the processor is also comprising the timer for producing Interruption.
8. induced key detection means according to claim 7, it is characterised in that the pulse generation module shakes for relaxation Swing device.
9. induced key detection means according to claim 7, it is characterised in that the other end of the port selector with Button is electrical connected.
CN201710080762.0A 2017-02-15 2017-02-15 A kind of induced key detection method and detection means Pending CN106775177A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710080762.0A CN106775177A (en) 2017-02-15 2017-02-15 A kind of induced key detection method and detection means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710080762.0A CN106775177A (en) 2017-02-15 2017-02-15 A kind of induced key detection method and detection means

Publications (1)

Publication Number Publication Date
CN106775177A true CN106775177A (en) 2017-05-31

Family

ID=58958306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710080762.0A Pending CN106775177A (en) 2017-02-15 2017-02-15 A kind of induced key detection method and detection means

Country Status (1)

Country Link
CN (1) CN106775177A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696271A (en) * 2018-05-28 2018-10-23 珠海慧联科技有限公司 A kind of slip gesture recognition methods and system based on capacitance touch button
CN109474266A (en) * 2017-09-08 2019-03-15 佛山市顺德区美的电热电器制造有限公司 Input unit, the detection method of input unit and household electrical appliance
CN112506095A (en) * 2020-11-26 2021-03-16 杭州广安汽车电器有限公司 Automatic test system and method for touch keys
CN112532226A (en) * 2020-11-05 2021-03-19 广东瑞德智能科技股份有限公司 Novel touch man-machine interaction processing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060321A (en) * 2006-04-19 2007-10-24 北京希格玛和芯微电子技术有限公司 Charge transport device, touch induction device and method
US20140333369A1 (en) * 2013-05-08 2014-11-13 Ite Tech. Inc. Key module and signal generating method thereof
CN104253602A (en) * 2013-06-27 2014-12-31 富泰华工业(深圳)有限公司 Capacitive touch induction key and electronic device
CN102594327B (en) * 2011-01-14 2015-04-15 苏州路之遥科技股份有限公司 Capacitive sensing key and key detection method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060321A (en) * 2006-04-19 2007-10-24 北京希格玛和芯微电子技术有限公司 Charge transport device, touch induction device and method
CN102594327B (en) * 2011-01-14 2015-04-15 苏州路之遥科技股份有限公司 Capacitive sensing key and key detection method
US20140333369A1 (en) * 2013-05-08 2014-11-13 Ite Tech. Inc. Key module and signal generating method thereof
CN104253602A (en) * 2013-06-27 2014-12-31 富泰华工业(深圳)有限公司 Capacitive touch induction key and electronic device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109474266A (en) * 2017-09-08 2019-03-15 佛山市顺德区美的电热电器制造有限公司 Input unit, the detection method of input unit and household electrical appliance
CN109474266B (en) * 2017-09-08 2023-04-14 佛山市顺德区美的电热电器制造有限公司 Input device, detection method of input device and household appliance
CN108696271A (en) * 2018-05-28 2018-10-23 珠海慧联科技有限公司 A kind of slip gesture recognition methods and system based on capacitance touch button
CN108696271B (en) * 2018-05-28 2022-02-25 珠海慧联科技有限公司 Sliding gesture recognition method and system based on capacitive touch keys
CN112532226A (en) * 2020-11-05 2021-03-19 广东瑞德智能科技股份有限公司 Novel touch man-machine interaction processing method
CN112532226B (en) * 2020-11-05 2024-05-10 广东瑞德智能科技股份有限公司 Novel touch man-machine interaction processing method
CN112506095A (en) * 2020-11-26 2021-03-16 杭州广安汽车电器有限公司 Automatic test system and method for touch keys
CN112506095B (en) * 2020-11-26 2021-10-01 杭州广安汽车电器有限公司 Automatic test system and method for touch keys

Similar Documents

Publication Publication Date Title
CN106775177A (en) A kind of induced key detection method and detection means
US8797049B2 (en) Low power capacitive touch detector
JP4830789B2 (en) Body motion detection device, information transmission device, Nordic walking stock, and walking exercise amount calculation system
CN106168520B (en) Sensor device and electric power steering apparatus using the same
HK1080139A1 (en) Device for monitoring the operating condition of a balance
KR102374869B1 (en) Method and device for sensor synchronization
EP2290822A8 (en) Counter circuit, AD conversion method, AD converter, semiconductor device for detecting distribution of physical quantities, and electronics apparatus
CN102160290A (en) Sensor, sensing method thereof, and filter therefor
CN104939927A (en) Wearing state detecting method and device of intelligent wearable device and intelligent wearable device
KR20140012701A (en) Measuring device and method for the detection of an approach to a hand-held device
CN107884616A (en) One kind is home-use can digital display multi-angle bending electroscope
CN105318918A (en) A non-magnetic flow metering device and a metering method thereof
NO20044220L (en) System and method for monitoring an electronic area
CN108873763A (en) Operating mode adjusting method, device and equipment
KR101059079B1 (en) Method for reducing power consumption of a device of touch sensing and the device
JP4800782B2 (en) Biological information measuring device
GB2439019A (en) Error recovery within processing stages of an integrated circuit
CN105411544A (en) Health wristwatch having power-saving switching function and power saving method of wristwatch
FR2873298B1 (en) IMPLANTABLE CARDIAC STIMULATOR WITH AUTOMATIC SENSOR PLACEMENT DETECTION AND HOUSING IMPLANTATION
CN107884635A (en) A kind of Current Mutual Inductance wireless timer and clocking method
JP2015061103A (en) Pulse reception circuit
KR100695905B1 (en) Apparatus for detecting variation of capacitance multi channel and method thereof
JP2004328103A (en) Error detector circuit
CN105591642A (en) Capacitive sensing relaxation oscillator
EP2722985B1 (en) Method of differential measurement of voltage levels of capacitive change.

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication