201009714 九、發明說明: 【發明所屬之技術領域】 本發明是有關於一種觸控面板之掃瞄方法,特別是指 一種可加快觸控面板之反應速度的掃瞄方法^ 【先前技術】 一般觸控面板是設置於一電子設備上,以作為使用者 與電子設備間之控制介面,觸控面板之構造是於一基板表 面上矩陣排列出多數個觸控鍵,當使用者用手或者觸控筆 等觸壓其中—觸控鍵時,就於該觸控鍵上形成指令以控制 該電子備運作,其運作之原理是利用一控制器不斷掃晦 每一個觸控鍵,並於其中一觸控鍵被觸碰而改變其電容值 或電阻值’且該控制器掃猫到上述電容值或電阻值改變之 觸控鍵時’就以該觸控鍵之位置所代表之操作指令傳送至 電子設備上。201009714 IX. Description of the Invention: [Technical Field] The present invention relates to a scanning method for a touch panel, and more particularly to a scanning method capable of accelerating the reaction speed of a touch panel ^ [Prior Art] General Touch The control panel is disposed on an electronic device as a control interface between the user and the electronic device. The touch panel is configured by matrixing a plurality of touch keys on a surface of the substrate, when the user touches the hand or touches When the pen or the like touches the touch key, an instruction is formed on the touch key to control the operation of the electronic device. The principle of operation is to continuously scan each touch key with a controller and touch it. When the control button is touched to change its capacitance value or resistance value 'and the controller scans the cat to the above-mentioned capacitance value or the resistance value change resistance touch key', the operation command represented by the position of the touch key is transmitted to the electronic On the device.
那电卞設備之顯示螢幕尺寸逐漸增大時,該觸 控面板之尺寸亦逐漸增大,連帶的使觸控鍵之數目也增加 ’致使該控制器掃瞒所有觸控鍵之時間也增長,舉例而言 J ,等觸控鍵是以㈣的矩陣排列方式排列於基板上也 :疋全:觸控鍵的觸控面板,每個觸控鍵需掃瞄4毫 二=控鍵一次需要192毫秒,每秒鐘可掃猫 全部觸控鍵5.2〇8次,如 排列於基板上陆德鍵,也就是以 可掃瞄"麻 掃瞄-次需要480毫秒,每秒鐘只 鍵2-·083次,也就是整個觸控面板的反應速 顯不螢幕尺寸再增加時,恐再拖慢觸控面 201009714 板之反應速度。 【發明内容】 因此,本發明之目的,即在提供一種可以使觸控面板 反應速度加快之掃瞄方法。 於是,本發明觸控面板之掃瞄方法中,所述觸控面板 具有多數矩陣排列之觸控鍵,掃瞄方法包含以下步驟: (A) 逐-掃猫所有觸控鍵’並偵測是否有觸控鍵被觸 碰; (B) 如於其中一觸控鍵被觸碰時,立即由該觸控鍵被 觸碰之位置計算出其周圍之觸控鍵位置,被觸碰之觸控鍵 及其周圍之觸控鍵形成一掃瞄子區; (C) 持續掃瞄該掃瞄子區内之觸控鍵,當被觸碰之位 置移動,且觸碰該掃瞄子區中之另一觸控鍵時就以另一 觸控鍵位置為基礎,執行步驟B與步驟C:及 (D) 於無觸控鍵被觸碰時,持續執行步驟a ^ 本發明觸控面板之掃瞄方法利用被觸碰之觸控鍵計算 出周圍之觸控鍵位置,並建立該掃猫子區,且控制器僅針 對掃猫子區令之觸控鍵進行掃猫,以簡化縮短掃猫時間, 增加反應速度》 【實施方式】 、有關本發明之前述及其他技術内容、特點與功效,在 以下配σ參考圓式之三個較佳實施例的詳細說明中,將可 清楚的呈現。 在本發明被詳細描述之前,要注意的是,在以下的說 201009714 明内谷中,類似的元件是以相同的編號來表示。 參閱圖1、圖2與圖3 ’本發明觸控面板之掃猫方法之 第-較佳實施例適用於供一控制器(圖未示)掃瞄觸控面 板3上之觸控鍵32,所述觸控面板3之觸控鍵32是以矩陣 方式排列於一基板31上,掃瞄方法包含以下步驟: (A )逐一掃瞄所有觸控鍵32,並偵測是否有觸控鍵 32被觸碰。其中所述控制器是掃瞄所有觸控鍵32,並偵測 是否有觸控鍵32因外界觸碰而改變觸控鍵32之電容值或 電阻值等物理量。 (B)如於其中一觸控鍵32被觸碰而上述物理量改變 時,立即由該觸控鍵32被觸碰之位置計算出其周圍之觸控 鍵32位置,被觸碰之觸控鍵32及其周圍之數個觸控鍵32 形成一掃瞄子區33。本實施例中,如其中一觸控鍵32被觸 碰時,立即由該觸控鍵32被觸碰之位置計算出其前、後、 左、右、左前、左後、右前、右後之觸控鍵32位置形成該 掃瞄子區33,也就是該掃瞄子區33基本上是由九個觸控鍵 32組成而呈3*3矩陣排列。 但是,如被觸碰之觸控鍵32是位於矩陣排列之邊界時 ,則掃晦子區33僅界定於矩陣内之區域,例如於以下八種 狀況時,該掃瞄子區33是界定如下: (1)如被觸碰之觸控鍵32是如圖3 (a)位於左邊界 時’立即由被觸碰觸控鍵32及其前、後、右、右 前、右後方共六個觸控鍵32位置形成該掃瞄子區 33 ° 201009714 (2) 如被觸碰之觸控鍵32是如圖3 (b)位於右邊界 時,立即由被觸碰觸控鍵32及其前、後、左、左 、 前、左後方共六個觸控鍵32位置形成該掃瞄子區 33 ° (3) 如被觸碰之觸控鍵32是如圖3 (c)位於前邊界 時立即由被觸碰觸控鍵32及其後、左、右、左後 、右後方共六個觸控鍵32形成該掃瞄子區33。 (4) 如被觸碰之觸控鍵32是如圓3 (d)位於後邊界 時’立即由被觸碰觸控鍵32及其前、左、右、左 ® 前、右前方共六個觸控鍵32位置形成該掃瞄子區 33 ° (5) 如被觸碰之觸控鍵32是如圖4 (a)位於左前邊 界角落時’立即由被觸碰觸控鍵32及其後、右、 右後方共四個觸控鍵32形成該掃瞄子區33。 (6) 如被觸碰之觸控鍵32是如圖4 (b)位於左後邊 界角落時’立即由被觸碰觸控鍵32及其前、右、 右前方共四個觸控鍵32位置形成該掃瞄子區33 〇 〇 ⑺如被觸碰之觸控鍵32是如圖4 (c)位於右前邊 界角落時’立即由被觸碰觸控鍵32及其後、左、 左後方共四個觸控鍵32位置形成該掃瞄子區33 · 〇 (8)如被觸碰之觸控鍵32是如圖4 (d)位於右後邊 界角落時’立即由被觸碰觸控鍵32及其前、左、 8 201009714 左前方共四個觸控鍵32位置形成該掃瞄子區33 〇 參閱圖1與圖2 ’本實施例中是以計算觸控鍵32之座 標方式計算出該掃料區33之所有觸控鍵32,例如被觸碰 之觸控鍵32座標是(Χ,γ),則掃料區33内之觸控鍵 32之座標分別計算如下表:纟_座標之標示方式是如圖! 所編排之方式。 (X-l > Y-1) (X,Y-1 ) (X+1 > Y-1) (X-1 » Y) (X-1 > Y+1 ) (X,Y) (X+1,Y) (X,Y+1) (X+1 » Y+1) (C) 於該觸控鍵32被持續觸壓期間,持續掃瞄該掃 瞄子區33内之九個觸控鍵32,每掃瞄一次僅需%毫秒, 故當被觸碰之位置移動時,且觸碰該掃瞄子區33中之另— 觸控鍵32,可立即快速地被掃瞄到觸碰點移動位置,並以 另一觸控鍵32位置為基礎,執行步驟B與步驟c,建立新 的掃瞄子區,也就是掃瞄子區33是隨著觸碰點而不斷移動 〇 (D) 於步驟B&c中如碰觸觸控面板3之物離開時, 也就是無觸控鍵32被觸碰,就持續執行步驟A,掃瞄所有 觸控鍵32,擷取是否有觸控鍵32再被觸碰。 由於大多數觸控面板3於使用過程中,會於觸控面板3 上滑動以書寫文字、調整音量、亮度或拉取檔案,且於滑 動過程中都是以筆或手指觸碰之觸控鍵32為中心往各方^ 滑動,如以習知技術中之掃瞄方式掃瞄全部觸控鍵32時, 9 201009714 每秒僅掃BS 2〜5次’觸控面板3面積尺寸更大時掃猫次 數更少,容易因反應速度過慢而造成滑動過程中某些觸控 鍵32被觸碰而未被掃瞄取得指令的情況。 相對地,藉由本發明所述之掃猫方法掃猫到觸碰點位 置時’建立起該㈣子@ 33,於手指滑動時勢必滑移到該 掃猫子區33中之另外-觸控鍵32,並快速形成另—個新的 掃瞄子區33,藉以於滑動過程中可快速掃瞄到手指(書寫 筆)滑移而觸碰之觸控鍵32,快速取得觸控鍵32被觸碰之 指令。亦即簡化縮短掃瞄時間,增加觸控面板3之反應速 度。 參閲圖5、圖6與圖7,本發賴控面板之掃猫方法之 第二較佳實施例之掃时法大致與第—較佳實施例相同, 其不同之處在於當其中—觸控鍵32被觸碰時,立即由該觸 控鍵32被觸碰之位置計算出其前、後、左、右方之觸控鍵 32位置形成該掃瞄子區33,也就是該掃瞄子區b是呈十 字形,且最多是由五個觸控鍵32組成。 如被觸碰之觸控鍵32是位於矩陣邊界四邊時就是如 圖6之(a)、(b)、(C)、(d)四圖所示地共四個觸控鍵32 形成該掃好區33。如被觸碰之觸控鍵32是位於矩陣邊界 :角落時’就是如圖7之(小⑴、⑺、⑷四圖所示地 ” 一個觸控鍵32形成L字形之掃瞄子區33。When the display screen size of the eMule device is gradually increased, the size of the touch panel is gradually increased, and the number of touch keys is also increased, so that the time for the controller to broom all the touch keys is also increased. For example, J, and other touch keys are arranged on the substrate in a matrix arrangement of (4): 疋 Full: Touch panel of the touch key, each touch key needs to scan 4 mA = control key once needs 192 In milliseconds, you can scan all the touch keys of the cat for 5.2〇8 times per second. If you arrange the Lude key on the substrate, it will be able to scan " hemp scan-time requires 480 milliseconds, only 2-083 per second. Secondly, when the response speed of the entire touch panel is not increased, the reaction speed of the 201009714 board may be slowed down. SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide a scanning method that can speed up the reaction speed of a touch panel. Therefore, in the scanning method of the touch panel of the present invention, the touch panel has a plurality of matrix-arranged touch keys, and the scanning method comprises the following steps: (A) sweeping all the touch keys of the cats one by one and detecting whether If the touch key is touched, (B) if one of the touch keys is touched, the position of the touch key around the touch key is immediately calculated, and the touched touch is touched. The key and the touch keys therearound form a scan sub-area; (C) continuously scan the touch key in the scan sub-area, move when touched, and touch another one of the scan sub-areas When a touch key is used, based on the position of the other touch key, step B and step C are performed: and (D) when the touchless key is touched, the step a ^ is continuously performed. The method uses the touched touch key to calculate the position of the surrounding touch keys, and establishes the sweeping cat sub-area, and the controller only scans the cat for the touch button of the sweeping cat sub-zone to simplify the shortening of the sweeping time. , increase the reaction speed" [Embodiment], the foregoing and other technical contents, features and effects of the present invention are The detailed description of the three preferred embodiments of the lower σ reference circle will be apparent. Before the present invention is described in detail, it is to be noted that in the following 201009714, the same elements are denoted by the same reference numerals. Referring to FIG. 1 , FIG. 2 and FIG. 3 , the first preferred embodiment of the method for sweeping a touch panel of the present invention is suitable for a controller (not shown) to scan the touch key 32 on the touch panel 3 . The touch keys 32 of the touch panel 3 are arranged on a substrate 31 in a matrix manner. The scanning method includes the following steps: (A) scanning all the touch keys 32 one by one and detecting whether there are touch keys 32. Being touched. The controller scans all the touch keys 32 and detects whether the touch key 32 changes the physical value such as the capacitance value or the resistance value of the touch key 32 due to external touch. (B) If the physical quantity changes when one of the touch keys 32 is touched, the position of the touch key 32 around the touch key 32 is immediately calculated by the touched position of the touch key 32, and the touched touch key is touched. 32 and a plurality of touch keys 32 therearound form a scanning sub-area 33. In this embodiment, if one of the touch keys 32 is touched, the front, back, left, right, left front, left rear, right front, and right rear are calculated immediately from the position where the touch key 32 is touched. The position of the touch key 32 forms the scanning sub-area 33, that is, the scanning sub-area 33 is basically composed of nine touch keys 32 and arranged in a 3*3 matrix. However, if the touched touch key 32 is located at the boundary of the matrix arrangement, then the broom sub-region 33 is only defined in the region within the matrix. For example, in the following eight conditions, the scan sub-region 33 is defined as follows : (1) If the touched touch key 32 is as shown in Figure 3 (a) at the left border, it is immediately touched by the touch key 32 and its front, back, right, front right and right rear. The position of the control button 32 forms the scanning sub-area 33 ° 201009714 (2) If the touched touch key 32 is located at the right border as shown in FIG. 3(b), immediately after being touched by the touch key 32 and its front, The rear, left, left, front, and left rear six touch keys 32 position to form the scanning sub-area 33 ° (3) If the touched touch key 32 is as shown in Figure 3 (c) at the front boundary The scanning sub-area 33 is formed by a total of six touch keys 32 that are touched by the touch key 32 and its rear, left, right, left rear, and right rear. (4) If the touched touch key 32 is as round 3 (d) is located at the rear boundary, 'immediately by the touched touch key 32 and its front, left, right, left, front and right front, a total of six The position of the touch key 32 forms the scanning sub-area 33 ° (5) If the touched touch key 32 is located at the left front boundary corner as shown in FIG. 4 (a), the touch key 32 is touched immediately and then A total of four touch keys 32 on the right and the right rear form the scanning sub-area 33. (6) If the touched touch key 32 is located at the left rear boundary corner as shown in FIG. 4(b), immediately four touch keys 32 are touched by the touch key 32 and its front, right, and right fronts. The position forms the scanning sub-area 33 〇〇 (7). If the touched touch key 32 is located at the right front border corner as shown in FIG. 4(c), the touch key 32 is immediately touched, and then the rear left and the rear left. A total of four touch keys 32 are positioned to form the scanning sub-area 33. 〇 (8) If the touched touch key 32 is located at the right rear boundary corner as shown in FIG. 4(d), the touch is immediately touched. The key 32 and its front and left, 8 201009714 left front a total of four touch keys 32 position to form the scanning sub-area 33 〇 see FIG. 1 and FIG. 2 'in this embodiment is calculated by calculating the coordinate mode of the touch key 32 All the touch keys 32 of the scan area 33, for example, the coordinates of the touched touch keys 32 are (Χ, γ), and the coordinates of the touch keys 32 in the scan area 33 are calculated as follows: 纟_ The way the coordinates are marked is as shown! The way in which it is arranged. (Xl > Y-1) (X, Y-1 ) (X+1 > Y-1) (X-1 » Y) (X-1 > Y+1 ) (X, Y) (X+ 1, Y) (X, Y+1) (X+1 » Y+1) (C) continuously scans the nine touches in the scanning sub-area 33 while the touch key 32 is continuously pressed. The key 32 only takes about 1 millisecond per scan, so when it is moved by the touched position, and touches the other touch key 32 in the scanning sub-area 33, it can be quickly scanned to the touch. The position is moved, and based on the position of the other touch key 32, step B and step c are performed to establish a new scanning sub-area, that is, the scanning sub-area 33 is continuously moved with the touch point (D). When the touch panel 3 is removed in step B&c, that is, no touch button 32 is touched, step A is continuously performed, and all touch buttons 32 are scanned to capture whether there is touch. The key 32 is touched again. Since most of the touch panel 3 is in use, it will slide on the touch panel 3 to write text, adjust the volume, brightness, or pull the file, and touch the touch key with a pen or a finger during the sliding process. 32 is the center to the sides ^ slide, when scanning all the touch keys 32 in the scanning mode of the prior art, 9 201009714 only sweeps the BS 2 to 5 times per second 'touch panel 3 area size larger when sweeping The number of cats is less, and it is easy to cause some touch keys 32 to be touched during the sliding process because the reaction speed is too slow, and the command is not scanned. In contrast, when the cat sweeping method is used to scan the cat to the touch point position, the 'four' sub-33 is established, and when the finger slides, it is bound to slide to the other-touch key in the sweeping cat area 33. 32, and quickly forming another new scanning sub-area 33, so that the sliding button 32 can be quickly scanned when the finger (scraping pen) slides and touches, and the touch key 32 is quickly touched. Touch the instructions. That is, the scanning time is shortened and the reaction speed of the touch panel 3 is increased. Referring to FIG. 5, FIG. 6, and FIG. 7, the sweeping method of the second preferred embodiment of the method for sweeping the cat of the control panel is substantially the same as that of the first preferred embodiment, except that when the touch is When the control button 32 is touched, the position of the touch button 32 of the front, back, left and right is calculated by the position where the touch button 32 is touched to form the scan sub-area 33, that is, the scan. The sub-area b is in the shape of a cross and is composed of at most five touch keys 32. If the touched touch key 32 is located on the four sides of the matrix boundary, a total of four touch keys 32 are formed as shown in FIG. 6(a), (b), (C), and (d). Good area 33. If the touched touch key 32 is located at the boundary of the matrix: a corner, it is as shown in Fig. 7 (the small (1), (7), (4) four figures". A touch key 32 forms an L-shaped scan sub-area 33.
本發明觸控面板之掃猫方法之第三較佳實施例之掃瞒 :法大致與第一較佳實施例相同,其不同之處在於步驟c ’掃瞄該掃瞄子區33 -定之次數後,就重新執行步驟A 201009714 ^驟B及步驟c,且於步驟B中如被觸控財多數個時 就冲算出多數個掃瞒子區33,並持續掃瞄該等掃晦子區 33内之觸_ 32。上述靠該等掃猫子區33之次數可依 ,控面板3之觸控鍵32數量而定,本實施例中是掃瞄該等 掃瞄子區33三次之後,就再回去執行步驟a、步驟b及步 驟C ’藉此可偵測到觸控面板3上之多數個碰觸點,以掃瞄 接收多數個指令輸入。 综上所述,本發明觸控面板之掃瞄方法利用被觸碰之 觸控鍵32計算出周圍之觸控鍵32位置,並建立該掃猫子 區33,且控制器針對掃瞄子區33中之觸控鍵32進行掃瞄 ,以簡化縮短掃瞄時間,增加反應速度,所以確實可達到 本發明之目的。 准以上所述者,僅為本發明之較佳實施例而已,當不 能以此限定本發明實施之範圍,即大凡依本發明申請專利 範圍及發明說明内容所作之簡單的等效變化與修飾,皆仍 屬本發明專利涵蓋之範圍内。 【圖式簡單說明】 圖1是本發明觸控面板之掃瞄方法之第一較佳實施例 運用於所述觸控面板上之正面示意圖; 圖2是該第一較佳實施例之流程圖; 圖3是該第一較佳實施例運作過程中之示意圖,以說 明被觸控之觸控鍵是位於四邊界時之情形; 圖4是類似於圖3之視圖,被觸控之觸控鍵是位於邊 界之四角落時的情形; 201009714 圖5是本發明觸控面板之掃瞄方法之第二較佳實施例 運用於所述觸控面板上之正面示意圖; 圖6是該第一較佳實施例運作過程中之示意圖,以說 明被觸控之觸控鍵是位於四邊界時之情形;及 圖7是類似於圖6之視圖,被觸控之觸控鍵是位於邊 界之四角落時的情形。The broom of the third preferred embodiment of the method for sweeping the touch panel of the present invention is substantially the same as that of the first preferred embodiment, except that step c 'scans the scanning sub-area 33 - the number of times After that, step A 201009714 ^Step B and step c are re-executed, and in step B, if a lot of touch money is used, a plurality of broom sub-areas 33 are calculated, and the broom sub-areas 33 are continuously scanned. Inside the touch _ 32. The number of the above-mentioned scanning of the cats 33 can be determined according to the number of the touch keys 32 of the control panel 3. In this embodiment, after scanning the scanning sub-areas 33 three times, the steps a are performed again. Step b and step C' can thereby detect a plurality of touch contacts on the touch panel 3 to scan and receive a plurality of command inputs. In summary, the scanning method of the touch panel of the present invention calculates the position of the surrounding touch keys 32 by using the touched touch key 32, and establishes the scanning cat sub-area 33, and the controller is directed to the scanning sub-area. The touch key 32 of 33 performs scanning to simplify the shortening of the scanning time and increase the reaction speed, so that the object of the present invention can be achieved. The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a front elevational view showing a first preferred embodiment of a scanning method for a touch panel of the present invention applied to the touch panel; FIG. 2 is a flow chart of the first preferred embodiment. FIG. 3 is a schematic view showing the operation of the first preferred embodiment to illustrate that the touched touch key is located at four boundaries; FIG. 4 is a view similar to FIG. The case where the key is located at the four corners of the boundary; 201009714 is a front view of the second preferred embodiment of the scanning method of the touch panel of the present invention applied to the touch panel; FIG. 6 is the first comparison A schematic diagram of the operation of the preferred embodiment to illustrate the case where the touched touch key is located at the four borders; and FIG. 7 is a view similar to FIG. 6, and the touched touch key is located at the four corners of the boundary. The situation at the time.
12 201009714 【主要元件符號說明】 ; 3 觸控面板 32 觸控鍵 31 基板 3 3 掃猫子區12 201009714 [Key component symbol description] ; 3 Touch panel 32 Touch keys 31 Substrate 3 3 Sweeping cat area
1313