Rapid detection method and system for capacitive touch multi-key

文档序号:1537814 发布日期:2020-02-14 浏览:5次 中文

阅读说明:本技术 一种电容式触摸多按键的快速检测方法及系统 (Rapid detection method and system for capacitive touch multi-key ) 是由 周留洋 于 2019-11-04 设计创作,主要内容包括:本发明特别涉及一种电容式触摸多按键的快速检测方法,包括如下步骤:(A)任选一个触摸通道,对该触摸通道进行检测并获得检测结果;(B)对下一个触摸通道进行检测并获得检测结果,同时对前一个检测结果进行处理生成按键数据;(C)重复步骤B对所有的触摸通道进行循环检测和处理生成连续的按键数据;还公开了一种检测系统。通过调整检测方法,在获得当前触摸通道进行检测的同时,对前一个检测结果进行处理,这样就可以避免充放电扫描时隙带来的空闲等待期,保证了信号采集和数据处理的时间均匀性,提高数据可信度和按键检出的连续性。(The invention particularly relates to a quick detection method of capacitive touch multi-key, which comprises the following steps: (A) selecting one touch channel, detecting the touch channel and obtaining a detection result; (B) detecting the next touch channel and obtaining a detection result, and processing the previous detection result to generate key data; (C) repeating the step B to perform cyclic detection and processing on all the touch channels to generate continuous key data; a detection system is also disclosed. By adjusting the detection method, the current touch channel is obtained for detection, and meanwhile, the previous detection result is processed, so that an idle waiting period caused by a charging and discharging scanning time slot can be avoided, the time uniformity of signal acquisition and data processing is ensured, and the data reliability and the continuity of key detection are improved.)

1. A quick detection method of capacitive touch multi-key is characterized in that: the method comprises the following steps:

(A) selecting one touch channel, detecting the touch channel and obtaining a detection result;

(B) detecting the next touch channel and obtaining a detection result, and processing the previous detection result to generate key data;

(C) and C, repeating the step B, and performing cyclic detection and processing on all the touch channels to generate continuous key data.

2. The method for fast detecting capacitive touch multi-key as claimed in claim 1, wherein: the step A is an initialization stage, which comprises the following steps:

(S10) selecting a touch channel, configuring the channel, starting the channel detection, controlling charging and discharging, waiting for the completion of charging and discharging and the generation of a result, acquiring the result, and storing the result;

the steps B and C are a cycle detection stage, and the method comprises the following steps:

(S20) storing the raw data and preparing configuration data for touch detection of a next touch channel while performing the storing of the result in the step S10;

(S30) starting touch detection of the touch channel in step S20, and performing charge and discharge control;

(S40) processing the original data of the previous touch channel to generate key data while performing the charge and discharge control in the step S30;

(S50) waiting for the completion of charging and discharging and the generation of the result in the step S30, obtaining the result, and storing the result;

(S60) repeating the steps S20-S50 to cycle through all touch channels to generate continuous key data.

3. The method for fast detecting capacitive touch multi-key as claimed in claim 2, wherein: the system comprises a first pipeline, a second pipeline and a third pipeline which are operated in parallel in an interlaced mode;

the detailed steps of step S10 are as follows:

(S11a) optionally selecting a touch channel, the touch channel having touch preparations performed by the first pipeline, the second pipeline storing the touch channel configuration preparations in the form of configuration data;

(S11b) starting charging and discharging of the touch channel by the first pipeline;

(S11c) controlling the charging and discharging of the touch channel by a third assembly line, waiting for the completion of the charging and discharging, and acquiring and storing a touch detection result after the completion of the charging and discharging by the third assembly line;

the detailed steps of the steps S20-S60 are as follows:

(S21) the number of the touch channel in the previous step is recorded as k-1, and the touch detection result of the k-1 touch channel by the second pipeline is stored as original data; meanwhile, the first pipeline carries out touch preparation work of the kth touch channel, and the second pipeline stores the configuration preparation work of the kth touch channel in the form of configuration data;

(S31) performing charge and discharge start of a kth touch channel by the first pipeline;

(S41) controlling the charging and discharging of the kth touch channel by a third streamline, and waiting for the completion of the charging and discharging; processing and detecting original data of a k-1 touch channel by a first pipeline; the middle data and the key data of the k-1 touch channel are stored and output by a second pipeline;

(S51) acquiring and storing a touch detection result after the charging and discharging of the kth touch channel are completed by a third assembly line;

(S61) repeating the steps S21-S51 to cycle through all touch channels to generate continuous key data.

