200931318 九、發明說明: 【發明所屬之技術領域】 本發明有關於一種指令輸入方法及裝置。 【先前技術】 在眾多形式的指令輸入裝置中,觸控裝置已為現今常 見之電子元件,可見於例如筆記型電腦之觸控板 (touchpad)、或如自動櫃員機、個人數位助理機、電子辭 典等之觸控式螢幕(touch screen or touch panel)等等。目 前各種觸控裝置是以電阻式或電容式的方式來感測觸控的 位置。電阻式的驅動原理是利用電壓降的方式來找座標 軸’當電阻式觸控螢幕被觸到的時候,由於迴路被導通, 而會產生電壓降,且在面板的水平和垂直方向上,隨位置 的不同,電壓降也不同,因此控制器可根據電壓降來計算 出座標。電容式的架構則是以ITO (Indium Tin Oxide)破 璃為主體,其驅動原理是在ITO玻璃的四角放電,使表面 形成一個均勻的電場,當可以導電的物體,例如手指,使 微量的電流導通流失’控制器便計算出電流流失的比例, 並進而算出X軸和Υ轴座標。 除電阻式或電容式觸控裝置外,美國專利第 6,057,540 ; 6,621,483 ; 6,677,929號分別揭示了其他的指令 輸入裝置。 以上各種指令輸入裝置中,通常皆是軌跡移動來產生 移動資訊(例如移動游標)’而以「單擊/雙擊」觸控方式 來產生控制資訊(例如打開選單、在選單中選擇選項等)。 5 200931318 本發明則另外提供—種產生控糖訊財式,此種方式可 產生更豐富的控制指令,且在不便於使用「單擊/雙擊」 職方式作為控難令的場合巾,提供恰當轉決方案。 ' 【發明内容】 本發明之目的在提供一種指令輸入方法及裝置,其產 生控制資訊的方式與先前技術不同。 〇 為達上述之目的,就其中一個觀點而言,本發明提供 了-,指令輸人裝置’包含:接收輸人訊號的裝置;以及 根據前後兩輸人訊號在水平方向和垂直方向上的變化量而 產生控制資訊的處理電路。 此外,根據本發明的另一個觀點,也提供一種指令輸 =方法,包含:接收輸入訊號;比較前後兩輸入訊號在水 平方向和垂直方向上的變化量;以及根據比較結果,產生 控制資訊。 ❹上職置與方时,可先雜水平方向和垂直方向上 ❸變化量產生方向狀態,再根據方向狀態的前後變化判斷 是否發生旋轉、及旋轉的方向。 此外’尚可根據旋轉的幅度來進一步產生更多控制資 訊。 底下藉由具體實施例詳加說明,當更容易瞭解本發明 之目的、技術内容、特點及其所達成之功效。 【實施方式】 6 200931318 本發明之&令輸人方法及裝置可應用於觸控板、觸控 榮幕攜帶式電子裝置如手機、個人數位助理器(PDA) - 他肖途巾。本制之裝置與方法在朗時並不絕 子而要觸」控’但因本發明目的之一在於對現有觸控裝 ' 置提供=一種解決方案,因此仍沿用「觸控」之用語。 ^不“電阻式、電谷式或光學式指令輸入裝置中,均必 f判^跡移動方向。第1圖示出本發明應用於手機時的 〇 —種可能態樣’在本實施例中係採光學方式輸人指令。手 機具有機殼11,在機殼11上設有指令輸入位置m。在小 型攜帶式電子裝置中,指令輸入位置111的大小可以設計 得相當小’例如可為手指所全部遮蔽或遮蔽其大部分。如 第2圖所示,使用者可用手指5〇在指令輸入位置⑴上移 動’經光學元件與_電路3〇發出絲、接收指令輸入位 置111的指紋影像並轉換成電子訊號後,由處理電路40處 理而產生移動資訊和控制資訊。就產生移動資訊而言,例 >可使肖已知制崎縣的各種方絲侧指令輸入位 f ill處的影像變化’便可產生對應的移動資訊。 _產生移動資訊之後,可根據該移動資訊來產生控制資 訊。在本發明中,首先可根據轨跡移動方向來產生上下左 右四個方向的額資訊’其觸方向的演算細例如可定 義如下(請參閱第3圖): •虽|ΔΧ| > lAY+thl且ΛΧ為正方向狀態為81(处) •虽| ΔΧ | > | Δγ+th |且ΛΧ為負......方向狀態為S3(XN) •备| ΔΥ | > | AX+th |且Δγ為正......方向狀態為S4(YP) 200931318 •當|AY|>|AX+th|且ΔΥ為負……方向狀態為S2(YN) 其中,ΔΧ與ΔΥ分別表示在前後兩時點之間,χ座標與γ 座標的變化值;th為安全臨界值,表示^與^丫的絕對值 差距必須在該安全臨界值以上,才視為有效;XP, XN,YP, YN分別代表正X座標方向、負X座標方向、正γ座標方 向、與負Υ座標方向。 第4圖舉例示出上述演算法則的流程,首先於步驟4〇1 ❹ ❹ 擷取兩時點的影像後,在步驟402中加以比較,決定Χ座 標與Υ座標賴化值,再根據倾403至410的流程決定 方向狀態1上流程顯非唯一實施方式’流程中某些步驟 顯然可以互換。 刚述方式所判斷出的方向狀態,例如可用以在選單之 間切換。除此之外,更可_方向狀態的變化,進一步產 生其他控制資訊,例如代替目前使用者 擊,’來選定選單中的選項,或作其他=雙 ^之’請參閱第5圖並對照第6圖的步驟⑹ 變化H明f中一個實施例中,可根據方向狀態的前後 制資訊。判斷方式例如為: η相產生控 •當方向狀態、自S1_S2、或S2—S3、或S3肩或⑽i .........判斷為順時鐘旋轉, 將順時鐘旗標設定為i •當方向狀離逆時鐘旗標設定為0 MS144S4—83、或幻1、或82嘯 8 200931318 .........判斷為逆時鐘旋轉, 將逆時鐘旗標設定為i 順時鐘旗標設定為〇 「是否旋轉」及「旋轉方向」’都可以個別作為一種护^ 制指令來使用。除此之外’請參閱第5圖並對照第7圖^ 步驟701至710,在本發明另一個實施例中,尚可根據旋 轉的幅度來提供更多的指令,方式例如為: •當方向狀態自SI—S2、或S2—S3、或S3sS4、或S4〜S1 .........判斷為順時鐘旋轉, 將順時鐘計數+1 逆時鐘計數歸〇 •當方向狀態自S1—S4、或S4—S3、或S3—S2、或S2—S1 .........判斷為逆時鐘旋轉, 將逆時鐘計數+1 順時鐘計數歸0 ♦富順時鐘計數值或逆時鐘計數值到達預設值(例如4) .........發出對應的控制指令 β如此,本發明相較於習知的單擊/雙擊觸控方式,可 提供更多數目的控令;且由於不需要按壓指令輸入位 置⑴’-方峨不會誤職他触,另—方面也不需要 在機殼11内部額攸置壓控機件。以上優點,在小 式電子裝置如手機中,更形顯著。 以上已針對較佳實施例來說明本發明,唯以上所述 者僅係為使熟悉本技術者易於了解本發明的内容而已, 9 200931318 並非用來蚊本㈣之__。對淋 可在本發明精神内’立即思及各種等效變;。 Ο 第卜2_以本發用在手機上為例,但本 可應用於其他小_帶式電子裝置上、或大尺寸的其他1 置上。所述根據順逆時鐘來產生指令的方法,不限於應用 學方式產生指令的裝置中,也可剌於其他類型的 U輸入裝置中。所示光學元件與感測電路3G與處理電路 4〇分為兩個元件’但雜也可拆较錄目的元件。故凡 依本發明之概念與精神所软均等變化或料,均應包括 於本發明之申請專利範圍内。 ’ 【圖式簡單說明】 第1圖顯示本發明應用在手機上之一例。 第2圖舉例顯示第i圖的内部結構。 第3圖舉例說明如何判斷方向狀態。 第4圖以流程圖來說明如何判斷方向狀態。 第5圖顯示順時鐘與逆時鐘旋轉。 第6圖為流程圖,說明本發明如何根據旋轉來產生控制指 令。 第7圖為流程圖’說明本發明如何根據旋轉幅度來產生控 制指令。 【主要元件符號說明】 11機殼 10 200931318 111指令輸入位置 30光學元件與感測電路 40處理電路 50手指 401-410, 601-606, 701-710 步驟 S1-S4方向狀態 ❹ ❹ 11200931318 IX. Description of the Invention: [Technical Field of the Invention] The present invention relates to a command input method and apparatus. [Prior Art] Among many forms of command input devices, touch devices have become common electronic components today, and can be found, for example, in touchpads of notebook computers, or as electronic teller machines, personal digital assistants, electronic dictionaries. Such as touch screen or touch panel and so on. Currently, various touch devices sense the position of the touch in a resistive or capacitive manner. The resistive drive principle is to use the voltage drop method to find the coordinate axis. When the resistive touch screen is touched, the voltage drop occurs due to the loop being turned on, and in the horizontal and vertical directions of the panel, with the position The voltage drop is different, so the controller can calculate the coordinates based on the voltage drop. The capacitive structure is based on ITO (Indium Tin Oxide). The driving principle is to discharge at the four corners of the ITO glass to form a uniform electric field on the surface. When a conductive object, such as a finger, makes a trace of current. The conduction drain' controller calculates the ratio of current loss and further calculates the X-axis and Υ-axis coordinates. In addition to resistive or capacitive touch devices, other command input devices are disclosed in U.S. Patent Nos. 6,057,540; 6,621,483; 6,677,929, respectively. In the above various command input devices, the track movement is usually used to generate mobile information (for example, moving cursors), and the "click/double click" touch mode is used to generate control information (for example, opening a menu, selecting an option in a menu, etc.). 5 200931318 The present invention additionally provides a method for generating sugar control, which can generate richer control commands, and provides an appropriate occasion for the use of a "click/double click" position as a control order. Transfer plan. SUMMARY OF THE INVENTION An object of the present invention is to provide an instruction input method and apparatus which generate control information in a different manner from the prior art. For the above purposes, in one aspect, the present invention provides - the command input device includes: means for receiving the input signal; and changes in the horizontal and vertical directions according to the two input signals before and after A processing circuit that generates control information by quantity. In addition, according to another aspect of the present invention, there is also provided a command output method comprising: receiving an input signal; comparing a change amount of the two input signals in a horizontal direction and a vertical direction; and generating a control information according to the comparison result. When the upper position and the square are used, the direction of the change in the horizontal direction and the vertical direction may be first generated, and then the direction of the rotation and the direction of rotation may be determined according to the change of the direction of the direction. In addition, more control information can be generated based on the magnitude of the rotation. The purpose, technical contents, features and effects achieved by the present invention will be more readily understood by the detailed description of the embodiments. [Embodiment] 6 200931318 The method and device for inputting the present invention can be applied to a touch panel, a touch screen portable electronic device such as a mobile phone, a personal digital assistant (PDA) - his Xiaotu towel. The device and method of the present system are not in vain and need to be controlled. However, one of the objects of the present invention is to provide a solution to the existing touch device, and therefore the term "touch" is still used. ^ In the "resistive, electric valley or optical command input device, the tracking direction must be judged. Figure 1 shows the possible state of the invention when applied to a mobile phone." In this embodiment The optical input mode is adopted. The mobile phone has a casing 11 and an instruction input position m is provided on the casing 11. In the small portable electronic device, the size of the command input position 111 can be designed to be relatively small, for example, a finger. All of them are obscured or obscured. As shown in Fig. 2, the user can move the finger through the optical component and the circuit 3 to receive the fingerprint image of the command input position 111 by using the finger 5〇 at the command input position (1). After being converted into an electronic signal, the processing circuit 40 processes the mobile information and the control information. In the case of generating the mobile information, for example, the image of the various square-side commands of the Kawasaki County can be input to the image at the position ill. The change 'can generate corresponding mobile information. _ After generating the mobile information, the control information can be generated according to the mobile information. In the present invention, firstly, the up and down directions can be generated according to the moving direction of the trajectory. For example, the amount of information in the four directions can be defined as follows (see Figure 3): • Although |ΔΧ| > lAY+thl and ΛΧ is the positive direction state is 81 (where) • Although | ΔΧ | > | Δγ+th | and ΛΧ is negative... The direction state is S3(XN) • Preparation | ΔΥ | > | AX+th | and Δγ is positive... The direction state is S4(YP) 200931318 • When |AY|>|AX+th| and ΔΥ is negative... The direction state is S2(YN) where ΔΧ and ΔΥ are respectively indicated between the two points before and after, the χ coordinate and the γ coordinate The change value; th is the safety critical value, indicating that the absolute value difference between ^ and ^丫 must be above the safety threshold, and is considered valid; XP, XN, YP, YN represent the positive X coordinate direction, the negative X coordinate direction, The positive γ coordinate direction and the negative Υ coordinate direction. The fourth figure exemplifies the flow of the above algorithm. First, after capturing the images at two time points in step 4〇1 ❹ ,, compare them in step 402 to determine the Χ coordinates and The coordinates of the coordinates are determined by the process of tilting 403 to 410. The process in the state 1 is not the only implementation. The steps in the process are obviously interchangeable. The direction state determined by the manner can be used, for example, to switch between menus. In addition, the change of the state can further generate other control information, for example, instead of the current user click, 'to select the menu. Option, or other = double ^ 'Please refer to Figure 5 and in contrast to step (6) of Figure 6 change H Ming f in an embodiment, according to the direction of the state of the front and rear information. The judgment is for example: η phase generation Control • When the direction state, from S1_S2, or S2—S3, or S3 shoulder or (10)i ......... is judged to be clockwise rotation, set the clockwise flag to i • When the direction is away from the counterclock flag The flag is set to 0 MS144S4—83, or Magic 1, or 82 8 8 200931318 ......... judged as counterclockwise rotation, set the inverse clock flag to i. The clock flag is set to 〇 "Do you want to rotate? And "Rotation Direction" can be used individually as a type of protection command. In addition to 'see Figure 5 and in contrast to Figure 7 - steps 701 to 710, in another embodiment of the invention, more instructions can be provided depending on the magnitude of the rotation, for example: The state is judged as clockwise rotation from SI_S2, or S2_S3, or S3sS4, or S4~S1 ........., clockwise count +1 inverse clock count 当 • when direction state is from S1 —S4, or S4—S3, or S3—S2, or S2—S1 ......... judged to be counterclockwise, and count the inverse clock count +1 clock count to 0 ♦ rich clock count value or inverse The clock count value reaches a preset value (for example, 4) .... emits a corresponding control command β. Thus, the present invention provides a greater number of clicks than a conventional click/double click touch method. The control command; and because there is no need to press the command input position (1) '- Fang Fang will not misunderstand him, and the other side does not need to place the pressure control mechanism inside the casing 11. The above advantages are more prominent in small electronic devices such as mobile phones. The present invention has been described above with respect to the preferred embodiments, and the above description is only for those skilled in the art to easily understand the contents of the present invention, and 9 200931318 is not used for the mosquitoes (4). It is possible to immediately consider various equivalent changes in the spirit of the present invention. Ο The first 2_ is used on the mobile phone as an example, but it can be applied to other small-band electronic devices or other large-sized ones. The method of generating an instruction based on a clockwise clock is not limited to an apparatus for generating an instruction by an application method, and may be used in other types of U input apparatuses. The optical element and sensing circuit 3G and processing circuit 4 shown are divided into two components', but the components can be separated. All changes and equivalents of the concept and spirit of the present invention are intended to be included in the scope of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 shows an example of the application of the present invention to a mobile phone. Fig. 2 shows an example of the internal structure of the i-th figure. Figure 3 illustrates how to determine the direction of the direction. Figure 4 shows a flow chart to illustrate how to determine the direction of the direction. Figure 5 shows the clockwise and counterclockwise rotation. Figure 6 is a flow chart illustrating how the present invention generates control commands based on rotation. Figure 7 is a flow chart ' illustrating how the present invention generates control commands based on the magnitude of the rotation. [Main component symbol description] 11 housing 10 200931318 111 command input position 30 optical element and sensing circuit 40 processing circuit 50 finger 401-410, 601-606, 701-710 Step S1-S4 direction status ❹ ❹ 11