TWI533170B - Electronic device having touch panel and noise detection and operation mode configuration methods thereof - Google Patents

Electronic device having touch panel and noise detection and operation mode configuration methods thereof Download PDF

Info

Publication number
TWI533170B
TWI533170B TW102145179A TW102145179A TWI533170B TW I533170 B TWI533170 B TW I533170B TW 102145179 A TW102145179 A TW 102145179A TW 102145179 A TW102145179 A TW 102145179A TW I533170 B TWI533170 B TW I533170B
Authority
TW
Taiwan
Prior art keywords
noise
touch
value
threshold
preset
Prior art date
Application number
TW102145179A
Other languages
Chinese (zh)
Other versions
TW201523362A (en
Inventor
黃榮壽
吳珈穆
許益嘉
Original Assignee
義隆電子股份有限公司
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 義隆電子股份有限公司 filed Critical 義隆電子股份有限公司
Priority to TW102145179A priority Critical patent/TWI533170B/en
Priority to CN201410008470.2A priority patent/CN104699288B/en
Publication of TW201523362A publication Critical patent/TW201523362A/en
Application granted granted Critical
Publication of TWI533170B publication Critical patent/TWI533170B/en

Links

Description

具觸控板的電子裝置及其雜訊偵測與操作模式設定方法 Electronic device with touch panel and noise detection and operation mode setting method thereof

本發明有關於一種觸控模組,且特別是一種電容式觸控模組的雜訊偵測與操作模式設定方法以及使用其之電子裝置。 The invention relates to a touch module, and in particular to a method for setting a noise detection and operation mode of a capacitive touch module and an electronic device using the same.

隨著觸控板的技術發展,觸控板(touch panel)已廣泛地運用於各類電子裝置,例如智慧型手機以及平板電腦等。觸控板一般會與顯示面板(display panel)相整合形成觸控系統(touch system),以作為電子裝置的輸入輸出介面,達到觸控顯示功能。 With the development of touchpad technology, touch panels have been widely used in various electronic devices, such as smart phones and tablets. The touch panel is generally integrated with a display panel to form a touch system, which serves as an input and output interface of the electronic device to achieve a touch display function.

觸控板的運作是偵測觸控板上感應線路之間的感應電容變化,並透過比較感應電容變化與一預設感應閥值,判斷觸控板是否被觸碰以及相對應的觸控位置。然而,觸控板於運作時,易受周遭環境雜訊影響。再者,近年來,為使電子裝置符合輕薄短的趨勢並降低製作成本,業界不斷地透過改變觸控板的結構將觸控板薄形化,例如由雙玻璃結構、玻璃雙薄膜(Glass/Film/Film)觸控板架構演變為單玻璃結構(One glass solution)以及目前的內崁式觸控板結構(In/On cell)等,使得觸控板越來越靠近顯示面板。從而,使得觸控板在運作時,更容易受到驅動顯示面板顯示畫面的信號的干擾,產生誤判而導致誤動作,進而降低觸控板的感測精確度以及反應速度。 The operation of the touchpad is to detect the change of the sensing capacitance between the sensing lines on the touch panel, and to determine whether the touchpad is touched and the corresponding touch position by comparing the change of the sensing capacitance with a preset sensing threshold. . However, when the touchpad is in operation, it is susceptible to ambient noise. Furthermore, in recent years, in order to make the electronic device conform to the trend of lightness and thinness and reduce the manufacturing cost, the industry has continuously thinned the touch panel by changing the structure of the touch panel, for example, a double glass structure and a glass double film (Glass/ The Film/Film) touchpad architecture evolved into a single glass solution and the current In/On cell structure, making the touchpad closer to the display panel. Therefore, when the touch panel is in operation, it is more susceptible to interference of signals driving the display screen of the display panel, causing misjudgment and causing malfunction, thereby reducing the sensing accuracy and the reaction speed of the touch panel.

有鑑於此,本發明實施例提供一種具觸控板的電子裝置以及其雜訊偵測與操作模式設定方法,可於掃描觸控模組的觸控板時,主動偵測干擾觸控板的雜訊信號的強度,並對應決定觸控模組的操作模式,降低或排除周遭環境雜訊對觸控板的影響,從而提高觸控模組的感測精確度與運作效率。 In view of the above, an embodiment of the present invention provides an electronic device with a touch panel and a method for setting a noise detection and operation mode thereof, which can actively detect and interfere with the touch panel when scanning the touch panel of the touch module. The intensity of the noise signal determines the operation mode of the touch module, and reduces or eliminates the influence of ambient noise on the touch panel, thereby improving the sensing accuracy and operational efficiency of the touch module.

本發明實施例提供一種電子裝置的雜訊偵測方法,其中該電子裝置包括一觸控模組以及一顯示模組,該觸控模組具有一觸控板,且該觸控板對應設置於該顯示模組上。所述雜訊偵測方法包括下列步驟。首先,決定觸控板的一偵測週期,其中偵測週期大於或等於顯示模組的一驅動週期。其次,將偵測週期分成複數個偵測區段。隨後,分別取得各該偵測區段的感應資訊。接著,根據各該偵測區段所對應的感應資訊進行運算,以獲取對應該觸控板上一雜訊參考資訊。隨後,根據該雜訊參考資訊,決定該觸控模組的一操作模式。 The embodiment of the present invention provides a method for detecting a noise of an electronic device, wherein the electronic device includes a touch module and a display module, the touch module has a touch panel, and the touch panel is correspondingly disposed on On the display module. The noise detection method includes the following steps. First, a detection period of the touch panel is determined, wherein the detection period is greater than or equal to a driving period of the display module. Second, the detection period is divided into a plurality of detection sections. Then, the sensing information of each detecting section is obtained separately. Then, performing operation according to the sensing information corresponding to each detecting segment to obtain a noise reference information corresponding to the touch panel. Then, according to the noise reference information, an operation mode of the touch module is determined.

在本發明其中一個實施例中,上述觸控模組具有複數個操作模式,且在根據該雜訊參考資訊,決定觸控模組的操作模式的該步驟中,包括根據雜訊參考資訊,使觸控模組進入該些操作模式之一,其中該些操作模式分別對應不同的觸碰感應臨界值。 In one embodiment of the present invention, the touch module has a plurality of operation modes, and the step of determining an operation mode of the touch module according to the noise reference information includes: according to the noise reference information, The touch module enters one of the operation modes, wherein the operation modes respectively correspond to different touch sensing thresholds.

在本發明其中一個實施例中,上述該些偵測區段的數量為偶數,且該些偵測區段的時間總和等於該偵測週期的時間長度。 In one embodiment of the present invention, the number of the detection sections is an even number, and the sum of the times of the detection sections is equal to the length of time of the detection period.

在本發明其中一個實施例中,上述偵測週期為驅動週期與一偏移緩衝時段(offset)的總和,且該偵測區段的時間長度至少大於該觸控板上的任一條感應線的一取樣時間,其中取樣時間係指感應取得該所對應之感應線的至少一感應值的時間。 In one embodiment of the present invention, the detection period is a sum of a driving period and an offset buffer period, and the length of the detecting section is at least greater than any one of the sensing lines on the touch panel. A sampling time, wherein the sampling time refers to a time during which at least one sensing value of the corresponding sensing line is sensed.

本發明實施例另提供一種電子裝置的雜訊偵測及模式設定方法,其中電子裝置包括一觸控模組以及一顯示模組,該觸控模組具有一觸控板,且該觸控板是對應設置於該顯示模組上。所述雜 訊偵測及操作模式設定方法包括下列步驟。首先,依據顯示模組的一驅動信號產生對應該驅動信號的一雜訊參考資訊。接著,判斷雜訊參考資訊的一雜訊強度值是否大於第一預設雜訊門檻值。若判斷該雜訊強度值大於第一預設雜訊門檻值,使觸控模組進入於一雜訊操作模式,其中觸控模組在該雜訊操作模式下能夠偵測兩個或兩個以下的觸控物件。若判斷該雜訊強度值小於第一預設雜訊門檻值,使觸控模組操作於一多物件觸控模式,其中觸控模組在該多物件觸控模式下能夠偵測觸控物件的最大數量大於該觸控模組在該雜訊操作模式下所能夠偵測的觸控物件之最大數量。 The embodiment of the present invention further provides a method for detecting noise and mode of an electronic device, wherein the electronic device includes a touch module and a display module, the touch module has a touch panel, and the touch panel It is correspondingly set on the display module. Miscellaneous The method of detecting and operating mode includes the following steps. First, a noise reference information corresponding to the driving signal is generated according to a driving signal of the display module. Next, it is determined whether the noise intensity value of the noise reference information is greater than the first preset noise threshold. If the noise intensity value is greater than the first preset noise threshold, the touch module enters a noise operation mode, wherein the touch module can detect two or two in the noise operation mode. The following touch objects. If the noise intensity value is less than the first preset noise threshold, the touch module is operated in a multi-object touch mode, wherein the touch module can detect the touch object in the multi-object touch mode. The maximum number is greater than the maximum number of touch objects that the touch module can detect in the noise operation mode.

在本發明其中一個實施例中,上述雜訊操作模式具有一種單一物件觸控模式以及一種兩物件觸控模式,且在判斷該雜訊強度值大於第一預設雜訊門檻值的步驟之後,包括判斷該雜訊強度值是否大於第二預設雜訊門檻值。若判斷該雜訊強度值大於第二預設雜訊門檻值時,使觸控模組進入單一物件觸控模式,其中觸控模組在該單一物件觸控模式下僅偵測一個觸控物件。若判斷該雜訊強度值小於第二預設雜訊門檻值時,使觸控模組進入兩物件觸控模式,其中觸控模組在該兩物件觸控模式下偵測兩個或兩個以下的觸控物件。 In one embodiment of the present invention, the noise operation mode has a single object touch mode and a two object touch mode, and after determining that the noise intensity value is greater than the first preset noise threshold value, The method includes determining whether the noise strength value is greater than a second preset noise threshold. If the noise intensity value is greater than the second preset noise threshold, the touch module is brought into a single object touch mode, wherein the touch module detects only one touch object in the single object touch mode. . If the noise intensity value is less than the second preset noise threshold, the touch module is brought into the two object touch mode, wherein the touch module detects two or two in the two object touch modes. The following touch objects.

本發明實施例還提供一種電子裝置,此電子裝置包括顯示模組以及觸控模組。觸控模組包括觸控板以及處理單元。所述觸控板是設置於所述顯示模組上,且觸控板上設置有複數條感應線。處理單元電性連接該些感應線。處理單元用以決定該觸控板的一偵測週期,並於偵該測週期內掃描該觸控板上該些感應線,其中所述偵測週期大於或等於顯示模組的一驅動週期。處理單元並根據該些感應線的掃描結果,產生一雜訊參考資訊。 The embodiment of the invention further provides an electronic device, which includes a display module and a touch module. The touch module includes a touch panel and a processing unit. The touch panel is disposed on the display module, and the touch panel is provided with a plurality of sensing lines. The processing unit is electrically connected to the sensing lines. The processing unit is configured to determine a detection period of the touch panel, and scan the sensing lines on the touch panel during the detection period, wherein the detection period is greater than or equal to a driving period of the display module. The processing unit generates a noise reference information according to the scan results of the sensing lines.

所述處理單元將該偵測週期分成複數個偵測區段,並分別取得對應各該偵測區段的感應資訊,且該處理單元透過對各該偵測區段所對應的感應資訊進行運算,產生雜訊參考資訊。 The processing unit divides the detection period into a plurality of detection segments, and respectively obtains sensing information corresponding to each of the detection segments, and the processing unit performs operations on the sensing information corresponding to each of the detection segments. , generate noise reference information.

在本發明其中一個實施例中,上述觸控模組具有複數個操作模式,且處理單元根據雜訊參考資訊,使觸控模組進入該些操作模式之一,其中該些操作模式分別對應不同的一觸碰感應臨界值。 In one embodiment of the present invention, the touch module has a plurality of operation modes, and the processing unit causes the touch module to enter one of the operation modes according to the noise reference information, wherein the operation modes are respectively different. One touch sensing threshold.

所述觸控模組的該些操作模式包括一第一操作模式以及一第二操作模式。當處理單元判斷雜訊參考資訊的雜訊強度值小於第一預設雜訊門檻值時,處理單元使觸控模組進入該第一操作模式。當處理單元判斷雜訊參考資訊的雜訊強度值大於第一預設雜訊門檻值時,處理單元使觸控模組進入該第二操作模式。其中,在該第一操作模式下的觸碰感應臨界值大於在該第二操作模式下的觸碰感應臨界值。 The operating modes of the touch module include a first operating mode and a second operating mode. When the processing unit determines that the noise intensity value of the noise reference information is less than the first preset noise threshold, the processing unit causes the touch module to enter the first operation mode. When the processing unit determines that the noise intensity value of the noise reference information is greater than the first preset noise threshold, the processing unit causes the touch module to enter the second operation mode. The touch sensing threshold in the first mode of operation is greater than the touch sensing threshold in the second mode of operation.

本發明實施例還提供另一種電子裝置,此電子裝置包括顯示模組以及觸控模組。觸控模組包括觸控板以及處理單元。觸控板設置於顯示模組上。處理單元電性連接該觸控板。處理單元用以根據顯示模組的驅動信號產生對應該驅動信號的雜訊參考資訊。所述處理單元並根據雜訊參考資訊決定該觸控模組的一操作模式為多物件觸控模式或雜訊操作模式。所述觸控模組在多物件觸控模式下偵測一個或多個觸控物件,且觸控模組並在雜訊操作模式下偵測兩個或兩個以下的觸控物件。 Another embodiment of the present invention provides an electronic device including a display module and a touch module. The touch module includes a touch panel and a processing unit. The touchpad is disposed on the display module. The processing unit is electrically connected to the touch panel. The processing unit is configured to generate noise reference information corresponding to the driving signal according to the driving signal of the display module. The processing unit determines, according to the noise reference information, an operation mode of the touch module as a multi-object touch mode or a noise operation mode. The touch module detects one or more touch objects in a multi-object touch mode, and the touch module detects two or less touch objects in the noise operation mode.

當處理單元判斷雜訊參考資訊的一雜訊強度值小於第一預設雜訊門檻值時,處理單元使觸控模組進入多物件觸控模式。當處理單元判斷該雜訊強度值大於第一預設雜訊門檻值時,處理單元使該觸控模組進入雜訊操作模式。 When the processing unit determines that the noise intensity value of the noise reference information is less than the first preset noise threshold, the processing unit causes the touch module to enter the multi-object touch mode. When the processing unit determines that the noise intensity value is greater than the first preset noise threshold, the processing unit causes the touch module to enter a noise operation mode.

在本發明其中一個實施例中,當處理單元判斷該雜訊強度值大於該第一預設雜訊門檻值時,處理單元設定一雜訊旗標,且處理單元於檢測到雜訊旗標時,使觸控模組進入該雜訊操作模式。 In one embodiment of the present invention, when the processing unit determines that the noise strength value is greater than the first preset noise threshold, the processing unit sets a noise flag, and the processing unit detects the noise flag. , the touch module enters the noise operation mode.

此外,本發明實施例還提供一種電腦可讀取媒體記錄一組電腦可執行程式,當電腦可讀取記錄媒體被處理器讀取時,處理器可執行上述電子裝置的雜訊偵測方法與雜訊偵測及操作模式設定 方法中的該些步驟。 In addition, an embodiment of the present invention further provides a computer readable medium recording a set of computer executable programs. When the computer readable recording medium is read by the processor, the processor can execute the noise detection method of the electronic device. Noise detection and operation mode setting The steps in the method.

綜上所述,本發明實施例提供一種具有觸控板的電子裝置以及其雜訊偵測與操作模式設定方法以及使用上述方法之電子裝置,其可藉由於掃描觸控板的期間主動以信號取樣方式,偵測並擷取觸控板上的雜訊參考資訊(例如雜訊信號的強度或功率),即時地依據雜訊參考資訊相應地驅動電子裝置的觸控模組進入相應的操作模式,亦即進入具有相對應觸控感應臨界值的操作模式或是可偵測物件的數量等,簡單且有效地降低或排除觸控板上的雜訊干擾。據此,本發明可改善觸控模組的運作效益,進而提升使用者的操作手感。 In summary, an embodiment of the present invention provides an electronic device having a touch panel, a noise detecting and operating mode setting method thereof, and an electronic device using the above method, which can be actively signaled by scanning the touch panel. The sampling method detects and captures the noise reference information (such as the strength or power of the noise signal) on the touch panel, and instantly drives the touch module of the electronic device to enter the corresponding operation mode according to the noise reference information. That is, entering an operation mode having a corresponding touch sensing threshold or the number of detectable objects, etc., simply and effectively reducing or eliminating noise interference on the touch panel. Accordingly, the present invention can improve the operational efficiency of the touch module, thereby improving the user's operating feel.

為使能更進一步瞭解本發明之特徵及技術內容,請參閱以下有關本發明之詳細說明與附圖,但是此等說明與所附圖式僅係用來說明本發明,而非對本發明的權利範圍作任何的限制。 The detailed description of the present invention and the accompanying drawings are to be understood by the claims The scope is subject to any restrictions.

1‧‧‧電子裝置 1‧‧‧Electronic device

10‧‧‧觸控模組 10‧‧‧Touch Module

12‧‧‧觸控板 12‧‧‧ Trackpad

14‧‧‧處理單元 14‧‧‧Processing unit

16‧‧‧儲存單元 16‧‧‧ storage unit

20‧‧‧顯示模組 20‧‧‧Display module

TA~TD、TX、TY、T1~T7‧‧‧時間點 TA~TD, TX, TY, T1~T7‧‧‧ time points

W1~WN‧‧‧偵測區段 W1~WN‧‧‧Detection section

C10‧‧‧曲線 C10‧‧‧ Curve

S100~S150‧‧‧步驟流程 S100~S150‧‧‧Step procedure

S210~S250‧‧‧步驟流程 S210~S250‧‧‧Step process

S401~S411‧‧‧步驟流程 S401~S411‧‧‧Step procedure

S501~S507‧‧‧步驟流程 S501~S507‧‧‧Step procedure

S600~S620‧‧‧步驟流程 S600~S620‧‧‧Step process

圖1是本發明實施例提供的電子裝置的功能示意圖。 FIG. 1 is a schematic diagram of functions of an electronic device according to an embodiment of the present invention.

圖2是本發明實施例提供的觸控模組的掃描圖框中偵測週期的示意圖。 FIG. 2 is a schematic diagram of a detection period in a scan frame of a touch module according to an embodiment of the present invention.

圖3A是本發明實施例提供的偵測週期的示意圖。 FIG. 3A is a schematic diagram of a detection period according to an embodiment of the present invention.

圖3B是本發明實施例提供的另一偵測週期的示意圖。 FIG. 3B is a schematic diagram of another detection period according to an embodiment of the present invention.

圖3C是本發明實施例提供的又一偵測週期的示意圖。 FIG. 3C is a schematic diagram of still another detection period according to an embodiment of the present invention.

圖4是本發明另一實施例提供的觸控模組的掃描圖框中偵測週期的示意圖。 FIG. 4 is a schematic diagram of a detection period in a scan frame of a touch module according to another embodiment of the present invention.

圖5是本發明實施例提供的觸控板的雜訊偵測方法的流程示意圖。 FIG. 5 is a schematic flow chart of a method for detecting a noise of a touch panel according to an embodiment of the present invention.

圖6是本發明實施例提供的觸控模組的操作模式設定方法的流程示意圖。 FIG. 6 is a schematic flowchart of a method for setting an operation mode of a touch module according to an embodiment of the present invention.

圖7是本發明另一實施例提供的觸控模組的操作模式設定方法的流程示意圖。 FIG. 7 is a schematic flow chart of a method for setting an operation mode of a touch module according to another embodiment of the present invention.

圖8是本發明又一實施例提供的觸控模組的操作模式設定方法的流程示意圖。 FIG. 8 is a schematic flow chart of a method for setting an operation mode of a touch module according to another embodiment of the present invention.

圖9是本發明再一實施例提供的觸控模組的操作模式設定方法的流程示意圖。 FIG. 9 is a schematic flow chart of a method for setting an operation mode of a touch module according to still another embodiment of the present invention.

在下文中,將藉由圖式說明本發明之各種例示實施例來詳細描述本發明。然而,本發明概念可能以許多不同形式來體現,且不應解釋為限於本文中所闡述之例示性實施例。此外,在圖式中相同參考數字可用以表示類似的元件。 In the following, the invention will be described in detail by way of illustration of various exemplary embodiments of the invention. However, the inventive concept may be embodied in many different forms and should not be construed as being limited to the illustrative embodiments set forth herein. In addition, the same reference numerals may be used in the drawings to represent similar elements.

習知處理觸控板因顯示模組耦合感應產生的雜訊的方法包括提高觸控板的掃描次數再取平均作為判斷觸控位置的依據、利用中值濾波器濾除雜訊干擾以及透過設置較高的觸碰感應臨界值來過濾雜訊。然而,上述方法皆無法有效地排除雜訊干擾,且還會降低觸控板的運作效率。例如,提高觸控板的掃描次數再取平均作為判斷觸控位置的依據會降低觸控板的掃描速度;而利用中值濾波器濾除雜訊干擾與提高觸碰感應臨界值皆可能會因參數設定不當造成觸控感應度不足,降低觸控靈敏度。 The method for processing the noise generated by the touch panel due to the coupling of the display module includes increasing the number of scans of the touch panel and then averaging as the basis for determining the touch position, filtering the noise interference by using the median filter, and transmitting the noise. A higher touch sensing threshold is used to filter noise. However, none of the above methods can effectively eliminate noise interference, and it also reduces the operational efficiency of the touch panel. For example, increasing the number of scans of the touchpad and then averaging as the basis for determining the touch position may reduce the scanning speed of the touch panel; while using the median filter to filter out noise interference and increasing the touch sensing threshold may be caused by Improper parameter setting causes insufficient touch sensitivity and reduces touch sensitivity.

因此,本發明提供一種具觸控板的電子裝置的雜訊偵測及操作模式設定方法,其可透過於掃描觸控板的掃描圖框內定義至少一偵測週期,並將偵測週期分為複數個偵測區段,準確地偵測觸控板上因信號耦合產生的雜訊信號。本發明的雜訊偵測及操作模式設定方法還可根據雜訊信號的強度,亦即雜訊信號對觸控板的影響程度,動態地決定電子裝置的觸控模組的操作模式,以有效排除雜訊信號對觸控板的影響。另外,本發明亦提供一種使用上述雜訊偵測方法的電子裝置。 Therefore, the present invention provides a method for setting a noise detection and operation mode of an electronic device with a touch panel, wherein at least one detection period is defined in a scan frame of the scanning touch panel, and the detection period is divided. For a plurality of detection sections, the noise signals generated by the signal coupling on the touch panel are accurately detected. The method for setting the noise detection and operation mode of the present invention can also dynamically determine the operation mode of the touch module of the electronic device according to the intensity of the noise signal, that is, the degree of influence of the noise signal on the touch panel. Eliminate the effects of noise signals on the touchpad. In addition, the present invention also provides an electronic device using the above noise detecting method.

由於觸控板的基本結構與實施方式屬於習知技藝,且非為本發明著重之部份,本發明領域具通常知識者應熟知觸控電路的具體結構及基本驅動與掃描運作方式,例如自容與互容掃描方式以 及觸控位置判斷等,故不再於本文中贅述,而僅簡述與本發明相關之技術。 Since the basic structure and implementation of the touch panel are of the prior art and are not the focus of the present invention, those skilled in the art should be familiar with the specific structure of the touch circuit and the basic driving and scanning operation modes, for example, Capacitance and mutual compatibility scanning And the touch position judgment and the like, and therefore will not be described again herein, but only the technology related to the present invention will be briefly described.

〔電子裝置之實施例〕 [Embodiment of Electronic Apparatus]

請參照圖1,圖1繪示本發明實施例提供的電子裝置的功能方塊示意圖。於本實施例中,電子裝置1包括觸控模組10與顯示模組20。所述電子裝置1可例如為智慧型手機、平板電腦(tablet)、觸控式筆記型電腦、個人數位電腦(personal digital assistant,PDA)、數位相機等具有觸控顯示功能之電子裝置。 Please refer to FIG. 1 , which is a functional block diagram of an electronic device according to an embodiment of the present invention. In the embodiment, the electronic device 1 includes a touch module 10 and a display module 20 . The electronic device 1 can be, for example, an electronic device with a touch display function, such as a smart phone, a tablet, a touch-type notebook, a personal digital assistant (PDA), and a digital camera.

所述觸控模組10用以感測使用者使用觸控物件在電子裝置1的螢幕上的操作,並對應驅動電子裝置1執行相對應的功能,例如更換顯示畫面或點選顯示畫面上的顯示物件等。顯示模組20用以顯示對應電子裝置1操作的一顯示畫面,以供電子裝置1的使用者瀏覽與操控電子裝置1。 The touch module 10 is configured to sense a user's operation on the screen of the electronic device 1 by using the touch object, and correspondingly drive the electronic device 1 to perform a corresponding function, such as changing the display screen or clicking on the display screen. Display objects and so on. The display module 20 is configured to display a display screen corresponding to the operation of the electronic device 1 for the user of the electronic device 1 to browse and manipulate the electronic device 1.

於本實施例中,觸控模組10包括觸控板12、處理單元14以及儲存單元16。觸控板12以及儲存單元16分別電性耦接處理單元14。處理單元14用以控制觸控板12以及儲存單元16的運作。具體地說,處理單元14會根據於觸控板12感測到的雜訊信號強度,決定觸控模組10的操作模式。所述雜訊信號為電子裝置1周遭環境存在的週期性信號(例如顯示模組20的驅動信號)而產生的雜訊。 In this embodiment, the touch module 10 includes a touch panel 12 , a processing unit 14 , and a storage unit 16 . The touch panel 12 and the storage unit 16 are electrically coupled to the processing unit 14 respectively. The processing unit 14 is used to control the operation of the touch panel 12 and the storage unit 16. Specifically, the processing unit 14 determines the operation mode of the touch module 10 according to the intensity of the noise signal sensed by the touch panel 12. The noise signal is a noise generated by a periodic signal (for example, a driving signal of the display module 20) existing in the environment of the electronic device 1.

進一步地說,觸控板12是設置於顯示模組20上。觸控板12用以感測電子裝置1螢幕因觸控物件觸碰而發生的至少一觸控事件,並對應輸出對應觸控物件的感應資訊(例如電容變化感測值或dv值),以供處理單元14判斷觸控位置。觸控板12另可用以偵測觸控板12上的雜訊資訊(例如雜訊信號之強度值),並輸出至處理單元14,以供處理單元14判斷雜訊信號的強度。 Further, the touch panel 12 is disposed on the display module 20. The touch panel 12 is configured to sense at least one touch event that occurs on the screen of the electronic device 1 due to the touch object, and correspondingly output sensing information (such as a capacitance change sense value or a dv value) corresponding to the touch object. The processing unit 14 determines the touch position. The touch panel 12 can also be used to detect the noise information (such as the intensity value of the noise signal) on the touch panel 12 and output it to the processing unit 14 for the processing unit 14 to determine the strength of the noise signal.

特別說明的是,所述觸控物件可例如為一觸控筆(stylus)或一手指等可與觸控模組10的觸控板12之間感應產生電容變化的觸 控體。 In particular, the touch object can be a stylus or a finger, etc., and a touch change between the touch panel 12 of the touch module 10 can be induced. Control body.

觸控板12上可設置有多條相互交錯的感應線(未繪示),且該些感應線分別電性連接處理單元14。觸控板12上該些感應線可於被驅動(excite)時,分別依序感應觸控物件觸控電子裝置1所產生的感測信號並輸出至處理單元14。觸控板12上該些感應線於掃描時所輸出的感測信號同時包含雜訊信號的影響。 A plurality of mutually inductive sensing lines (not shown) may be disposed on the touch panel 12, and the sensing lines are electrically connected to the processing unit 14 respectively. The sensing lines on the touch panel 12 can be inductively sensed by the touch object touch electronic device 1 and output to the processing unit 14 when being excited. The sensing signals output by the sensing lines on the touch panel 12 during scanning simultaneously include the influence of the noise signals.

觸控板12可以是由單層或雙層結構之電容式觸控板(capacitive touch panel)來實現。觸控板12並可例如是以黏合方式或內建方式與顯示模組20相結合。具體地說,觸控板12可以外掛式(out-cell)或內崁式,例如整合式(on-cell)、內建式(in-cell)等方式,與顯示模組20相整合並設置於電子裝置1。觸控板12的具體實施方式可依據電子裝置1的實際架構來對應實現,本發明並不限制。 The touch panel 12 can be implemented by a single or double layer capacitive touch panel. The touchpad 12 can be combined with the display module 20, for example, in a bonded or built-in manner. Specifically, the touch panel 12 can be integrated with the display module 20 and configured by an out-cell or an in-cell type, such as an on-cell or an in-cell. In the electronic device 1. The specific implementation of the touch panel 12 can be implemented according to the actual architecture of the electronic device 1, and the present invention is not limited thereto.

處理單元14用以在掃描觸控板12的一掃描圖框內,驅動該些感應線,並依序偵測並擷取觸控板12上該些感應線感應到的感應資訊。處理單元14並依據所偵測到的感應資訊計算出對應觸控板12的一雜訊參考資訊,據以判斷雜訊信號對觸控板12的影響程度,以便對應決定觸控模組10的操作模式。處理單元14會於決定觸控模組10的操作模式之後,再次依序掃描該些感應線,並根據掃描結果判斷觸控板12是否被觸控物件碰觸以及其對應的觸控位置。 The processing unit 14 is configured to drive the sensing lines in a scanning frame of the scanning touch panel 12, and sequentially detect and capture the sensing information sensed by the sensing lines on the touch panel 12. The processing unit 14 calculates a noise reference information corresponding to the touch panel 12 according to the detected sensing information, and determines the influence degree of the noise signal on the touch panel 12, so as to correspondingly determine the touch module 10. Operating mode. After determining the operation mode of the touch module 10, the processing unit 14 sequentially scans the sensing lines in sequence, and determines whether the touch panel 12 is touched by the touch object and its corresponding touch position according to the scanning result.

各該掃描圖框依序包括自容掃描週期(self-scan period)以及互容掃描週期(mutual-scan period),且處理單元14會於自容掃描週期以及互容掃描週期內以自容掃描或互容掃描方式掃描觸控板12上該些感應線,並根據自容掃描週期以及互容掃描週期內的掃描結果,來判斷觸控板12是否被觸控以及對應的觸控位置。 Each of the scan frames includes a self-scan period and a mutual-scan period, and the processing unit 14 scans the self-capacity scan period and the mutual-capacity scan period. Or the mutual-capacitance scanning method scans the sensing lines on the touch panel 12, and determines whether the touch panel 12 is touched and the corresponding touch position according to the self-capacity scanning period and the scanning result in the mutual-capacity scanning period.

上述以自容式掃描或互容式掃描方式掃描觸控板12屬於習知技術內容,且亦非本發明主要改善之技述特徵,在此即不予以贅 述。 The above-mentioned scanning of the touch panel 12 by self-capacitance scanning or mutual capacitive scanning is a matter of the prior art, and is not a technical feature of the main improvement of the present invention. Said.

更進一步地說,觸控模組10具有複數個操作模式,且處理單元14會根據獲取的該雜訊參考資訊,使觸控模組10進入該些操作模式之一。該些操作模式分別對應不同的一觸碰感應臨界值(亦即預設電容感應閥值或預設dv值)。因每一個操作模式對應觸碰感應臨界值不同。因此。本發明可藉由依據雜訊干擾程度使觸控模組10操作在不同的觸碰感應臨界值,降低雜訊信號對觸控板12的影響。 Further, the touch module 10 has a plurality of operation modes, and the processing unit 14 causes the touch module 10 to enter one of the operation modes according to the acquired noise reference information. The operation modes respectively correspond to different one-touch sensing thresholds (ie, preset capacitance sensing thresholds or preset dv values). Because each operation mode corresponds to the touch sensing threshold is different. therefore. The present invention can reduce the influence of the noise signal on the touch panel 12 by operating the touch module 10 at different touch sensing thresholds according to the degree of noise interference.

當處理單元14根據雜訊參考資訊判定雜訊信號干擾觸控板12的程度過高(例如雜訊信號的強度高於一預設雜訊強度閥值)時,處理單元14可使觸控模組10進入具高觸碰感應臨界值(例如600~1000)的操作模式,藉以避免觸控板12受雜訊信號干擾而造成誤判。而當處理單元14根據雜訊參考資訊判斷雜訊信號的強度不會影響觸控板12的判讀(例如雜訊信號的強度低於預設雜訊強度閥值)時,處理單元14可使觸控模組10進入具低觸碰感應臨界值(例如300)的操作模式,以提供觸控板12多點觸控以及高觸控靈敏度的操作。 When the processing unit 14 determines that the noise signal interferes with the touch panel 12 too high according to the noise reference information (for example, the intensity of the noise signal is higher than a preset noise intensity threshold), the processing unit 14 can make the touch mode The group 10 enters an operation mode with a high touch sensing threshold (for example, 600 to 1000) to avoid misjudgment caused by the noise of the touch panel 12 being disturbed by the noise signal. When the processing unit 14 determines that the strength of the noise signal does not affect the interpretation of the touch panel 12 according to the noise reference information (for example, the intensity of the noise signal is lower than the preset noise intensity threshold), the processing unit 14 can touch The control module 10 enters an operation mode with a low touch sensing threshold (for example, 300) to provide multi-touch of the touch panel 12 and high touch sensitivity operation.

於本實施例中,觸控模組10的操作模式包括第一操作模式MD1、第二操作模式MD2以及第三操作模式MD3。觸控模組10在第二操作模式MD2下的觸碰感應臨界值大於在第一操作模式MD1下的觸碰感應臨界值。觸控模組10在第三操作模式MD3下的觸碰感應臨界值大於在第二操作模式MD2下的觸碰感應臨界值。 In this embodiment, the operation mode of the touch module 10 includes a first operation mode MD1, a second operation mode MD2, and a third operation mode MD3. The touch sensing threshold of the touch module 10 in the second operating mode MD2 is greater than the touch sensing threshold in the first operating mode MD1. The touch sensing threshold value of the touch module 10 in the third operation mode MD3 is greater than the touch sensing threshold value in the second operation mode MD2.

第一操作模式MD1、第二操作模式MD2以及的三操作模式MD3可依據觸控模組10的實際運作需求來設置。舉例來說,觸控模組10在第一操作模式下的觸碰感應臨界值可以是依據手指觸控感應值的下限值,例如為300。觸控模組10在第二操作模式下的觸碰感應臨界值可以依據手指觸碰觸控模組10產生最大觸碰感應 值的60%~70%來設定,例如為600。觸控模組10在第三操作模式下的觸碰感應臨界值可以是依據手指觸碰觸控模組10產生最大觸碰感應值的80%~90%來設定,例如為800。 The first operation mode MD1, the second operation mode MD2, and the three operation modes MD3 can be set according to the actual operation requirements of the touch module 10. For example, the touch sensing threshold value of the touch module 10 in the first operation mode may be a lower limit value according to the finger touch sensing value, for example, 300. The touch sensing threshold of the touch module 10 in the second operation mode can generate the maximum touch sensing according to the finger touching the touch module 10 The value is set from 60% to 70%, for example, 600. The touch sensing threshold value of the touch module 10 in the third operation mode may be set according to 80% to 90% of the maximum touch sensing value generated by the touch of the touch module 10, for example, 800.

更詳細地說,當處理單元14根據獲取的雜訊參考資訊,判斷雜訊參考資訊中的雜訊強度值小於第一預設雜訊門檻值TH1時,處理單元14會使觸控模組10進入第一操作模式MD1。而當處理單元14判斷雜訊參考資訊中的雜訊強度值大於第一預設雜訊門檻值TH1時,處理單元14進一步判斷雜訊強度值是否大於第二預設雜訊門檻值TH2。當處理單元14判斷雜訊參考資訊中的雜訊強度值小於第二預設雜訊門檻值TH2時,處理單元14使觸控模組10進入第二操作模式MD2。當處理單元14判斷雜訊參考資訊的雜訊強度值大於第二預設雜訊門檻值TH2時,處理單元14使觸控模組10進入第三操作模式MD3。 In more detail, when the processing unit 14 determines that the noise intensity value in the noise reference information is smaller than the first preset noise threshold TH1 according to the acquired noise reference information, the processing unit 14 causes the touch module 10 to make the touch module 10 Enter the first operating mode MD1. When the processing unit 14 determines that the noise intensity value in the noise reference information is greater than the first preset noise threshold TH1, the processing unit 14 further determines whether the noise intensity value is greater than the second preset noise threshold TH2. When the processing unit 14 determines that the noise intensity value in the noise reference information is less than the second preset noise threshold TH2, the processing unit 14 causes the touch module 10 to enter the second operation mode MD2. When the processing unit 14 determines that the noise intensity value of the noise reference information is greater than the second preset noise threshold TH2, the processing unit 14 causes the touch module 10 to enter the third operation mode MD3.

處理單元14可藉由設定旗標(flag)來使觸控模組10進入選定的操作模式。具體地說,處理單元14可於偵測到雜訊參考資訊中的雜訊強度值大於第一預設雜訊門檻值TH1,且小於第二預設雜訊門檻值TH2時,設定第一雜訊旗標FG1,而處理單元14於偵測到雜訊參考資訊中的雜訊強度值大於第二預設雜訊門檻值TH2時,設定第二雜訊旗標FG2。處理單元14並可於偵測到雜訊參考資訊中的雜訊強度值小於第一預設雜訊門檻值TH1時,清除第一雜訊旗標FG1或第二雜訊旗標FG2的設定。 The processing unit 14 can cause the touch module 10 to enter the selected mode of operation by setting a flag. Specifically, the processing unit 14 can set the first miscellaneous when the noise intensity value in the noise reference information is greater than the first preset noise threshold TH1 and less than the second preset noise threshold TH2. The flag FG1 is set, and the processing unit 14 sets the second noise flag FG2 when detecting that the noise intensity value in the noise reference information is greater than the second preset noise threshold TH2. The processing unit 14 can clear the setting of the first noise flag FG1 or the second noise flag FG2 when the noise intensity value in the noise reference information is less than the first preset noise threshold TH1.

據此,當處理單元14檢測到第一雜訊旗標FG1時,使觸控模組10進入第二操作模式;當處理單元14於檢測到第二雜訊旗標FG2時,使觸控模組10進入第三操作模式;當處理單元14未檢測任何旗標時,使觸控模組10進入第一操作模式。 Accordingly, when the processing unit 14 detects the first noise flag FG1, the touch module 10 is brought into the second operation mode; when the processing unit 14 detects the second noise flag FG2, the touch mode is enabled. The group 10 enters a third mode of operation; when the processing unit 14 does not detect any flags, the touch module 10 is brought into the first mode of operation.

值得一提的是,上述觸控模組10的操作模式的設置方式僅為一種實施方式,且觸控模組10的操作模式設定方式可以是依據觸控板12的實際運作需求或雜訊干擾等級來設置,故本實施並不以 此為限。本發明領域具通常知識者應可藉由上述說明推知觸控模組10的操作模式設定的實際實施方式,故不在贅述。 It is to be noted that the operation mode of the touch module 10 is only one implementation manner, and the operation mode setting manner of the touch module 10 may be based on the actual operation requirements of the touch panel 12 or noise interference. Level is set, so this implementation does not This is limited. Those skilled in the art should be able to infer the actual implementation of the operation mode setting of the touch module 10 by the above description, and therefore will not be described again.

儲存單元16用以儲存對應各該操作模式的觸碰感應臨界值、第一預設雜訊門檻值TH1以及第二預設雜訊門檻值TH1。儲存單元16並可用以儲存偵測雜訊參考資訊的相關參數以及雜訊參考資訊。儲存單元16並可用以儲存上述第一雜訊旗標FG1、第二雜訊旗標FG2的設定。 The storage unit 16 is configured to store a touch sensing threshold corresponding to each of the operating modes, a first preset noise threshold TH1, and a second preset noise threshold TH1. The storage unit 16 can be used to store related parameters for detecting the reference information of the noise and the reference information of the noise. The storage unit 16 can be configured to store the settings of the first noise flag FG1 and the second noise flag FG2.

特別說明的是,處理單元14可以是以微控制器(microcontroller)或嵌入式控制器(embedded controller)等處理晶片利用程式碼編譯方式來實現,但本發明並不限制。儲存單元16可以是利用快閃記憶體晶片、唯讀記憶體晶片或隨機存取記憶體晶片等揮發性或非揮發性記憶晶片來實現,但本發明例並不以此為限。 Specifically, the processing unit 14 may be implemented by using a code controller such as a microcontroller or an embedded controller, but the invention is not limited thereto. The storage unit 16 can be implemented by using a volatile or non-volatile memory chip such as a flash memory chip, a read-only memory chip or a random access memory chip, but the invention is not limited thereto.

為了更詳細地說明本發明之用於觸控板12的雜訊偵測技術,請參照圖2並同時參照圖1。圖2是本發明實施例提供的觸控模組的掃描圖框中偵測週期的示意圖。曲線C10代表顯示模組20干擾觸控板12的雜訊信號。由圖2可知,顯示模組20干擾觸控板12的雜訊信號為週期性信號,因此,可藉由對該雜訊信號進行曲樣以及相關性(correlation)計算,以獲取對應雜訊信號的雜訊參考資訊。 For a more detailed description of the noise detection technique for the touch panel 12 of the present invention, please refer to FIG. 2 and also to FIG. FIG. 2 is a schematic diagram of a detection period in a scan frame of a touch module according to an embodiment of the present invention. The curve C10 represents the noise signal that the display module 20 interferes with the touch panel 12. As can be seen from FIG. 2, the display module 20 interferes with the noise signal of the touch panel 12 as a periodic signal. Therefore, the noise signal can be calculated and correlated by the noise signal to obtain the corresponding noise signal. Noise reference information.

具體地說,處理單元14會先依據顯示模組20的驅動週期於掃描圖框(即時間點TA~時間點TD)內決定一偵測週期(即時間點TA~時間點TB),並將決定的偵測週期儲存於儲存單元16。所述偵測週期(例如時間點TA~時間點TB)大於或等於顯示模組20的驅動週期。所述驅動週期是指顯示模組20的驅動電路(未繪示)驅動顯示面板(未繪示)顯示畫面所輸出的驅動信號之週期。 Specifically, the processing unit 14 first determines a detection period (ie, time point TA~time point TB) in the scan frame (ie, time point TA~time point TD) according to the driving cycle of the display module 20, and The determined detection period is stored in the storage unit 16. The detection period (eg, time point TA~time point TB) is greater than or equal to the driving period of the display module 20. The driving period refers to a period in which a driving circuit (not shown) of the display module 20 drives a driving signal outputted by a display panel (not shown).

值得一提的是,由於在實務上,顯示模組20的驅動電路輸出的驅動信號,可能因實際硬體電路(例如,數位轉類比電路)運作的 反應速度而產生誤差。因此,為了更精確地使偵測週期涵蓋驅動信號的週期,所述偵測週期(即時間點TA~時間點TB)可選擇被設定為驅動信號的驅動週期與一偏移緩衝時段(offset)的總和。所述偏移緩衝時段的時間長度可依據顯示模組20的實際運作來設定,本發明並不限制。 It is worth mentioning that, in practice, the driving signal outputted by the driving circuit of the display module 20 may be operated by an actual hardware circuit (for example, a digital to analog circuit). The reaction speed causes an error. Therefore, in order to more accurately make the detection period cover the period of the driving signal, the detection period (ie, the time point TA~the time point TB) may be selected as the driving period of the driving signal and an offset buffer period (offset). Sum. The length of the offset buffering period can be set according to the actual operation of the display module 20, which is not limited by the present invention.

處理單元14可以是於掃描觸控板12的掃描圖框中的自容掃描週期(例如時間點TA~時間點TC)或是互容掃描週期(例如時間點TC~時間點TD)設置至少一偵測週期。處理單元14並於該偵測週期(即時間點TA~時間點TB)內以自容或互容掃描方式掃描觸控板12上的一條或多條感應線,據以獲取觸控板12於該掃描圖框內的感應資訊。隨後,處理單元14再分別根據該些感應線的掃描結果,產生對應掃描的該些感應線的雜訊參考資訊。 The processing unit 14 may be configured to set at least one of a self-capacity scanning period (for example, a time point TA to a time point TC) or a mutual volume scanning period (for example, a time point TC to a time point TD) in the scanning frame of the scanning touch panel 12 . Detection cycle. The processing unit 14 scans one or more sensing lines on the touch panel 12 in a self-capacity or mutual-capacity scanning manner during the detection period (ie, the time point TA~the time point TB), so as to obtain the touch panel 12 Sensing information in the scan frame. Then, the processing unit 14 generates noise reference information corresponding to the scanned sensing lines according to the scanning results of the sensing lines.

於本實施例中,觸控板12的自容掃描週期(即時間點TA~時間點TC)涵蓋一偵測週期(即時間點TA~時間點TB)。處理單元14並於偵測週期(即時間點TA~時間點TB)內以自容掃描方式掃描觸控板12上該些條感應線之一。 In this embodiment, the self-capacitance scanning period of the touch panel 12 (ie, the time point TA~the time point TC) covers a detection period (ie, the time point TA~the time point TB). The processing unit 14 scans one of the sensing lines on the touch panel 12 in a self-capacitance scanning manner during the detection period (ie, the time point TA~the time point TB).

處理單元14可將偵測週期(即時間點TA~時間點TB)依據需求分成複數個具相同或不同時間長度的偵測區段,其中該些偵測區段的數量至少大於或等於2,且該些偵測區段的數量為偶數。處理單元14分別依序於該些偵測區段中驅動該選擇的感應線,並對應獲取其感應資訊。處理單元14可藉由計算該些偵測區段中其中兩個偵測區段的感應資訊之間的差異,以獲取該雜訊參考資訊。 The processing unit 14 may divide the detection period (ie, the time point TA~ the time point TB) into a plurality of detection segments having the same or different time lengths according to requirements, wherein the number of the detection segments is at least greater than or equal to two, And the number of the detection sections is an even number. The processing unit 14 drives the selected sensing lines in the detecting sections in sequence, and correspondingly acquires sensing information thereof. The processing unit 14 can obtain the noise reference information by calculating a difference between the sensing information of two of the detecting sections.

為了精確地獲取對應雜訊信號的雜訊參考資訊,於一實施方式中,上述中選擇計算的兩個偵測區段之間較佳間隔有至少另一個偵測區段。也就是,上述選擇計算的兩個偵測區段為非相鄰之兩個偵測區段。 In order to accurately obtain the noise reference information corresponding to the noise signal, in an embodiment, at least another detection section is preferably spaced between the two detection sections selected in the foregoing. That is, the two detection sections calculated by the above selection are two detection sections that are not adjacent.

於另一實施方式中,處理單元14可將該些偵測區段分成至少一偵測群組,其中該任一偵測群組包含至少二個偵測區段。處理 單元14進一步比較同一偵測群組之該些偵測區段的感應資訊,以取得對應該偵測群組的一比較結果。處理單元14並對該至少一偵測群組的該比較結果進行運算,以獲取對應觸控板12的該雜訊參考資訊。 In another embodiment, the processing unit 14 may divide the detection sections into at least one detection group, where the any detection group includes at least two detection sections. deal with The unit 14 further compares the sensing information of the detection segments of the same detection group to obtain a comparison result corresponding to the detection group. The processing unit 14 performs an operation on the comparison result of the at least one detection group to obtain the noise reference information corresponding to the touch panel 12 .

如前述,所述感應資訊是透過於各該偵測區段內進行取樣,產生多個感測值,再透過對各該偵測區段中該些感測值進行運算所獲取對應各該偵測區段的感應資訊。各該偵測區段的感應資訊可以是各該偵測區段中該些感測值的一平均值(average)、一最小平方值(least square)、一平方平均數值(root mean square)、一積分值或是其它可代表該些感測值的統計值。上述該些偵測區段的取樣方式以及感應資訊的計算方式皆為本發明領域的習知技藝,故不在此贅述。 As described above, the sensing information is generated by sampling in each of the detecting sections to generate a plurality of sensing values, and then obtaining the corresponding detectors by performing operations on the sensing values in the detecting sections. The sensing information of the measuring section. The sensing information of each detecting section may be an average, a least square, and a root mean square of the sensing values in each detecting section. An integral value or other statistical value that can represent the sensed values. The sampling manner of the detection sections and the calculation method of the sensing information are all known in the art, and therefore are not described herein.

更詳細地說,請參照圖3A並同時參照圖1與圖2。圖3A是本發明實施例提供的偵測週期的示意圖。 In more detail, please refer to FIG. 3A and refer to FIG. 1 and FIG. 2 at the same time. FIG. 3A is a schematic diagram of a detection period according to an embodiment of the present invention.

如圖3A所示,處理單元14會將偵測週期(即時間點TA~TB)分成複數個偵測區段W1~WN,其中N為偶數,且N大於或等於2。該些偵測區段W1~WN涵蓋一干擾區域(即時間點TA~TX)以及一非干擾區域(即時間點TX~TB)。所述干擾區域(即時間點TA~TX)是對應顯示模組20的驅動電路輸出的驅動信號的驅動時間(on time),而所述非干擾區域(即時間點TX~TB)在此則是對應該驅動信號的截止時間(off time),即無雜訊干擾狀態。處理單元14可透過比較在干擾區域(即時間點TA~TX)與非干擾區域(即時間點TX~TB)的感測值差異,獲取雜訊參考資訊。 As shown in FIG. 3A, the processing unit 14 divides the detection period (ie, the time point TA~TB) into a plurality of detection segments W1~WN, where N is an even number and N is greater than or equal to 2. The detection sections W1 W WN cover an interference area (ie, time point TA~TX) and a non-interference area (ie, time point TX~TB). The interference area (ie, the time point TA~TX) is the driving time of the driving signal corresponding to the driving circuit of the display module 20, and the non-interference area (ie, the time point TX~TB) is here. It is the off time corresponding to the drive signal, that is, the noise-free state. The processing unit 14 can obtain the noise reference information by comparing the difference between the sensing values in the interference region (ie, the time point TA~TX) and the non-interference region (ie, the time point TX~TB).

由圖3A可知,相鄰的偵測區段(例如偵測區段W1以及W2),皆位於干擾區域內,且相互之間的感測值差異較小,甚至可能為零,故處理單元14可能無法透過運算求得的雜訊參考資訊來判斷有無雜訊影響。因此,如前述,較佳可透過比較非相鄰之偵測區段,以準確獲取雜訊參考資訊。 As can be seen from FIG. 3A, adjacent detection segments (eg, detection segments W1 and W2) are located in the interference region, and the difference in sensing values between each other is small, and may even be zero, so the processing unit 14 It may not be possible to determine the presence or absence of noise by using the noise reference information obtained by the calculation. Therefore, as described above, it is preferable to accurately obtain the noise reference information by comparing the non-adjacent detection sections.

另外,請參考圖3B,圖3B繪示本發明實施例提供的另一偵測週期的示意圖。為了更精確地使偵測週期完全涵蓋驅動信號的週期,如圖3B所示,所述偵測週期還可進一步包含一緩衝區域(即時間點TY~TB)。所述緩衝區域的時間長度(即時間點TY~TB)對應於上述之偏移緩衝時段的時間,以補償顯示模組20的驅動電路輸出的驅動信號因實際硬體電路(例如,數位轉類比電路)運作的反應速度而產生之誤差。 In addition, please refer to FIG. 3B, which illustrates a schematic diagram of another detection period according to an embodiment of the present invention. In order to more accurately make the detection period completely cover the period of the driving signal, as shown in FIG. 3B, the detection period may further include a buffer area (ie, time point TY~TB). The time length of the buffer area (ie, the time point TY~TB) corresponds to the time of the offset buffer period to compensate the driving signal outputted by the driving circuit of the display module 20 due to the actual hardware circuit (for example, digital to analogy) Circuit) The error caused by the speed of operation of the circuit.

