CN109491540B - Touch detection system and method applied to system on chip and low in power consumption - Google Patents
Touch detection system and method applied to system on chip and low in power consumption Download PDFInfo
- Publication number
- CN109491540B CN109491540B CN201811286837.1A CN201811286837A CN109491540B CN 109491540 B CN109491540 B CN 109491540B CN 201811286837 A CN201811286837 A CN 201811286837A CN 109491540 B CN109491540 B CN 109491540B
- Authority
- CN
- China
- Prior art keywords
- scanning
- touch
- touch detection
- detection system
- low
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 69
- 238000000034 method Methods 0.000 title claims abstract description 9
- 230000002159 abnormal effect Effects 0.000 claims abstract description 11
- 230000002618 waking effect Effects 0.000 claims description 4
- 230000005856 abnormality Effects 0.000 abstract description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000003213 activating effect Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000007789 sealing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
- Power Sources (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The invention has proposed a touch detection system and method applied to system on chip low-power consumption, timer, counter, touching scanning module and digital comparator make up a low-accuracy scanning system, when the microprocessing unit is in the deep sleep mode, carry on the low-accuracy scanning by the low-accuracy scanning system periodically, wake up the microprocessing unit to carry on the abnormal treatment and high-accuracy scanning after finding the abnormality, and enter the fast scanning mode, thus carry on the scanning of high accuracy and high flexibility; the system state is monitored in real time on the premise of ultralow power consumption through effectively combining low-precision scanning and high-precision scanning, and the generated events are further distinguished and processed through high-precision scanning, so that the purposes of ultralow power consumption, high reliability and high flexibility are achieved.
Description
Technical Field
The invention relates to the technical field of integrated circuit design and capacitive touch detection, in particular to a system-on-chip capacitive touch detection technology with ultralow power consumption, high reliability and flexibility.
Background
Compared with mechanical keys, capacitive touch has largely replaced mechanical keys in various application occasions due to the characteristics of simple mechanical structure, good sealing performance, easy use and the like, and becomes a mainstream man-machine interaction mode. Currently, there are two major concerns about the research on capacitive touch technology, one is high reliability and high stability; the other is ultra low power consumption.
Capacitive touch detection technology is also implemented in a variety of ways. One way is to make the touch detection module into a dedicated integrated circuit, continuously perform touch detection, and report the detection result to the host, which can realize basic touch detection and lower power consumption, but because only single touch detection is realized and no operation processing function is provided inside, the reliability, stability and flexibility are poor when different application scenes are faced; the other mode is that the touch module is integrated into a single-chip microcomputer system, and the detection module is periodically started, the scanning is carried out, and the scanning result is obtained and processed under the control of a single-chip microcomputer core; in this way, since the targeted processing can be performed according to different application occasions, better reliability and flexibility can be obtained, but the main control chip needs to be awakened every time, so that the requirements of many application occasions are difficult to meet in terms of power consumption.
Disclosure of Invention
The invention aims to realize high-reliability and flexible touch detection and obtain the index of ultra-low power consumption.
In order to achieve the above object, the present invention provides a touch detection system with low power consumption applied to a system on chip, the touch detection system comprising:
the device comprises a micro-processing unit, a timer, a counter, a touch scanning module and a digital comparator;
the timer, the counter, the touch scanning module and the digital comparator are all controlled by the micro-processing unit;
the timer periodically outputs timing pulses to the counter and the touch scanning module;
when the counter receives a timing pulse, the count value of the counter is increased, and when the count of the counter reaches a preset time, the touch detection system is awakened;
the touch scanning module activates itself and scans the target to be detected when receiving the timing pulse, and closes itself after the scanning is finished and the result is sent to the digital comparator;
and the digital comparator compares the received result with a preset value interval, and if the received result does not fall into the preset value interval, scanning abnormal interruption is generated and the touch detection system is awakened.
Furthermore, in the touch detection system applied to the system on chip with low power consumption, the touch detection system is awakened once when the counter counts for 5 s-10 min.
In another aspect of the present invention, a touch detection method applied to a system on chip with low power consumption is further provided, where the touch detection method uses the touch detection system as described above, and includes the following steps:
powering on and initializing the touch detection system;
carrying out low-precision scanning once, and determining a preset value interval according to the result of the low-precision scanning;
the touch detection system enters a deep sleep mode, and in the deep sleep mode, the touch detection system performs low-precision scanning;
and after the low-precision scanning is abnormal, waking up the micro-processing unit to enter an abnormal processing mode and carry out high-precision scanning, determining a touch base line according to a scanning result, and entering a rapid scanning mode.
Further, in the touch detection method applied to the system on chip with low power consumption, the low-precision scanning includes the following steps:
the timer periodically outputs timing pulses to the counter and the touch scanning module;
the timing pulse activates the touch scan module; the touch scanning module scans according to preset parameters and sends a result to the digital comparator after scanning is finished;
the digital comparator compares the scanning result with a preset value interval, and if the result is lower than the lower limit of the preset value interval or higher than the upper limit of the preset value interval, a scanning abnormity is sent out, the touch detection system is awakened, and an abnormity processing mode is entered;
and if the scanning abnormity does not occur, awakening the touch detection system when the counting of the counter reaches the preset time, and entering an abnormity processing mode.
Further, in the touch detection method applied to the system on chip with low power consumption, in an exception handling mode, high-precision scanning is called, whether touch or non-touch exception occurs is judged according to a scanning result, whether related parameters of the low-precision scanning and the high-precision scanning need to be set again is determined according to the judgment, and the touch detection system enters a fast scanning mode after the judgment or the setting.
Further, in the method for detecting a touch applied to a system on chip with low power consumption, in a fast scan mode, the micro processing unit scans at a predetermined frame rate with high precision, compares a scan result with a preset baseline, and determines whether the baseline needs to be updated or whether a touch event occurs, and further reports the touch event.
Further, in the touch detection method applied to the system on chip with low power consumption, in a fast scan mode state, when no touch event occurs for a continuous period of time, the touch detection system enters a deep sleep mode.
Compared with the prior art, the invention has the following beneficial effects: the timer, the counter, the touch scanning module and the digital comparator form a low-precision scanning system, when the microprocessing unit is in a deep sleep mode, the low-precision scanning system periodically performs low-precision scanning, and after abnormality is found, the microprocessing unit is awakened to perform abnormality processing and high-precision scanning and enters a fast scanning mode, so that high-precision and high-flexibility scanning is performed; the system state is monitored in real time on the premise of ultralow power consumption through effectively combining low-precision scanning and high-precision scanning, and the generated events are further distinguished and processed through high-precision scanning, so that the purposes of ultralow power consumption, high reliability and high flexibility are achieved.
Drawings
FIG. 1 is a block diagram of a touch detection system according to an embodiment of the invention;
fig. 2 is a flowchart illustrating a touch detection method according to an embodiment of the present invention.
Detailed Description
The touch detection system and method for low power consumption of a system-on-chip of the present invention will be described in more detail with reference to the drawings, in which preferred embodiments of the invention are shown, it being understood that one skilled in the art can modify the invention described herein while still achieving the advantageous results of the invention. Accordingly, the following description should be construed as broadly as possible to those skilled in the art and not as limiting the invention.
Referring to fig. 1, in the present embodiment, a touch detection system with low power consumption applied to a system on chip is provided, where the touch detection system includes: the device comprises a micro-processing unit, a timer, a counter, a touch scanning module and a digital comparator.
The timer, the counter, the touch scanning module and the digital comparator are all controlled by the micro-processing unit, and after the micro-processing unit initializes the timer, the counter, the touch scanning module and the digital comparator, the timer, the counter, the touch scanning module and the digital comparator can all start to work by themselves.
The timer periodically outputs timing pulses to the counter and the touch scanning module; when the counter receives a timing pulse, the count value of the counter is increased by 1, and when the count of the counter reaches a preset time, a touch detection system including a micro-processing unit is awakened, namely when the count of the counter reaches a preset value, the touch detection system is awakened; wherein the timer period is settable and outputs a timing pulse with a period of 10Hz-100Hz, for example 50Hz, at each timing period. And awakening the touch detection system once when the counting of the counter reaches 5 s-10 min, for example, 1min, 5min and the like.
And the touch scanning module activates itself and scans the target to be detected when receiving the timing pulse, and closes itself after the scanning is finished and the result is sent to the digital comparator. And the digital comparator compares the received result with a preset value interval, and if the received result does not fall into the preset value interval, scanning abnormal interruption is generated and the touch detection system is awakened.
In addition, referring to fig. 2, in another aspect of the present invention, a touch detection method applied to a system on chip with low power consumption is further provided, where the touch detection method uses any one of the touch detection systems described above, and includes the steps of:
powering on and initializing the touch detection system;
carrying out low-precision scanning once, and determining a preset value interval according to the result of the low-precision scanning;
the touch detection system enters a deep sleep mode, and in the deep sleep mode, the touch detection system performs low-precision scanning;
and after the low-precision scanning is abnormal, waking up the micro-processing unit to enter an abnormal processing mode and carry out high-precision scanning, determining a touch base line according to a scanning result, and entering a rapid scanning mode.
Specifically, after the touch detection system is powered on, initialization work is firstly carried out, including low-precision scanning, a preset value interval is determined according to the result of the low-precision scanning, and preparation is made for entering a deep sleep mode; then high-precision scanning is carried out, and a touch base line of the touch screen is determined according to the scanning result; after the above work is completed, the system enters a fast scanning mode.
Specifically, the low-precision scanning includes the following steps:
the timer periodically outputs timing pulses to the counter and the touch scanning module;
the timing pulse activates the touch scan module; the touch scanning module scans according to preset parameters and sends a result to the digital comparator after scanning is finished;
the digital comparator compares the scanning result with a preset value interval, and if the result is lower than the lower limit of the preset value interval or higher than the upper limit of the preset value interval, a scanning abnormity is sent out, the touch detection system is awakened, and an abnormity processing mode is entered;
and if the scanning abnormity does not occur, awakening the touch detection system when the counting of the counter reaches the preset time, and entering an abnormity processing mode.
It can be seen that in the deep sleep mode, the timer will work continuously and send out timing pulses, which will activate the touch scan module; after the touch scanning module is activated, low-precision scanning is carried out according to preset parameters, and after the scanning is finished, the result is sent to a subsequent digital comparator; in the digital comparator, the scanning result is compared with the upper threshold and the lower threshold of a preset value interval, if the result is lower than the lower limit or higher than the upper limit, a scanning exception is sent out and the whole system is awakened, and then the system enters an exception handling mode; even if a scan exception never occurs, when the counter counts up, the system will wake up and enter an exception handling mode.
In the abnormal processing mode, calling high-precision scanning, judging whether touch or non-touch abnormity occurs according to a scanning result, determining whether related parameters of low-precision scanning and high-precision scanning need to be set again according to the judgment result, and entering the rapid scanning mode by the touch detection system after the judgment or the setting.
In the fast scanning mode, the micro-processing unit performs high-precision scanning at a preset higher frame rate so as to realize fast response to touch and achieve a better signal-to-noise ratio; in the fast scanning mode, if touch occurs, reporting the result and staying in the fast scanning mode all the time; when no abnormality is found for a long time, the system enters the deep sleep mode again from the fast scanning mode.
In addition, in the fast scan mode, the scan result needs to be compared with a preset baseline, and whether the baseline needs to be updated is determined.
The touch detection system enters a deep sleep mode after initialization of each module is completed; periodically activating low-precision scanning in deep sleep, and waking up a system once scanning abnormity occurs or counting full abnormity occurs; after the system is awakened, firstly carrying out exception handling, and then entering a fast scanning mode; in the fast scan mode, a higher precision scan is used to obtain more reliable and reliable results.
The whole touch detection system is in a deep sleep mode most of the time, and only the scanning module but not the whole system is activated periodically during the deep sleep; only when the abnormity happens, the operation core is activated to carry out further processing; due to the existence of the operation processing core, the system can further enhance the reliability, stability and flexibility of the system while realizing ultra-low power consumption.
It is understood that those skilled in the art can make equivalents according to the technical solutions and concepts of the present invention, and all the equivalents without inventive equivalents should fall within the scope of the present disclosure.
The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any way. It will be understood by those skilled in the art that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (7)
1. A touch detection system with low power consumption applied to a system on a chip, the touch detection system comprising:
the device comprises a micro-processing unit, a timer, a counter, a touch scanning module and a digital comparator;
the timer, the counter, the touch scanning module and the digital comparator are all controlled by the micro-processing unit;
the timer periodically outputs timing pulses to the counter and the touch scanning module;
when the counter receives a timing pulse, the count value of the counter is increased, and when the count of the counter reaches a preset time, the touch detection system is awakened;
the touch scanning module activates itself and scans the target to be detected when receiving the timing pulse, and closes itself after the scanning is finished and the result is sent to the digital comparator;
and the digital comparator compares the received result with a preset value interval, and if the received result does not fall into the preset value interval, scanning abnormal interruption is generated and the touch detection system is awakened.
2. The system for touch detection with low power consumption of system on chip according to claim 1, wherein the touch detection system is awakened once the counter counts for 5 s-10 min.
3. A touch detection method applied to low power consumption of a system on chip, using the touch detection system of claim 1 or 2, comprising the steps of:
powering on and initializing the touch detection system;
carrying out low-precision scanning once, and determining a preset value interval according to the result of the low-precision scanning;
the touch detection system enters a deep sleep mode, and in the deep sleep mode, the touch detection system performs low-precision scanning;
and after the low-precision scanning is abnormal, waking up the micro-processing unit to enter an abnormal processing mode and carry out high-precision scanning, determining a touch base line according to a scanning result, and entering a rapid scanning mode.
4. The method for touch detection with low power consumption applied to the system on chip of claim 3, wherein the low precision scanning comprises the following steps:
the timer periodically outputs timing pulses to the counter and the touch scanning module;
the timing pulse activates the touch scan module; the touch scanning module scans according to preset parameters and sends a result to the digital comparator after scanning is finished;
the digital comparator compares the scanning result with a preset value interval, and if the result is lower than the lower limit of the preset value interval or higher than the upper limit of the preset value interval, a scanning abnormity is sent out, the touch detection system is awakened, and an abnormity processing mode is entered;
and if the scanning abnormity does not occur, awakening the touch detection system when the counting of the counter reaches the preset time, and entering an abnormity processing mode.
5. The method as claimed in claim 3, wherein in the exception handling mode, the high precision scan is invoked and whether a touch or non-touch exception occurs is determined according to the scan result, and accordingly whether the related parameters of the low precision scan and the high precision scan need to be set again is determined, and the touch detection system enters the fast scan mode again after the determination or setting.
6. The method as claimed in claim 3, wherein in the fast scan mode, the MPU scans at a predetermined frame rate with high precision, compares the scanning result with a preset baseline, and determines whether the baseline needs to be updated or whether a touch event occurs, and reports the touch event further.
7. The method of claim 6, wherein in a fast scan mode state, the touch detection system enters a deep sleep mode when no touch event occurs for a continuous period of time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811286837.1A CN109491540B (en) | 2018-10-31 | 2018-10-31 | Touch detection system and method applied to system on chip and low in power consumption |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811286837.1A CN109491540B (en) | 2018-10-31 | 2018-10-31 | Touch detection system and method applied to system on chip and low in power consumption |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109491540A CN109491540A (en) | 2019-03-19 |
CN109491540B true CN109491540B (en) | 2020-11-13 |
Family
ID=65693458
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811286837.1A Active CN109491540B (en) | 2018-10-31 | 2018-10-31 | Touch detection system and method applied to system on chip and low in power consumption |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109491540B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113360016B (en) * | 2020-03-06 | 2024-09-10 | 北京小米移动软件有限公司 | Information control method and device and storage medium |
CN114442861B (en) * | 2022-04-07 | 2022-06-10 | 合肥智芯半导体有限公司 | Touch sensing input module, scanning device thereof and touch chip |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101598986A (en) * | 2008-06-03 | 2009-12-09 | 联咏科技股份有限公司 | Touch detection device capable of saving power consumption |
CN103777736A (en) * | 2012-10-19 | 2014-05-07 | 义隆电子股份有限公司 | Power saving device and power saving method thereof |
CN103793099A (en) * | 2012-10-30 | 2014-05-14 | 乐金显示有限公司 | Touch sensing system and method of reducing latency thereof |
CN106030483A (en) * | 2014-02-18 | 2016-10-12 | 剑桥触控科技有限公司 | Dynamic switching of power modes for touch screens using force touch |
CN104620207B (en) * | 2012-07-13 | 2017-10-24 | 拉普特知识产权公司 | For the low power run for the optical touch-sensitive device for detecting multi-touch event |
-
2018
- 2018-10-31 CN CN201811286837.1A patent/CN109491540B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101598986A (en) * | 2008-06-03 | 2009-12-09 | 联咏科技股份有限公司 | Touch detection device capable of saving power consumption |
CN104620207B (en) * | 2012-07-13 | 2017-10-24 | 拉普特知识产权公司 | For the low power run for the optical touch-sensitive device for detecting multi-touch event |
CN103777736A (en) * | 2012-10-19 | 2014-05-07 | 义隆电子股份有限公司 | Power saving device and power saving method thereof |
CN103793099A (en) * | 2012-10-30 | 2014-05-14 | 乐金显示有限公司 | Touch sensing system and method of reducing latency thereof |
CN106030483A (en) * | 2014-02-18 | 2016-10-12 | 剑桥触控科技有限公司 | Dynamic switching of power modes for touch screens using force touch |
Also Published As
Publication number | Publication date |
---|---|
CN109491540A (en) | 2019-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10296771B2 (en) | Fingerprint recognition system and method | |
CN103412634B (en) | The MCU Rouser of a kind of SOC and method | |
CN105025159B (en) | proximity sensor adjusting method and device | |
CN106020418B (en) | Reduce the method, apparatus and mobile terminal of mobile terminal power consumption | |
US20170034331A1 (en) | Method and Device for Switching State of Terminal | |
CN110424831B (en) | Low-power consumption intelligence lock | |
US20140368423A1 (en) | Method and system for low power gesture recognition for waking up mobile devices | |
CN104750421A (en) | Touch screen operation method and device for mobile terminal | |
CN109491540B (en) | Touch detection system and method applied to system on chip and low in power consumption | |
JP2004240971A5 (en) | ||
WO2018053714A1 (en) | Single-chip microcomputer system, and reset method for single-chip microcomputer system | |
EP2945398A1 (en) | Motion sensor | |
CN106662970A (en) | Method, apparatus and terminal device for setting interrupt threshold for fingerprint identification device | |
WO2014101488A1 (en) | Switch triggering error preventing method and device thereof | |
EP3460630A1 (en) | False-touch-wakeup prevention apparatus and method, intelligent terminal and computer storage medium | |
CN114063802B (en) | Touch detection method, device, storage medium, microprocessor and touch control device | |
KR20150111043A (en) | Fingerprint authenticating apparatus detecting finger touch and operating method thereof | |
WO2021179960A1 (en) | Method for detecting touch-control position of active pen, and electronic terminal | |
WO2024217598A2 (en) | Lock wakeup method and apparatus based on radar technology, and device and medium | |
CN107526522A (en) | Blank screen gesture identification method and device, and mobile terminal, storage medium | |
CN108683981B (en) | Speaker drainage method, device, electronic device, and storage medium for electronic equipment | |
CN111179924A (en) | Method and system for optimizing awakening performance based on mode switching | |
US20130060513A1 (en) | Systems and Methods for Utilizing Acceleration Event Signatures | |
CN105825099A (en) | Inductive unlocking method and system and mobile terminal | |
CN109462882A (en) | Terminal control method and device and terminal |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Room 411, 4th floor, main building, No. 835 and 937, Dangui Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 200131 Patentee after: Shanghai hailichuang Technology Co.,Ltd. Address before: 201203 Room 411, 4th Floor, Main Building (1 Building) of Zhangjiang Guochuang Center, 899 Dangui Road, Pudong New Area, Shanghai Patentee before: SHANGHAI HYNITRON MICROELECTRONIC Co.,Ltd. |