4. The method for fast detecting capacitive touch multi-key as claimed in claim 3, wherein: the data storage structure comprises a data storage channel area and a data storage public area, wherein the data storage channel area comprises channel data of all touch channels, the data storage public area comprises channel pointers, channel states and key data, and the channel states comprise an idle state, a configuration state, a charge-discharge state and a processing state;

the detailed steps of step S10 are as follows:

(S12a) optionally selecting a touch channel, pointing a channel pointer of a current channel of the data storage common area to the touch channel data address space by the second pipeline, performing touch preparation work of the touch channel by the first pipeline, and switching a channel state of the current channel of the data storage common area to a configuration state by the second pipeline;

(S12b) starting charging and discharging of the touch channel by the first pipeline, and switching the current channel state of the data storage common area to a charging and discharging state by the second pipeline;

(S12c) acquiring and storing the touch detection result after the charging and discharging of the touch channel are completed by a third pipeline; switching the current channel state of the data storage common area to a storage state by a second pipeline;

the detailed steps of the steps S20-S60 are as follows:

(S22) noting the number of the touch channel in the previous step as k-1, storing, by the second pipeline, the touch detection result of the k-1 th touch channel as original data by pointing a channel pointer of a data storage common area to the k-1 th channel; meanwhile, the first pipeline carries out touch preparation work of a k-th touch channel, and the second pipeline switches the channel state of the data storage public area into a configuration state;

(S32) performing charge and discharge start of the kth touch channel by the first pipeline, and switching the channel state of the data storage common area to a charge and discharge state by the second pipeline;

(S42) controlling the charging and discharging of the kth touch channel by a third streamline, and waiting for the completion of the charging and discharging; processing and detecting original data of a k-1 touch channel by a first pipeline; switching, by the second pipeline, a channel state of the data storage common area to a processing state;

(S52) acquiring and storing the touch detection result after the charging and discharging of the kth touch channel are completed by the third pipeline; switching a channel state of the data storage common area to a storage state by the second pipeline;

(S62) repeating the steps S22-S52 to cycle through all touch channels to generate continuous key data.

5. A quick detecting system of many buttons of capacitanc touch which characterized in that: the system comprises a touch detection unit, a detection control unit, a data storage unit, a data processing unit and a state management unit;

the touch detection unit is used for detecting human body touch;

the detection control unit is connected with the touch detection unit and is used for controlling the touch channel to detect;

the data storage unit is connected with the detection control unit and is used for storing data output by the detection control unit and the data processing unit;

the data processing unit is connected with the data storage unit and is used for processing and detecting the original data to obtain key data;

the state management unit is used for controlling the working states of the detection control unit, the data storage unit and the data processing unit.

6. The system for rapid detection of capacitive touch multi-keys of claim 5, wherein: the touch detection unit comprises N touch detection channels and touch detection elements, each touch detection channel is provided with a corresponding touch detection element, and the touch detection elements are electrodes, springs or bonding pads; the detection control unit is used for switching channels of different touch detection channels, starting touch detection, controlling charging and discharging, waiting for touch result generation, obtaining results and storing the results.

7. The system for rapid detection of capacitive touch multi-keys of claim 6, wherein: the data storage unit comprises a data storage channel area and a data storage public area, the data storage channel area comprises channel data of all touch channels, the channel data comprises original data, baseline data, intermediate data, time data, threshold data and configuration data, and the data storage public area comprises a channel pointer, a channel state and key data.

8. The system for rapid detection of capacitive touch multi-keys of claim 7, wherein: the original data, the baseline data, the intermediate data, the time data, the threshold data and the configuration data are all 2 bytes; the channel pointer is 2 bytes, the first byte of the channel pointer stores the address space of the channel data of the last touch channel, and the second byte stores the address space of the channel data of the current channel; the channel state is 2 bytes, the first byte of the channel state stores the working state of the last channel, and the second byte stores the working state of the current channel; the key data are m bytes, m is round (N/8), and each bit on the key data corresponds to one touch channel and has touch or not.

9. The system for rapid detection of capacitive touch multi-keys of claim 8, wherein: the data processing unit processes the original data by one or more filtering methods of maximum value removal, minimum value removal, sliding mean filtering, median filtering and first-order lag filtering to filter noise in the data; the data processing unit identifies whether touch exists or not by comparing the filtered signals with a set threshold value, and detects key data by detecting key duration to remove key jitter.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:差分触摸检测电路以及采用该差分触摸检测电路的触摸判断方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类