接著,於本實施例中,各該偵測區段W1~WN的時間長度相同。各該偵測區段W1~WN的時間長度至少大於觸控板12對任一條感應線的一取樣時間,其中取樣時間係指感應取得所對應之感應線的至少一感應值的時間。所述取樣時間的最小值(例如100ms~300ms)可以是受限於觸控板12中硬體電路的實際反應時間,例如是類比轉數位電路中感應電壓轉換為感應值的時間。各該偵測區段W1~WN的時間長度的最大值為該偵測週期的時間長度除以偵測區段W1~WN的總數量。 Then, in this embodiment, the lengths of the detection sections W1 to WN are the same. The length of each of the detecting sections W1 to WN is at least one sampling time of the touch panel 12 for any one of the sensing lines, wherein the sampling time refers to a time for sensing at least one sensing value of the corresponding sensing line. The minimum value of the sampling time (for example, 100 ms to 300 ms) may be limited by the actual reaction time of the hardware circuit in the touch panel 12, for example, the time during which the induced voltage in the analog-to-digital circuit is converted into an induced value. The maximum length of each of the detection sections W1 to WN is the length of the detection period divided by the total number of detection sections W1 to WN.

然而於其他實施方式中,各該偵測區段W1~WN的時間長度亦可依據取樣所需時間不同而不相同。換言之,各該偵測區段W1~WN的時間長度可依據取樣操作需求來設置,只要偵測區段W1~WN的時間總和等於所設偵測週期的時間長度即可,本發明並不限制。 However, in other embodiments, the length of time of each of the detecting sections W1 to WN may also be different according to the time required for sampling. In other words, the length of each of the detection sections W1 to WN can be set according to the sampling operation requirement, as long as the total time of the detection sections W1 to WN is equal to the length of the set detection period, the present invention is not limited thereto. .

