4280 . 九、發明說明: 【發明所屬之技術領域】 本發明係提供一種具相容各種記憶體存取格式之内嵌 ,制器/鍵盤控制器及其方法,尤指一主機系統傳送一存取 ^令至一記憶體裝置時,經由本發明内嵌控制器/鍵盤控制 器進行指令相容之轉換,將使該主機系統所傳送之該存取 指令袼式不受限該記憶體裝置之格式。 【先前技術】 半導體製程微縮化技術的日益先進與突破,使得一顆 積體電路(ic)晶片能容納的電晶體數量由數萬個變成數億 個(甚至更多)’因此1C的功能也就不斷的提升。鍵盤控制 器原本的功能乃控制電腦主機系統端與鍵盤間之訊號傳 遞,但隨著系統單晶片與多功能整合的概念在Ic產品中被 大量的採用,鍵盤控制器也逐漸提升具有更多的支援功 能,是故市面上的鍵盤控制器也可以扮演一内嵌控制器的 角色。 請參閱第一A圖,第一A圖為欲存取一工業標準架構 (Industry Standard Architecture,ISA)格式記憶體裝置 之内嵌控制器/鍵盤控制器之功能方塊示意圖。一内嵌控制 器/鍵盤控制器10用於中介一主機系統11讀寫一 ISA格式 記憶體裝置12。在應用上,主機系統(H〇st)ll係可為一筆 記型電腦或一個人電腦,其傳送一 ISA格式存取指令至一 ISA格式之記憶體裝置,然後由内嵌控制器/鍵盤控制器1〇 扮演彼此間的訊號控制角色。 1284280 請配合第一 A圖。主機系統11將一 ISA格式存取指令 送到内嵌控制器/鍵盤控制器10内一主機介面單元1〇1 了 然後藉微控制單元102進行訊號處理後送到至一 ISA介面 單元103(如一 X匯流排介面),最後將該ISA存取指^存 取至δ己憶體裝置(IsA格式記憶體12)上。但在電子資訊產 品面積微小化的趨勢下,1C腳數小較受到市場的歡迎與採 用。因此ISA格式記憶體裝置12腳數多的缺點,造成/另一 種腳數較少的串列週邊介面(Series PeHphe]fal Interface,SPI)格式記憶體裝置即受到相當大的注目。 請參閱第一 B圖,第一 B圖為欲存取一 spi格式記憶 體裝置之内嵌控制器/鍵盤控制器之功能方塊示意圖。與^ A圖最大不同之處,即把ISA格式記憶體裝置I〗替換為 一 SPI格式記憶體裝置13。為了格式相容,主機系統'u 將一 SPI存取指令送到内嵌控制器/鍵盤控制器丨〇内一主 ,介面單it 1G卜然後藉微控制單s 1G2進行訊號處理後 送到至一 SPI介面單元104,最後將SPI格式存取指令存 取至記憶體裝置(SPI格式記憶體13)上。上述方式雖然滿 足了使用腳數較小的SPI格式記憶體裝置13,但内嵌控制 器/鍵盤控制器10則需設置一 SPI介面單元以達到存取 SPI格式記憶體裝置13的目的。另外,由於SPI格式記憶 體只接受spi格式存取指令方能進行存取,主機系統11 將無法使用ISA格式存取指令來對SPI格式記憶體裝置13 進行資料存取。 ~ " 緣是,本發明人有感上述缺失之可改善,乃特潛心研 究並配合學理之運用,終於提出一種設計合理且有效改善 上述缺失之本發明。 1284280 【發明内容j 提供使一主機系=控制器沒有 問題。為了達成上述之目:二指:格式相容之 記憶體裝置進行資“鍵=制器使該主機系統與該 本發明之且相袼式相容之效用。 鍵盤控制器係包括:一主機 =體存取格式之内嵌控制器/ 換控制單元及—記憶體元二控制單元、一轉 器鍵盤_於聯繫該主機系統及該内嵌控制 ί元^^Λ之該㈣單元電性賴該主機介面 該控制單元,°該轉換控制單元電性連接 介面單元電性連接該轉換ί:?式或封包。該記憶體裝置 器及該記憶體裝置間之訊 兮内#心機傳絲指令錢記賴裝置時, 却二/鍵盤控制器將進行訊號處理及指令轉換,而 該^取指令之訊號格式(或訊號協定)能否相容於 ㈣目容各觀龍存取格式之内嵌 二"、’控制器之訊號動作方法,其方法步驟係包括·· 1284280 機以:存=二内嵌控制器/鍵盤控制器内該主 嵌控制器/鍵盤控制器曰内:二該主:系統;然後使該内 號控制或解碼處理,:讀^取指令進行訊 置,以㈣二、讀換格式之該存取指令至該記憶體裝 置以對該記體裝置進行讀寫動作。 ^ 本發ίΐί,進本發明之特徵及技術内容,請參閱 明Γ 附圖,然而所附圖式僅提供參考與說 並非用來對本發明加以限制者。 【實施方式】 請參閱第二圖,第二圖為本發明具相容各種記憶體存 曰式之^甘人控制器/鍵盤控制器之功能方塊示意圖。本發 •,之具相谷各種記憶體存取格式之内嵌控制器/鍵盤控制 器20係包括··一主機介面單元201、一控制單元202、一 轉,控制單元203及一記憶體裝置介面單元204。内嵌控 制器/鍵盤控制器20介於一主機系統21與一記憶體裝置 22之間,主機系統21可為一個人電腦主機、一伺服主機 或一可攜式電腦主機系統;而記憶體裝置22則可為串列週 邊介面(Series Peripheral Interface,SPI)格式記憶體 裝置’並且為一快閃記憶體裝置(Flash)。當主機系統21 傳送一工業標準架構(Industry Standard Architecture,4280. Description of the Invention: [Technical Field] The present invention provides an embedded, controller/keyboard controller and method thereof, which are compatible with various memory access formats, and more particularly, a host system transmits a memory When the device is transferred to a memory device, the instruction compatible conversion is performed by the embedded controller/keyboard controller of the present invention, so that the access command transmitted by the host system is not limited to the memory device. format. [Prior Art] The increasingly advanced and breakthrough of semiconductor process miniaturization technology makes the number of transistors that can be accommodated in an integrated circuit (ic) chip from tens of thousands to hundreds of millions (or even more), so the function of 1C is also It is constantly improving. The original function of the keyboard controller is to control the signal transmission between the system host and the keyboard. However, as the concept of system single chip and multi-function integration is widely used in Ic products, the keyboard controller is gradually upgraded with more The support function is that the keyboard controller on the market can also play the role of an embedded controller. Please refer to FIG. 1A. FIG. 1A is a functional block diagram of an embedded controller/keyboard controller for accessing an industry standard architecture (ISA) format memory device. An embedded controller/keyboard controller 10 is used to mediate a host system 11 to read and write an ISA format memory device 12. In application, the host system (H〇st) ll can be a notebook computer or a personal computer, which transmits an ISA format access command to an ISA format memory device, and then the embedded controller/keyboard controller 1〇 plays the role of signal control between each other. 1284280 Please cooperate with the first A picture. The host system 11 sends an ISA format access command to a host interface unit 1〇1 in the embedded controller/keyboard controller 10, and then sends the signal to the ISA interface unit 103 by the micro control unit 102. The X bus interface is finally accessed by the ISA access device to the delta memory device (IsA format memory 12). However, under the trend of miniaturization of electronic information products, the number of 1C feet is much welcomed and adopted by the market. Therefore, the shortcomings of the ISA format memory device having a large number of pins 12 result in considerable attention to the Series PeHphe fal Interface (SPI) format memory device having a small number of pins. Please refer to the first B diagram. The first B diagram is a functional block diagram of the embedded controller/keyboard controller for accessing a spi format memory device. The biggest difference from the ^ A picture is that the ISA format memory device I is replaced with an SPI format memory device 13. For format compatibility, the host system 'u sends an SPI access command to the embedded controller/keyboard controller. The interface is single 1G and then sent to the signal by the micro control unit s 1G2. An SPI interface unit 104 finally accesses the SPI format access instruction to the memory device (SPI format memory 13). Although the above method satisfies the SPI format memory device 13 with a small number of pins, the embedded controller/keyboard controller 10 needs to provide an SPI interface unit for the purpose of accessing the SPI format memory device 13. In addition, since the SPI format memory can only access the SPI format access command, the host system 11 cannot access the SPI format memory device 13 using the ISA format access command. ~ " The reason is that the inventors have felt that the above-mentioned defects can be improved, and they have devoted themselves to research and cooperated with the application of the theory, and finally proposed a invention which is reasonable in design and effective in improving the above-mentioned defects. 1284280 [Summary of the present j provides that there is no problem with a host system = controller. In order to achieve the above objectives: two fingers: a format compatible memory device performs the function of "key=the controller makes the host system compatible with the invention and is compatible with each other. The keyboard controller includes: a host = The embedded controller/switching control unit and the memory element two control unit and the one-turner keyboard of the body access format are connected to the host system and the embedded control unit (^) The host interface is the control unit, and the switching control unit is electrically connected to the interface unit to electrically connect the conversion device or the packet. The memory device and the memory device are connected to each other. When the device is used, the second/keyboard controller will perform signal processing and command conversion, and the signal format (or signal protocol) of the control instruction can be compatible with (4) the inline two of the viewing dragon access formats. ;, 'Controller signal action method, its method steps include · · 1284280 machine to: save = two embedded controller / keyboard controller inside the main embedded controller / keyboard controller :: two of the main: system ; then make the internal number control or decoding process : reading and fetching instructions to perform the operation, and (4) reading and translating the access instruction to the memory device to perform read and write operations on the recording device. ^本发 ΐ , , , , , , , , , , , , , , The drawings are only for reference and are not intended to limit the invention. [Embodiment] Please refer to the second figure, which is a compatible memory of the present invention. The function block diagram of the 甘 之 ^ Ganren controller / keyboard controller. The present invention, the embedded controller / keyboard controller 20 of the various memory access formats of the phase valley includes: · a host interface unit 201 A control unit 202, a switch, a control unit 203, and a memory device interface unit 204. The embedded controller/keyboard controller 20 is interposed between a host system 21 and a memory device 22, and the host system 21 can be A personal computer host, a servo host or a portable computer host system; and the memory device 22 can be a Serial Peripheral Interface (SPI) format memory device' and is a flash memory device. (Flash). When the host system 21 transmits an Industry Standard Architecture (Industry Standard Architecture,
ISA)格式之存取指令欲存取SPI格式記憶體裝置22時,ISA 1284280 :===巧_裝置22,不因彼此 技術特徵。 41订貝科項寫。以下詳述本發明功效之 统:1電性連接主機介面單元 COM Interface 内嵌控制“π) ’其聯繫主機系統21與 % _號’因此主機系統η 繫。控制單元二;元2〇1進行訊號聯 ϊ二lit r號㈣料理。職蝴單元挪 。^接控制早几202,轉換控制單元2〇3為一 s =其用於轉換該ISA指令格式(或封包)成為一叫:八 =,轉換控制單元2G3可採硬體、勒體或軟體 ^ 式,現。記憶體裝置介面單元m電 單 203及記憶體裝置22,記憶體裝置介®單元2〇= SP1 ==置2二其聯繫内嵌控制器/鍵盤控制器加 ίί體裝 間之訊號’是故經由轉換控制單元203 =轉換的spi格式存取指令可對記憶體裝置22進行資料存 因此主機系統21傳送—ISA存取指令 置22時,内散控制器/鍵盤控制器2〇將把 - sPI指令·’然而’如果主機系統21是傳送一 sp = 令時’内嵌控制器/鍵盤控制器2〇亦會將s 取到記憶體裝置22;因此本發明内嵌控 々存 20在應用上而不需考慮主機系統2〇所傳送之存 1284280 器細此達到了目上的内嵌控制器她 請參閱第三圖並配合第二圖, 各2憶f存取格式之内喪控制器/_控制ulit 發明之具姆各麵舰麵格式之内 /_控制n 2G之訊肋作方法 = 包括:首先主機系統21傳送_ :方,驟係 /鍵盤控制器20内主機介面| - 9n曰7内嵌控制器 仲㈣/㈣^機 2 1(步驟300);然後使内 iif 2g内控制單元202對該1sa存取指 處理(步驟3G2),動作完成後控制 11 203; ::Γ: t ; ^ 3〇4) ; 體裝置22、隹Λΐ存心令至記憶體裝置22,以對記 “21心Ϊ,寫動作(步驟_。在步驟304中若主機 單元2_运的存取指令是一 SPI存取指令,則轉換控制 早兀2G3則不須進行指令格式轉換。 制写/鍵供種具相容各種記憶體存取格式之内嵌控 機系統/鍵盤控㈣進行指令相容之轉換,將使該主 SPI格运之1SA#取指令格式不受限該記憶體裳置之 统傳本發明内嵌控制器/鍵盤控制器使該主機系 取指令触SPI記憶體裝置進行資料存取 時月b達到格式相容之效用。更甚至,本發明在運用上, 1284280 將不限定域线之雜騎格纽記憶縣置之格式, 將於内錄制器/鍵盤控制財提供更多格式相容的功能。 綜上所述,本發明實為一不可多得之具相容各種記憶 體存取格式之⑽㈣H/鍵餘㈣及方法,極具^ 創作者之權益 利用,、新穎性及進步性’完全符合發明專利申請要件, 利ί提出申請’敬請詳查並賜准本案專利,以保障 明盥t上3述’僅為本發明之較佳可行實施例之詳細說 本&明i❹因此即拘限本發明之專韻®,故舉凡運用 及圖式内容所為之等效變化實施例,均同理 明上二』肉’明之範圍内容,任何熟悉該項技藝者在本發 牵之’可輕易思及之變化或修飾皆可涵蓋在以下本 禾 < 寻刑範圍。ISA) format access instructions When accessing the SPI format memory device 22, ISA 1284280: === __ device 22, not due to each other's technical characteristics. 41 booked Beco items. The following is a detailed description of the functions of the present invention: 1 electrically connected to the host interface unit COM Interface embedded control "π" 'the contact host system 21 and % _ number ', therefore the host system η system. Control unit 2; element 2 〇 1 The signal is connected to the second lit r (four) cuisine. The job unit is moved. The control is connected to the early 202, and the conversion control unit 2〇3 is a s = it is used to convert the ISA instruction format (or packet) into a call: eight = The conversion control unit 2G3 can adopt a hardware, a body or a software type, and the memory device interface unit m is 203 and the memory device 22, and the memory device is a unit 2 〇 = SP1 == 2 Contacting the embedded controller/keyboard controller plus the signal of the device ‘therefore, the memory device 22 can be stored via the conversion control unit 203=converted spi format access instruction, so the host system 21 transmits ISA access. When the instruction is set to 22, the internal memory controller/keyboard controller 2〇 will put the -sPI instruction · 'however' if the host system 21 is transmitting a sp = command', the embedded controller/keyboard controller 2 will also s Obtaining the memory device 22; therefore, the embedded control buffer 20 of the present invention is I don't need to consider the host system 2〇 to transfer the stored 1284280 device to achieve the desired embedded controller. Please refer to the third picture and with the second picture, each 2 memory access format control /_ control ulit inventions in the face of each surface of the ship /_ control n 2G ribs method = including: first host system 21 transmission _: side, system / keyboard controller 20 host interface | 9n曰7 embedded controller 仲(四)/(四)^机2 1 (step 300); then the inner iif 2g internal control unit 202 processes the 1sa access finger (step 3G2), after the action is completed, the control 11 203; Γ: t ; ^ 3〇4) ; body device 22, save heart to memory device 22, to remember "21 heart, write action (step _. If the host unit 2_ transport in step 304) The instruction fetch is an SPI access instruction, and the conversion control is earlier than 2G3, and the instruction format conversion is not required. The write/key is provided for the embedded control system/keyboard control (four) for various memory access formats. Compatible conversion, will make the main SPI grid 1SA# instruction format is not limited, the memory is released, the invention is embedded control The controller/keyboard controller enables the host to take the instruction to touch the SPI memory device for data access, and the format b is compatible with the format. Even more, the invention is used, 1284280 will not limit the domain of the hybrid riding grid The memory county format will provide more format-compatible functions in the recorder/keyboard control. In summary, the present invention is indispensable for compatibility with various memory access formats (10)(4)H/ Keys (four) and methods, extremely ^ creator's rights and interests, novelty and progressive 'completely in line with the requirements of the invention patent application, Li ί to apply for 'please check and grant the patent in this case to protect the alum 3 is only a detailed description of the preferred embodiment of the present invention, and thus the present invention is limited to the specific embodiment of the present invention, so that the equivalent variations of the application and the contents of the drawings are the same. In the scope of the scope of the Ming dynasty meat, any change or modification that can be easily thought of by the person skilled in the art can be covered in the following paragraphs.
【圖式簡單說明J 第A圖為欲存取一 ISA格式記憶體裝置之内嵌控制 第1B盤控制器之功能方塊示意圖; B圖為欲存取一 SPI格式記憶體裝置之内嵌控制 第:鍵盤控制器之功能方塊示意圖; 為本發明具相容各種記憶體存取格式之内篏控 」器(_控彻之功能方塊示意圖·,及 為本發明本發明具相容各種記憶體存取格式之 人控制器/鍵盤控制器動作方法之流程示意圖。[Simple diagram of the figure J Figure A is a functional block diagram of the embedded controller 1B controller for accessing an ISA format memory device; Figure B is the embedded control for accessing an SPI format memory device. The function block diagram of the keyboard controller is the functional block diagram of the invention with compatible memory access formats (the function block diagram of the control block), and the invention has the compatibility of various memory stores. Schematic diagram of the process of taking the format controller/keyboard controller action method.
11 1284280 【主要元件符號說明】 第一 A圖及第一 B圖(習知): 内嵌控制器/鍵盤控制器 10 主機介面單元 101 微控制單元 102 ISA介面單元 103 SPI介面單元 104 主機系統 11 ISA格式記憶體裝置 12 SPI格式記憶體裝置 13 第二圖: 内嵌控制器/鍵盤控制器 20 主機介面單元 201 控制單元 202 轉換控制單元 203 記憶體裝置介面單元 204 主機系統 21 記憶體裝置 22 1211 1284280 [Description of main component symbols] First A picture and first B picture (conventional): Embedded controller/keyboard controller 10 Host interface unit 101 Micro control unit 102 ISA interface unit 103 SPI interface unit 104 Host system 11 ISA format memory device 12 SPI format memory device 13 Second diagram: embedded controller/keyboard controller 20 host interface unit 201 control unit 202 conversion control unit 203 memory device interface unit 204 host system 21 memory device 22 12