201037564 九、發明說明: 【發明所屬之技術領域】 本發明為-種按鍵組合區具有N_Keys關_功能之腦 鍵盤及其改良方法’係將USB鍵盤規格之特性,重新以位元對映 (bit map)定義每-按鍵,並將預定的按鍵組合區的每一按鍵之間皆 避開矩陣線路接點位置,使其同時按壓六個以上一般按鍵而同時 〇輸出六個減以上,絲合習知消除紐的解財案二,即能擴 充至USB鍵盤的全區所有按鍵皆能同時輸出的技術領域。 【先前技術】 由於鍵盤的原理是採用矩陣(MATRIX)的方式,因此可能造 成一種情況,假設一個正方形的線路,如第一、二圖所示,為發 生鬼鍵現象之檢測步驟如下: 1. 當掃瞄線L1輸出一高電壓H1 ’掃瞄線L2輸出低電壓L〇w, ❹按下按鍵SW-A不放開,觀察第1觀察點Node卜若為低電壓L〇w ; 2. 繼續按下SW-Β不放開’觀察第2觀察點為低電壓L〇w,而 且第2-1觀察點為低電壓l〇w ; 3. 繼續按下SW-C不放開,觀察第三觀察點為低電壓Low ; 4·觀察第四觀察點為低電壓Low,但SW-4未按下,但該按 鍵會顯不於顯示器上。 因此,依據前述之檢測步驟’係在正方形的四個角落從左上 開始順時針排列SW-A、B、C、D四個按鍵,若同時按下,SW_A、 B、C三個按鍵時,SW-D也會被導通,因此畫面上會出現對應於 5 201037564 該四個按鍵之訊號,財際上並沒有將SW_D按下,而畫面卻出 現了,因此業界對該現象稱之為鬼鍵。因此,在井字形的四個交 叉點的按鍵SW-Α〜D,只要射三伽XJi的缝被按下,即會產 生鬼鍵現象。 為此,業界即有兩種解決該鬼鍵的方法: 第一種解決方法:軔體程式排除方式 〇 請參閱第三圖所示,應用軔體(firmware)程式判讀,在同時按 下三個按鍵或三個按鍵以上時,若產生鬼鍵情形,即不承認當時 所有按下的按鍵,必須俟鬼鍵情形消失才承認當時所有按下的按 鍵輸入,如此該缺點即在產生鬼鍵情形時,按鍵輸入皆為無效, 勢必發生研判無效後操作者已然輸入下一步驟所欲按下的按鍵, 以致造成前一動作消失的缺憾。 第二種解決方法:增加二極體排除方式 ❹ 請參閱第四圖所示,係在鍵盤矩陣電路之掃瞄線LI、L2與偵 察線SI、S2之間分別接一按鍵SW-A、B、C、D,該各按鍵SW-A、 B、C、D之輸入端分別接二極體〇卜D2、D3、D4 ;其檢測鬼鍵 步驟: 1. 當掃瞄線L1輸出一高電壓訊號H1,掃瞄線L2輸出低電壓訊 號Low,按下按鍵SW-Α不放開,觀察第一觀察點Nodel,若為低 電壓訊號Low ; 2. 繼續按下SW-B不放開,觀察第二觀察點Node2為低電壓訊號 6 201037564201037564 IX. Description of the invention: [Technical field of the invention] The present invention is a brain keyboard with a N_Keys off function and an improved method thereof in a key combination area, and the characteristics of the USB keyboard are re-mapped with bits (bit Map) defines each button, and avoids the position of the matrix line contact between each button in the predetermined button combination area, so that it can simultaneously press six or more general buttons while simultaneously outputting six minus or more. Knowing the elimination of New Zealand's solution, it is a technical field that can be extended to all keyboards of the USB keyboard. [Prior Art] Since the principle of the keyboard is a matrix (MATRIX) method, it may cause a situation. Assuming a square line, as shown in the first and second figures, the detection steps for ghosting occur as follows: 1. When the scan line L1 outputs a high voltage H1 'the scan line L2 outputs the low voltage L〇w, ❹ press the button SW-A does not release, observe the first observation point Node if the low voltage L〇w; Continue to press SW-Β not to let go 'Observation of the second observation point is low voltage L〇w, and the 2-1st observation point is low voltage l〇w; 3. Continue to press SW-C without letting go, observe the first The three observation points are low voltage Low; 4. The fourth observation point is low voltage Low, but SW-4 is not pressed, but the button will not be displayed on the display. Therefore, according to the foregoing detection step, the SW-A, B, C, and D buttons are arranged clockwise from the upper left in the four corners of the square. If the SW_A, B, and C buttons are simultaneously pressed, SW -D will also be turned on, so there will be a signal corresponding to the four buttons of 2010Lait 3,375,64. The SW_D is not pressed on the screen, but the screen appears, so the industry calls this a ghost key. Therefore, the keys SW-Α~D at the four intersection points of the well-shaped shape generate a ghost key phenomenon as long as the slit of the three-element XJi is pressed. To this end, the industry has two ways to solve the ghost key: The first solution: the elimination method of the program, please refer to the third figure, the application of the firmware program, press three at the same time When a button or three buttons or more are used, if a ghost key is generated, that is, all the pressed buttons are not recognized at the time, it is necessary to delete all the pressed key inputs at the time when the ghost key disappears, so that the disadvantage is that when a ghost key is generated, The key input is invalid, and it is bound to cause the operator to input the button to be pressed in the next step after the judgment is invalid, so that the defect of the previous action disappears. The second solution: increase the diode elimination method ❹ Please refer to the fourth figure, which is connected to the SW-A and B respectively between the scan lines LI and L2 of the keyboard matrix circuit and the reconnaissance lines SI and S2. , C, D, the input terminals of the buttons SW-A, B, C, D are respectively connected to the diodes D2, D3, D4; the steps of detecting ghost keys: 1. When the scan line L1 outputs a high voltage Signal H1, scan line L2 outputs low voltage signal Low, press button SW-Α does not release, observe the first observation point Nodel, if it is low voltage signal Low; 2. Continue to press SW-B not let go, observe The second observation point Node2 is a low voltage signal 6 201037564
Low ’ ^NODE2-l為高電壓訊號,因二極體D2輸入端與輸出端電 壓差未達0.6V以上’導致二極體D2無法導通; 3. 繼續按下SW-C不放開’觀察NODE3為高電壓訊號; 4. 此時觀察NODE4為高電壓訊號’且SW-D未按下,沒有鬼鍵 現象。 因此,此此種解決方法,確實能有效消除鬼鍵現象,然須在 〇每一按鍵前串接一個二極體,其生產製造成本增加為其缺點。 再者,第一圖-A、B所示,由於USB鍵盤標準格式上有限制 問通,因USB鍵盤標萃規格規定(如第一圖_八),鍵盤送鍵碼給系 統共8個位元組(bytes),其定義如下: 1.第一個位元組(Obyte):依據按鍵位元對映(bitmap), 編入更改鍵(modifierkey) ’每一位元(bit)代表一按鍵,共八個按 鍵(指左/右31^,血1冰,\¥01等八個按鍵)(如第一圖_]8)。 ❹ 2.第二個位元組(lbyte):未定義。 3.第三至八個位元組(2〜7byte),共六個位元組:編入標準鍵 (normal key),每一位元組(byte)代表一按鍵’共六個按鍵,由於上 述規格上之限制問題,造成目前USB鍵盤即使已解決鬼建問題, 然而USB鍵盤仍然存在按鍵最多僅能同時傳送六個一般按鍵之限 制。 因此,前述的USB鍵盤若與習知解決鬼鍵方#中的以硬體排 除方式,係在每個按鍵線路上增加一個二極體避開鬼鍵產生方案 7 201037564 作結合’則該USB鍵盤之按鍵組合區即能擴充至USB鍵盤的全區 所有按鍵’以提供解決目前標準us職盤,即使已解決傳統鬼鍵 (gh〇Stkey)問題,仍然因為標準鍵碼的軔體(firmware)格式,只能 同時輸出8鍵modify key及6鍵一般按鍵(normal key)之限制。 【發明内容】 1. 本發明係將USB鍵盤規格之鍵碼的軔體(flrmware)程式,重 〇新以多組的位元對映(bitmap)方式來定義每一按鍵,以及使預定的 按鍵組合區的每一按鍵之間皆避開矩陣線路接點位置,使其同時 按壓六個以上一般按鍵而同時輸出六個訊號以上。 2. 本考X月以如述的解決方法,重新修改幸刃體(朽而⑽的程式, 且結合習知消除鬼鍵的解決方案二,即能擴充至舰鍵盤的全區 所有按鍵,即使再多按鍵同時按壓,皆能同時輸出。 【實施方式】 〇 請參閱第一、五圖所示,應用USB規格之特性重新修改軔體 (firmware)程式,以達成在USB鍵盤特定組合區域具有Ν_κΕγ ROLLOVER功能之處理方法如下: 1.應用USB報告贿元(USB rcpwt deseriptef)允許使用位 元對映(bitmap)特性,將每一位元㈣代表一個魏,則每位元組 可代表八個按鍵,一般按鍵重新以位元對映⑽卿)來 定義每個按鍵。 2.應用USB端點允許同時使用多個輸入報告形式㈣⑽in 201037564 type)特性,其步驟如下: —a.使用不長於USB _鮮規格之_傳送_ 8 bytes之 規定使其共用windows OS標準驅動程式; 丄將USB鍵盤的—般按鍵分成多組輸人報告形杨⑽η type),每組鍵碼不超過8位元組(by㈣長度(如第一圖七);Low ' ^NODE2-l is a high voltage signal, because the voltage difference between the input terminal and the output terminal of the diode D2 is less than 0.6V', which causes the diode D2 to be unable to conduct; 3. Continue to press SW-C without letting go 'observation NODE3 is a high voltage signal; 4. At this time, NODE4 is observed as a high voltage signal 'and SW-D is not pressed, and there is no ghost key phenomenon. Therefore, this kind of solution can effectively eliminate the ghost key phenomenon, but it is necessary to connect a diode in front of each button, and the manufacturing cost increases as a disadvantage. Furthermore, as shown in the first figure -A, B, because the standard format of the USB keyboard is limited, due to the USB keyboard standard specification (such as the first picture _8), the keyboard sends the key code to the system a total of 8 bits. A tuple (bytes), which is defined as follows: 1. The first byte (Obyte): according to the key bitmap mapping, programmed into the modifier key (modifierkey) 'each bit (bit) represents a button, A total of eight buttons (referring to left / right 31 ^, blood 1 ice, \ ¥ 01 and other eight buttons) (such as the first picture _] 8). ❹ 2. The second byte (lbyte): undefined. 3. The third to the eighth byte (2 to 7 bytes), a total of six bytes: programmed into the normal key, each byte represents a button 'a total of six buttons, due to the above The limitation of the specification causes the current USB keyboard to solve the ghost construction problem. However, the USB keyboard still has the limitation that the button can only transmit six general buttons at the same time. Therefore, if the USB keyboard mentioned above is in the hardware elimination manner in the conventional solution, a diode is added to each key line to avoid the ghost key generation scheme 7 201037564 as a combination of the USB keyboard. The key combination area can be extended to all the buttons of the USB keyboard to provide a solution to the current standard us job board, even if the traditional ghost key (gh〇Stkey) problem has been solved, still because of the standard key code firmware format. It can only output the 8-key modify key and the 6-key normal key limit at the same time. SUMMARY OF THE INVENTION 1. The present invention is a FLrmware program of a USB keyboard specification key, which is defined by a plurality of sets of bit maps to define each key, and to make a predetermined key. The position of the matrix line contact is avoided between each button of the combination area, so that more than six general buttons are pressed simultaneously and six signals are output at the same time. 2. In the X-month of this test, the solution of the lucky blade (the program of mortal (10), and the solution 2 of the conventional elimination of the ghost key, can be extended to all the buttons in the entire area of the ship keyboard, even if the solution is as described above. If you press more than one button at the same time, you can output it at the same time. [Embodiment] Please refer to the first and fifth figures to re-modify the firmware program by using the characteristics of the USB specification to achieve Ν_κΕγ in the specific combination area of the USB keyboard. The ROLLOVER function is handled as follows: 1. Apply USB report (USB rcpwt deseriptef) to allow the use of bit mapping features, each bit (four) represents a Wei, then each tuple can represent eight buttons The general button re-defines each button with a bit map (10). 2. Application USB endpoint allows multiple input report forms (4) (10) in 201037564 type) at the same time, the steps are as follows: - a. Use no longer than USB _ fresh _ _ _ 8 bytes to make it share windows OS standard driver ; 丄 The USB keyboard's general button is divided into multiple groups of input report shape Yang (10) η type), each group of key codes does not exceed 8 bytes (by (four) length (as shown in Figure 7);
〇 c.將按鍵重新於中安排(如第簡),独合特定區 内的所有按鍵同時按壓時(如第一圖),皆不會同時位於輯電路 的四方形交叉點上(如第二圖)作訊號輸出,轉免產生鬼鍵現 因此’依據則述的解決方法,以實施例說明如下: 請參閱第一圖所示,係為刪鍵盤1之規格,其按鍵u之 編排則亦符合鮮規定’目驗縣狀標準usb難I,將組 α特區按鍵(如較粗標示線範圍)()之選定,預先將初體 (firmware)程式修改為多組的輸入報告形式及每組報告又以位元對 、(· P)— 口且將組合特定區按鍵,分別安排在矩陣電路上不 s產生鬼鍵的父又點上,亦即按鍵位置位於:矩陣(X〇〜训)的 交叉依序為Z、G、V ;辦(Χ3,γ5)的交叉點按鍵為制卜L ; 矩陣(X4,Y6)的父又點按鍵為加卜L ;矩陣(χ5〜ι2,γ〇)的交叉點依 序按鍵為 Space、Tab、A、S、D、W、Ε、Q ;矩陣(XU〜π,γ〇)的交 又點依序按鍵為F、R、τ、χ ;矩陣阳,丫1)即,丫3)即,丫7)的交 叉點依序按鍵為G、B、CapsL〇d〇 ; 9 201037564 因此’將USB鍵盤之組合特定區按鍵(area)内,當同時按壓六 個以上之按鍵(如第一圖),對應矩陣圖matrix (如第五圖)上 可知,白不會產生四方形的交叉點(如第二圖),亦即區内所有按 鍵皆不在鬼鍵位置上,以避免鬼鍵發生,配合鍵碼格式修改為多 組的輸入報告形式及每組報告又以位元對映(bit map)宣告,達到 USB鍵盤在特定區域具有N_KEYR〇LL〇VER功能。亦即,只有 〇按鍵組合區(批從)具有N-Keys Rollover功能,非按鍵組合區的按 鍵不具N-Keys R〇ll〇ver功能。 如述该重新修改之位元對映(bit map)按鍵處理方式,其輸入報 告升>式可為複數個。該USB鍵盤之端點可為一個或兩個。 依據前述的方法,請再參閱第二、五圖所示,配合每一按鍵 白串接個一極體排除鬼鍵問題,即能達成USB鍵盤全區域皆 能具有Ν-KEYROLLOVER功能。再者,該按鍵組合區(贿)可 〇在標準按鍵内作組合,亦可在鮮鍵盤外另為外掛設置。 以上說明對本發明而言只是說明性的,而非限制性的,本領 f普通技術人員理解,在不脫離侧要求所蚊補神和範圍的 f月況下’可作出許多修改、變化或等效,但都將落入本發明的保 護範圍之内。 201037564 【圖式簡單說明】 第一圖為USB鍵盤標準規格外觀圖。 第-圖-A為標準USB鍵盤每—位元組輸入報告表。 第-圖-B為標準USB鍵盤每一位元輸出報告表。 弟一圖為習知鍵盤按鍵矩陣電路示意圖。 第二圖為習知鍵盤藉軔體(firmware)程式解決 的圖。 、尾鍵問題說明示 第四圖為習知鍵盤藉每個按鍵皆串接一個二極體解決 題說明示意圖。 '、產生鬼鰱 第五圖為本發明重新編排矩陣圖。 【主要元件符號說明】 USB 報告描述元(USB report descripter ) 位元對映(bit map) ❹位元(bit) 位元組(byte) 輸入報告形式(report in type ) USB鍵盤1 按鍵11 組合特區按鍵(area)〇c. Re-arrange the button in the middle (such as the first), when all the buttons in the specific zone are pressed at the same time (such as the first figure), they will not be located at the square intersection of the circuit (such as the second). Figure) for signal output, transfer to generate ghost keys. Therefore, the solution according to the description is as follows: Please refer to the first figure, which is to delete the specification of keyboard 1, and the layout of button u is also In accordance with the fresh regulations, the county standard is difficult to use, and the selection of the alpha zone button (such as the thicker marking line range) () is selected, and the firmware program is modified into multiple groups of input report forms and each group. The report is again in the bit pair, (· P) - port and will combine the specific area buttons, respectively arranged on the matrix circuit does not produce the ghost key of the father and point, that is, the button position is located: matrix (X〇 ~ training) The intersection of the order is Z, G, V; the intersection of the (Χ3, γ5) buttons is for the formation of the L; the parent of the matrix (X4, Y6) is the button for the addition of L; matrix (χ5~ι2, γ〇) The intersection of the keys is Space, Tab, A, S, D, W, Ε, Q; the intersection of the matrix (XU~π, γ〇) The sequential keys are F, R, τ, χ; matrix yang, 丫 1) ie 丫 3) ie 丫 7) The intersection of the keys is G, B, CapsL〇d〇; 9 201037564 So 'USB Combination of keyboards In a specific area area (area), when more than six keys are pressed at the same time (as shown in the first figure), corresponding to the matrix matrix (as shown in the fifth figure), white does not produce a square intersection (such as The second picture), that is, all the keys in the area are not in the ghost key position, to avoid the occurrence of ghost keys, and the key code format is modified into multiple groups of input report forms and each group of reports is further mapped by bit map. Declare that the USB keyboard has the N_KEYR〇LL〇VER function in a specific area. That is, only the button combination area (batch) has the N-Keys Rollover function, and the button of the non-key combination area does not have the N-Keys R〇ll〇ver function. As described in the re-modified bit map button processing mode, the input report can be plural. The end of the USB keyboard can be one or two. According to the above method, please refer to the second and fifth figures. With each button, the white string is connected to the one pole to eliminate the ghost key problem, that is, the USB keyboard can be achieved in all areas with the Ν-KEYROLLOVER function. Moreover, the button combination area (bribe) can be combined in a standard button, or can be set outside the fresh keyboard. The above description is merely illustrative and not limiting, and it will be understood by those skilled in the art that many modifications, variations, or equivalents may be made without departing from the scope of the invention. However, all of them will fall within the scope of protection of the present invention. 201037564 [Simple description of the diagram] The first picture shows the appearance of the USB keyboard standard specifications. Figure-A is a standard USB keyboard per-byte input report form. Figure-B shows the output report table for each bit of the standard USB keyboard. A picture of the younger brother is a circuit diagram of a conventional keyboard key matrix circuit. The second picture is a diagram of a conventional keyboard that is solved by a firmware program. The description of the tail key problem is shown in the figure. The fourth picture shows a schematic diagram of a two-pole solution in which each button is connected in series. ', produces ghosts. The fifth figure is a rearrangement matrix diagram of the present invention. [Main component symbol description] USB report descripter Bit map ❹ bit (bit) Byte (byte) Input report form (report in type) USB keyboard 1 Button 11 Combination SAR Button (area)