附帶一提的是,若處理單元14將偵測週期設於自容掃描週期內,則各該偵測區段(即偵測區段W1~WN)的取樣時間是可以是自處理單元14驅動觸控板12上一條感應線至接收對應該條感應線感測到感測值的所需時間。若處理單元14將偵測週期設於互容掃描週期內,則各該偵測區段(即偵測區段W1~WN)的取樣時間是可以是自處理單元14驅動觸控板12上沿第一軸向(例如X軸向)的一條感應線至接收與該條感應線交錯的沿第二軸向(例如Y軸項)另一條感應線感測到感測值的所需時間。 Incidentally, if the processing unit 14 sets the detection period to the self-capacity scanning period, the sampling time of each of the detection sections (ie, the detection sections W1 to WN) may be driven by the processing unit 14 A sensing line on the touchpad 12 receives the time required to sense the sensed value corresponding to the strip sensing line. If the processing unit 14 sets the detection period to the mutual-capacity scanning period, the sampling time of each of the detection sections (ie, the detection sections W1 to WN) may be that the processing unit 14 drives the upper edge of the touch panel 12 A sensing line of the first axial direction (e.g., the X-axis direction) receives the time required to sense the sensed value along the second axial direction (e.g., the Y-axis term) and the other sensing line interleaved with the sensing line.

