1257565 九、發明說明: 【發明所屬之技術領域】 本發明係為一種I^ & 少習用之韋刃體的負荷,法與裝置’尤指—種減 來,並且減化韌體運鼻時間而能產生高效率出 咸切雜度之鍵盤輯之方法與裝置。 【先前技術】 鍵盤係為電腦之通用於 一— 腦主機端。而在電腦主機」:用以將貝料輪入至電 掃描告號285732號發明專利,係為『鍵盤 個按鍵之按鍵::方種適用於-具有複數 ::,盤輸出入界面中使用較;的鍵:::車: 該裝置如第一圖所示,第:鍵=檢知,其中 塊圖,係包括—中央處二:係! f知之鍵盤掃描裂置方 Λ ^ ^ Μ 1〇,一具有m個輸出入埠之鍵 …具有-信丄 14〇,形1:::=叉:為自然數’及至少-按鍵鍵開關 、处乂叉”沾,以對應該按鍵面板之按鍵。 1257565 然而上述之專利之缺點騎置較W雜及所有按鍵 之判定係交峰體來處理,如岐得一的 沈重且會造成整體之運算處理效率變得緩p 又如美國專利號4554530號之發明志 可切換元件矩陣之裝置及其掃V,係為「掃描 Apparatus for scann.n, a ^ elects), ^ rus:為另一 Γ之鍵盤掃插裝置方塊圖,包 括一中央處理气20, 一微處理器22,係田、 元件矩陣24之行/列,且平行式電性連結二 20 ^ 28 ϋΛ一Λ 至少兩個輪出端30,該邏輯閑 V頁閃該中央處理益亚電性連結一輪出掃 切換元件矩陣之識料,透輯閘 ,該中央,〇。當該可切換 == 日守,賢料該由賢料取回土阜2仏 、動作啟動 號線242傳送至該微處理器。仏讀線240及移位訊 然而上述之專•缺點為裝錄為_ 之判定係交由韌體來處理,如:為 沈重且會造錢體之運算處理效率變得緩慢處又為 【發明内容】 職是,本案發明人即為解決上述現有之缺點,乃特概 =研究並配合學理之運用,提出—種鍵盤料之方法與^ 1257565 本發明之主要目的係增加一鍵盤矩陣單元及方法,來 減少習用之韌體的負荷,及減低運算時間而能產生高效率 出來。 為了達成上述之目的,本發明係提供一種鍵盤矩陣之 方法,包括硬體主動偵測是否接收到按下一鍵盤矩陣輸入 單元之訊號,啟動一鍵盤矩陣掃描之功能,送出由該鍵盤 矩陣之一中斷訊號給一微處理器單元,及清除該鍵盤矩陣 之一暫存器單元内所存之數值及獲得下一個鍵盤矩陣輸入 單元之位址。 為了達成上述之目的,本發明亦提供一種鍵盤矩陣之 裝置,係用以接收由一鍵盤矩陣輸入單元所輸入之一訊 號,將該訊號解析且傳給一微處理器單元處理,藉以降低 韌體運算處理之負擔,係包括一中斷產生單元,係用以電 性連結於該微處理器單元,一探詢矩陣單元,係電性連結 於該中斷產生單元,一驅動矩陣單元,係電性連結於該探 詢矩陣單元及該鍵盤矩陣輸入單元,及一矩陣位址產生單 元,係電性連結於該驅動矩陣單元。 【實施方式】 為了使貴審查委員能更進一步瞭解本發明為達成 既定目的所採取之技術、方法及功效,請參閱以下有關本發 明之詳細說明與附圖,相信本發明之目的、特徵與特點,當 可由此得一深入且具體之瞭解,然而所附圖式僅提供參考 與說明用,並非用來對本發明加以限制者。 請參閱第三圖,第三圖係為本發明鍵盤矩陣之裝置架 1257565 構示思圖,包括—微11 内含-動體,-鍵盤矩陣;::3二亥微處理器單元32 於該鍵盤鍵用盤,單元 (所按下之鍵碼)的二:為外界所輸入之資料訊號 盤(_。_或—;、鍵盤二 本糾越祕之裝置内 及-鍵盤矩陣輸入單=::32,-鍵盤矩陣單元34 括-中斷產生單-w ”中該鍵盤矩陣單元34係包 元32之-情二丨」’個以·連結減微處理器單 係電性連結於該;斷 探詢矩陣單元342 ’ 係電性連❺料^產生34Q,— _矩陣單元344, 36,一拓ιΐ/ ^衣珣矩陣單元料2及該鍵盤矩陣輸入單元 單元生單元346,係電性連結於該驅動矩陣 dtl存器單元348,係電性連結於該矩陣位址 機存取記憶體。該暫存器單元係可為—唯讀記憶體或一隨 該微處理器嚴;Q0 & ^ τ 存執行該裝置之括—儲存單元320,係用以儲 係電性連砝於肢 術邏輯運算單元322, 結於該元320; 一計數單元326,係電性連 電性連早7^ 322;及—中斷控制單元324,係 逑、、·σ於该异術邏輯運算單元322。 1257565 其内部之運作方式為當一使用者由該鍵盤矩陣輸入 單元按下任何的鍵(單鍵或複數個按鍵),該鍵盤矩陣單元 之中斷產生單元主動送出一中斷訊號,經由該微處理器單 元之中斷控制單元傳送至該微處理器單元之儲存單元所儲 存之一韌體内,同時啟動探詢矩陣單元的機制並經由驅動 矩陣單元將某—按鍵所產生之訊號傳送至矩陣位址產生單 元,矩陣位址產生單元將某一按鍵解析並產生相對應之位 址,該韌體經由暫存器單元即可逐一取得該些按鍵之位址。 請參閱第五圖,第五圖係為本發明鍵盤矩陣之方法流 程圖,係包括偵測使用者是否按下一鍵盤矩陣輸入單元= Λ號(S100),若偵測結果為是則啟動一鍵盤矩陣掃描之 能(S1Q2) ’用以掃㈣使用者是按下那些按鍵,掃描 是否已找到使用者所按下之按鍵⑽4),^搜索免 疋,則由该鍵盤矩陣送出一中斷訊號給一微處理哭二 (s_ ’從鍵盤矩陣獲騎按下之鍵盤料輸^ ^ 對位址⑽8),將所獲得之鍵盤矩陣相對位址儲存到2 存器早兀内,清除該鍵盤矩陣之—暫存器單元内所存之= 值及獲得下-個鍵盤轉輪人單元之健(⑽),j t盤矩陣輸人單元之位址係可為同—行或同—列鍵、 陣輸入單元之健,最後回顺動 = 步驟’以獲得下—個鍵盤矩陣輪人衫之位址 力也 其中在遠硬體主動偵測之步驟中 則反覆此一步驟。而在哕抽会θ ^ 1 、丄、、。果為否, 鍵之步驟中,若搜_^^否|已制所按下之該些按 步驟。 、、σ果為否,則回到該硬體主動偵測之 1257565 下掃描鍵盤矩陣時,係為當使用者按 掃描到尾,且二演算法將該鍵盤矩陣從頭 其中包含有未被:用 同=過重:而本發明係使用鍵盤矩陣之裝置在同一行(或 普置係\田,而非習知技術從頭掃描到尾,並且本發明之 衣置係一次只回來一個 , 元内,當解析完該按鍵訊號時只巧器單 本發明 > J /、而/月1示邊暫存斋早兀, 該暫存器“會自動將下-個按鍵數值存入 不限於同—列或同一行之=之裝置所掃描之區域範圍並 行所按下的按鍵或同列所^的^該裝置係可掃描同一 技術ΐ ::: f,陣之裝置其特點為可有效地減輕習知 :广減少習知技術之勒體複雜 去處理未被按下的鍵只處理被按下的鍵,二=用± 點係為位址編碼/解碼, 斗寸 位址編碼/解碼。 自動將位址輸人额成八個位元 本考X月確月b藉上述所揭露之技術,— 的設計,堪能提高整體之使用價值,^申、q 未狀刊物或公開使用,誠已符合發明專利之料申= 法挺出發明專利申請。 美依 惟,上述所揭露之圖式、說明,僅為本發 =产凡1奸,技藝者當可依據上述之說明作其二Ϊ 之改良’而讀改變仍屬於本發明之發日轉神及以下= 10 1257565 之專利範圍中。 【圖式簡早說明】 第一圖係為習知之鍵盤掃描裝置方塊圖; 第二圖係為另一習知之鍵盤掃描裝置方塊圖; 第三圖係為本發明鍵盤矩陣之裝置架構示意圖; 第四圖係為本發明鍵盤矩陣之裝置内部方塊圖;及 第五圖係為本發明鍵盤矩陣之方法流程圖。1257565 IX. Description of the invention: [Technical field to which the invention pertains] The present invention is a load of the I^ & less commonly used weir blade body, the method and the device 'especially minus the species, and reducing the fat nose delivery time The method and device for generating a keyboard with high efficiency and saltiness. [Prior Art] The keyboard is used by the computer for one-head host. In the computer host: used to turn the shell material into the electric scan number 285732 invention patent, is the "keyboard button button:: square type applies to - has a complex number::, the disk input and output interface is used ; Key:::Car: The device is as shown in the first picture, the first: key = detection, which block diagram, including - central two: system! f know the keyboard scan cracking square ^ ^ Μ 1〇, a key with m input and output... with - letter 14〇, shape 1:::= fork: for natural number ' and at least - button switch, At the fork, the button is pressed to correspond to the button of the button panel. 1257565 However, the shortcomings of the above patents are more complicated than the judgment of all the buttons, such as the heavy one and the overall operation. The processing efficiency becomes slow. For example, the device of the invention of the switchable component matrix of the US Pat. No. 4545530 and the sweeping V thereof are "Scan for Imaging for scann.n, a ^ elects", ^ rus: another The block diagram of the keyboard sweeping device comprises a central processing gas 20, a microprocessor 22, a row/column of the matrix, the component matrix 24, and a parallel electrical connection of two 20^28 ϋΛ Λ at least two rounded ends 30, the logic idle V page flashes the central processing Yi Ya electrical connection a round of sweeping switching component matrix knowledge, through the gate, the central, 〇. When the switchable == day guard, Yinxian should be Yinxian Retrieving the band 2, the action start line 242 is transmitted to the microprocessor. Reading line 240 and shifting signal The above-mentioned specials and shortcomings are that the judgment of the record as _ is handled by the firmware, such as: for the heavy and the money processing, the processing efficiency becomes slow and the content of the invention is [invention content], the inventor of the case In order to solve the above-mentioned existing shortcomings, it is specifically studied and used in conjunction with the theory, and the method of the keyboard material is proposed and ^ 1257565. The main purpose of the present invention is to add a keyboard matrix unit and method to reduce the firmware of the conventional one. In order to achieve the above object, the present invention provides a keyboard matrix method, including hardware actively detecting whether a signal input by pressing a keyboard matrix input unit is received, and starting a The function of the keyboard matrix scan sends an interrupt signal from one of the keyboard matrices to a microprocessor unit, and clears the value stored in one of the register units of the keyboard matrix and obtains the address of the next keyboard matrix input unit. To achieve the above object, the present invention also provides a keyboard matrix device for receiving input by a keyboard matrix input unit. a signal, which is parsed and transmitted to a microprocessor unit for processing, thereby reducing the burden of firmware processing, and includes an interrupt generating unit for electrically connecting to the microprocessor unit, an interrogation matrix unit The circuit is electrically coupled to the interrupt generating unit, and the driving matrix unit is electrically coupled to the interrogation matrix unit and the keyboard matrix input unit, and a matrix address generating unit is electrically coupled to the driving matrix unit. [Embodiment] In order to enable the reviewing committee to better understand the techniques, methods, and effects of the present invention for achieving the intended purpose, refer to the following detailed description of the invention and the accompanying drawings. It is to be understood that the invention is not limited by the scope of the invention. Please refer to the third figure. The third figure is a schematic diagram of the device frame 1257565 of the keyboard matrix of the present invention, including - micro 11 embedded-moving body, - keyboard matrix;:: 3 Erhai microprocessor unit 32 The keyboard key is used for the disk, and the unit (the pressed key code) is two: the data signal disk input by the outside world (_._ or -;, the keyboard two in the device and the keyboard matrix input form =: :32,-keyboard matrix unit 34 includes -interrupt generation single-w", the keyboard matrix unit 34 is a packet element 32-information two"", the connection minus the microprocessor is electrically connected to the single circuit; The interrogation matrix unit 342 'Electrical connection material ^ generates 34Q, - _ matrix unit 344, 36, a extension ι / / 珣 matrix element material 2 and the keyboard matrix input unit unit 346, electrically connected The drive matrix dtl memory unit 348 is electrically coupled to the matrix address machine access memory. The register unit can be a read-only memory or a microprocessor; Q0 & τ storing the device-storage unit 320 is used to store the electrical connection to the limb logic operation unit 322, In the element 320, a counting unit 326 is electrically connected to the circuit 7th 322; and the interrupt control unit 324 is configured to perform 异, σ, σ in the logical operation unit 322. 1257565 The internal operation mode In order to enable a user to press any key (single key or a plurality of keys) by the keyboard matrix input unit, the interrupt generating unit of the keyboard matrix unit actively sends an interrupt signal, and transmits the interrupt signal through the interrupt control unit of the microprocessor unit. To a firmware stored in the storage unit of the microprocessor unit, simultaneously starting a mechanism for interrogating the matrix unit and transmitting a signal generated by a button to the matrix address generating unit via the driving matrix unit, the matrix address generating unit The key is parsed and the corresponding address is generated, and the firmware can obtain the addresses of the keys one by one through the register unit. Referring to the fifth figure, the fifth figure is the method flow of the keyboard matrix of the present invention. The figure includes detecting whether the user presses a keyboard matrix input unit = Λ (S100), and if the detection result is yes, starts a keyboard matrix scanning capability (S1Q2) Sweep (4) The user presses those buttons to scan whether the button pressed by the user has been found (10) 4), ^ search for free, then an interrupt signal is sent from the keyboard matrix to a micro-processing crying two (s_' from the keyboard matrix The keyboard material input is pressed to the address (10) 8), and the obtained keyboard matrix relative address is stored in the 2 memory early address, and the value of the value stored in the temporary register unit of the keyboard matrix is cleared. Obtain the health of the next-keyboard runner unit ((10)), the address of the jt disk matrix input unit can be the same-line or same-column key, the input unit of the array, and finally the smoothing = step ' Obtaining the address power of the next keyboard matrix wheel sweater is also repeated in the step of remote hardware active detection. And in the pumping session θ ^ 1 , 丄, ,. If no, in the step of the key, if the search _^^No|has been pressed, the steps are as follows. If the σ fruit is no, return to the hard disk active detection of the 1257556 scan keyboard matrix, when the user presses the scan to the end, and the second algorithm includes the keyboard matrix from the beginning: Same as too heavy: while the present invention uses the keyboard matrix device in the same row (or the general system, instead of the prior art scanning from the beginning to the tail, and the clothing of the present invention only comes back once, within the yuan, when When the button signal is parsed, only the invention is > J /, and / month 1 is temporarily stored in the fast, the register "will automatically store the next button value is not limited to the same column or The area scanned by the device of the same row = the button pressed in the same direction or the same column ^ The device can scan the same technology ΐ ::: f, the device is characterized by effective reduction of the knowledge: wide Reducing the complexity of the conventional technique to deal with the keys that have not been pressed to process only the pressed keys, and the second is to use the ± point system for address encoding/decoding, and to encode/decode the address. Automatically convert the address. The amount of the person is eight yuan. The test is based on the technology disclosed above. Can improve the overall use value, ^ Shen, q unpublished publications or public use, Cheng has met the invention patent material application = law to get the invention patent application. US Yiwei, the above disclosed schema, description, only this If the producer is a traitor, the skilled person can make a second improvement based on the above description. The reading change is still in the scope of the invention and the following patent = 10 1257565. The first figure is a block diagram of a conventional keyboard scanning device; the second figure is a block diagram of another conventional keyboard scanning device; the third figure is a schematic diagram of the device structure of the keyboard matrix of the present invention; The internal block diagram of the device of the keyboard matrix; and the fifth figure is a flow chart of the method of the keyboard matrix of the present invention.
【主要元件符號說明】 中央處理器 10、20 鍵盤輸出入界面 12 鍵盤矩陣 14 按鍵鍵開關 140 微處理器 22、32 掃描埠 220[Main component symbol description] CPU 10, 20 Keyboard input and output interface 12 Keyboard matrix 14 Key switch 140 Microprocessor 22, 32 Scan 埠 220
輸出掃描埠 222 可切換元件矩陣 24 控制訊號線 240 移位訊號線 242 資料取回埠 244 導線 26 邏輯閘 28 輸出端 30 11 1257565 儲存單元 320 算術邏輯運算單元 322 中斷控制單元 324 鍵盤矩陣單元 34 中斷產生單元 340 探詢矩陣單元 342 驅動矩陣單元 344 矩陣位址產生單元 346 暫存器單元 348 鍵盤矩陣輸入單元36Output scan 埠 222 switchable component matrix 24 control signal line 240 shift signal line 242 data retrieval 244 wire 26 logic gate 28 output terminal 30 11 1257565 storage unit 320 arithmetic logic operation unit 322 interrupt control unit 324 keyboard matrix unit 34 interrupt Generation unit 340 Interrogation matrix unit 342 Drive matrix unit 344 Matrix address generation unit 346 Register unit 348 Keyboard matrix input unit 36