TWI476638B - Method of keyboard scan and keyboard applied the method - Google Patents

Method of keyboard scan and keyboard applied the method Download PDF

Info

Publication number
TWI476638B
TWI476638B TW101110820A TW101110820A TWI476638B TW I476638 B TWI476638 B TW I476638B TW 101110820 A TW101110820 A TW 101110820A TW 101110820 A TW101110820 A TW 101110820A TW I476638 B TWI476638 B TW I476638B
Authority
TW
Taiwan
Prior art keywords
line
column
lines
row
keyboard
Prior art date
Application number
TW101110820A
Other languages
Chinese (zh)
Other versions
TW201339900A (en
Inventor
Chien Chih Chen
Original Assignee
Lite On Electronics Guangzhou
Lite On Technology Corp
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 Lite On Electronics Guangzhou, Lite On Technology Corp filed Critical Lite On Electronics Guangzhou
Priority to TW101110820A priority Critical patent/TWI476638B/en
Publication of TW201339900A publication Critical patent/TW201339900A/en
Application granted granted Critical
Publication of TWI476638B publication Critical patent/TWI476638B/en

Links

Description

鍵盤掃描方法及應用該方法之鍵盤Keyboard scanning method and keyboard using the same

本發明是有關於一種掃描方法,特別是指一種鍵盤掃描方法。The present invention relates to a scanning method, and more particularly to a keyboard scanning method.

目前市面上的薄膜式(membrane)鍵盤為了降低迴路阻抗,其薄膜電路上的導線大都採用銀線,但銀的價格越來越高,因此業界開發出使用與銀具有20%~30%價差的碳粉(carbon)印刷形成薄膜電路,以取代上述採用銀粉線的薄膜電路。In order to reduce the loop impedance, the membranes on the market generally use silver wires for the wires on the thin film circuits, but the price of silver is getting higher and higher. Therefore, the industry has developed a price difference of 20% to 30% with silver. Carbon printing forms a thin film circuit to replace the above-described thin film circuit using a silver powder line.

參見圖1所示,是習知薄膜式鍵盤1的電路示意圖,其主要包括一控制器11、一與控制器11電連接的薄膜電路板12及複數個按鍵13。薄膜電路板12上設有以碳粉印刷並呈矩陣交錯排列的複數條行線(掃描線)P0.0~P0.7與複數條列線(返回線)P1.0~P1.7,該等按鍵13對應設於該等行線P0.0~P0.7與列線P1.0~P1.7的交會處,以導接相對應的行線P0.0~P0.7及列線P1.0~P1.7,且控制器11內建有對應該等行線P0.0~P0.7的複數第一電阻R1及開關SW,以及對應該等列線P1.0~P1.7的複數第二電阻R2,各該第一電阻R1一端連接一定電壓VCC,另一端與相對應的行線P0.0~P0.7電連接,各該開關SW一端與相對應的行線P0.0~P0.7電連接,另一端接地。而各該第二電阻R2一端連接相對應的列線P1.0~P1.7,另一端連接該定電壓VCC。Referring to FIG. 1 , it is a schematic circuit diagram of a conventional membrane keyboard 1 , which mainly includes a controller 11 , a thin film circuit board 12 electrically connected to the controller 11 , and a plurality of buttons 13 . The thin film circuit board 12 is provided with a plurality of row lines (scanning lines) P0.0~P0.7 and a plurality of column lines (return lines) P1.0~P1.7 which are printed with carbon powder and are staggered in a matrix. The button 13 is correspondingly disposed at the intersection of the row lines P0.0~P0.7 and the column lines P1.0~P1.7 to guide the corresponding row lines P0.0~P0.7 and the column line P1. .0~P1.7, and the controller 11 has a plurality of first resistors R1 and SWs corresponding to the row lines P0.0~P0.7, and corresponding column lines P1.0~P1.7. a plurality of second resistors R2, one end of each of the first resistors R1 is connected to a certain voltage VCC, and the other end is electrically connected to a corresponding row line P0.0~P0.7, and one end of each switch SW and a corresponding row line P0.0 ~P0.7 is electrically connected and the other end is grounded. Each of the second resistors R2 is connected to a corresponding column line P1.0~P1.7 at one end, and the other end is connected to the constant voltage VCC.

此外,每一行線P0.0~P0.7在兩兩按鍵13之間皆存在一線電阻R3,該等線電阻R3之阻值不盡相同,同樣地,每一列線P1.0~P1.7在兩兩按鍵13之間亦存在一線電阻R4,且該等線電阻R4之阻值不盡相同。且由於以碳粉製成的行線P0.0~P0.7及列線P1.0~P1.7之阻抗較銀線來得高,因此與行線P0.0~P0.7連接的第一電阻R1和與列線P1.0~P1.7連接的第二電阻R2之阻值亦被相對提高。In addition, each row line P0.0~P0.7 has a line resistance R3 between the two buttons 13 and the resistance of the line resistance R3 is not the same. Similarly, each column line P1.0~P1.7 There is also a line resistance R4 between the two buttons 13 and the resistance of the line resistance R4 is not the same. And since the impedance of the row line P0.0~P0.7 and the column line P1.0~P1.7 made of carbon powder is higher than that of the silver line, the first connection with the row line P0.0~P0.7 The resistance of the resistor R1 and the second resistor R2 connected to the column lines P1.0 to P1.7 is also relatively increased.

當要掃描該等行線P0.0~P0.7時,控制器11中的一掃描模組14會依序導通與該等行線P0.0~P0.7相對應的開關SW,例如掃描行線P0.0時,令行線P0.0在低準位(接地),而其它行線P0.1~P0.7仍處於高準位,然後依序讀取列線P1.0~P1.7,此時,若有一按鍵被按壓,例如行線P0.0與列線P1.0交會處之按鍵K11被按壓,則行線P0.0與列線P1.0會被導接而形成如圖2所示之等效電路。When the row lines P0.0~P0.7 are to be scanned, a scan module 14 in the controller 11 sequentially turns on the switches SW corresponding to the row lines P0.0~P0.7, for example, scanning. When the line is P0.0, the row line P0.0 is at the low level (ground), while the other line lines P0.1~P0.7 are still at the high level, and then the column lines P1.0~P1 are sequentially read. .7, at this time, if a button is pressed, for example, the button K11 at the intersection of the row line P0.0 and the column line P1.0 is pressed, the row line P0.0 and the column line P1.0 are guided to form, for example, The equivalent circuit shown in Figure 2.

然由於控制器51內部存在電容C及/或雜散電容的關係,列線P1.0之線電阻R4及與列線P1.0連接的第二電阻R2將會影響電容C充放電的RC時間,因此與列線P1.0連接的第二電阻R2將導致RC時間增加,使得列線P1.0與處於低準位的行線P0.0導接時,如圖3所示,列線P1.0無法迅速下拉至低準位而必需延遲一下降時間TD。同理,當行線P0.0掃描完而回到高準位狀態,而列線P1.0仍與行線P0.0導接時,列線P1.0亦需延遲一上升時間TU才能回到高準位。因此為了避開列線P1.0~P1.7準位的上升時間TD及下降TU時間,讓掃描時間不致重疊,掃描模組14需將每一條行線P0.0~P0.7的掃描時間拉長,但如此一來卻導致掃描效率不佳,以致快速打字時會有掉字的疑慮。However, due to the relationship between the capacitance C and/or the stray capacitance inside the controller 51, the line resistance R4 of the column line P1.0 and the second resistor R2 connected to the column line P1.0 will affect the RC time of charging and discharging of the capacitor C. Therefore, the second resistor R2 connected to the column line P1.0 will cause the RC time to increase, so that when the column line P1.0 is connected to the row line P0.0 at the low level, as shown in FIG. 3, the column line P1 .0 cannot be quickly pulled down to the low level and must be delayed by a falling time TD. Similarly, when the row line P0.0 is scanned and returns to the high level state, and the column line P1.0 is still connected to the row line P0.0, the column line P1.0 also needs to be delayed by a rise time TU to be returned. To high standards. Therefore, in order to avoid the rising time TD and the falling TU time of the column line P1.0~P1.7, the scanning time is not overlapped, and the scanning module 14 needs to scan the scanning time of each line P0.0~P0.7. Elongated, but this results in poor scanning efficiency, so that there will be doubts about word drop when typing quickly.

再者,當只按一個按鍵,例如按行線P0.2與列線P1.0交會處的按鍵K13時,其等效電路如圖4所示,控制器11之掃描模組12可以據此求得列線P1.0的一分壓V1。然而當同時按多個按鍵例如K11、K12、K13,而使同一條列線,例如P1.0同時與多條行線,例如P0.0、P0.1、P0.2導接時,則當掃描到行線P0.2時,其等效電路將如圖5所示,按鍵K13除了使列線P1.0與行線P0.2導接外,按鍵K11、K12還使得行線P0.0、P0.1及串接在行線P0.0、P0.1上的第一電阻R1與列線P1.0導接(並聯),而導致掃描模組12求得列線P1.0之分壓V1’將不同於(高於)只按單一按鍵K13之分壓V1,而易使控制器14誤判按鍵K13為無效按鍵。同理,當同時按壓多個按鍵,而使同一行線同時與多條列線導接時,亦會發生上述問題。Furthermore, when only one button is pressed, for example, the button K13 at the intersection of the row line P0.2 and the column line P1.0, the equivalent circuit is as shown in FIG. 4, and the scanning module 12 of the controller 11 can be A partial pressure V1 of the column line P1.0 is obtained. However, when a plurality of buttons such as K11, K12, and K13 are simultaneously pressed, and the same column line, for example, P1.0, is simultaneously connected to a plurality of row lines, for example, P0.0, P0.1, and P0.2, When scanning to the row line P0.2, the equivalent circuit will be as shown in Fig. 5. The button K13 is connected to the row line P1.0 and the row line P0.2, and the buttons K11 and K12 also make the row line P0.0. , P0.1 and the first resistor R1 connected in series on the row lines P0.0, P0.1 are connected (parallel) to the column line P1.0, and the scan module 12 is determined to obtain the column line P1.0. The pressure V1' will be different from (higher than) the partial pressure V1 of the single button K13, and the controller 14 will be misjudged that the button K13 is an invalid button. Similarly, the above problem occurs when a plurality of buttons are simultaneously pressed to cause the same row line to be simultaneously connected to a plurality of column lines.

因此,本發明之目的,即在提供一種可以有效率地掃描並且防止誤判發生之鍵盤掃描方法及應用該掃描方法的鍵盤裝置。Accordingly, it is an object of the present invention to provide a keyboard scanning method that can efficiently scan and prevent false positives from occurring and a keyboard device to which the scanning method is applied.

為達到上述目的,本發明之鍵盤掃描方法所應用之該鍵盤包括一控制器、複數條呈矩陣交錯排列的行線及列線,複數對應設於該等行線及列線的交會處,以導接相對應的行線及列線的按鍵,其中各該行線經由一第一電阻與一第一準位訊號導接,各該列線經由一第二電阻與該第一準位訊號導接,且該控制器能控制各該第一電阻與相對應的行線導接與否,以及控制各該第二電阻與相對應的列線導接與否;該鍵盤掃描方法包括:(A)控制器先控制各該第一電阻與相對應的行線不導接,並控制各該第二電阻與相對應的列線不導接,再送出一掃描訊號至一要被掃描的行線;(B)控制器依序讀取各該列線上的訊號,且於讀取每一列線前,令該列線與相對應的第二電阻導接,並於讀取完該列線上的訊號後,令該列線與相對應的第二電阻不導接;(C)重覆步驟(A)及(B),直到掃描完全部的行線。In order to achieve the above object, the keyboard used in the keyboard scanning method of the present invention comprises a controller, a plurality of row lines and column lines arranged in a matrix staggered, and a plurality corresponding to the intersection of the row lines and the column lines, Leading the corresponding row and column line buttons, wherein each of the row lines is connected to a first level signal via a first resistor, and each of the column lines is guided by the second resistor and the first level signal And the controller can control whether the first resistors are connected to the corresponding row lines, and whether the second resistors are connected to the corresponding column lines; and the keyboard scanning method comprises: (A The controller first controls each of the first resistors to be non-conductive with the corresponding row lines, and controls each of the second resistors to be non-conductive with the corresponding column lines, and then sends a scan signal to a row line to be scanned. (B) The controller sequentially reads the signals on each of the column lines, and before the column lines are read, the column lines are connected to the corresponding second resistors, and the signals on the column lines are read. After that, the column line is not connected to the corresponding second resistor; (C) repeating steps (A) and (B), straight Full scan row line portion.

較佳地,該控制器內預設有一執行該步驟(A)、(B)及(C)的掃描模組。Preferably, a scan module for performing the steps (A), (B) and (C) is preset in the controller.

較佳地,該掃描訊號令該被掃描的行線連接至一第二準位訊號。Preferably, the scanning signal connects the scanned row line to a second level signal.

較佳地,在步驟(C)中,當掃描完全部的行線,該控制器還控制各該第一電阻與相對應的行線導接,並控制各該第二電阻與相對應的列線導接。Preferably, in step (C), when scanning the entire row line, the controller further controls each of the first resistors to be connected to the corresponding row line, and controls each of the second resistors and the corresponding column. Line lead.

較佳地,該第一準位訊號是一高準位訊號,該第二準位訊號是一低準位訊號。Preferably, the first level signal is a high level signal, and the second level signal is a low level signal.

此外,本發明應用該鍵盤掃描方法的一種鍵盤,包括:複數條呈矩陣交錯排列的行線及列線;複數個按鍵,對應設於該等行線及列線的交會處,以導接相對應的行線及列線;複數個對應於該等行線的第一電阻,各該第一電阻的一端連接一第一準位訊號;複數個對應於該等列線的第二電阻,各該第二電阻的一端連接該第一準位訊號;複數個對應於該等行線的第一開關,各別連接在相對應的行線與第一電阻之間;複數個對應於該等行線的第二開關,其一端連接相對應的行線,另一端連接一第二準位訊號;複數個對應於該等列線的第三開關,各別連接在相對應的列線與第二電阻之間;及一控制器,其在掃描一行線之前,會控制該等第一開關及第三開關不導通,再控制與該被掃描的行線相對應的第二開關導通,並讀取每一列線,並控制與該被讀取的列線相對應的第三開關導通,且於讀取該列線上的訊號後,控制與該被讀取的列線相對應的第三開關不導通。In addition, a keyboard for applying the keyboard scanning method of the present invention includes: a plurality of row lines and column lines arranged in a matrix staggered; a plurality of buttons corresponding to the intersections of the row lines and the column lines, to guide the phase Corresponding row and column lines; a plurality of first resistors corresponding to the row lines, one end of each of the first resistors is connected to a first level signal; a plurality of second resistors corresponding to the column lines, each One end of the second resistor is connected to the first level signal; a plurality of first switches corresponding to the row lines are respectively connected between the corresponding row lines and the first resistor; a plurality of corresponding lines are corresponding to the lines a second switch of the line, one end of which is connected to the corresponding row line, and the other end is connected to a second level signal; a plurality of third switches corresponding to the column lines are respectively connected to the corresponding column line and the second line Between the resistors; and a controller that controls the first switch and the third switch to be non-conducting before scanning a line, and then controls the second switch corresponding to the scanned row line to be turned on, and reads Each column line and controls the column line to be read Corresponding to the third switch is turned on, and the read signal of the column line, the third switch control line is read with the column corresponding to non-conductive.

較佳地,該控制器掃描一條行線時,會依序讀取該等列線,然後再掃描下一條行線,直到全部行線皆已完成掃描。Preferably, when the controller scans a row line, the column lines are sequentially read, and then the next row line is scanned until all the line lines have been scanned.

較佳地,該控制器內預設有一掃描模組,且該控制器執行該掃描模組以進行上述掃描該等行線及讀取該等列線的動作。Preferably, a scan module is preset in the controller, and the controller executes the scan module to perform the operations of scanning the row lines and reading the column lines.

較佳地,該等第一電阻、第二電阻、第一開關、第二開關及第三開關是內建在該控制器中。Preferably, the first resistor, the second resistor, the first switch, the second switch and the third switch are built in the controller.

較佳地,該掃描模組掃描完全部的行線後,則控制該等第一開關及第三開關導通。Preferably, after scanning the entire row of the scanning module, the scanning module controls the first switch and the third switch to be turned on.

較佳地,該第一準位訊號是一高準位訊號,該第二準位訊號是一低準位訊號。Preferably, the first level signal is a high level signal, and the second level signal is a low level signal.

較佳地,該鍵盤是一薄膜式鍵盤。Preferably, the keyboard is a film type keyboard.

本發明的功效在於控制器在掃描鍵盤的行線前,先令該等第一電阻與相對應的該等行線不導接,並令該等第二電阻與相對應的該等列線不導接,再依序掃描各該行線,藉此,當有按鍵被按時,可縮短與被掃描的行線導接之列線準位轉換的下降時間,而有效縮短掃描時間,提高掃描效率,避免上述習知技術在快速打字時因掃描時間過長而掉字的問題。並且,控制器每掃描一行線,就依序讀取該等列線,並且只導接所要讀取的列線和其相對應的第二電阻,可避免同一條列線或同一條行線上的多個按鍵同時被按時,某些按鍵受到其它並聯按鍵的影響,而使控制器誤判該些按鍵為無效按鍵的情況發生,確實達到本發明的功效和目的。The effect of the present invention is that the controller does not conduct the first resistors and the corresponding row lines before scanning the row lines of the keyboard, and the second resistors and the corresponding column lines are not Leading, and sequentially scanning each of the row lines, thereby shortening the falling time of the column line level transition with the scanned row line when the button is pressed, thereby effectively shortening the scanning time and improving scanning Efficiency, avoiding the problem that the above-mentioned conventional technology loses characters due to excessive scanning time during fast typing. Moreover, each time the controller scans a row of lines, the column lines are sequentially read, and only the column lines to be read and the corresponding second resistors are connected, thereby avoiding the same column line or the same line line. When multiple buttons are pressed at the same time, some buttons are affected by other parallel buttons, and the controller misjudges that the buttons are invalid buttons, which actually achieves the efficacy and purpose of the present invention.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之較佳實施例的詳細說明中,將可清楚的呈現。The foregoing and other objects, features, and advantages of the invention are set forth in the <RTIgt;

參見圖6所示,是本發明鍵盤的一較佳實施例的電路造構,本實施例的鍵盤5是以一薄膜式鍵盤為例,但不以此為限。再參見圖7所示,是本發明鍵盤掃描方法的一較佳實施例,其應用在本實施例之薄膜式鍵盤,但不以此為限,亦即本實施例之鍵盤掃描方法亦可應用在其它與薄膜式鍵盤具有類似電路構造的非薄膜式鍵盤中。鍵盤5主要包括一控制器51,一與控制器51電連接的薄膜電路板52及複數個按鍵53。且為節省製造成本,薄膜電路板52上設有以碳粉印刷並呈矩陣交錯排列的複數條行線(掃描線),本實施例以八條行線P0.0~P0.7為例,與複數條列線(返回線),本實施例以八條列線P1.0~P1.7為例。該等按鍵53對應設於該等行線P0.0~P0.7與列線P1.0~P1.7的交會處,以導接相對應(相交)的行線P0.0~P0.7與列線P1.0~P1.7。As shown in FIG. 6 , it is a circuit construction of a preferred embodiment of the keyboard of the present invention. The keyboard 5 of the present embodiment is a thin film keyboard, but is not limited thereto. Referring to FIG. 7 , it is a preferred embodiment of the keyboard scanning method of the present invention, which is applied to the thin film keyboard of the embodiment, but not limited thereto, that is, the keyboard scanning method of the embodiment can also be applied. In other non-membrane keyboards having a similar circuit construction to a membrane keyboard. The keyboard 5 mainly includes a controller 51, a thin film circuit board 52 electrically connected to the controller 51, and a plurality of buttons 53. In order to save the manufacturing cost, the film circuit board 52 is provided with a plurality of row lines (scanning lines) printed with carbon powder and staggered in a matrix. In this embodiment, eight line lines P0.0 to P0.7 are taken as an example. For the plurality of column lines (return lines), the eight column lines P1.0 to P1.7 are taken as an example. The buttons 53 are correspondingly arranged at the intersection of the row lines P0.0~P0.7 and the column lines P1.0~P1.7 to guide the corresponding (intersecting) line lines P0.0~P0.7. With column line P1.0~P1.7.

控制器51內建有對應該等行線P0.0~P0.7的複數第一電阻R1、複數第一開關SW1及複數第二開關SW2,以及對應該等列線P1.0~P1.7的複數第二電阻R2及複數第三開關SW3。各該第一電阻R1一端連接一第一準位訊號,例如一高準位的定電壓VCC,另一端透過相對應的第一開關SW1與相對應的行線P0.0~P0.7電連接,如圖6所示。且各該第二開關SW2一端與相對應的行線P0.0~P0.7電連接,另一端連接一第二準位訊號,例如一低準位的定電壓或接地,本實施例以接地為例。而各該第二電阻R2一端連接該第一準位訊號,另一端透過相對應的第三開關SW3與相對應的列線P1.0~P1.7電連接。The controller 51 has a plurality of first resistors R1, a plurality of first switches SW1 and a plurality of second switches SW2 corresponding to the row lines P0.0 to P0.7, and corresponding column lines P1.0 to P1.7. The plurality of second resistors R2 and the plurality of third switches SW3. One end of each of the first resistors R1 is connected to a first level signal, for example, a constant voltage VCC of a high level, and the other end is electrically connected to the corresponding row line P0.0~P0.7 through the corresponding first switch SW1. ,As shown in Figure 6. And one end of each of the second switches SW2 is electrically connected to the corresponding row line P0.0~P0.7, and the other end is connected to a second level signal, such as a constant voltage or ground of a low level. For example. Each of the second resistors R2 is connected to the first level signal at one end, and the other end is electrically connected to the corresponding column line P1.0~P1.7 through the corresponding third switch SW3.

而且每一行線P0.0~P0.7在兩兩按鍵53之間皆存在一線電阻R3,且該等線電阻R3之阻值不盡相同,同樣地,每一列線P1.0~P1.7在兩兩按鍵53之間皆存在一線電阻R4,且該等線電阻R4之阻值亦不盡相同。Moreover, each line P0.0~P0.7 has a line resistance R3 between the two buttons 53 and the resistance of the line resistance R3 is not the same. Similarly, each column line P1.0~P1.7 There is a line resistance R4 between the two buttons 53 and the resistance of the line resistance R4 is also different.

控制器51可控制該等第一開關SW1、第二開關SW2及第三開關SW3導通與否,具體來說,控制器51中還包含一用以偵測該等按鍵是否被按的掃描模組54,其可在掃描過程中控制該等第一開關SW1、第二開關SW2及第三開關SW3導通與否,以執行按鍵掃描程序。亦即本實施例之掃描模組54會依序掃描該等行線P0.0~P0.7,並依序讀取該等列線P1.0~P1.7上的訊號,藉以判斷該等按鍵53是否被按壓,以下將進一步說明。The controller 51 can control whether the first switch SW1, the second switch SW2, and the third switch SW3 are turned on or not. Specifically, the controller 51 further includes a scanning module for detecting whether the buttons are pressed. 54. It can control whether the first switch SW1, the second switch SW2, and the third switch SW3 are turned on or not during the scanning process to perform a key scanning process. That is, the scanning module 54 of the embodiment scans the row lines P0.0~P0.7 sequentially, and sequentially reads the signals on the column lines P1.0~P1.7 to determine the same. Whether the button 53 is pressed or not will be further described below.

本實施例之鍵盤掃描方法如圖7所示,首先如步驟61,掃描模組54在掃描每一行線P0.0~P0.7之前,會先控制該等第一開關SW1、第二開關SW2及第三開關SW3不導通,使各該第一電阻R1與相對應的行線P0.0~P0.7不導接,且各該第二電阻R2亦與相對應的列線P1.0~P1.7不導接,再送出一掃描訊號至該被掃描的行線,例如掃描行線P0.0時,將與行線P0.0相對應的第二開關SW2導通,使行線P0.0連接第二準位訊號(接地),此時,若行線P0.0與列線P1.0交會處的按鍵K11被按壓,使列線P1.0與行線P0.1導接時,其等效電路如圖8所示,由於與列線P1.0相對應之第二電阻R2不與列線P1.0導接,縮短了控制器51內部電容C(及/或其它雜散電容)充放電的RC時間,因此當列線P1.0與處於低準位之行線P0.1導接時,列線P1.0可以迅速轉變成低準位狀態,而縮短了圖3所示之下降緣時間TD。藉此,可以有效縮短掃描時間,提高掃描效率,可避免上述習知技術在快速打字時因掃描時間過長而掉字的問題。The keyboard scanning method of this embodiment is as shown in FIG. 7. First, as step 61, the scanning module 54 first controls the first switch SW1 and the second switch SW2 before scanning each row line P0.0~P0.7. And the third switch SW3 is not turned on, so that each of the first resistors R1 and the corresponding row lines P0.0~P0.7 are not connected, and each of the second resistors R2 is also corresponding to the column line P1.0~ P1.7 is not connected, and then sends a scan signal to the scanned row line. For example, when scanning the row line P0.0, the second switch SW2 corresponding to the row line P0.0 is turned on, so that the row line P0. 0 is connected to the second level signal (ground). At this time, if the button K11 at the intersection of the row line P0.0 and the column line P1.0 is pressed, and the column line P1.0 is connected to the row line P0.1, The equivalent circuit is shown in FIG. 8. Since the second resistor R2 corresponding to the column line P1.0 is not connected to the column line P1.0, the internal capacitance C (and/or other stray capacitance) of the controller 51 is shortened. The RC time of charge and discharge, so when the column line P1.0 is connected to the row line P0.1 at the low level, the column line P1.0 can be quickly converted into a low level state, and the shortening is shown in FIG. The falling edge time TD. Thereby, the scanning time can be effectively shortened, the scanning efficiency can be improved, and the problem that the above-mentioned conventional technology loses characters due to the long scanning time during fast typing can be avoided.

接著,如步驟62,掃描模組54依序讀取各該列線P1.0~P1.7上的訊號,並於讀取其中每一列線,例如列線P1.0之前,令與該列線P1.0相對應的第三開關SW3導通,使導接該列線P1.0與相對應的第二電阻R2,以讀取該列線P1.0上的訊號,並求得列線P1.0上的分壓V2,再根據該分壓V2判斷按鍵K11是否確實被按壓。並在讀取列線P1.0訊號後,令與列線P1.0相對應的第三開關SW3不導通,使列線P1.0與相對應的第二電阻R2不導接,再繼續讀取下一條列線,依此類推,直到全部列線列線P1.0~P1.7讀取完畢。Then, in step 62, the scan module 54 sequentially reads the signals on the column lines P1.0~P1.7, and reads each column line, such as the column line P1.0, before the column. The third switch SW3 corresponding to the line P1.0 is turned on, so that the column line P1.0 and the corresponding second resistor R2 are connected to read the signal on the column line P1.0, and the column line P1 is obtained. The partial pressure V2 on .0 is further determined based on the partial pressure V2 whether or not the button K11 is actually pressed. After reading the column line P1.0 signal, the third switch SW3 corresponding to the column line P1.0 is not turned on, so that the column line P1.0 and the corresponding second resistor R2 are not connected, and then continue reading. Remove one column line, and so on, until all column line lines P1.0~P1.7 are read.

藉此,當同一條列線上的多個按鍵同時被按,例如列線P1.0與行線P0.0、P0.1及P0.2交會處的三個按鍵K11、K12、K13同時被按,當掃描到行線P0.2時,由於對應於行線P0.1及P0.2的第一開關SW1不導通,因此,行線P0.1及P0.2上的線電阻以及與行線P0.1及P0.2相對應的第一電阻R1不會同時與列線P1.0導接(並聯),如圖4所示,亦即此時之等效電路與單獨按下按鍵K13時相同,因此,即使同一條列線P1.0上的多個按鍵K11、K12、K13同時被按,當掃描到行線P0.2時,列線P1.0上的分壓V1仍與單獨按下單一按鍵K13時相同,而不致受到其它行線P0.1及P0.2的影響,因此可以有效避免當同一條列線上多個按鍵K11、K12、K13同時被按時,控制器54誤判按鍵K13為無效按鍵的情形發生。同理,當同一條行線上的多個按鍵同時被按時,上述之掃描方法也可避免控制器54誤判被按下之按鍵為無效按鍵之情況。Thereby, when a plurality of buttons on the same column line are simultaneously pressed, for example, the three buttons K11, K12, and K13 at the intersection of the column line P1.0 and the line lines P0.0, P0.1, and P0.2 are simultaneously pressed. When scanning to the row line P0.2, since the first switch SW1 corresponding to the row lines P0.1 and P0.2 is not turned on, the line resistances on the row lines P0.1 and P0.2 and the line lines The first resistor R1 corresponding to P0.1 and P0.2 will not be connected (parallel) to the column line P1.0 at the same time, as shown in FIG. 4, that is, the equivalent circuit at this time and when the button K13 is pressed separately. The same, therefore, even if a plurality of buttons K11, K12, K13 on the same column line P1.0 are simultaneously pressed, when scanning to the row line P0.2, the divided voltage V1 on the column line P1.0 is still pressed separately. When the single button K13 is the same, it is not affected by other line lines P0.1 and P0.2, so it can be effectively avoided that when the plurality of buttons K11, K12, K13 on the same column line are simultaneously pressed, the controller 54 misjudges the button. K13 occurs when an invalid button is pressed. Similarly, when a plurality of buttons on the same line are simultaneously pressed, the above scanning method can also prevent the controller 54 from misjudged that the pressed button is an invalid button.

然後,如步驟63,掃描模組54判斷全部行線P0.0~P0.7是否已掃描,若否,則重覆上述步驟61及62,直到掃描完全部的行線P0.0~P0.7。並於全部行線P0.0~P0.7掃描完後,再將全部的第一開關SW1及第三開關SW3導通,使全部行線P0.0~P0.7及列線P1.0~P1.7維持在高準位狀態,可避免掃描前某些行線或列線即處於低準位而造成掃描時誤判。Then, in step 63, the scanning module 54 determines whether all the line lines P0.0~P0.7 have been scanned, and if not, repeats the above steps 61 and 62 until the line line P0.0~P0.7 of the entire part is scanned. . After all the line lines P0.0~P0.7 are scanned, all the first switch SW1 and the third switch SW3 are turned on, so that all the line lines P0.0~P0.7 and the column lines P1.0~P1 are turned on. .7 maintains a high level state, which avoids some line or column lines before scanning, which is at a low level, causing misjudgment during scanning.

此外,值得一提的是,為了進一步確定掃描結果的正確性,掃描模組54通常會重覆圖7之整個掃描流程2~3次不等,以確定被按壓之按鍵確實為有效按鍵(亦即確定按鍵確實被按壓)。In addition, it is worth mentioning that in order to further determine the correctness of the scan result, the scan module 54 usually repeats the entire scan process of FIG. 7 2 to 3 times to determine that the pressed button is indeed a valid button (also That is, it is determined that the button is actually pressed).

綜上所述,上述實施例之控制器54在掃描鍵盤5的行線P0.0~P0.7前,先令該等第一電阻R1與相對應的該等行線P0.0~P0.7不導接,並令該等第二電阻R2與相對應的該等列線P1.0~P1.7不導接,然後,再依序掃描各該行線P0.0~P0.7,藉此,當有按鍵被按時,可縮短與被掃描的行線導接之列線準位轉換的下降時間TD,而有效縮短掃描時間,提高掃描效率,避免上述習知技術在快速打字時因掃描時間過長而掉字的問題。並且,控制器54每掃描一行線,就依序讀取該等列線,並且只導接所要讀取的列線和其相對應的第二電阻R2,藉此可避免同一條列線或同一條行線上的多個按鍵同時被按時,控制器54誤判被按壓之按鍵為無效按鍵的情況發生,確實達到本發明的功效和目的。In summary, the controller 54 of the above embodiment first orders the first resistors R1 and the corresponding row lines P0.0~P0 before scanning the row lines P0.0~P0.7 of the keyboard 5. 7 is not conductive, and the second resistors R2 are not connected to the corresponding column lines P1.0~P1.7, and then the row lines P0.0~P0.7 are sequentially scanned. Therefore, when a button is pressed, the falling time TD of the line level shifting with the scanned row line can be shortened, thereby effectively shortening the scanning time, improving the scanning efficiency, and avoiding the above-mentioned prior art during fast typing. The problem of missing words due to excessive scanning time. Moreover, each time the controller 54 scans a line, the column lines are sequentially read, and only the column lines to be read and the corresponding second resistor R2 are connected, thereby avoiding the same column line or the same When a plurality of buttons on one line are simultaneously pressed, the controller 54 misjudges that the pressed button is an invalid button, and the effect and purpose of the present invention are indeed 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.

5...鍵盤5. . . keyboard

51...控制器51. . . Controller

52...薄膜電路板52. . . Thin film circuit board

53、K11、K12、K13...按鍵53, K11, K12, K13. . . button

54...掃描模組54. . . Scanning module

61~64...步驟61~64. . . step

P0.0~P0.7...行線P0.0~P0.7. . . Line

P1.0~P1.7...列線P1.0~P1.7. . . Column line

R1...第一電阻R1. . . First resistance

R2...第二電阻R2. . . Second resistance

R3、R4...線電阻R3, R4. . . Line resistance

SW1...第一開關SW1. . . First switch

SW2...第二開關SW2. . . Second switch

SW3...第三開關SW3. . . Third switch

V1、V1’、V2...分壓V1, V1', V2. . . Partial pressure

VCC...定電壓VCC. . . Constant voltage

圖1是習知薄膜式鍵盤的電路結構示意圖;1 is a schematic diagram showing the circuit structure of a conventional thin film type keyboard;

圖2是習知薄膜式鍵盤之行線P0.0與列線P1.0交會處的按鍵K11被按壓時的等效電路圖;2 is an equivalent circuit diagram when the button K11 at the intersection of the row line P0.0 and the column line P1.0 of the conventional film type keyboard is pressed;

圖3是習知薄膜式鍵盤之行線P0.0與列線P1.0導接時之準位變化示意圖;3 is a schematic diagram showing the change of the position when the row line P0.0 and the column line P1.0 of the conventional film type keyboard are guided;

圖4是習知薄膜式鍵盤之行線P0.2與列線P1.0交會處的按鍵K13被按壓時,掃描行線P0.2並讀取列線P1.0時的等效電路圖;4 is an equivalent circuit diagram when scanning the row line P0.2 and reading the column line P1.0 when the button K12 at the intersection of the row line P0.2 and the column line P1.0 of the conventional film type keyboard is pressed;

圖5是習知薄膜式鍵盤之列線P1.0上的按鍵K11、K12、K13同時被按壓時,掃描行線P0.2並讀取列線P1.0時的等效電路圖;5 is an equivalent circuit diagram when scanning the row line P0.2 and reading the column line P1.0 when the buttons K11, K12, and K13 on the column line P1.0 of the conventional film type keyboard are simultaneously pressed;

圖6是本發明鍵盤裝置的一較佳實施例的電路構造示意圖;Figure 6 is a schematic view showing the circuit configuration of a preferred embodiment of the keyboard device of the present invention;

圖7是本發明鍵盤掃描方法的一較佳實施例的流程圖;7 is a flow chart of a preferred embodiment of a keyboard scanning method of the present invention;

圖8是本實施例當鍵盤之行線P0.0與列線P1.0交會處的按鍵K11被按壓時的等效電路圖;及8 is an equivalent circuit diagram when the button K11 at the intersection of the row line P0.0 and the column line P1.0 of the keyboard is pressed in the embodiment; and

圖9是本實施例當鍵盤之行線P0.0與列線P1.0交會處的按鍵K11被按壓時,掃描行線P0.0並讀取列線P1.0時的等效電路圖。Fig. 9 is an equivalent circuit diagram of the scanning of the row line P0.0 and the reading of the column line P1.0 when the button K11 at the intersection of the row line P0.0 and the column line P1.0 of the keyboard is pressed in the embodiment.

61~64...步驟61~64. . . step

Claims (12)

一種鍵盤掃描方法,該鍵盤包括一控制器、複數條呈矩陣交錯排列的行線及列線,複數對應設於該等行線及列線的交會處,以導接相對應的行線及列線的按鍵,其中各該行線經由一第一電阻與一第一準位訊號導接,各該列線經由一第二電阻與該第一準位訊號導接,且該控制器能控制各該第一電阻與相對應的行線導接與否,以及控制各該第二電阻與相對應的列線導接與否;該鍵盤掃描方法包括:(A)控制器先控制各該第一電阻與相對應的行線不導接,並控制各該第二電阻與相對應的列線不導接,再送出一掃描訊號至一要被掃描的行線;(B)控制器依序讀取各該列線上的訊號,且於讀取每一列線前,令該列線與相對應的第二電阻導接,並於讀取完該列線上的訊號後,令該列線與相對應的第二電阻不導接;及(C)重覆步驟(A)及(B),直到掃描完全部的行線。A keyboard scanning method, the keyboard includes a controller, a plurality of row lines and column lines arranged in a matrix staggered, and a plurality of corresponding lines are arranged at intersections of the row lines and the column lines to guide corresponding row lines and columns a button of the line, wherein each of the line lines is connected to a first level signal via a first resistor, each of the line lines is connected to the first level signal via a second resistor, and the controller can control each Whether the first resistor is connected to the corresponding row line or not, and controlling whether the second resistor is connected to the corresponding column line; and the keyboard scanning method comprises: (A) the controller first controlling each of the first The resistor is not connected to the corresponding row line, and controls each of the second resistors to be non-conductive with the corresponding column line, and then sends a scan signal to a row line to be scanned; (B) the controller reads sequentially Taking the signal on each of the column lines, and before reading each column line, routing the column line to the corresponding second resistor, and after reading the signal on the column line, making the column line correspond to the corresponding line The second resistor is not conductive; and (C) repeats steps (A) and (B) until the entire line of the line is scanned. 依據申請專利範圍第1項所述的鍵盤掃描方法,其中該控制器內預設有一執行該步驟(A)、(B)及(C)的掃描模組。According to the keyboard scanning method of claim 1, wherein the controller has a scanning module for performing the steps (A), (B) and (C). 依據申請專利範圍第2項所述的鍵盤掃描方法,其中該掃描訊號令該被掃描的行線連接至一第二準位訊號。The keyboard scanning method of claim 2, wherein the scanning signal connects the scanned row line to a second level signal. 依據申請專利範圍第3項所述的鍵盤掃描方法,其中在步驟(C)中,當掃描完全部的行線,該控制器還控制各該第一電阻與相對應的行線導接,並控制各該第二電阻與相對應的列線導接。The keyboard scanning method according to claim 3, wherein in the step (C), when scanning the entire row line, the controller further controls each of the first resistors and the corresponding row line to be connected, and Each of the second resistors is controlled to be in contact with a corresponding column line. 依據申請專利範圍第3項所述的鍵盤掃描方法,其中該第一準位訊號是一高準位訊號,該第二準位訊號是一低準位訊號。According to the keyboard scanning method of claim 3, the first level signal is a high level signal, and the second level signal is a low level signal. 一種鍵盤,包括:複數條呈矩陣交錯排列的行線及列線;複數個按鍵,對應設於該等行線及列線的交會處,以導接相對應的行線及列線;複數個對應於該等行線的第一電阻,各該第一電阻的一端連接一第一準位訊號;複數個對應於該等列線的第二電阻,各該第二電阻的一端連接該第一準位訊號;複數個對應於該等行線的第一開關,各別連接在相對應的行線與第一電阻之間;複數個對應於該等行線的第二開關,其一端連接相對應的行線,另一端連接一第二準位訊號;複數個對應於該等列線的第三開關,各別連接在相對應的列線與第二電阻之間;及一控制器,其在掃描一行線之前,會控制該等第一開關及第三開關不導通,再控制與該被掃描的行線相對應的第二開關導通,並讀取每一列線,並控制與該被讀取的列線相對應的第三開關導通,且於讀取該列線上的訊號後,控制與該被讀取的列線相對應的第三開關不導通。A keyboard comprising: a plurality of rows and columns arranged in a matrix staggered; a plurality of buttons corresponding to the intersections of the row and column lines to guide the corresponding row and column lines; Corresponding to the first resistance of the row lines, one end of each of the first resistors is connected to a first level signal; a plurality of second resistors corresponding to the column lines, one end of each of the second resistors is connected to the first resistor a level switch signal; a plurality of first switches corresponding to the row lines, each connected between the corresponding row line and the first resistor; a plurality of second switches corresponding to the row lines, one end connected to the phase Corresponding row line, the other end is connected to a second level signal; a plurality of third switches corresponding to the column lines are respectively connected between the corresponding column line and the second resistor; and a controller Before scanning a line, the first switch and the third switch are controlled to be non-conducting, and then the second switch corresponding to the scanned row line is controlled to be turned on, and each column line is read, and controlled and read. The third switch corresponding to the column line is turned on, and the column is read After the signal, the third switch control line is read with the column corresponding to non-conductive. 依據申請專利範圍第6項所述的鍵盤,其中該控制器掃描一條行線時,會依序讀取該等列線,然後再掃描下一條行線,直到全部行線皆已完成掃描。According to the keyboard of claim 6, wherein when the controller scans a row line, the column lines are sequentially read, and then the next line line is scanned until all the line lines have been scanned. 依據申請專利範圍第7項所述的鍵盤,其中該控制器內預設有一掃描模組,且該控制器執行該掃描模組以進行上述掃描該等行線及讀取該等列線的動作。According to the keyboard of claim 7, wherein the controller has a scanning module preset, and the controller executes the scanning module to perform the scanning of the row lines and the reading of the column lines. . 依據申請專利範圍第8項所述的鍵盤,其中該等第一電阻、第二電阻、第一開關、第二開關及第三開關是內建在該控制器中。The keyboard of claim 8, wherein the first resistor, the second resistor, the first switch, the second switch, and the third switch are built in the controller. 依據申請專利範圍第8或9項所述的鍵盤,其中該掃描模組掃描完全部的行線後,則控制該等第一開關及第三開關導通。According to the keyboard of claim 8 or 9, wherein the scanning module scans the entire line of the line, the first switch and the third switch are controlled to be turned on. 依據申請專利範圍第10項所述的鍵盤,其中該第一準位訊號是一高準位訊號,該第二準位訊號是一低準位訊號。The keyboard of claim 10, wherein the first level signal is a high level signal and the second level signal is a low level signal. 依據申請專利範圍第6項所述的鍵盤,其中該鍵盤是一薄膜式鍵盤。The keyboard of claim 6 wherein the keyboard is a film type keyboard.
TW101110820A 2012-03-28 2012-03-28 Method of keyboard scan and keyboard applied the method TWI476638B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101110820A TWI476638B (en) 2012-03-28 2012-03-28 Method of keyboard scan and keyboard applied the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101110820A TWI476638B (en) 2012-03-28 2012-03-28 Method of keyboard scan and keyboard applied the method

Publications (2)

Publication Number Publication Date
TW201339900A TW201339900A (en) 2013-10-01
TWI476638B true TWI476638B (en) 2015-03-11

Family

ID=49770929

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101110820A TWI476638B (en) 2012-03-28 2012-03-28 Method of keyboard scan and keyboard applied the method

Country Status (1)

Country Link
TW (1) TWI476638B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI602085B (en) * 2015-12-14 2017-10-11 聯陽半導體股份有限公司 Keyboard apparatus and detection method for status of keys thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6181262B1 (en) * 1998-05-01 2001-01-30 Gateway, Inc. Keyboard scan code snooper
US6259435B1 (en) * 1998-08-25 2001-07-10 Compaq Computer Corp. Obfuscated keyboard scan
TW503366B (en) * 2001-05-22 2002-09-21 Globlink Technology Inc Method for speeding up keyboard array scan
US6961008B2 (en) * 2002-03-22 2005-11-01 Winbond Electronics Corp. Scan circuit and method for keyboard

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6181262B1 (en) * 1998-05-01 2001-01-30 Gateway, Inc. Keyboard scan code snooper
US6259435B1 (en) * 1998-08-25 2001-07-10 Compaq Computer Corp. Obfuscated keyboard scan
TW503366B (en) * 2001-05-22 2002-09-21 Globlink Technology Inc Method for speeding up keyboard array scan
US6961008B2 (en) * 2002-03-22 2005-11-01 Winbond Electronics Corp. Scan circuit and method for keyboard

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI602085B (en) * 2015-12-14 2017-10-11 聯陽半導體股份有限公司 Keyboard apparatus and detection method for status of keys thereof
US10289211B2 (en) 2015-12-14 2019-05-14 Ite Tech. Inc. Keyboard apparatus and detection method for status of keys thereof

Also Published As

Publication number Publication date
TW201339900A (en) 2013-10-01

Similar Documents

Publication Publication Date Title
US10168732B2 (en) Touch panel and sensing method thereof
US9239655B2 (en) Parsimonious systems for touch detection and capacitive touch methods useful in conjunction therewith
KR101454521B1 (en) Touch detection
US8427442B2 (en) Touch apparatus and touch sensing method
US8502796B1 (en) Interpolated single-layer touch sensor
US11249564B2 (en) Sensor for detecting pen signal transmitted from pen
US20100066572A1 (en) Resistive switch matrix
US9772735B2 (en) Touch sensor and electronic device
JP2955149B2 (en) Touch panel coordinate detection device
US20120262376A1 (en) Membrane keyboard scan circuit, scan method and keyboard having the same
KR102297892B1 (en) Touch panel and method for detecting pressed position on touch panel
US10013126B2 (en) Electronic apparatus and single-layer multi-point mutual capacitive touch screen thereof
WO2016155063A1 (en) Self-capacitive touch screen structure, embedded touch screen and liquid crystal display
TW201928644A (en) Capacitive touch sensor apparatus and system having branching electrodes
US20160034739A1 (en) Biometric identification device having sensor electrodes with masking function
US20110025644A1 (en) Touch Control Apparatus, Associated Sensing Control Apparatus and Method Thereof
TWI476638B (en) Method of keyboard scan and keyboard applied the method
US10599905B2 (en) Fingerprint detection circuit and display device
US7888610B2 (en) Keypad and method for identifying keystrokes of a keypad
US20130257633A1 (en) Method for keyboard scanning and a keyboard applying the same
TWM403696U (en) Input device capable of eliminating ghost key
CN203894703U (en) Computer keyboard
US11630155B2 (en) Keyboard with wire aging self-adaptation, self-adaptation method for keyboard, electronic computing device readable medium with stored program, and electronic computing device program product
US4567469A (en) Matrix keyboard
KR20130136375A (en) Touch detecting apparatus and method