接著,處理單元14驅動掃描觸控板12,以取得對應各該偵測區段的感應資訊。處理單元14透過對各該偵測區段(即偵測區段W1~WN)所對應的感應資訊進行運算,產生對應該掃描圖框的雜訊參考資訊。處理單元14可利用公式(1)對各該偵測區段(即偵測區段W1~WN)獲取的感測值進行運算,產生雜訊參考信號中的雜訊強度值, 其中,LNL代表一掃描圖框內雜訊強度值;W T 代表該些偵測區段W1~WN的數量,且2 W T N,並N為偶數;W k 代表的k個偵測區段統計的感測值;i代表一偵測區段增量參數,其中i為正整數,且介於1~Then, the processing unit 14 drives the scanning touch panel 12 to obtain sensing information corresponding to each of the detecting segments. The processing unit 14 performs operation on the sensing information corresponding to each of the detecting segments (ie, the detecting segments W1 to WN) to generate noise reference information corresponding to the scanned frame. The processing unit 14 can calculate the sensing value obtained by each of the detecting segments (ie, detecting segments W1 to WN) by using formula (1) to generate a noise intensity value in the noise reference signal. Wherein, on behalf of a scan frame LNL noise intensity value; W T representative of the number of the plurality of detection sections W1 ~ WN, and 2 W T N , and N is an even number; W k represents the sensing value of k detection segments; i represents a detection segment increment parameter, where i is a positive integer and is between 1~ .

舉例來說,請參照圖3C,其繪示本發明實施例提供的又一偵測週期的示意圖,若處理單元14將該偵測週期(即時間點TA~TB)分成四個偵測區段W1~W4,則可將公式(1)中的W T 為4而增量參數i設為2,藉以比較非相鄰的偵測區段。隨後,處理單元14可利用公式(1)計算該偵測週期內該些偵測區段的感應資訊累積差異。 For example, please refer to FIG. 3C , which is a schematic diagram of another detection period according to an embodiment of the present invention. If the processing unit 14 divides the detection period (ie, the time point TA~TB) into four detection segments. For W1~W4, the W T in equation (1) is 4 and the increment parameter i is set to 2, so as to compare non-adjacent detection segments. Then, the processing unit 14 can calculate the accumulated difference of the sensing information of the detection sections in the detection period by using the formula (1).

詳細地說,處理單元14可分別計算偵測區段W1與偵測區段W3之間的第一感應差異值以及偵測區段W2與偵測區段W4之間的第二感應差異值。處理單元14並將第一感應差異值以及第二感應差異值的總和作為在該掃描圖框內對應選取的該條感應線的雜訊參考資訊。 In detail, the processing unit 14 can separately calculate a first sensing difference value between the detecting section W1 and the detecting section W3 and a second sensing difference value between the detecting section W2 and the detecting section W4. The processing unit 14 uses the sum of the first sensing difference value and the second sensing difference value as the noise reference information of the sensing line correspondingly selected in the scanning frame.

值得一提的是,請參照圖4,圖4繪示是本發明另一實施例提供的觸控模組的掃描圖框中偵測週期的示意圖。處理單元14亦可 於一掃描圖框(例如時間點T1~時間點T6)中的自容掃描週期(例如時間點T1~時間點T3)以及互容掃描周期(例如時間點T3~時間點T6)內涵蓋到多個偵測週期(即時間點T1~T2、T2~T3、T3~T4、T5~T6、T6~T7),並對該些偵測週期所擷取的多筆感應資訊進行運算分析(例如計算該些感應資訊中雜訊強度值的平均值或最大值),以產生對應該掃描圖框的雜訊參考資訊。 It is to be noted that, referring to FIG. 4, FIG. 4 is a schematic diagram of a detection period in a scan frame of a touch module according to another embodiment of the present invention. Processing unit 14 can also Covering a self-capacity scan period (eg, time point T1 to time point T3) in a scan frame (eg, time point T1 to time point T6) and a mutual capacitance scan period (eg, time point T3 to time point T6) Detection period (ie, time points T1~T2, T2~T3, T3~T4, T5~T6, T6~T7), and perform computational analysis (such as calculation) on multiple sensing information acquired during these detection periods The average or maximum value of the noise intensity values in the sensing information is generated to generate noise reference information corresponding to the scanned frame.

於本實施例中,處理單元14是於一偵測週期內透過偵測觸控板12上一條感應線的感測值,並依感測值的變化作為該觸控板12於該掃描圖框的雜訊參考資訊。但於實務上,處理單元14亦可以是在偵測週期內依序掃描觸控板12上該些感應線,並根據該些感應線的感測值的變化,產生觸控板12在該掃描圖框的雜訊參考資訊。 In the present embodiment, the processing unit 14 detects the sensing value of a sensing line on the touch panel 12 during a detection period, and uses the change of the sensing value as the touch panel 12 in the scanning frame. Noise reference information. In practice, the processing unit 14 may sequentially scan the sensing lines on the touch panel 12 during the detection period, and generate the touch panel 12 in the scanning according to the change of the sensing values of the sensing lines. Frame noise information.

另,由於顯示模組20顯示不同顯示畫面所需的驅動信號的電壓並不相同,故顯示模組20的驅動信號對觸控模組10的觸控板12的雜訊干擾程度會隨之改變。因此,本發明之觸控模組10可藉由於每一掃描圖框偵測並擷取雜訊參考資訊,即時地感測觸控板12上因耦合感應產生的雜訊信號強度。同時,觸控模組10還可動態地依據觸控板12感測到的雜訊信號強度,決定觸控模組10的操作模式,據以排除顯示模組20的驅動信號對觸控模組10的觸控板12的運作的影響。 In addition, since the voltages of the driving signals required for the display module 20 to display different display screens are not the same, the noise level of the driving signals of the display module 20 to the touch panel 12 of the touch module 10 will change accordingly. . Therefore, the touch module 10 of the present invention can sense the intensity of the noise signal generated by the coupling induction on the touch panel 12 by detecting and capturing the noise reference information for each scan frame. At the same time, the touch module 10 can dynamically determine the operation mode of the touch module 10 according to the intensity of the noise signal sensed by the touch panel 12, thereby eliminating the driving signal of the display module 20 to the touch module. The impact of the operation of the 10 touchpad 12.

值得一提的是,本發明並不限制觸控模組10以及顯示模組20的實體架構與實施方式。處理單元14與儲存單元16可分別依需求以硬體電路架構來實現,或是整合於一偵測晶片並搭配韌體設計來實現。要說明的是,圖1僅為本發明實施例提供的電子裝置的系統架構示意圖,並非用以限定本發明。同樣地,圖2、圖3A、圖3B、圖3C以及圖4僅用以說明本實施例之雜訊偵測掃描運作的波形示意圖,並非用以限定本發明。 It should be noted that the present invention does not limit the physical architecture and implementation of the touch module 10 and the display module 20. The processing unit 14 and the storage unit 16 can be implemented by a hardware circuit structure as needed, or integrated into a detection chip and implemented with a firmware design. It is to be noted that FIG. 1 is only a schematic diagram of a system architecture of an electronic device provided by an embodiment of the present invention, and is not intended to limit the present invention. Similarly, FIG. 2, FIG. 3A, FIG. 3B, FIG. 3C and FIG. 4 are only used to illustrate the waveform diagram of the noise detection scanning operation of the embodiment, and are not intended to limit the present invention.

〔雜訊偵測方法之實施例〕 [Embodiment of noise detection method]

由上述的實施例,本發明可以歸納出一種觸控板的雜訊偵測方法,適用於上述實施例所述之具觸控板之電子裝置。請參照圖5並同時參照圖1、圖2以及圖3A,圖5繪示本發明實施例提供的觸控板的雜訊偵測方法的流程示意圖。 In the above embodiments, the present invention can be applied to a method for detecting a noise of a touch panel, which is applicable to the electronic device with a touch panel described in the above embodiments. Referring to FIG. 5 and FIG. 3A, FIG. 5 is a schematic flow chart of a method for detecting a noise of a touch panel according to an embodiment of the present invention.

於步驟S100中,處理單元14定義觸控模組10的多個操作模式,且各個操作模式分別對應一觸控感應臨界值。具體地說,處理單元14可藉由定義多個不同觸碰感應臨界值觸來使觸控模組10具有多個操作模式。處理單元14可將定義的該些觸碰感應臨界值預先儲存於儲存單元16。 In step S100, the processing unit 14 defines a plurality of operation modes of the touch module 10, and each operation mode corresponds to a touch sensing threshold. Specifically, the processing unit 14 can have the touch module 10 have multiple operating modes by defining a plurality of different touch sensing threshold touches. The processing unit 14 may pre-store the defined touch sensing thresholds in the storage unit 16.

於步驟S110中,處理單元14依據顯示模組20的一驅動週期於掃描圖框(如圖2中時間點TA~時間點TD之間)預先決定觸控板的一偵測週期。所述偵測週期(即圖2中時間點TA~時間點TB)至少大於或等於顯示模組20的驅動週期。更具體地說,所述偵測週期可以是顯示模組20的驅動週期與一偏移緩衝時段之總和。處理單元14並可根據觸控板12的運作需求以及雜訊干擾程度,決定於掃描圖框的自容掃描周期或互容掃描週期內設定一個或多個偵測週期,以精確地擷取雜訊參考資訊。 In step S110, the processing unit 14 predetermines a detection period of the touch panel according to a driving period of the display module 20 in the scan frame (between the time point TA and the time point TD in FIG. 2). The detection period (ie, the time point TA to the time point TB in FIG. 2) is at least greater than or equal to the driving period of the display module 20. More specifically, the detection period may be the sum of the driving period of the display module 20 and an offset buffer period. The processing unit 14 can determine one or more detection periods in the self-capacity scanning period or the mutual-capacity scanning period of the scanning frame according to the operation requirements of the touch panel 12 and the degree of noise interference, so as to accurately capture the miscellaneous Reference information.

於步驟S120中,處理單元14將偵測週期分成複數個偵測區段,且各該偵測區段的時間長度相同。值得注意的是,該些偵測區段的數量為偶數,且該些偵測區段的數量至少大於或等於2。另外,各該偵測區段的時間長度總和等於偵測週期的時間長度。於本實施例中,該偵測區段的時間長度的最大值為該偵測週期的時間長度除以偵測區段W1~WN的總數量。 In step S120, the processing unit 14 divides the detection period into a plurality of detection segments, and each of the detection segments has the same length of time. It should be noted that the number of the detection segments is an even number, and the number of the detection segments is at least greater than or equal to two. In addition, the sum of the lengths of the detection sections is equal to the length of the detection period. In this embodiment, the maximum length of the detection segment is the length of the detection period divided by the total number of detection segments W1 W WN.

於步驟S130中,處理單元14驅動觸控板12分別偵測並取得各該偵測區段的感應資訊。處理單元14可藉由於各該偵測區段內對觸控板12上選擇的一條或多條感應線進行取樣,產生多個感測值,再透過對各該偵測區段中該些感測值進行運算所獲取對應各該偵測區段的感應資訊。各該偵測區段的感應資訊可以是各該偵 測區段中該些感測值的平均值、最小平方值、平方平均數值、積分值或是其它可代表該些感測值的統計值。 In step S130, the processing unit 14 drives the touch panel 12 to detect and obtain the sensing information of each detecting segment. The processing unit 14 can generate a plurality of sensing values by sampling one or more sensing lines selected on the touch panel 12 in each of the detecting sections, and then transmitting the senses in the detecting sections. The measurement is performed to obtain the sensing information corresponding to each of the detection segments. The sensing information of each detection section may be each of the Detectives The average value, the least square value, the squared average value, the integral value or other statistical values of the sensed values in the measured section.

於步驟S140中,處理單元14根據於各該偵測區段所對應的感應資訊進行運算,以獲取對應觸控板12的一雜訊參考資訊。詳細地說,處理單元14可藉由計算該些偵測區段中其中兩個偵測區段的感應資訊之間的差異,以產生雜訊參考資訊。為了精確地獲取對應雜訊信號的雜訊參考資訊,上述選擇計算的兩個偵測區段之間較佳間隔有至少另一個偵測區段。 In step S140, the processing unit 14 performs an operation according to the sensing information corresponding to each of the detecting segments to obtain a noise reference information corresponding to the touch panel 12. In detail, the processing unit 14 can generate noise reference information by calculating a difference between sensing information of two of the detecting sections. In order to accurately obtain the noise reference information corresponding to the noise signal, at least another detection section is preferably spaced between the two detection sections of the selection calculation.

於步驟S150中,處理單元14根據雜訊參考資訊,決定觸控模組10的一操作模式。具體地說,處理單元14可根據雜訊參考資訊的雜訊強度值,使觸控模組10進入具適當觸碰感應臨界值的操作模式。 In step S150, the processing unit 14 determines an operation mode of the touch module 10 based on the noise reference information. Specifically, the processing unit 14 can cause the touch module 10 to enter an operation mode with an appropriate touch sensing threshold according to the noise intensity value of the noise reference information.

本發明另可以歸納出一種觸控模組的操作模式設定方法,適用於上述實施例所述之具觸控板之電子裝置。以下針對處理單元14決定觸控模組10的操作模式設定方式做進一步說明。請參照圖6並參照圖1,圖6繪示本發明實施例提供的觸控模組的操作模式設定方法的流程示意圖。 The present invention further provides a method for setting an operation mode of a touch module, which is applicable to the electronic device with a touch panel described in the above embodiments. The method for determining the operation mode of the touch module 10 is further described below for the processing unit 14. Referring to FIG. 6 and FIG. 1 , FIG. 6 is a schematic flowchart diagram of a method for setting an operation mode of a touch module according to an embodiment of the present invention.

於圖6之實施例中,觸控模組10具有第一操作模式、第二操作模式以及第三操作模式。觸控模組10在第二操作模式MD2下的觸碰感應臨界值(例如600)大於在第一操作模式MD1下的觸碰感應臨界值(例如300)。觸控模組10運作在第三操作模式MD3下的觸碰感應臨界值(例如800)大於在第二操作模式MD2下的觸碰感應臨界值。 In the embodiment of FIG. 6 , the touch module 10 has a first operation mode, a second operation mode, and a third operation mode. The touch sensing threshold (eg, 600) of the touch module 10 in the second operating mode MD2 is greater than the touch sensing threshold (eg, 300) in the first operating mode MD1. The touch sensing threshold value (for example, 800) of the touch module 10 operating in the third operation mode MD3 is greater than the touch sensing threshold value in the second operation mode MD2.

於步驟S210中,當處理單元14驅動觸控板12擷取並產生對應顯示模組20的驅動信號的雜訊參考資訊,處理單元14會判斷雜訊參考資訊的雜訊強度值是否大於第一預設雜訊門檻值TH1。 In step S210, when the processing unit 14 drives the touch panel 12 to capture and generate the noise reference information corresponding to the driving signal of the display module 20, the processing unit 14 determines whether the noise intensity value of the noise reference information is greater than the first. The default noise threshold TH1.

當處理單元14判斷雜訊參考資訊的雜訊強度值小於第一預設雜訊門檻值TH1時,執行步驟S220。反之,當處理單元14判斷 雜訊參考資訊的雜訊強度值大於第一預設雜訊門檻值TH1時,執行步驟S230。 When the processing unit 14 determines that the noise intensity value of the noise reference information is less than the first preset noise threshold TH1, step S220 is performed. Conversely, when the processing unit 14 determines When the noise intensity value of the noise reference information is greater than the first preset noise threshold TH1, step S230 is performed.

於步驟S220中,處理單元14驅動觸控模組10進入第一操作模式MD1。也就是,觸控板12感應顯示模組20的驅動信號的耦合量,尚不會使觸控板12產生誤判。 In step S220, the processing unit 14 drives the touch module 10 to enter the first operation mode MD1. That is, the touch panel 12 senses the coupling amount of the driving signal of the display module 20, and the touch panel 12 is not misjudged.

於步驟S230中,處理單元14進一步判斷雜訊參考資訊的雜訊強度值是否大於第二預設雜訊門檻值TH2。當處理單元14判斷雜訊參考資訊的雜訊強度值小於第二預設雜訊門檻值TH2時,執行步驟S240。反之,當處理單元14判斷雜訊參考資訊的雜訊強度值大於第二預設雜訊門檻值TH2時,執行步驟S250。 In step S230, the processing unit 14 further determines whether the noise intensity value of the noise reference information is greater than the second preset noise threshold TH2. When the processing unit 14 determines that the noise strength value of the noise reference information is less than the second preset noise threshold TH2, step S240 is performed. On the other hand, when the processing unit 14 determines that the noise strength value of the noise reference information is greater than the second preset noise threshold TH2, step S250 is performed.

於步驟S240中,處理單元14驅動觸控模組10進入第二操作模式MD2。換言之,處理單元14判定觸控模組10感應顯示模組20的驅動信號的耦合量足以影響觸控板12的觸控運作,因此,需使觸控模組10進入第二操作模式MD2。 In step S240, the processing unit 14 drives the touch module 10 to enter the second operation mode MD2. In other words, the processing unit 14 determines that the coupling amount of the driving signal of the touch module 10 to the display module 20 is sufficient to affect the touch operation of the touch panel 12 . Therefore, the touch module 10 needs to enter the second operation mode MD2.

於步驟S250中,處理單元14驅動觸控模組10進入第三操作模式MD3。處理單元14會判定觸控板12感應顯示模組20的驅動信號耦合量會對觸控板12的觸控運作造成干擾,影響觸控位置的判斷,甚至會導致誤動作。從而,處理單元14使觸控模組10的第三操作模式MD3,再次提高觸碰感應臨界值。 In step S250, the processing unit 14 drives the touch module 10 to enter the third operation mode MD3. The processing unit 14 determines that the amount of the driving signal coupling of the touch panel 12 to the display module 20 interferes with the touch operation of the touch panel 12, affects the judgment of the touch position, and may even cause a malfunction. Therefore, the processing unit 14 causes the third operation mode MD3 of the touch module 10 to increase the touch sensing threshold again.

值得一提的是,圖5與圖6之模式設定方法的執行方式可藉由於直接以韌體方式寫入於處理單元14的處理晶片,以使處理單元14於運作時執行圖5之雜訊偵測方法與圖6之模式設定方法,本發明並不限制。上述處理單元14可例如為微控制器或嵌入式控制器等處理晶片,但本發明例並不以此為限。 It should be noted that the mode setting method of FIG. 5 and FIG. 6 can be performed by directly processing the processing chip of the processing unit 14 in a firmware manner, so that the processing unit 14 performs the noise of FIG. 5 during operation. The detection method and the mode setting method of FIG. 6 are not limited in the present invention. The processing unit 14 may be a processing chip such as a microcontroller or an embedded controller, but the invention is not limited thereto.

圖6之模式設定方法亦可依實際運作需求來調整。例如,觸控模組10可僅具有第一操作模式(如正常操作模式)以及第二操作模式(如雜訊操作模式)。因此,處理單元14可於步驟S230中,直接驅動觸控模組10進入第二操作模式,而省略步驟S240~S250 等關於判斷進入第二操作模式或第三操作模式之該些步驟。 The mode setting method of Fig. 6 can also be adjusted according to actual operational requirements. For example, the touch module 10 can have only a first mode of operation (such as a normal mode of operation) and a second mode of operation (such as a noise mode of operation). Therefore, the processing unit 14 can directly drive the touch module 10 into the second operation mode in step S230, and the steps S240 to S250 are omitted. And the steps of determining to enter the second mode of operation or the third mode of operation.

要說明的是,圖5與圖6僅用於說明本實施例所歸納出用於電子裝置1的之雜訊偵測與模式設定方法,並非用以限定本發明。 It should be noted that FIG. 5 and FIG. 6 are only used to describe the noise detection and mode setting method for the electronic device 1 in this embodiment, and are not intended to limit the present invention.

此外,為了避免因觸控板12的運作不穩定,或是顯示模組20顯示某一畫面的驅動信號的電壓振幅過高,使得雜訊耦合量突然升高,進而發生誤判使觸控模組10頻繁切換操作模式,降低觸控模組10的運作效率,本發明實施例另提供應用於觸控模組10的操作模式設定方法的一種反跳機制(de-bounce mechanism),以解決上述問題。 In addition, in order to avoid the instability of the operation of the touch panel 12, or the voltage amplitude of the driving signal of the display module 20 displaying a certain screen is too high, the amount of noise coupling suddenly increases, and thus the touch module is misjudged. 10 frequently switching the operation mode and reducing the operation efficiency of the touch module 10. The embodiment of the present invention further provides a de-bounce mechanism applied to the operation mode setting method of the touch module 10 to solve the above problem. .

請參照圖7並同時參照圖1,圖7是本發明另一實施例提供的觸控模組的操作模式設定方法的流程示意圖。圖7繪示本發明提供的第一反跳程序用以於觸控模組10操作於第一操作模式MD1時執行,以避免發生頻繁切換觸控模組10的操作模式。 Referring to FIG. 7 and FIG. 1 simultaneously, FIG. 7 is a schematic flowchart of a method for setting an operation mode of a touch module according to another embodiment of the present invention. FIG. 7 illustrates that the first bounce program provided by the present invention is executed when the touch module 10 is operated in the first operation mode MD1 to avoid frequent switching of the operation mode of the touch module 10.

當觸控模組10操作於第一操作模式時,若處理單元14判斷對應一偵測週期的雜訊參考資訊中的雜訊強度值大於第一預設雜訊門檻值TH1之後(例如在圖6之步驟S230後),開始計時第一預設時間,例如5個偵測週期或3個掃描圖框。 When the touch module 10 is operated in the first operation mode, if the processing unit 14 determines that the noise intensity value in the noise reference information corresponding to a detection period is greater than the first preset noise threshold TH1 (for example, in the figure) After step S230 of 6), the first preset time is started, for example, 5 detection periods or 3 scan frames.

接著,於步驟S401中,處理單元14在第一預設時間內(例如5個偵測週期或3個掃描圖框)根據每一個偵測週期取得的雜訊參考資訊計算出對應各該偵測週期的第一計數值。所述第一計數值是與雜訊參考資訊中的雜訊強度值成正比的。 Then, in step S401, the processing unit 14 calculates corresponding detection information according to the noise reference information acquired in each detection period in the first preset time (for example, 5 detection periods or 3 scan frames). The first count value of the cycle. The first count value is proportional to the noise intensity value in the noise reference information.

具體地說,處理單元14可利用公式(3),根據雜訊參考資訊中的雜訊強度值與第一預設雜訊門檻值TH1計算相對應的第一計數值, Specifically, the processing unit 14 may calculate a corresponding first count value according to the noise intensity value in the noise reference information and the first preset noise threshold TH1 by using the formula (3).

於步驟S403中,處理單元14會判斷在第一預設時間內該複 數個第一計數值的一累計值是否大於一第一預設閥值。詳細地說,處理單元14會利用公式(3)計算在第一預設時間內對應多個偵測週期的該些第一計數值的累計值,並判斷該些第一計數值的累計值是否大於第一預設閥值。處理單元14並會將第一預設時間內計算的該複數個第一計數值的累計值儲存於儲存單元16。 In step S403, the processing unit 14 determines that the complex is in the first preset time. Whether a cumulative value of the plurality of first count values is greater than a first predetermined threshold. In detail, the processing unit 14 calculates the integrated value of the first count values corresponding to the plurality of detection periods in the first preset time by using the formula (3), and determines whether the accumulated values of the first count values are Greater than the first preset threshold. The processing unit 14 stores the accumulated value of the plurality of first count values calculated in the first preset time in the storage unit 16.

另外,於其他實施方式中,處理單元14亦可於每次獲取的雜訊參考資訊中雜訊強度值大於第一預設雜訊門檻值TH1時,遞增第一計數值。而後,處理單元14再判斷在第一預設時間內之該複數個第一計數值的累計值是否大於第一預設閥值,以決定是否驅動觸控模組10進行操作模式切換動作。由於利用公式(3)所獲取的第一計數值可依據雜訊參考資訊中的雜訊強度值等比例增加,故可更快速地反應觸控板12上的雜訊狀態,因此於實務上較佳是利用公式(3)的計算方式計算第一計數值。 In addition, in other embodiments, the processing unit 14 may also increment the first count value when the noise intensity value in the acquired noise reference information is greater than the first preset noise threshold TH1. Then, the processing unit 14 determines whether the accumulated value of the plurality of first count values in the first preset time is greater than the first preset threshold to determine whether to drive the touch module 10 to perform the operation mode switching action. Since the first count value obtained by using the formula (3) can be proportionally increased according to the noise intensity value in the noise reference information, the noise state on the touch panel 12 can be more quickly reflected, so in practice Preferably, the first count value is calculated by the calculation method of the formula (3).

當處理單元14判斷在第一預設時間內之該些第一計數值的累計值大於第一預設閥值(例如10)時,執行步驟S405。反之,當處理單元14判斷在第一預設時間內之該些第一計數值的累計值小於第一預設閥值時,執行步驟S407。 When the processing unit 14 determines that the accumulated value of the first count values in the first preset time is greater than the first preset threshold (for example, 10), step S405 is performed. On the other hand, when the processing unit 14 determines that the accumulated value of the first count values in the first preset time is less than the first preset threshold, step S407 is performed.

於步驟S405中,處理單元14判斷在第一預設時間內該些雜訊強度值的最大值或平均值是否大於第二預設雜訊門檻值TH2,來決定驅動觸控模組10進入第二操作模式MD2或第三操作模式MD3。 In step S405, the processing unit 14 determines whether the maximum or average value of the noise intensity values is greater than the second preset noise threshold TH2 in the first preset time, to determine that the driving touch module 10 enters the first The second operation mode MD2 or the third operation mode MD3.

當處理單元14判斷在第一預設時間內該些雜訊強度值的最大值或平均值大於第二預設雜訊門檻值TH2時,執行步驟S409。反之,當處理單元14判斷在第一預設時間內該些雜訊強度值的最大值或平均值小於第二預設雜訊門檻值TH2時,執行步驟S411。 When the processing unit 14 determines that the maximum value or the average value of the noise intensity values is greater than the second preset noise threshold TH2 within the first preset time, step S409 is performed. On the other hand, when the processing unit 14 determines that the maximum value or the average value of the noise intensity values is less than the second preset noise threshold TH2 in the first preset time, step S411 is performed.

於步驟S407中,當處理單元14判斷在第一預設時間內累計該些第一計數值的累計值小於第一預設閥值時,處理單元14會使觸控模組10維持操作於第一操作模式MD1。 In step S407, when the processing unit 14 determines that the accumulated value of the first count values is less than the first preset threshold in the first preset time, the processing unit 14 causes the touch module 10 to maintain the operation. An operating mode MD1.

於步驟S409中,當處理單元14判斷在第一預設時間內該些雜訊強度值的最大值或平均值大於第二預設雜訊門檻值TH2時,處理單元14會使觸控模組10進入第三操作模式MD3。 In step S409, when the processing unit 14 determines that the maximum or average value of the noise intensity values is greater than the second preset noise threshold TH2 in the first preset time, the processing unit 14 causes the touch module to be 10 enters the third operation mode MD3.

於步驟S411中,當處理單元14判斷在第一預設時間內該些雜訊強度值的最大值或平均值小於第二預設雜訊門檻值TH2時,處理單元14會使觸控模組10進入第二操作模式MD2。 In step S411, when the processing unit 14 determines that the maximum or average value of the noise intensity values is less than the second preset noise threshold TH2 in the first preset time, the processing unit 14 causes the touch module to be 10 enters the second operation mode MD2.

值得一提的是,於另一實施方式中,於步驟S405中,處理單元14亦可以是以在第一預設時間內該些雜訊強度值的積分值與第二預設雜訊門檻值TH2進行比較,來作為決定觸控模組10的操作模式的依據。 It is to be noted that, in another embodiment, in step S405, the processing unit 14 may also be the integrated value of the noise intensity values and the second preset noise threshold value in the first preset time. TH2 is compared as a basis for determining the operation mode of the touch module 10.

於再一實施方式中,於步驟S405中,處理單元14亦可以根據在第一預設時間內該些第一計數值中的最大值或平均值,來決定使觸控模組10進入第二操作模式MD2或第三操作模式MD3。舉例來說,當處理單元14判斷第一預設時間內該些第一計數值中的最大值或平均值小於預設雜訊計數門檻值時,處理單元14使觸控模組10進入第二操作模式MD2;當處理單元14判斷第一預設時間內該些第一計數值中的最大值或平均值大於預設雜訊計數門檻值時,處理單元14使觸控模組10進入第三操作模式MD3。 In still another embodiment, in step S405, the processing unit 14 may also determine to make the touch module 10 enter the second according to the maximum value or the average value of the first count values in the first preset time. Operation mode MD2 or third operation mode MD3. For example, when the processing unit 14 determines that the maximum value or the average value of the first count values in the first preset time is less than the preset noise count threshold, the processing unit 14 causes the touch module 10 to enter the second The operation mode MD2; when the processing unit 14 determines that the maximum value or the average value of the first count values in the first preset time is greater than the preset noise count threshold, the processing unit 14 causes the touch module 10 to enter the third Operating mode MD3.

接著,上述是因觸控板12上感測到的雜訊信號干擾程度過高而使觸控模組10由正常操作模式(即第一操作模式MD1)切換至雜訊操作模式(即第二操作模式MD2或第三操作模式MD3)。本發明實施例另提供由雜訊操作模式(即第二操作模式MD2或第三操作模式MD3)返回正常操作模式(即第一操作模式MD1)的另一反跳機制。請參照圖8並同時參照圖1,圖8是本發明另一實施例提供的觸控模組的操作模式設定方法的流程示意圖。圖8繪示本發明提供的第二反跳程序,用以於觸控模組10操作於第二操作模式MD2或第三操作模式MD3時執行,藉以避免發生觸控模組10頻繁切換操作模式的情況。 Then, the above is caused by the interference level of the noise signal sensed on the touch panel 12 being too high, so that the touch module 10 is switched from the normal operation mode (ie, the first operation mode MD1) to the noise operation mode (ie, the second Operation mode MD2 or third operation mode MD3). Another embodiment of the present invention provides another bounce mechanism that returns to the normal operation mode (ie, the first operation mode MD1) by the noise operation mode (ie, the second operation mode MD2 or the third operation mode MD3). Referring to FIG. 8 and FIG. 1 , FIG. 8 is a schematic flowchart of a method for setting an operation mode of a touch module according to another embodiment of the present invention. FIG. 8 is a schematic diagram of the second debounce program provided by the present invention, when the touch module 10 is operated in the second operation mode MD2 or the third operation mode MD3, so as to avoid frequent switching operation modes of the touch module 10 Case.

當觸控模組10操作於第二操作模式MD2或第三操作模式MD3時,若處理單元14判斷對應一偵測週期的雜訊參考資訊中的雜訊強度值小於第一預設雜訊門檻值TH1之後(例如圖6之步驟S230後),開始計時第二預設時間,例如5個偵測週期或3個掃描圖框。所述第一預設時間與第二預設時間可為相同或不相同,且可以是依據第一與第二反跳程序的執行需求及或/操作模式的切換運作需求來設置,本發明並不限制。 When the touch module 10 is operated in the second operation mode MD2 or the third operation mode MD3, the processing unit 14 determines that the noise intensity value in the noise reference information corresponding to a detection period is smaller than the first preset noise threshold. After the value TH1 (for example, after step S230 of FIG. 6), the second preset time is started, for example, 5 detection periods or 3 scan frames. The first preset time and the second preset time may be the same or different, and may be set according to the execution requirements of the first and second bounce programs and/or the switching operation requirements of the operation mode, and the present invention not limited.

接著,於步驟S501中,處理單元14在第二預設時間內根據雜訊參考資訊,對應減少在第一預設時間內所計算的第一計數值的累計值。 Next, in step S501, the processing unit 14 correspondingly reduces the accumulated value of the first count value calculated in the first preset time according to the noise reference information in the second preset time.

具體地說,處理單元14根據在第二預設時間內每一個偵測週期取得的雜訊參考資訊計算出對應各該偵測週期的第一計數值。處理單元14並利用公式(4),根據雜訊參考資訊中的雜訊強度值與第一預設雜訊門檻值TH1計算相對應該偵測週期的第一計數值, Specifically, the processing unit 14 calculates a first count value corresponding to each detection period according to the noise reference information acquired in each detection period in the second preset time. The processing unit 14 uses the formula (4) to calculate the first count value corresponding to the detection period according to the noise intensity value in the noise reference information and the first preset noise threshold TH1.

處理單元14會將進入第二操作模式MD2或第三操作模式MD3時所累計的該些第一計數值的累計值減去在第二預設時間內所計算該些第一計數值。 The processing unit 14 subtracts the accumulated value of the first count values accumulated when entering the second operation mode MD2 or the third operation mode MD3 by the first count value calculated in the second preset time.

於步驟S503中,處理單元14判斷在第二預設時間內該第一計數值的累計值是否小於或等於第二預設閥值(例如零)。 In step S503, the processing unit 14 determines whether the accumulated value of the first count value is less than or equal to a second preset threshold (for example, zero) in the second preset time.

詳細地說,處理單元14會利用公式(4)計算在第一預設時間內將先進入第二操作模式MD2或第三操作模式MD3時的第一計數值的累計值與在第二預設時間內獲取對應多個偵測週期的計算的該些第一計數值的相減。處理單元14並判斷第一計數值與是否小於或等於第二預設閥值(例如零)。 In detail, the processing unit 14 calculates, by using the formula (4), the accumulated value of the first count value when the first operation mode MD2 or the third operation mode MD3 is first entered in the first preset time, and the second preset. The subtraction of the first count values corresponding to the calculation of the plurality of detection periods is acquired in time. The processing unit 14 determines whether the first count value is less than or equal to a second predetermined threshold (eg, zero).

當處理單元14判斷第二預設時間內累計的第一計數值的累計 值大於第二預設閥值(例如零)時,執行步驟S505。反之,當處理單元14判斷第一計數值與小於或等於第二預設閥值(例如零)時,執行步驟S507。 When the processing unit 14 determines the accumulation of the first count value accumulated in the second preset time When the value is greater than the second preset threshold (for example, zero), step S505 is performed. On the contrary, when the processing unit 14 determines that the first count value is less than or equal to the second preset threshold (for example, zero), step S507 is performed.

於步驟S505中,當處理單元14判斷在第二預設時間內第一計數值的累計值大於第二預設閥值(例如零),處理單元14使觸控模組10維持操作於目前所操作的第二操作模式MD2或第三操作模式MD3,並回到步驟S501。 In step S505, when the processing unit 14 determines that the accumulated value of the first count value is greater than the second preset threshold (eg, zero) in the second preset time, the processing unit 14 maintains the touch module 10 to operate at the current location. The second operation mode MD2 or the third operation mode MD3 of the operation is performed, and the process returns to step S501.

於步驟S507中,當處理單元14判斷第二預設時間內第一計數值的累計值小於或等於第二預設閥值(例如零),處理單元14使觸控模組10進入第一操作模式MD1。 In step S507, when the processing unit 14 determines that the accumulated value of the first count value in the second preset time is less than or equal to the second preset threshold (for example, zero), the processing unit 14 causes the touch module 10 to enter the first operation. Mode MD1.

值得一提的是,於另一實施方中,在處理單元14判定對應一偵測週期的雜訊參考資訊中的雜訊強度值小於第一預設雜訊門檻值TH1之後,處理單元14亦可直接依據雜訊參考資訊對應減少在第一預設時間內所計算的第一計數值的累計值。換言之,處理單元14可不用執行計時第二預設時間及利用公式(4)統計計算第二預設時間內第一計數值的累計值之相關步驟,而是直接於每次偵測到偵測週期的雜訊參考資訊中的雜訊強度值小於第一預設雜訊門檻值TH1之後,直接利用公式(4)依據雜訊參考資訊對應減少在第一預設時間內所計算的第一計數值的累計值。而後,再依據第一計數值的累計值判斷是否使觸控模組10由目前操作模式(即第二操作模式MD2或第三操作模式MD3)切換至第一操作模式MD1。 It is to be noted that, in another implementation, after the processing unit 14 determines that the noise strength value in the noise reference information corresponding to a detection period is less than the first preset noise threshold TH1, the processing unit 14 also The accumulated value of the first count value calculated in the first preset time may be directly reduced according to the noise reference information. In other words, the processing unit 14 may not perform the correlation step of counting the second preset time and calculating the accumulated value of the first count value in the second preset time by using the formula (4), but directly detecting the detection every time. After the noise intensity value in the periodic noise reference information is smaller than the first preset noise threshold TH1, the first calculation calculated in the first preset time is directly reduced according to the noise reference information by using the formula (4). The cumulative value of the value. Then, based on the accumulated value of the first count value, it is determined whether the touch module 10 is switched from the current operation mode (ie, the second operation mode MD2 or the third operation mode MD3) to the first operation mode MD1.

於再一實施方式中,處理單元14亦可預先設定一第二計數值(例如10)。當處理單元14判斷雜訊強度值小於該第一預設雜訊門檻值時,處理單元14開始計數第二預設時間。處理單元14並在第二預設時間內根據每次獲取得該些雜訊參考資訊進行判斷,若處理單元14判斷雜訊強度值小於該第一預設雜訊門檻值時,逐漸減少第二計數值。 In still another embodiment, the processing unit 14 may also preset a second count value (eg, 10). When the processing unit 14 determines that the noise intensity value is less than the first preset noise threshold, the processing unit 14 starts counting the second preset time. The processing unit 14 determines, according to the obtained noise reference information each time, in the second preset time, if the processing unit 14 determines that the noise intensity value is smaller than the first preset noise threshold, the second step is gradually reduced. Count value.

舉例來說,處理單元14可於第二預設時間內每次運算獲得雜訊參考資訊時,根據第一預設雜訊門檻值與雜訊強度值之間的比值或是雜訊強度值,逐漸減少第二計數值。當處理單元14判斷第二計數值小於或等於第二預設閥值(例如零)時,則使觸控模組10進入第一操作模式MD1。當處理單元14於判斷第二計數值仍大於第二預設閥值(例如零)時,則使觸控模組10維持操作在目前所選擇的該操作模式(亦即第二操作模式MD2或第三操作模式MD3)。 For example, when the processing unit 14 obtains the noise reference information for each operation in the second preset time, according to the ratio between the first preset noise threshold value and the noise intensity value or the noise intensity value, Gradually reduce the second count value. When the processing unit 14 determines that the second count value is less than or equal to the second preset threshold (eg, zero), the touch module 10 is caused to enter the first operation mode MD1. When the processing unit 14 determines that the second count value is still greater than the second preset threshold (eg, zero), the touch module 10 is maintained to operate in the currently selected operation mode (ie, the second operation mode MD2 or The third mode of operation MD3).

特別說明的是,於執行圖7之方法中,為了避免第一計數值過大,造成處理單元14執行圖8回到第一操作模式的速度過慢,處理單元14可於第一預設時間內計算的第一計數值的累計值大於預設閥值時,直接將第一計數值的累計值設定為第一預設閥值。 Specifically, in the method of FIG. 7 , in order to avoid the first count value being too large, the processing unit 14 performs the slow return of the first operation mode of FIG. 8 , and the processing unit 14 may be within the first preset time. When the calculated integrated value of the first count value is greater than the preset threshold, the integrated value of the first count value is directly set as the first preset threshold.

在處理單元14執行圖7之第一反跳程序或圖8之第二反跳程序中,處理單元14是於偵測到雜訊強度值大於第一預設雜訊門檻值時,利用公式(3)來計算在第一預設時間第一計數值的累計值;處理單元14於偵測到雜訊強度值小於第一預設雜訊門檻值時,利用公式(4)計算第一計數值,並依據所計算第一計數值對應減少在第一預設時間內所計算的第一計數值的累計值。 In the processing unit 14 performing the first bounce process of FIG. 7 or the second bounce process of FIG. 8, the processing unit 14 uses the formula when detecting that the noise intensity value is greater than the first preset noise threshold. 3) Calculating the accumulated value of the first count value at the first preset time; the processing unit 14 calculates the first count value by using the formula (4) when detecting that the noise intensity value is less than the first preset noise threshold value And correspondingly reducing the accumulated value of the first count value calculated in the first preset time according to the calculated first count value.

上述第一計數值、第二計數值、第一預設閥值以及第二預設閥值可以是儲存於儲存單元16。圖7與圖8之模式設定方法亦可以是透過韌體程式設計方式寫入於處理單元14的處理晶片來實現,以使處理單元14於運作時執行圖7與圖8之模式設定方法,本發明並不限制。 The first count value, the second count value, the first preset threshold, and the second preset threshold may be stored in the storage unit 16. The mode setting method of FIG. 7 and FIG. 8 may be implemented by writing a processing chip of the processing unit 14 through a firmware programming manner, so that the processing unit 14 performs the mode setting method of FIG. 7 and FIG. 8 during operation. The invention is not limited.

據此,藉由執行圖7與圖8之反跳機制執行方法,可有效提供觸控模組10於運作時的操作模式切換效率,提高本發明之雜訊偵測方法與模式設定的實用性。要說明的是,圖7與圖8僅用於說明本實施例提供的避免觸控模組10切換操作模式次數過於頻繁之反跳機制的實施方法,並非用以限定本發明。 Accordingly, by performing the debounce mechanism execution method of FIG. 7 and FIG. 8, the operation mode switching efficiency of the touch module 10 during operation can be effectively provided, and the utility of the noise detection method and mode setting of the present invention is improved. . It should be noted that FIG. 7 and FIG. 8 are only used to describe the implementation method of the anti-jump mechanism for avoiding the switching operation mode of the touch module 10 being too frequent, and are not intended to limit the present invention.

〔模式設定方法之另一實施例〕 [Another embodiment of the mode setting method]

由上述的實施例,本發明可以歸納出另一種觸控板的雜訊偵測方法,適用於上述實施例所述之具觸控板的電子裝置。請參照圖9並同時參照圖1,圖9繪示本發明實施例提供的觸控模組的操作模式設定方法的流程示意圖。 According to the above embodiments, the present invention can be applied to another method for detecting a noise of a touch panel, which is applicable to the electronic device with a touch panel described in the above embodiments. Referring to FIG. 9 and FIG. 1 simultaneously, FIG. 9 is a schematic flowchart diagram of a method for setting an operation mode of a touch module according to an embodiment of the present invention.

於本實施例中,觸控模組10具有多物件觸控模式與雜訊操作模式。觸控模組10在多物件觸控模式下能夠偵測一個或多個觸控物件,而該觸控模組10在雜訊操作模式下僅能夠偵測兩個或兩個以下的觸控物件,其中觸控模組10在多物件觸控模式下能夠偵測觸控物件的最大數量大於該觸控模組10在該雜訊操作模式下所能夠偵測的觸控物件之最大數量。所述觸控物件為觸控可例如是手指或觸控筆。 In this embodiment, the touch module 10 has a multi-object touch mode and a noise operation mode. The touch module 10 can detect one or more touch objects in the multi-object touch mode, and the touch module 10 can only detect two or less touch objects in the noise operation mode. The maximum number of touch objects that can be detected by the touch module 10 in the multi-object touch mode is greater than the maximum number of touch objects that the touch module 10 can detect in the noise operation mode. The touch object can be, for example, a finger or a stylus.

於步驟S600中,當處理單元14驅動觸控板12擷取並產生對應顯示模組20的驅動信號的雜訊參考資訊,處理單元14會判斷雜訊參考資訊的雜訊強度值是否大於第一預設雜訊門檻值TH1。 In step S600, when the processing unit 14 drives the touch panel 12 to capture and generate the noise reference information corresponding to the driving signal of the display module 20, the processing unit 14 determines whether the noise intensity value of the noise reference information is greater than the first. The default noise threshold TH1.

當處理單元14判斷雜訊參考資訊的雜訊強度值小於第一預設雜訊門檻值TH1時,執行步驟S610。反之,當處理單元14判斷雜訊參考資訊的雜訊強度值大於第一預設雜訊門檻值TH1時,執行步驟S620。 When the processing unit 14 determines that the noise intensity value of the noise reference information is less than the first preset noise threshold TH1, step S610 is performed. On the other hand, when the processing unit 14 determines that the noise intensity value of the noise reference information is greater than the first preset noise threshold TH1, step S620 is performed.

於步驟S610中,處理單元14使觸控模組10操作於多物件觸控模式。而於步驟S620中,處理單元14使觸控模組10進入於雜訊操作模式。 In step S610, the processing unit 14 causes the touch module 10 to operate in a multi-object touch mode. In step S620, the processing unit 14 causes the touch module 10 to enter the noise operation mode.

進一步地說,當處理單元14判斷雜訊參考資訊的雜訊強度值大於第一預設雜訊門檻值TH1時,處理單元14設定一雜訊旗標FG_N。而後,當處理單元14檢測到該雜訊旗標FG_N時,處理單元14使觸控模組10進入雜訊操作模式。當處理單元14於未檢測到該雜訊旗標FG_N時,處理單元14使觸控模組10操作於多物件觸控模式。 Further, when the processing unit 14 determines that the noise intensity value of the noise reference information is greater than the first preset noise threshold TH1, the processing unit 14 sets a noise flag FG_N. Then, when the processing unit 14 detects the noise flag FG_N, the processing unit 14 causes the touch module 10 to enter a noise operation mode. When the processing unit 14 does not detect the noise flag FG_N, the processing unit 14 causes the touch module 10 to operate in the multi-object touch mode.

於另一實施方式中,所述雜訊操作模式可進一步包括一種單 一物件觸控模式(例如單指作模式)以及一種兩物件觸控模式(例如雙指操作模式)。觸控模組10在單一物件觸控模式下的觸碰感應臨界值大於在兩物件觸控模式下的觸碰感應臨界值,而在兩物件觸控模式下的觸碰感應臨界值大於在多物件觸控模式的觸碰感應臨界值。 In another embodiment, the noise operation mode may further include a single An object touch mode (such as a single-finger mode) and a two-object touch mode (such as a two-finger mode). The touch sensing threshold value of the touch module 10 in the single object touch mode is greater than the touch sensing threshold value in the two object touch modes, and the touch sensing threshold value in the two object touch modes is greater than The touch sensing threshold of the object touch mode.

處理單元14可在判斷出雜訊強度值大於第一預設雜訊門檻值TH1之後,判斷該雜訊強度值是否大於一第二預設雜訊門檻值TH2。 The processing unit 14 may determine whether the noise intensity value is greater than a second preset noise threshold TH2 after determining that the noise strength value is greater than the first preset noise threshold TH1.

當處理單元14判斷雜訊強度值大於第二預設雜訊門檻值TH2時,處理單元14使觸控模組10進入單一物件觸控模式,其中觸控模組10在單一物件觸控模式下僅能夠偵測一個觸控物件。 When the processing unit 14 determines that the noise intensity value is greater than the second preset noise threshold TH2, the processing unit 14 causes the touch module 10 to enter a single object touch mode, wherein the touch module 10 is in a single object touch mode. Only one touch object can be detected.

舉例來說,處理單元14僅會計算判斷觸控板12上該些感應線(未繪示)感測所輸出大於單一物件觸控模式下的觸碰感應臨界值的該些感測信號中最大值所對應的觸控位置。 For example, the processing unit 14 only calculates the maximum of the sensing signals that are determined by the sensing lines (not shown) on the touch panel 12 to be greater than the touch sensing threshold in the single object touch mode. The touch location corresponding to the value.

當處理單元14雜訊強度值小於該第二預設雜訊門檻值TH2時,處理單元14使觸控模組10進入兩物件觸控模式,其中觸控模組10在兩物件觸控模式下能夠偵測兩個或兩個以下的觸控物件。 When the noise intensity value of the processing unit 14 is less than the second preset noise threshold TH2, the processing unit 14 causes the touch module 10 to enter the two object touch mode, wherein the touch module 10 is in the touch mode of the two objects. Ability to detect two or fewer touch objects.

此外,為避免使觸控模組10切換操作模式過於頻繁,本實施例亦可使用上述圖7與圖8所繪示的第一以及第二反跳程序。例如,可在於步驟S600之後依據觸控模組10目前的操作模式,執行圖7或圖8之第一以及第二反跳程序。 In addition, in order to avoid switching the operation mode of the touch module 10 too frequently, the first and second bounce programs illustrated in FIG. 7 and FIG. 8 above may also be used in this embodiment. For example, the first and second debounce programs of FIG. 7 or FIG. 8 may be executed according to the current operation mode of the touch module 10 after step S600.

圖9之模式設定方法亦可以是透過韌體程式設計方式寫入於處理單元14的處理晶片來實現,以使處理單元14於運作時執行圖9之模式設定方法,本發明並不限制。 The mode setting method of FIG. 9 may also be implemented by a firmware programming method written on the processing chip of the processing unit 14 to enable the processing unit 14 to perform the mode setting method of FIG. 9 during operation, which is not limited by the present invention.

另外,本發明亦可利用一種電腦可讀取記錄媒體,儲存前述圖5所述的雜訊偵測方法、圖6與圖9所述的操作模式設定方法以及圖7與圖8所述的反跳程序執行方法等的電腦程式碼,以於 電腦可讀取記錄媒體被一處理器讀取時執行前述之步驟。此電腦可讀取媒體可以是軟碟、硬碟、光碟、隨身碟、磁帶、可由網路存取之資料庫或熟知此項技術者可輕易思及具有相同功能之儲存媒體。 In addition, the present invention can also utilize a computer readable recording medium to store the noise detection method described in FIG. 5, the operation mode setting method described in FIG. 6 and FIG. 9, and the inverse of FIG. 7 and FIG. Computer program code such as a program execution method, etc. The aforementioned steps are performed when the computer readable recording medium is read by a processor. The computer readable medium can be a floppy disk, a hard disk, a compact disk, a flash drive, a magnetic tape, a database accessible by the network, or a storage medium that can be easily thought of by the person skilled in the art.

〔實施例的可能功效〕 [Possible effects of the examples]

綜上所述,本發明實施例提供一種具觸控板的電子裝置以及其雜訊偵測與操作模式設定方法,可藉由於掃描觸控板的期間主動以信號取樣方式,偵測及擷取觸控板上的雜訊參考資訊(例如雜訊信號的強度或功率),並即時且迅速地依據雜訊參考資訊相應地驅動電子裝置的觸控模組進入相應的操作模式,進而可有效排除雜訊對觸控板的影響,提高觸控模組在的運作效益以及使用者的操作手感。 In summary, an embodiment of the present invention provides an electronic device with a touch panel and a method for setting a noise detection and operation mode, which can be detected and captured by a signal sampling method during scanning of the touch panel. Noise reference information on the touch panel (such as the strength or power of the noise signal), and promptly and quickly drive the touch module of the electronic device into the corresponding operation mode according to the noise reference information, thereby effectively eliminating the The influence of noise on the touchpad improves the operational efficiency of the touch module and the user's operational feel.

以上所述僅為本發明之實施例,其並非用以侷限本發明之專利範圍。 The above description is only an embodiment of the present invention, and is not intended to limit the scope of the invention.

S100~S150‧‧‧步驟流程 S100~S150‧‧‧Step procedure

Claims (41)

一種電子裝置的雜訊偵測方法,其中該電子裝置包括一觸控模組以及一顯示模組,該觸控模組具有一觸控板,且該觸控板對應設置於該顯示模組上,且該觸控板上設置有複數條感應線,該雜訊偵測方法包括:決定該觸控板的一偵測週期,並於該偵測週期內掃描該觸控板上該些感應線,其中該偵測週期大於或等於該顯示模組的一驅動週期;將該偵測週期分成複數個偵測區段;分別取得各該偵測區段的感應資訊,且各該偵測區段的感應資訊具有該些感應線的感應資訊;以及根據各該偵測區段所對應的感應資訊進行運算,以獲取對應該觸控板上一雜訊參考資訊。 A method for detecting a noise of an electronic device, wherein the electronic device includes a touch module and a display module, the touch module has a touch panel, and the touch panel is correspondingly disposed on the display module And the touch panel is provided with a plurality of sensing lines, the noise detecting method includes: determining a detecting period of the touch panel, and scanning the sensing lines on the touch panel during the detecting period The detection period is greater than or equal to a driving period of the display module; the detection period is divided into a plurality of detection sections; respectively, sensing information of each detection section is obtained, and each detection section is The sensing information has sensing information of the sensing lines; and calculating according to the sensing information corresponding to each detecting segment to obtain a noise reference information corresponding to the touch panel. 如請求項1所述的電子裝置的雜訊偵測方法,其中該觸控模組具有複數個操作模式,在獲取對應該觸控板上的該雜訊參考資訊之步驟後,包括:根據該雜訊參考資訊,使該觸控模組進入該些操作模式之一,其中該些操作模式分別對應不同的一觸碰感應臨界值。 The method for detecting a noise of an electronic device according to claim 1, wherein the touch module has a plurality of operation modes, and after acquiring the corresponding reference information of the noise on the touch panel, the method comprises: The noise reference information causes the touch module to enter one of the operation modes, wherein the operation modes respectively correspond to different one touch sensing thresholds. 如請求項1所述的電子裝置的雜訊偵測方法,其中在根據各該偵測區段所對應的該感應資訊進行運算,以獲取該雜訊參考資訊的該步驟中,包括:計算該些偵測區段中其中兩個偵測區段的感應資訊之間的差異,以獲取該雜訊參考資訊。 The method for detecting a noise of an electronic device according to claim 1, wherein the step of performing the operation according to the sensing information corresponding to each of the detecting segments to obtain the noise reference information comprises: calculating the The difference between the sensing information of the two detecting segments in the detecting segment is used to obtain the noise reference information. 如請求項3所述的電子裝置的雜訊偵測方法,其中進行運算的該兩個偵測區段之間是間隔有至少另一個偵測區段。 The method for detecting a noise of an electronic device according to claim 3, wherein the two detection sections that perform the calculation are separated by at least another detection section. 如請求項1所述的電子裝置的雜訊偵測方法,其中在根據各該偵測區段所對應的該感應資訊進行運算,以獲取該雜訊參考資訊的該步驟中,包括: 將該複數個偵測區段分成至少一偵測群組;比較同一偵測群組之該些偵測區段的感應資訊,以取得對應該偵測群組的一比較結果;以及對該至少一偵測群組的該比較結果進行運算,以獲取該雜訊參考資訊,其中該任一偵測群組包含至少二個偵測區段。 The method for detecting a noise of an electronic device according to claim 1, wherein the step of performing the operation according to the sensing information corresponding to each of the detecting segments to obtain the noise reference information comprises: Dividing the plurality of detection segments into at least one detection group; comparing sensing information of the detection segments of the same detection group to obtain a comparison result corresponding to the detection group; and The comparison result of the detection group is calculated to obtain the noise reference information, wherein the any detection group includes at least two detection segments. 如請求項1所述的電子裝置的雜訊偵測方法,其中該些偵測區段包括依時間排列的一第一偵測區段、一第二偵測區段、一第三偵測區段以及一第四偵測區段,且在根據各該偵測區段所對應的該感應資訊進行運算,以獲取該雜訊參考資訊的該步驟中,包括:計算該第一偵測區段的感應資訊與該第三偵測區段的感應資訊之間的差異,以產生一第一感應差異值;計算該第二偵測區段的感應資訊與該第四偵測區段的感應資訊之間的差異,以產生一第二感應差異值;以及將該第一感應差異值以及該第二感應差異值的和作為該雜訊參考資訊。 The method for detecting a noise of the electronic device of claim 1, wherein the detecting sections include a first detecting section, a second detecting section, and a third detecting section arranged in time. And the step of obtaining the noise reference information according to the sensing information corresponding to each of the detecting sections to calculate the first detecting section a difference between the sensing information and the sensing information of the third detecting section to generate a first sensing difference value; calculating the sensing information of the second detecting section and the sensing information of the fourth detecting section a difference between the second sensing difference value and the sum of the first sensing difference value and the second sensing difference value as the noise reference information. 如請求項2所述的電子裝置的雜訊偵測方法,其中該些操作模式包括一第一操作模式以及一第二操作模式,且在根據該雜訊參考資訊,使該觸控模組進入該些操作模式之一的該步驟中,包括:判斷該雜訊參考資訊的一雜訊強度值是否大於一第一預設雜訊門檻值;若判斷該雜訊強度值小於該第一預設雜訊門檻值,使該觸控模組進入該第一操作模式;以及若判斷該雜訊強度值大於該第一預設雜訊門檻值,使該觸控模組進入該第二操作模式;其中在該第二操作模式下的觸碰感應臨界值大於在該第一操作模式下的觸碰感應臨界值。 The method for detecting noise of an electronic device according to claim 2, wherein the operation modes include a first operation mode and a second operation mode, and the touch module is entered according to the noise reference information. The step of one of the operation modes includes: determining whether a noise intensity value of the noise reference information is greater than a first preset noise threshold; and determining that the noise intensity value is less than the first preset The noise threshold is such that the touch module enters the first operation mode; and if the noise intensity value is greater than the first preset noise threshold, the touch module enters the second operation mode; The touch sensing threshold in the second mode of operation is greater than the touch sensing threshold in the first mode of operation. 如請求項7所述的電子裝置的雜訊偵測方法,其中該些操作模式還包括一第三操作模式,且在判斷出該雜訊強度值大於該第一預設雜訊門檻值的該步驟之後,包括:判斷該雜訊強度值是否大於一第二預設雜訊門檻值,其中該第二預設雜訊門檻值大於該第一預設雜訊門檻值;若判斷該雜訊強度值大於該第二預設雜訊門檻值,使該觸控模組進入該第三操作模式;以及若判斷該雜訊強度值小於該第二預設雜訊門檻值,使該觸控模組進入該第二操作模式;其中在該第三操作模式下的觸碰感應臨界值大於在該第二操作模式下的觸碰感應臨界值。 The method for detecting noise of an electronic device according to claim 7, wherein the operation modes further include a third operation mode, and determining that the noise intensity value is greater than the first preset noise threshold After the step, the method includes: determining whether the noise strength value is greater than a second preset noise threshold, wherein the second preset noise threshold is greater than the first preset noise threshold; if the noise strength is determined The value is greater than the second preset noise threshold, so that the touch module enters the third operation mode; and if the noise strength value is determined to be smaller than the second preset noise threshold, the touch module is Entering the second mode of operation; wherein the touch sensing threshold in the third mode of operation is greater than the touch sensing threshold in the second mode of operation. 如請求項8所述的電子裝置的雜訊偵測方法,其中當該觸控模組是操作在該第一操作模式時,於判斷該雜訊強度值大於該第一預設雜訊門檻值的該步驟後,還包括:比較該雜訊參考資訊與該第一預設雜訊門檻值,以算出對應該偵測週期之一第一計數值;判斷在一第一預設時間內對應多個偵測週期的該複數個第一計數值的累計值是否大於一第一預設閥值;若判斷該些第一計數值的累計值大於該第一預設閥值,使該觸控模組進入該第二操作模式;以及若判斷該些第一計數值的累計值小於該第一預設閥值,使該觸控模組維持操作於該第一操作模式。 The method for detecting a noise of an electronic device according to claim 8, wherein when the touch module is operated in the first operation mode, determining that the noise intensity value is greater than the first preset noise threshold After the step, the method further includes: comparing the noise reference information with the first preset noise threshold to calculate a first count value corresponding to one of the detection periods; determining that the first preset time corresponds to a plurality of times Whether the accumulated value of the plurality of first count values of the detection period is greater than a first preset threshold; if it is determined that the accumulated value of the first count values is greater than the first preset threshold, the touch mode is The group enters the second operation mode; and if it is determined that the accumulated value of the first count values is less than the first preset threshold, the touch module is maintained in the first operation mode. 如請求項9所述的電子裝置的雜訊偵測方法,其中在判斷該些第一計數值的累計值大於該第一預設閥值,使該觸控模組進入該第二操作模式的該步驟中,包括:若判斷在該第一預設時間內該複數個雜訊強度值中的最大值或平均值小於該第二預設雜訊門檻值或是該些第一計數值中的最大值或平均值小於一預設雜訊計數門檻值,使該觸控 模組進入該第二操作模式;以及若判斷在該第一預設時間內該複數個雜訊強度值之中的最大值或平均值大於該第二預設雜訊門檻值或是該些第一計數值中的最大值或平均值大於該預設雜訊計數門檻值,使該觸控模組進入該第三操作模式。 The method for detecting a noise of an electronic device according to claim 9, wherein the determining that the accumulated value of the first count values is greater than the first preset threshold causes the touch module to enter the second operation mode. In this step, if it is determined that the maximum value or the average value of the plurality of noise intensity values in the first preset time is less than the second preset noise threshold or the first count value The maximum or average value is less than a preset noise count threshold to make the touch The module enters the second operation mode; and if it is determined that a maximum value or an average value of the plurality of noise intensity values is greater than the second preset noise threshold or the first The maximum or average value of a count value is greater than the preset noise count threshold, so that the touch module enters the third operation mode. 如請求項10所述的電子裝置的雜訊偵測方法,其中在計算該第一計數值的該步驟中,包括:根據該雜訊參考資訊的該雜訊強度值與該第一預設雜訊門檻值之間的比值,計算該第一計數值。 The method for detecting a noise of the electronic device of claim 10, wherein the step of calculating the first count value comprises: selecting the noise intensity value of the noise reference information and the first preset The ratio between the gate thresholds is calculated and the first count value is calculated. 如請求項9所述的電子裝置的雜訊偵測方法,其中當該觸控模組操作在該第二操作模式或該第三操作模式時,於判斷該雜訊強度值小於該第一預設雜訊門檻值的該步驟後,更包括:於一第二預設時間內根據雜訊參考資訊的該雜訊強度值減少該些第一計數值的累計值;判斷在該第二預設時間內該些第一計數值的累計值是否小於或等於一第二預設閥值;若判斷該些第一計數值的累計值在該第二預設時間內小於或等於該第二預設閥值,使該觸控模組進入該第一操作模式;以及若判斷該第一計數值的累計值在該第二預設時間內大於該第二預設閥值,使該觸控模組維持操作在目前所選擇的該操作模式。 The method for detecting a noise of an electronic device according to claim 9, wherein when the touch module operates in the second operation mode or the third operation mode, determining that the noise intensity value is smaller than the first After the step of setting the threshold of the noise threshold, the method further includes: reducing the accumulated value of the first count value according to the noise intensity value of the noise reference information in a second preset time; determining the second preset Whether the accumulated value of the first count value is less than or equal to a second preset threshold value; if it is determined that the accumulated value of the first count values is less than or equal to the second preset in the second preset time The threshold is such that the touch module enters the first operation mode; and if it is determined that the integrated value of the first count value is greater than the second preset threshold within the second predetermined time, the touch module is The operation is maintained at the currently selected mode of operation. 如請求項9所述的電子裝置的雜訊偵測方法,其中當該觸控模組操作在該第二操作模式或該第三操作模式時,於判斷該雜訊強度值小於該第一預設雜訊門檻值的該步驟後,更包括:設定一第二計數值;於一第二預設時間內根據該雜訊參考資訊的該雜訊強度值減少該第二計數值; 判斷在該第二預設時間內該第二計數值是否小於或等於一第二預設閥值;若判斷該第二計數值在該第二預設時間內小於或等於該第二預設閥值,使該觸控模組進入該第一操作模式;以及若判斷該第二計數值的累計值在該第二預設時間內大於該第二預設閥值,使該觸控模組維持操作在目前所選擇的該操作模式。 The method for detecting a noise of an electronic device according to claim 9, wherein when the touch module operates in the second operation mode or the third operation mode, determining that the noise intensity value is smaller than the first After the step of setting the threshold of the noise threshold, the method further includes: setting a second count value; and decreasing the second count value according to the noise intensity value of the noise reference information in a second preset time; Determining whether the second count value is less than or equal to a second preset threshold value in the second preset time; if it is determined that the second count value is less than or equal to the second preset valve in the second preset time a value that causes the touch module to enter the first mode of operation; and if the accumulated value of the second count value is greater than the second predetermined threshold value during the second predetermined time period, the touch module is maintained The operation mode currently selected is operated. 如請求項13所述的電子裝置的雜訊偵測方法,其中在計算該第二計數值的該步驟中,包括:根據該第一預設雜訊門檻值與該雜訊強度值之間的比值,減少該第二計數值。 The method for detecting a noise of an electronic device according to claim 13 , wherein the step of calculating the second count value comprises: between the first preset noise threshold and the noise intensity value Ratio, reducing the second count value. 如請求項1所述的電子裝置的雜訊偵測方法,其中該些偵測區段的時間長度相同。 The method for detecting noise of an electronic device according to claim 1, wherein the detecting sections have the same length of time. 如請求項1所述的電子裝置的雜訊偵測方法,其中該偵測週期為該驅動週期與一偏移緩衝時段(offset)的總和。 The method for detecting noise of an electronic device according to claim 1, wherein the detection period is a sum of the driving period and an offset buffer period (offset). 如請求項1所述的電子裝置的雜訊偵測方法,其中該偵測區段的時間長度至少大於該觸控板上的任一條感應線的一取樣時間,其中該取樣時間係指感應取得該所對應之感應線的至少一感應值的時間。 The method for detecting noise in an electronic device according to claim 1, wherein the length of the detecting segment is at least greater than a sampling time of any one of the sensing lines on the touch panel, wherein the sampling time refers to induction. The time at which the sensing line corresponds to at least one sensed value. 如請求項1所述的電子裝置的雜訊偵測方法,其中在取得各該偵測區段的感應資訊的該步驟中,包括:於各該偵測區段進行取樣,以產生多個感應值;以及分別對各該偵測區段中的該些感測值進行運算,以產生對應各該偵測區段的該感應資訊。 The method for detecting noise of an electronic device according to claim 1, wherein the step of obtaining the sensing information of each of the detecting segments comprises: sampling each of the detecting segments to generate a plurality of sensing And calculating the sensing values in each of the detecting sections to generate the sensing information corresponding to each of the detecting sections. 如請求項18所述的電子裝置的雜訊偵測方法,其中該感應資訊為該些感測值的一平均值、一最小平方值、一平方平均數值以及一積分值的其中之一。 The method for detecting noise of an electronic device according to claim 18, wherein the sensing information is one of an average value, a least square value, a square average value, and an integral value of the sensing values. 一種電子裝置的雜訊偵測及操作模式設定方法,其中該電子裝 置包括一觸控模組以及一顯示模組,該觸控模組具有一觸控板,且該觸控板是對應設置於該顯示模組上,該雜訊偵測及模式設定方法包括:依據該顯示模組的一驅動信號產生對應該驅動信號的一雜訊參考資訊;判斷該雜訊參考資訊的一雜訊強度值是否大於一第一預設雜訊門檻值;若判斷該雜訊強度值大於該第一預設雜訊門檻值,使該觸控模組進入於一雜訊操作模式,其中該觸控模組在該雜訊操作模式下能夠偵測兩個或兩個以下的觸控物件;以及若判斷該雜訊強度值小於該第一預設雜訊門檻值,使該觸控模組操作於一多物件觸控模式,其中該觸控模組在該多物件觸控模式下能夠偵測觸控物件的最大數量大於該觸控模組在該雜訊操作模式下所能夠偵測的觸控物件之最大數量。 Method for setting noise detection and operation mode of electronic device, wherein the electronic device The device includes a touch panel and a display module. The touch module has a touch panel, and the touch panel is correspondingly disposed on the display module. The noise detection and mode setting method includes: And generating a noise reference information corresponding to the driving signal according to a driving signal of the display module; determining whether a noise intensity value of the noise reference information is greater than a first preset noise threshold; and determining the noise The intensity value is greater than the first preset noise threshold, so that the touch module enters a noise operation mode, wherein the touch module can detect two or less in the noise operation mode. The touch object is operated in a multi-object touch mode, wherein the touch module is in the multi-object touch mode, and the touch module is in the multi-object touch mode. The maximum number of touch objects that can be detected in the mode is greater than the maximum number of touch objects that the touch module can detect in the noise operation mode. 如請求項20所述的電子裝置的雜訊偵測及操作模式設定方法,其中該雜訊操作模式具有一種單一物件觸控模式以及一種兩物件觸控模式,且在判斷該雜訊強度值大於該第一預設雜訊門檻值的該步驟之後,包括:判斷該雜訊強度值是否大於一第二預設雜訊門檻值;若判斷該雜訊強度值大於該第二預設雜訊門檻值時,使該觸控模組進入該單一物件觸控模式,其中該觸控模組在該單一物件觸控模式下僅能夠偵測一個觸控物件;以及若判斷該雜訊強度值小於該第二預設雜訊門檻值時,使該觸控模組進入該兩物件觸控模式,其中該觸控模組在該兩物件觸控模式下能夠偵測兩個或兩個以下的觸控物件。 The method for setting a noise detection and operation mode of the electronic device according to claim 20, wherein the noise operation mode has a single object touch mode and a two object touch mode, and the noise intensity value is greater than After the step of the first preset noise threshold, the method includes: determining whether the noise strength value is greater than a second preset noise threshold; and determining that the noise strength value is greater than the second predetermined noise threshold The touch module is configured to enter the single object touch mode, wherein the touch module can only detect one touch object in the single object touch mode; and if the noise intensity value is less than the The second preset noise threshold causes the touch module to enter the two object touch modes, wherein the touch module can detect two or less touches in the two object touch modes. object. 如請求項21所述的電子裝置的雜訊偵測及操作模式設定方法,其中在該單一物件觸控模式下的觸碰感應臨界值大於在該兩物件觸控模式下的觸碰感應臨界值,而在該兩物件觸控模式 下的觸碰感應臨界值大於在該多物件觸控模式的觸碰感應臨界值。 The method for setting the noise detection and operation mode of the electronic device according to claim 21, wherein the touch sensing threshold value in the single object touch mode is greater than the touch sensing threshold value in the touch control mode of the two objects And in the two object touch mode The lower touch sensing threshold is greater than the touch sensing threshold in the multi-object touch mode. 如請求項21所述的電子裝置的雜訊偵測及操作模式設定方法,其中當該觸控模組是操作在該多物件觸控模式時,於判斷該雜訊強度值大於該第一預設雜訊門檻值之後,包括:比較該雜訊參考資訊與該第一預設雜訊門檻值,以計算出對應該雜訊參考資訊之一第一計數值;判斷在一第一預設時間內對應多個偵測週期的該複數個第一計數值的累計值是否大於一第一預設閥值;若判斷在該第一預設時間內該些第一計數值的累計值大於該第一預設閥值,根據該雜訊強度值使該觸控模組進入該雜訊操作模式;以及若判斷在該第一預設時間內該些第一計數值的累計值小於該第一預設閥值,使該觸控模組維持操作在該多物件觸控模式。 The method for setting a noise detection and operation mode of the electronic device according to claim 21, wherein when the touch module is operated in the multi-object touch mode, determining that the noise intensity value is greater than the first pre- After the noise threshold is set, the method includes: comparing the noise reference information with the first preset noise threshold to calculate a first count value corresponding to one of the noise reference information; determining at a first preset time Whether the accumulated value of the plurality of first count values corresponding to the plurality of detection periods is greater than a first preset threshold; if it is determined that the accumulated value of the first count values is greater than the first in the first preset time a preset threshold, the touch module is caused to enter the noise operation mode according to the noise intensity value; and if it is determined that the accumulated value of the first count values is less than the first preset in the first preset time The threshold is set to maintain the touch module in the multi-object touch mode. 如請求項23所述的電子裝置的雜訊偵測及操作模式設定方法,其中在判斷該些第一計數值的累計值大於該第一預設閥值,使該觸控模組進入該雜訊操作模式的該步驟中,包括:若判斷在該第一預設時間內該複數個雜訊強度值之中的最大值或平均值小於該第二預設雜訊門檻值或是該些第一計數值中的最大值或平均值小於一預設雜訊計數門檻值,使該觸控模組進入該兩物件觸控模式;以及若判斷在該第一預設時間內該複數個雜訊強度值之中的最大值或平均值大於該第二預設雜訊門檻值或是該些第一計數值中的最大值或平均值大於該預設雜訊計數門檻值,使該觸控模組進入該單一物件觸控模式。 The method for setting a noise detection and operation mode of the electronic device according to claim 23, wherein determining that the integrated value of the first count values is greater than the first preset threshold value causes the touch module to enter the hybrid The step of the operation mode includes: determining that a maximum value or an average value of the plurality of noise intensity values is less than the second preset noise threshold or the first The maximum value or the average value of a count value is less than a preset noise count threshold value, so that the touch module enters the two object touch modes; and if the plurality of noises are determined within the first preset time The maximum value or the average value of the intensity values is greater than the second preset noise threshold or the maximum or average value of the first count values is greater than the preset noise count threshold, so that the touch mode The group enters the single object touch mode. 如請求項24所述的電子裝置的雜訊偵測及操作模式設定方法,其中在計算該第一計數值的該步驟中,包括: 根據雜訊強度值與該第一預設雜訊門檻值之間的比值計算該第一計數值。 The method for setting a noise detection and operation mode of the electronic device according to claim 24, wherein in the step of calculating the first count value, the method includes: The first count value is calculated according to a ratio between the noise intensity value and the first preset noise threshold. 如請求項23所述的電子裝置的雜訊偵測及操作模式設定方法,其中當該觸控模組操作在該兩物件觸控模式或該單一物件觸控模式時,在判斷該雜訊強度值小於該第一預設雜訊門檻值的該步驟後,更包括:於一第二預設時間內根據雜訊參考資訊的該雜訊強度值減少該些第一計數值的累計值;判斷在該第二預設時間內該些第一計數值的累計值是否小於或等於一第二預設閥值;若判斷該些第一計數值的累計值在該第二預設時間內小於或等於該第二預設閥值,使該觸控模組進入該多物件觸控模式;以及若判斷該第一計數值的累計值在該第二預設時間內大於該第二預設閥值,使該觸控模組維持操作在目前所選擇的該操作模式。 The method for setting the noise detection and operation mode of the electronic device according to claim 23, wherein the noise intensity is determined when the touch module operates in the touch mode of the two objects or the touch mode of the single object After the step of the value being less than the first preset noise threshold, the method further includes: reducing the accumulated value of the first count values according to the noise intensity value of the noise reference information in a second preset time; Whether the accumulated value of the first count values is less than or equal to a second preset threshold value during the second preset time; if it is determined that the accumulated value of the first count values is less than or less than the second preset time Equivalent to the second preset threshold, so that the touch module enters the multi-object touch mode; and if it is determined that the accumulated value of the first count value is greater than the second preset threshold in the second preset time The touch module is maintained to operate in the currently selected mode of operation. 如請求項23所述的電子裝置的雜訊偵測及操作模式設定方法,其中當該觸控模組操作在該兩物件觸控模式或該單一物件觸控模式時,在判斷該雜訊強度值小於該第一預設雜訊門檻值的該步驟後,更包括:設定一第二計數值;於一第二預設時間內根據該雜訊參考資訊的該雜訊強度值,減少該第二計數值;判斷在該第二預設時間內該第二計數值是否小於或等於一第二預設閥值;若判斷在該第二預設時間內該第二計數值小於或等於該第二預設閥值,使該觸控模組進入該多物件觸控模式;以及若判斷在該第二預設時間內該第二計數值大於該第二預 設閥值,使該觸控模組維持操作在目前所選擇的該操作模式。 The method for setting the noise detection and operation mode of the electronic device according to claim 23, wherein the noise intensity is determined when the touch module operates in the touch mode of the two objects or the touch mode of the single object After the step of the value being less than the first preset noise threshold, the method further includes: setting a second count value; reducing the number according to the noise intensity value of the noise reference information in a second preset time a second count value; determining whether the second count value is less than or equal to a second preset threshold value in the second preset time; and determining that the second count value is less than or equal to the second preset time a preset threshold that causes the touch module to enter the multi-object touch mode; and if it is determined that the second count value is greater than the second pre-predetermined time The threshold is set to maintain the touch module in the currently selected mode of operation. 如請求項27所述的電子裝置的雜訊偵測及操作模式設定方法,其中在計算該第二計數值的該步驟中,包括:根據該第一預設雜訊門檻值與該雜訊強度值之間的比值,減少該第二計數值。 The method for setting a noise detection and operation mode of the electronic device according to claim 27, wherein the step of calculating the second count value comprises: according to the first preset noise threshold and the noise strength The ratio between the values reduces the second count value. 一種電子裝置,包括:一顯示模組;以及一觸控模組,包括:一觸控板,設置於該顯示模組上,且該觸控板上設置有複數條感應線;及一處理單元,電性連接該些感應線,該處理單元用以決定該觸控板的一偵測週期,並於該偵測週期內掃描該觸控板上該些感應線,該處理單元並根據該些感應線的掃描結果,產生一雜訊參考資訊,其中該偵測週期大於或等於該顯示模組的一驅動週期;其中,該處理單元將該偵測週期分成複數個偵測區段,並分別取得對應各該偵測區段的感應資訊,且該處理單元透過對各該偵測區段所對應的感應資訊進行運算,產生該雜訊參考資訊。 An electronic device includes: a display module; and a touch module, comprising: a touch panel disposed on the display module, wherein the touch panel is provided with a plurality of sensing lines; and a processing unit Electrically connecting the sensing lines, the processing unit is configured to determine a detection period of the touch panel, and scanning the sensing lines on the touch panel during the detecting period, and the processing unit is configured according to the The detection result of the sensing line generates a noise reference information, wherein the detection period is greater than or equal to a driving period of the display module; wherein the processing unit divides the detection period into a plurality of detection sections, and respectively The sensing information corresponding to each of the detecting segments is obtained, and the processing unit generates the noise reference information by performing operation on the sensing information corresponding to each of the detecting segments. 如請求項29所述的電子裝置,其中該觸控模組具有複數個操作模式,且該處理單元根據該雜訊參考資訊,使該觸控模組進入該些操作模式之一,其中該些操作模式分別對應不同的一觸碰感應臨界值。 The electronic device of claim 29, wherein the touch module has a plurality of operation modes, and the processing unit causes the touch module to enter one of the operation modes according to the noise reference information, wherein the The operation modes correspond to different one touch sensing thresholds. 如請求項30所述的電子裝置,其中該些操作模式包括一第一操作模式以及一第二操作模式;當該處理單元判斷該雜訊參考資訊的一雜訊強度值小於一第一預設雜訊門檻值時,該處理單元使該觸控模組進入該第一操作模式;當該處理單元判斷該雜訊參考資訊的該雜訊強度值大於該第一預設雜訊門檻值時,該 處理單元使該觸控模組進入該第二操作模式;其中在該第一操作模式下的觸碰感應臨界值大於在該第二操作模式下的觸碰感應臨界值。 The electronic device of claim 30, wherein the operating modes include a first operating mode and a second operating mode; and when the processing unit determines that the noise strength value of the noise reference information is less than a first preset When the noise threshold is exceeded, the processing unit causes the touch module to enter the first operation mode; when the processing unit determines that the noise intensity value of the noise reference information is greater than the first preset noise threshold, The The processing unit causes the touch module to enter the second operation mode; wherein the touch sensing threshold value in the first operation mode is greater than the touch sensing threshold value in the second operation mode. 如請求項31所述的電子裝置,其中該些操作模式還包括一第三操作模式,並當該處理單元判斷該雜訊參考資訊的該雜訊強度值大於該第一預設雜訊門檻值時,該處理單元進一步判斷該雜訊強度值是否大於一第二預設雜訊門檻值;其中,當該處理單元判斷該雜訊強度值大於該第二預設雜訊門檻值時,該處理單元使該觸控模組進入該第三操作模式;其中,當該處理單元判斷該雜訊強度值小於該第二預設雜訊門檻值時,該處理單元使該觸控模組進入該第二操作模式;其中在該第三操作模式下的觸碰感應臨界值大於在該第二操作模式下的觸碰感應臨界值。 The electronic device of claim 31, wherein the operation modes further include a third operation mode, and when the processing unit determines that the noise intensity value of the noise reference information is greater than the first predetermined noise threshold The processing unit further determines whether the noise strength value is greater than a second preset noise threshold; wherein, when the processing unit determines that the noise strength value is greater than the second preset noise threshold, the processing The unit causes the touch module to enter the third operation mode; wherein, when the processing unit determines that the noise intensity value is less than the second preset noise threshold, the processing unit causes the touch module to enter the first a second mode of operation; wherein the touch sensing threshold in the third mode of operation is greater than the touch sensing threshold in the second mode of operation. 如請求項29所述的電子裝置,其中該處理單元計算該些偵測區段中其中兩個偵測區段的感應資訊之間的差異,以獲取該雜訊參考資訊。 The electronic device of claim 29, wherein the processing unit calculates a difference between sensing information of two of the detecting segments to obtain the noise reference information. 如請求項33所述的電子裝置,其中進行運算的該兩個偵測區段之間是間隔有至少另一個偵測區段。 The electronic device of claim 33, wherein the two detection sections that perform the operation are separated by at least another detection section. 如請求項29所述的電子裝置,其中該些偵測區段包括依時間排列的一第一偵測區段、一第二偵測區段、一第三偵測區段以及一第四偵測區段;該處理單元計算該第一偵測區段的感應資訊與該第三偵測區段的感應資訊之間的差異,以產生一第一感應差異值,且該處理單元計算該第二偵測區段的感應資訊與該第四偵測區段的感應資訊之間的差異,以產生一第二感應差異值,該處理單元並計算該第一感應差異值以及該第二感應差異值的和,以獲取該雜訊參考資訊。 The electronic device of claim 29, wherein the detection sections comprise a first detection section, a second detection section, a third detection section, and a fourth detection arranged in time. The processing unit calculates a difference between the sensing information of the first detecting segment and the sensing information of the third detecting segment to generate a first sensing difference value, and the processing unit calculates the first And detecting a difference between the sensing information of the detecting section and the sensing information of the fourth detecting section to generate a second sensing difference value, wherein the processing unit calculates the first sensing difference value and the second sensing difference The sum of the values to obtain the noise reference information. 如請求項29所述的電子裝置,其中該處理單元將該複數個偵測區段分成至少一偵測群組,該處理單元比較同一偵測群組之 該些偵測區段的感應資訊,以取得對應該偵測群組的一比較結果,該處理單元並對該至少一偵測群組的該比較結果進行運算,以獲取該雜訊參考資訊,其中該任一偵測群組包含至少二個偵測區段。 The electronic device of claim 29, wherein the processing unit divides the plurality of detection segments into at least one detection group, and the processing unit compares the same detection group The sensing information of the detection segment is used to obtain a comparison result corresponding to the detection group, and the processing unit calculates the comparison result of the at least one detection group to obtain the noise reference information. The detection group includes at least two detection segments. 如請求項29所述的電子裝置,其中該偵測週期為該驅動週期與一偏移緩衝時段的總和。 The electronic device of claim 29, wherein the detection period is a sum of the driving period and an offset buffer period. 一種電子裝置,包括:一顯示模組;以及一觸控模組,包括:一觸控板,設置於該顯示模組上;及一處理單元,電性連接該觸控板,該處理單元用以根據該顯示模組的一驅動信號產生對應該驅動信號的一雜訊參考資訊,且該處理單元根據該雜訊參考資訊決定該觸控模組的一操作模式為一多物件觸控模式或一雜訊操作模式,其中,該觸控模組在該多物件觸控模式下偵測一個或多個觸控物件,並該觸控模組在該雜訊操作模式下偵測兩個或兩個以下的觸控物件;其中,當該處理單元判斷該雜訊參考資訊的一雜訊強度值小於一第一預設雜訊門檻值時,該處理單元使該觸控模組進入該多物件觸控模式;當該處理單元判斷該雜訊強度值大於該第一預設雜訊門檻值時,該處理單元使該觸控模組進入該雜訊操作模式。 An electronic device comprising: a display module; and a touch module comprising: a touch panel disposed on the display module; and a processing unit electrically connected to the touch panel, the processing unit A noise reference information corresponding to the driving signal is generated according to a driving signal of the display module, and the processing unit determines, according to the noise reference information, an operation mode of the touch module is a multi-object touch mode or A noise operation mode, wherein the touch module detects one or more touch objects in the multi-object touch mode, and the touch module detects two or two in the noise operation mode The touch unit is configured to: when the processing unit determines that the noise intensity value of the noise reference information is less than a first preset noise threshold, the processing unit causes the touch module to enter the multi-object The touch mode; when the processing unit determines that the noise intensity value is greater than the first preset noise threshold, the processing unit causes the touch module to enter the noise operation mode. 如請求項38所述的電子裝置,其中該雜訊操作模式具有一單一物件觸控模式以及一兩物件觸控模式,且該處理單元在判斷出該雜訊強度值大於該第一預設雜訊門檻值之後,該處理單元進一步判斷該雜訊強度值是否大於一第二預設雜訊門檻值;當該處理單元判斷該雜訊強度值大於該第二預設雜訊門檻值時,該處理單元使該觸控模組進入該單一物件觸控模式,其中 該觸控模組在該單一物件觸控模式下僅偵測一個觸控物件;當該雜訊強度值小於該第二預設雜訊門檻值時,使該觸控模組進入該兩物件觸控模式,其中該觸控模組在該兩物件觸控模式下偵測兩個或兩個以下的觸控物件。 The electronic device of claim 38, wherein the noise operation mode has a single object touch mode and a two object touch mode, and the processing unit determines that the noise intensity value is greater than the first preset After the threshold is depreciated, the processing unit further determines whether the noise strength value is greater than a second preset noise threshold; when the processing unit determines that the noise strength value is greater than the second preset noise threshold, The processing unit causes the touch module to enter the single object touch mode, wherein The touch module detects only one touch object in the single object touch mode; when the noise intensity value is less than the second preset noise threshold, the touch module enters the two object touches In the control mode, the touch module detects two or less touch objects in the two object touch modes. 如請求項38所述的電子裝置,其中當該處理單元判斷該雜訊強度值大於該第一預設雜訊門檻值時,設定一雜訊旗標,且該處理單元於檢測到該雜訊旗標時,使該觸控模組該進入該雜訊操作模式。 The electronic device of claim 38, wherein when the processing unit determines that the noise intensity value is greater than the first predetermined noise threshold, setting a noise flag, and the processing unit detects the noise When the flag is flagged, the touch module is caused to enter the noise operation mode. 如請求項40所述的電子裝置,其中該處理單元於未檢測到該雜訊旗標時,該處理單元使該觸控模組操作於該多物件觸控模式。 The electronic device of claim 40, wherein the processing unit causes the touch module to operate in the multi-object touch mode when the processing unit does not detect the noise flag.
TW102145179A 2013-12-09 2013-12-09 Electronic device having touch panel and noise detection and operation mode configuration methods thereof TWI533170B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW102145179A TWI533170B (en) 2013-12-09 2013-12-09 Electronic device having touch panel and noise detection and operation mode configuration methods thereof
CN201410008470.2A CN104699288B (en) 2013-12-09 2014-01-02 Electronic device and noise detection and operation mode setting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102145179A TWI533170B (en) 2013-12-09 2013-12-09 Electronic device having touch panel and noise detection and operation mode configuration methods thereof

Publications (2)

Publication Number Publication Date
TW201523362A TW201523362A (en) 2015-06-16
TWI533170B true TWI533170B (en) 2016-05-11

Family

ID=53346493

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102145179A TWI533170B (en) 2013-12-09 2013-12-09 Electronic device having touch panel and noise detection and operation mode configuration methods thereof

Country Status (2)

Country Link
CN (1) CN104699288B (en)
TW (1) TWI533170B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10921932B1 (en) 2019-07-30 2021-02-16 Wistron Corporation Adaptive touch panel system and an adaptive method thereof adapted to environmental change

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106257386B (en) * 2015-06-22 2021-04-02 三星电子株式会社 Touch screen controller and touch screen system using adaptive filter
CN105573553A (en) * 2015-12-30 2016-05-11 联想(北京)有限公司 Information processing method, information processing device and electronic equipment
US11474640B2 (en) 2016-02-19 2022-10-18 Egalax_Empia Technology Inc. Touch sensitive processing apparatus and electronic system and method thereof for reducing interference from pixel refreshing
CN107102765B (en) * 2016-02-19 2020-04-10 禾瑞亚科技股份有限公司 Touch processing method and device for reducing interference during pixel updating and electronic system
TWI603253B (en) * 2016-02-25 2017-10-21 敦泰電子有限公司 Embedded self-capacitance touch display device and water detection method
US10216257B2 (en) * 2017-03-10 2019-02-26 Synaptics Incorporated Power consumption optimization using interference measurements
TWI636388B (en) * 2017-07-25 2018-09-21 友達光電股份有限公司 Method and detect circuit for selecting touch detection time
TWI620113B (en) * 2017-11-10 2018-04-01 Chipone Technology Beijing Co Ltd Touch sensing method and capacitive touch display device
KR20200079886A (en) * 2018-12-26 2020-07-06 주식회사 실리콘웍스 Touch sensing apparatus and touch sensing system
CN110174971B (en) * 2019-05-31 2022-05-13 京东方科技集团股份有限公司 Touch signal noise reduction method and device, touch IC and touch display device
TWI749837B (en) * 2020-10-29 2021-12-11 友達光電股份有限公司 Digital signal segmentation method
TWI818455B (en) * 2022-03-01 2023-10-11 幸芯科技有限公司 Styluses and touch screens that can judge communication quality and methods for judging communication quality

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533324B (en) * 2008-03-11 2012-01-04 禾瑞亚科技股份有限公司 Noise eliminating device of capacitive touch panel and method thereof
TWI403948B (en) * 2010-06-08 2013-08-01 Au Optronics Corp Method of reducing noises on a touch panel
CN102650912A (en) * 2011-02-23 2012-08-29 安国国际科技股份有限公司 Signal processing method and system of touch panel
TWI469007B (en) * 2012-04-17 2015-01-11 Raydium Semiconductor Corp Method of controlling noise processing circuit of touch panel and related signal processing device
TWI464662B (en) * 2012-05-30 2014-12-11 Noise cancellation circuit for capacitive touch panel

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10921932B1 (en) 2019-07-30 2021-02-16 Wistron Corporation Adaptive touch panel system and an adaptive method thereof adapted to environmental change

Also Published As

Publication number Publication date
TW201523362A (en) 2015-06-16
CN104699288A (en) 2015-06-10
CN104699288B (en) 2018-01-19

Similar Documents

Publication Publication Date Title
TWI533170B (en) Electronic device having touch panel and noise detection and operation mode configuration methods thereof
US10386965B2 (en) Finger tracking in wet environment
US9323383B2 (en) Method of identifying edge swipe gesture and method of opening window control bar using the identifying method
US9274652B2 (en) Apparatus, method, and medium for sensing movement of fingers using multi-touch sensor array
US9778742B2 (en) Glove touch detection for touch devices
US9417728B2 (en) Predictive touch surface scanning
US9069411B2 (en) Capacitive touch screen
JP6419152B2 (en) Optimized adaptive thresholding for touch sensing
US20120154324A1 (en) Predictive Touch Surface Scanning
TWI479377B (en) Method and device for touch identifying
US20160054831A1 (en) Capacitive touch device and method identifying touch object on the same
CN109643200A (en) The update method of a reference value of electronic equipment, touch detection circuit and touch screen
KR101818663B1 (en) Touch detection system and driving method thereof
TWI416396B (en) Touch point detecting method
CN110192170A (en) Touch controller, device, terminal and touch control method
EP3644167A1 (en) Electronic devices and methods of operating electronic devices
CN104679312A (en) Electronic device as well as touch system and touch method of electronic device
KR101120164B1 (en) method of operating touch screen device and touch panel therein
US20110185310A1 (en) Method and system for detecting a finger contact on a touchpad
US8922504B2 (en) Click gesture determination method, touch control chip, touch control system and computer system
US11429233B2 (en) Common mode noise suppression with restoration of common mode signal
US8890847B2 (en) Optical touch system and touch point calculation method thereof
TWI612454B (en) Baseline updating method for capacitive touch pad
TWI590114B (en) Processing method for touch control signal and electronic device
TW201535238A (en) Method of opening window control bar by identification of edge swipe gesture and touch system using the method

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees