TW477931B - Device capable of flexibly loading firmware into nonvolatile rewritable memory - Google Patents

Device capable of flexibly loading firmware into nonvolatile rewritable memory Download PDF

Info

Publication number
TW477931B
TW477931B TW89111359A TW89111359A TW477931B TW 477931 B TW477931 B TW 477931B TW 89111359 A TW89111359 A TW 89111359A TW 89111359 A TW89111359 A TW 89111359A TW 477931 B TW477931 B TW 477931B
Authority
TW
Taiwan
Prior art keywords
signal
memory
write
read
scope
Prior art date
Application number
TW89111359A
Other languages
Chinese (zh)
Inventor
R-Jung Guo
Original Assignee
Trumpion Microelectronics Inc
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 Trumpion Microelectronics Inc filed Critical Trumpion Microelectronics Inc
Priority to TW89111359A priority Critical patent/TW477931B/en
Application granted granted Critical
Publication of TW477931B publication Critical patent/TW477931B/en

Links

Abstract

The present invention provides a device capable of flexibly loading firmware into nonvolatile rewritable memory. In accordance with one embodiment of the present invention, under an architecture compatible with the 8051 series of micro-controller, the device can be applied to load firmware into nonvolatile rewritable memory. The device provides a signal switching circuit for allowing the control signal, originally used by the processing circuit to control the nonvolatile rewritable memory and random access memory, to issue an starting switch signal by the processing circuit. After switching, the processing circuit can perform the read and write operation to the nonvolatile rewritable memory via the read and write instructions originally for the random access memory. Under such a function, the processing circuit can download the firmware into the nonvolatile rewritable memory from an external device by a download program and via an interface. In addition, by setting another switch of the device, the download program can be written by the user and stored in the nonvolatile rewritable memory, so as to accomplish the firmware download operation by the device of the present invention.

Description

477931 A7 B7 五、發明說明(j 此發明與將資料寫入非揮發性可寫入記憶體的微控制 器有關。 發明U (k著積體電路工業的發展,微控制器已經廣泛的應用在 口種匕制系統中。從工廠大樓的自動化,到汽車引擎和各 種U的控制,微控制器在不知不覺巾已融入了我們的 生活之中。 土:初、,微控制器内部附有記憶體,用來儲存控制裝置之 早刀妝…、而,由於控制系統所需之功能日漸複雜,往往内 的記Μ容量無法容納龐大的演算法。因此微處理 為夕有透過外部記憶體來儲存她相關資料的功能。 1由於非揮發性可寫人記憶體,如㈣記憶體1 入、’越來越多的應用系統,希望利用非揮發性可寫 於是二内容的特性,來達到升級晴效果。 體的趨勢。礼"便有以非揮發性可寫入記憶體來儲存韌 的 自^^大量製造時,卻必須將非揮發性可寫入記憶 且$耗 亚放人燒錄機進㈣體的燒錄。此舉既費 Γ 麻須的是’如果消費者在購f了兮項產:後,咖欲升級,則須將該非揮發 卜 出,交由廠商進行升級的動作,相當不便/、月豆 體 費時 品 取 , 4TMI/200001TW L_—__1 本紙張尺度_巾關家鮮(CNS)A4祕(21〇7^7^7477931 A7 B7 V. Description of the invention (j This invention is related to a microcontroller that writes data into non-volatile writable memory. Invention U (k) is the development of the integrated circuit industry. Microcontrollers have been widely used in In the dagger system. From the automation of the factory building to the control of automobile engines and various U, microcontrollers have been unknowingly integrated into our lives. Soil: At the beginning, there is an internal part of the microcontroller Memory is used to store the early makeup of the control device ... and, because the functions required by the control system are becoming more and more complex, the internal memory capacity often cannot accommodate huge algorithms. Therefore, microprocessing is possible through external memory. The function of storing her related data. 1 Because of non-volatile writable human memory, such as ㈣ memory, more and more application systems, I hope to use the characteristics of non-volatile writable content to achieve upgrade Clear effect. Physical trend. Li " There is a non-volatile writable memory to store tough self-^^ ^^ When mass-produced, the non-volatile writable memory must be written and burned. Machine-in This will cost Γ. As long as the consumer purchases the product, the customer wants to upgrade the product, and the non-volatile product must be sold out to the manufacturer for upgrading. This is quite inconvenient. / 、 Time-consuming picking of moon beans, 4TMI / 200001TW L _—__ 1 This paper size _ Secret of Towel Guanjiaxian (CNS) A4 (21〇7 ^ 7 ^ 7

-------ί---^ — —Λ^ (請先閱讀背面之注意事項再填寫本頁) ----^---------___,______ / /力1 經濟部智慧財產局員工消費合作社印製 A7 五、發明說明(2 ) 此外由於Pc的發達,標準傳輪協定的訂定,透過網 路來傳達資料的技術也發展成熟,具有與外部裝置的連接 功能的電子化產品將漸漸成為基本的功能。 以目前最被廣泛使用的8 Ο 5 i系列之控制器為例,其 發展工具齊全,惟其係舊有之架構,並未在最初考慮到發 揮非揮發性可寫人記憶體的功能,而僅針對利用唯讀記憶 :作為外部記憶體的狀況進行設計。因此,若能適當的調 =8 〇 5 1的架構’提出一可相容的微控制器系統,將可 解決上面所述的困難。 本备明即針對以上問^!,提出一 _具有彈性的裝置。不 但達到了與現在最常用㈣統架構相容的㈣,更可彈性 =對非揮發性可寫入記憶體進行寫入的程序,提供了一個 月b降低成本又有彈性的解決方案。 、本發明係提供一種裝置,可以透過一介面,自外部裝置 載^該裝置所需之程式碼至與此裝置連結的非揮發性可寫 入圯fe體中。藉此,在大量生產應用此裝置而開發之電子 產品時,不需先將控制程式碼寫人非揮發性可寫入記怜 體。、而可以於整個產品裝配完成後,再透過此裝置所附之 下載功此’完成程式化的動作。 根據本發明之-具體實施例,該裝置 制器相容,此裝置内具—處理電路(8 0 5 1相容),該: 理電路將程式碼解譯成相對應的控制信號,以控制整個系 本纸張尺度_中關家鮮(CNS〉A4祕(21〇T^7^F)---- --------1T---------$· (請先閱讀背面之注意事項再填寫本頁) 經濟部智慧財產局員工消費合作社印製 A7 五、發明說明(3/ 統+相關元件 >、富 電路,將;t理干 另外,此裝置内藉提供一信號切換 ph〜%路輸出對外部之非揮發性可“記憶體與 : 己憶體之控制信號,進行切換。因此得以利用原 t對隨_寫記憶體之讀取與寫人指令,《非揮發性^ ·..、入=己fe,進行讀取與寫人動作。應用此功能,即可在與 8 〇 5 1 ’丁、列相容的系統下,達成將拿刀體下載至非揮發性 可寫入記憶體的功能。 、 " 卜透過切換開關,更可提供使用者對此裝置的不 同應用方式。如可透過對該切換開關致能,啟動内建於裝 置内屺Ute之載入程式,進行韌體下載的動作。抑或是將 该切換開關失能,啟動使用者預先於該非揮發性可寫入記 t to儲存的載人程式(B㈤t G()de),並透過該下載程式來執 4亍載入初體的動作。 Μ於本發明之優點與精神可以藉由以下的發明詳述即 所附圖式得到進一步的瞭解。 ΆΑ^ΑΑΜ^3_ 第一圖係揭示本發明之一具體實施例之系統架構圖。 第二圖係揭示第一圖中信號切換電路3的—種實施方 法。 第三圖係揭示第一圖中切換開關i 9在不同狀態時的 應用流程。------- ί --- ^ — --Λ ^ (Please read the notes on the back before filling this page) ---- ^ ---------___, ______ / / 力 1 Printed by the Consumers ’Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs A7 V. Invention Description (2) In addition, due to the development of Pc and the establishment of standard transfer agreements, the technology for transmitting data through the Internet has also matured, with connections to external devices Functional electronic products will gradually become basic functions. Take the most widely used 8 0 5 i series controller as an example. Its development tools are complete, but it is an old architecture. It was not initially considered to play the role of non-volatile writable human memory, but only Designed for the use of read-only memory: as an external memory. Therefore, if we can properly adjust the architecture of 8051 to propose a compatible microcontroller system, the difficulties mentioned above will be solved. In response to the above question, the present note proposes a flexible device. Not only is it compatible with the most commonly used system architectures now, it is also more flexible = the process of writing to non-volatile writable memory provides a monthb cost-saving and flexible solution. The present invention provides a device, which can load the code required by the device from an external device to a non-volatile writable device connected to the device through an interface. Therefore, when mass-producing electronic products developed using this device, it is not necessary to first write the control code to a non-volatile writable memory. , And after the entire product assembly is completed, you can complete the programmed action through the download function attached to this device. According to a specific embodiment of the present invention, the device controller is compatible, and the device has a processing circuit (compatible with 8051). The processing circuit interprets the program code into a corresponding control signal to control Paper size of the whole department_Zhongguan Jiaxian (CNS> A4 Secret (21〇T ^ 7 ^ F) -------- 1T --------- $ · ( Please read the notes on the back before filling in this page) Printed A7 by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs V. Description of the invention (3 / system + related components >, Rich Circuits, etc.) By providing a signal to switch the ph ~% output to the external non-volatile memory and the control signal of the memory, it can be switched. Therefore, the original t can be used to read and write to the following_write memory. , "Non-volatile ^ · .., In = fe, for reading and writing. Apply this function, you can reach the knife body under a system compatible with 805 1 'D, column. The function of downloading to non-volatile writable memory. &Quot; Through the switch, users can be provided with different application methods of this device. The switch is enabled to start the Ute loading program built in the device to perform the firmware download action. Or the switch is disabled and the user loads the non-volatile writeable t to the stored load in advance. The human program (B㈤t G () de), and the downloading program performs the action of loading the initial body. The advantages and spirit of the present invention can be further obtained by the following detailed description of the invention, that is, the attached drawings. Understand. ΆΑ ^ ΑΑΜ ^ 3_ The first diagram is a system architecture diagram of a specific embodiment of the present invention. The second diagram is a method for implementing the signal switching circuit 3 in the first diagram. The third diagram is the first diagram. The application flow of the switch i 9 in different states in the figure.

4TMI/200001TW 本紙張尺度適用中國國家標準(CNS)A4規格mo X 297公釐) --------訂--------- (請先閱讀背面之注意事項再填寫本頁) 477931 A7 B7 五、發明說明(< ) 詳細說明 本發明之一具體實施例,如第— 式碼自外邱奘罟]β番^ , 口尸坏不,為一種可將程 广自外“置18載入至非揮發性可寫入記 用裝置i可被應用作為某特定用置:制 :,用以控制該電子裝置之相關元件,以發揮=;1] 電子裝置之功能。此裝置1選擇性地與—非揮; 提己:::,一隨機讀寫記憶體5兩個外部記憶體相連:、以 所需之程式與資料之來源。並__介 f 二資;置:與外部裝置18溝通,以取得所需之程式碼 :枓。此貫把例之架構中之處理電路2可與常見 糸列微控制器相容’如此可利用8051系列微控制 =開=具及已開發的程式’而使系統開發成本降低。 二了非揮發性可寫入記憶體的特性’ 本衣置1透過提供裝置1内部的信號切換電路3,可用原 =隨機讀寫記憶體5的讀取及寫入指令’將程式碼自外 部I置1 8載入非揮發性可寫入記憶體4。非揮發性可寫 入記憶體4之實施例為快閃記憶體。 經濟部智慧財產局員工消費合作社印剩π 士第圖所不’1置i主要包含一處理電路2與一信號 切換電路3,該處理電路2解讀程式碼的指令’輸出相對 應的控制信號以控制整個電子裝置的運作。另外,本實施 例之該處理電路2對外部記憶體4或5的存取控制’盘8 ◦ 5 “目容系列控制器相同,乃透過三個不同的信號輸出 來几成。此三個信號為激發致能信號7、讀取信號8與寫 入信號9。惟此裝置1與原8 ◦ 5 1系列控制器的差別在 於’在8 0 5 1系列控制器内的處理器,其輸出的此三個4TMI / 200001TW This paper size is applicable to Chinese National Standard (CNS) A4 size mo X 297 mm) -------- Order --------- (Please read the precautions on the back before filling in this (Page) 477931 A7 B7 V. Description of the invention (<) A detailed description of a specific embodiment of the present invention, such as the first form of the code from the outer Qiu β] βfan ^, the mouth is bad, is a kind of Cheng Guangzi The external "set 18" is loaded into the non-volatile writable recording device i, which can be applied as a specific device: system: to control the relevant components of the electronic device to play the function of the electronic device =; 1]. This device 1 is selectively connected to-non-volatile; mentioning itself :::, a random read-write memory 5 two external memories :, with the required program and the source of the data. And __ 介 f 二 资; Set: Communicate with external device 18 to get the required code: 枓. The processing circuit 2 in the structure of this example is compatible with common queued microcontrollers' so that 8051 series microcontrollers can be used = on = And developed programs 'to reduce system development costs. Second, the characteristics of non-volatile writable memory' The signal switching circuit 3 can use the read and write instructions of the original = random read-write memory 5 to set the program code from external I to 8 and load it into non-volatile writable memory 4. Non-volatile writable memory The embodiment of the body 4 is a flash memory. The employee cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs has left a print of π, which is not included in the figure. The i mainly includes a processing circuit 2 and a signal switching circuit 3. The processing circuit 2 interprets the program The code command 'outputs a corresponding control signal to control the operation of the entire electronic device. In addition, the access control of the processing circuit 2 to the external memory 4 or 5' disk 8 in this embodiment 5 ◦ 5 “eye volume series controller It's the same, but it's several percent through three different signal outputs. These three signals are the excitation enable signal 7, the read signal 8 and the write signal 9. However, the difference between the device 1 and the original 8 ◦ 51 series controller is that the processor in the 805 1 series controller has three outputs

4TMI/200001TW 477931 A7 五、發明1纪月(/ ) -------------0^--- (請先閱讀背面之注意事項再填寫本頁) 疋直接輸出至外部記憶體。而本發明之處理電路之 此一们乜號7、8、9,則是被輸出至信號切換電路3。 過此信號切換電路3,得以在與8〇51相容的狀況下, 僅以本發明所提供的巧妙機制,即可達到簡易地對非揮發 性可舄入§己憶體進行載入程式碼的動作。 此信號切換電路3主要提供—選擇器的功能,在處理電 路2發出之切換啟動信號6失能時,將激發致能信號7送 至非揮發性可寫入記憶體4中。因此,處理電路2可透過 激發致能信號7對非揮發性可寫入記憶體4進行讀取指令 或資料的動作。同時,將讀取信號8及寫入信號9送至隨 機讀寫記憶體5中,透過讀取信號8及寫入信號9,以對 隨機讀寫記憶體作讀取與寫入的動作。其中,信號線工4 a L號、’泉1 5分別為位址線與資料線,由非揮發性可寫入 記憶體4及隨機讀寫記憶體共用,供處理電路2對外部記 憶體4、5定址及資料傳輸之用。 經濟部智慧財產局員工消費合作社印製 當處理電路2將切換啟動信號6致能後,激發致能信號 7則被轉送到隨機讀寫記憶體5的讀取控制信號端。而讀 取k唬8與寫入信號9則分別的輸出至非揮發性可寫入記 憶體5的讀取與寫入之控制信號端。在如此的切換動作 下,使得處理電路2得以透過原本用來對隨機讀寫記憶體 5進行讀取與寫入的指令,達到對非揮發性可寫入記憶體 4進行讀取與寫入的動作。後面將說明,如何利用此機制 來達到不同的應用型態,以達成程式碼下載的動作。 在此提出信號切換電路3的一種實施例,其主要由一組4TMI / 200001TW 477931 A7 V. Inventing the First Month (/) ------------- 0 ^ --- (Please read the precautions on the back before filling this page) 疋 Output directly to the outside Memory. The signal processing circuits No. 7, 8, and 9 of the present invention are output to the signal switching circuit 3. Through this signal switching circuit 3, in a state compatible with 8051, it is possible to simply load the non-volatile injectable §memory body by simply using the ingenious mechanism provided by the present invention. Actions. This signal switching circuit 3 mainly provides a function of a selector. When the switching start signal 6 sent from the processing circuit 2 is disabled, the signal enabling circuit 7 is sent to the non-volatile writable memory 4. Therefore, the processing circuit 2 can read the instruction or data to the non-volatile writable memory 4 by activating the enable signal 7. At the same time, the read signal 8 and the write signal 9 are sent to the random read-write memory 5, and the read signal 8 and the write signal 9 are used to read and write the random read-write memory. Among them, the signal line worker 4 a L, and the spring 15 are the address line and the data line, which are shared by the non-volatile writable memory 4 and the random read-write memory for the processing circuit 2 to the external memory 4 , 5 for addressing and data transmission purposes. Printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs. When the processing circuit 2 enables the switching start signal 6, the excitation enabling signal 7 is transferred to the read control signal end of the random read / write memory 5. The read signal 8 and the write signal 9 are output to the read and write control signal terminals of the non-volatile writable memory 5, respectively. Under such a switching operation, the processing circuit 2 can read and write the non-volatile writable memory 4 through the instructions originally used to read and write the random read-write memory 5. action. The following will explain how to use this mechanism to achieve different application types to achieve the code download action. An embodiment of the signal switching circuit 3 is proposed here.

4TMI/200001TW 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 477931 A7 五、發明說明(G ) 多工器組合而成,如第二圖所示’從處理電路2所發出的 切換啟動信號6、激發致能信號7、讀取信號8與寫入信號 9被輸出至四個多工器2〇、21、 z丄2 2、2 3。切換啟動 信號6則用來當作這四個多工器之選擇信猇。多工器的輸 出,第-輸出信幻〇 '第二輸出信號工ι、第三輪出信號 1 2及弟四輸出信幻3則分別接至非揮發性可寫入記憶 體4的讀取控制信號端、寫入控制信號端,及隨機讀寫記 憶體5的讀取控制信號端及寫入控制信號端。當切換啟動 信號6失能時,此四個多工器2 〇、2丄、2 2、2 ^將 DIS端輸入的信號分別輸出到第一輸出信號丄〇、第二輸 出L遽1 1、第二輸出信號1 2與第四輸出信號2 3。即, 處=電路2所送出之激發致能信號7被輸出至該非揮發性 可寫入記憶體4的讀取控制信號端,讀取信號8被輸出至 隨_寫記憶體5的讀取控制信號端’寫入信號9則被輸 出至隨機讀寫記憶體5的寫入控制信號端。此外,非揮發 性可寫入記憶體4的寫入控制信號端輸入一參考電壓,使 非揮發性可寫入記憶體4之寫入動作保持閒置。 當切換啟動信號6致能時,此四個多工器2 〇、2工、 經濟部智慧財產局員工消費合作社印製 2 2、2 3將EN端輸入的信號分別輸出到第一輸出信號工 〇、第二輸出信號1 1、第三輸出信號丄2與第四輸出信 唬1 3。即,處理電路2所送出之激發致能信號7被輸出 至邊隨機讀寫記憶體5的讀取控制信號端,讀取信號8被 輸出至非揮發性可寫入記憶體4的讀取控制信號端,寫入 仏喊9則被輸出至非揮發性可寫入記憶體4的寫入控制信 號端。此外,隨機讀寫記憶體5的寫入控制信號端則輸入4TMI / 200001TW This paper size applies Chinese National Standard (CNS) A4 specification (210 X 297 mm) 477931 A7 V. Description of the invention (G) Multiplexer combination, as shown in the second figure 'from the processing circuit 2 The switching start signal 6, the excitation enable signal 7, the read signal 8 and the write signal 9 are output to the four multiplexers 20, 21, z2, 2, 3. The switching start signal 6 is used as a selection signal for the four multiplexers. The output of the multiplexer, the first-output signal 0, the second output signal, the third output signal 12 and the fourth output signal 3 are connected to the non-volatile writable memory 4 respectively. The control signal terminal, the write control signal terminal, and the read control signal terminal and the write control signal terminal of the random read / write memory 5. When the switching start signal 6 is disabled, the four multiplexers 2 〇, 2 丄, 2 2, 2 ^ output the signals input from the DIS terminal to the first output signal 丄 〇, the second output L 遽 1 1, The second output signal 12 and the fourth output signal 23. That is, the excitation enable signal 7 sent from the circuit 2 is output to the read control signal terminal of the non-volatile writable memory 4, and the read signal 8 is output to the read control of the write memory 5 The signal terminal 'write signal 9 is output to the write control signal terminal of the random read / write memory 5. In addition, a reference voltage is input to the write control signal terminal of the non-volatile writable memory 4, so that the writing operation of the non-volatile writable memory 4 remains idle. When the switching start signal 6 is enabled, these four multiplexers 2 0 and 2 are printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs 2 2 and 2 3 and output the signals input from the EN terminal to the first output signal 〇, the second output signal 11, the third output signal 丄 2 and the fourth output signal 13. That is, the excitation enable signal 7 sent from the processing circuit 2 is output to the read control signal terminal of the random read-write memory 5, and the read signal 8 is output to the read control of the non-volatile writable memory 4. As for the signal terminal, the write shout 9 is output to the write control signal terminal of the non-volatile writeable memory 4. In addition, the write control signal terminal of the random read / write memory 5 is input

4TMI/200001TW 本紙張尺度適用中國國家標準(CNS)A4規格(21〇 x 297公釐 Γ, Α7 五、發明說㊉(7 ) 一參考電壓,使隨機讀寫記憶體5之寫入動作保持閒置。 透過第一圖所示的此種實施方法,更清楚地說明了此信號 切換的機制。 此外,如第一圖所示,裝置1内部含有内部記憶體i 6、介面1 7與一切換開關i 9。其中内部記憶體丄6可 存放用來操作系、統的程式碼及資料。树明所提之載入程 式被放置在内部記憶體16中。介面丄7為可與外部裝置 1 8連接的輸入/輸出介面,可為USB、Serial卜忖、u⑽ Porter Port等。而外部裝置可為具有此介面之個人電 腦、筆記型電腦或是掌上型個人助理等裝置。透過介面1 7,可將位於外«置之程式碼或資料“。切換開關丄 9則為-開關。當系統開機時,會先去檢查此切換開關丄 9,發現其致能時,處理電路2自存於内部記憶體丄6 程式碼開始執行。反之,若切換開關丨9失能時,處理 路2自非揮發性可寫入記憶體4中之程式碼開始執行。四 此,透過對此開[9進行設定,可選擇系統初 始程式之位置。 又 之 電 因 經 濟 部 智 慧 財 產 局 員 工 消 費 合 作 社 印 製 以下配合第三圖介紹如何透過上面本發明所提供之文 構’於不同情形下,從外部裝置1 8載人料碼的動作 f態一:#該非揮發性可寫人記憶體4未存有任何程式 透過存在於内部記憶體16内之載人: 置18的料碼載人該非揮發性可寫人記憶體4的動:衣 此% ’須將切換開關i 9置於失能的狀態。當 1之系統初始時’處理電路1自内部記憶體1 6讀入:動 架 --------------------訂---------線 (請先閱讀背面之注意事項再填寫本頁)4TMI / 200001TW This paper size is applicable to Chinese National Standard (CNS) A4 specification (21 × 297 mm Γ, Α7 V. Inventive note ㊉ (7) A reference voltage keeps the write operation of random read / write memory 5 idle. Through this implementation method shown in the first figure, the signal switching mechanism is more clearly explained. In addition, as shown in the first figure, the device 1 contains an internal memory i 6, an interface 17 and a switch i 9. The internal memory 丄 6 can store codes and data for operating the system and system. The loading program mentioned by Shuming is placed in the internal memory 16. The interface 丄 7 is for connecting with external devices 1 8 The connected input / output interface can be USB, Serial, u⑽ Porter Port, etc., and the external device can be a personal computer, notebook computer or palm-type personal assistant with this interface. Through the interface 17, you can The code or information located outside «is placed. The switch 丄 9 is a-switch. When the system is turned on, it will first check this switch 丄 9. When it is found to be enabled, the processing circuit 2 will be stored in the internal memory. Body code 6 begins to execute Conversely, if the switch 9 is disabled, the processing path 2 will be executed from the non-volatile writeable memory 4 code. Fourth, by setting this [9], the system initial program can be selected. Location: Another report is printed by the Consumer Cooperative of Intellectual Property Bureau of the Ministry of Economic Affairs. The following figure 3 is used to introduce how to use the cultural structure provided by the present invention above to carry the action of loading code from external device 18 in different situations. State one: #The non-volatile writable human memory 4 does not have any programs stored therein. The data code of the non-volatile writable human memory 4 is carried by the material code stored in the internal memory 16: clothing This% 'must put the switch i 9 in a disabled state. When the system of 1 is initialized', the processing circuit 1 reads from the internal memory 16: moving frame ------------- ------- Order --------- Line (Please read the notes on the back before filling this page)

4TMI/200001TW 本纸張尺度適用中國國家標準(CNS)A4規格公爱)_ 經濟部智慧財產局員工消費合作杜印製 477931 五、發明%明(ί) 程式(Boot Code)並進行初始動作(方塊期,接著便開始 載入預先存於内部記憶體i 6之載入程式。如第三圖之左° 半口卩/爪私所不,该載入程式首先將切換啟動信號6致能(方 塊304)。接著,透過介面i 7與外部裝置丄8溝通並取得 所欲載入非揮發性可寫入記憶體4的程式碼(方塊3〇5)。 由於前述之信號6切換機制被啟動,此時利用讀取與寫入 之指令’即可將程式碼寫入非揮發性可寫入記憶❹中(方 魂307)。在寫人動作完成後’將切換啟動信號6失能,恢 復原本的信號連接狀態。在完成以上動作後,該非揮發性 可寫入記憶體4中即存有從外部裝置載入之新程式碼。之 後只要把切換開關;L 9致能,就會自動從該非揮發性可寫 入記憶體4中載入該程式碼並予以執行。 狀態2 :當使时欲使用自己設計之載人程式,來執行 從外部裝置1 8載入程式碼之動作。此時使用者可先將载 入程式寫到一非揮發性可寫入記憶體4,並將此非揮發性 可寫入記憶體4與裝置χ連結。此時,必須將切換開關工 9致能。其運作將如第三圖之右半部(方塊3〇8〜312)之流 程所示進行運作。當系統啟始時,线自非揮發性可寫1 記憶體4中讀取程式碼並開始執行(方塊3〇8),此段載入 程式中之指令首先將自身程式碼複製到隨機讀寫記憶體5 中。之後致能切換啟動信號6 (方塊31〇),使處理電路2 對隨機讀寫記憶體5進行讀寫。由於前面進行程式碼的複 製動作,加上此時處理電路2的信號7、8、g的切換,處理 電路2下一個抓入的指令,將是原程式的下一個指令。只 疋,忒指令此時為儲存在隨機讀寫記憶體4中的複製版4TMI / 200001TW This paper standard is applicable to China National Standard (CNS) A4 specifications. _ Printed by the Intellectual Property Bureau of the Ministry of Economic Affairs, Du Printing 477931. 5. Invent the “Boot Code” and perform the initial action ( Block period, and then start to load the preloading program stored in internal memory i 6. As shown in the left of the third picture, the half loader / claw is not, the loader will first switch the enable signal 6 to enable ( Block 304). Then, communicate with the external device 丄 8 through the interface i 7 and obtain the code to be loaded into the non-volatile writable memory 4 (block 305). Because the aforementioned signal 6 switching mechanism is activated At this time, you can use the read and write instructions to write the code into the non-volatile writable memory (Fang Soul 307). After the writer's action is completed, the switching start signal 6 will be disabled and restored. The original signal connection state. After the above operations are completed, the non-volatile writable memory 4 stores the new code loaded from the external device. After that, as long as the switch is enabled; L 9 will be automatically switched from The non-volatile writable memory 4 contains Enter the code and execute it. State 2: When you want to use your own designed manned program to perform the action of loading the code from an external device 18. At this time, the user can write the loading program to a The non-volatile writable memory 4 is connected to the device χ. At this time, the switch 9 must be enabled. Its operation will be as shown in the right half of the third figure (Block 3308 ~ 312) and operate as shown in the flow chart. When the system starts, the line reads the code from the non-volatile writable 1 memory 4 and starts execution (Block 3008). This paragraph contains The instruction in the program first copies its own code to the random read / write memory 5. After that, it enables the switching signal 6 (block 31) to enable the processing circuit 2 to read and write the random read / write memory 5. Because of the previous Copy the code, and switch the signals 7, 8, and g of processing circuit 2 at this time. The next instruction captured by processing circuit 2 will be the next instruction of the original program. Copy for RAM 4

4TMI/200001TW 本紙張尺度適用中國國家標準(CNS)A4規格(210 --------訂--------- (請先閱讀背面之注意事項再填寫本頁) A7 五、發明說明(1 ) 本使用者只要將載入程式寫在此,即可進行從外部裝置 透過;1面1 7將程式碼載入到非揮發性可寫入記憶體 4的動作(方塊311)。當程式碼載入完成後,最後一行指 令將切換啟動信號6失能,恢復原本系統之信號連接方曰 式。 +以上二種不同的應用,可應用於生產製造附有本裝置之 電子產品,同時,亦可讓購買了該電子產品之消費者得以 方便地更新韌體。這些都說明了本發明可帶來應用的彈性 ”=本的IV低。不但可與舊有已普遍使㈣微處理器架構 相谷,遂可容納新的技術’如快閃記憶體等非揮發性可寫 入記憶體,並發揮其功能。 、雖然本創作已以-較佳之實施例揭露如上1其並非用 乂限又本創作’任何熟悉本項技藝者,在不脫離本創作之 精神和範圍内,當可做更動和潤飾’因此本創作之保護範 圍當視後附之申請專利範圍所界定者為準。4TMI / 200001TW This paper size applies to Chinese National Standard (CNS) A4 specifications (210 -------- Order --------- (Please read the precautions on the back before filling this page) A7 Five Explanation of the invention (1) The user only needs to write the loading program here, and then the device can be transmitted through the external device; 1 side 17 loading the program code into the non-volatile writable memory 4 (block 311 ). After the code is loaded, the last line of instructions will switch the start signal 6 disabled and restore the original signal connection formula of the system. + The above two different applications can be used in the manufacture of electronics with this device At the same time, it also allows consumers who have purchased the electronic product to easily update the firmware. These all show that the present invention can bring the flexibility of the application "= the IV of this book is low. The microprocessor architecture phase valley can then accommodate new technologies such as flash memory and other non-volatile writable memories and play their functions. Although this creation has been disclosed in a preferred embodiment as described above, it is not Create with this book 'anyone familiar with this art, Without departing from the spirit and scope of the present writing, so when attaching the protection defined by the scope of the present Creation rear view when the cover modifications and variations do 'patent, whichever range.

------------者衣 (請先閱讀背面之注意事項再填寫本頁) II ^---------^5 11------------ Clothes (Please read the precautions on the back before filling out this page) II ^ --------- ^ 5 11

本紙張尺度適用中國國家標準(CNS)A4規格(210 χ 297公爱This paper size applies to China National Standard (CNS) A4 (210 χ 297 public love

Claims (1)

477931 A8 B8 C8 D8 經 濟 部 智 慧 財 產 局 員 工 消 費 合 社 印 製 /、、申凊專利範圍 1 · 一種裝置’此一裝置分別與一可寫入(pr〇gra_a]3le)非揮發性 (non-vo 1 at i 1 e)記憶體及一隨機讀寫記憶體(rancjoni access memory)連接,該裝置包含: 一處理電路,因應一指令,選擇性的對該可寫入非揮發性記 憶體及該隨機讀寫記憶體進行資料的的讀取或寫入作業;以 及, -信號切換電路,其與鱗理電路以―錢線相連接,該信 戒線包含-切換啟動信號、—激發致能信號、—讀取信號及 一寫入信號; 其中,當切換啟動信號致能時,該讀取信號或該寫入信號被 輸出至*可寫人雜發性記憶體,以便將—程式碼寫入該可 寫入非揮發性記憶體中。 '2·如申請專利範圍第1項所述之裝置,該信號切換電路包八 擇器之輸人信號為該切換啟動信號、該‘致 仏虎、_取信號、該寫入信號及一閒置信號 換啟動信號為該選擇器之:刀 壓,¾撰摆的± l唬為一芩考電 ㈤之輪出信號為_第一輸出信號 號、一第三輪出作— ~別出k ^ 出L唬及一弟四輸出信號,其中,該第 。说用以控制該非揮發性可寫人記憶體之讀取動作 :==_發_人_之寫,St ° ^用以控制該隨機讀寫記憶體之讀取動作 輪出 而 該 (請先閱讀背面之注意事項再填寫本頁} » - 4TMI/200001TW 477931 D8 申請專利範Jij ㈣出信號用以控制該隨機讀寫記憶體之寫入動作。 ‘取信號被選擇作為苐一輪 月匕了 為Μ 山 5虎,该寫入信號被選擇作 马弟-輪騎號,該激發 Μ 說H 致“細料轉三輸出信 相置信號被選擇作為第四輪出信號。 4如申凊範圍第2項所述之梦〜 '"置,*該切換啟動信號失能時, 擇作為該第二輸出仲,/遽,该間置信號被選 传號,。〜買取信號被選擇作為該第三輸出 寫入^虎被選擇作為該第四輸出信號。 5 ·如申請範圍第丄項所述之 人一人 匕6一;丨面,該處理電路可 又曰π透過該介面從-外部裝置取得資料。 6·^申請範嶋柳㈣置,包含—内軸 存一指令集。 7.如申請範圍第6項所述之裝置,包含-切換開關,當該切換 開關被失能時,該裝置自該指令集讀入—第—啟動程式並開 經濟部智慧財產局員工消費合作社印製 2執行’而當該切換開關被致能時’該裝置自該非揮發性可 寫入記體體讀入-第二啟動程式並開始執行。 8 .如申請範圍第7項所述之裝置,該指令集包含—第一下载程 式,其儲存於該内建記憶體,在該切換開關失能時,該第二 啟動程式得呼叫該第-下栽程式,該第一下栽程式則透過該 介面,自該外部裝置讀入—欲載入之程式碼,並將該欲載入 ^_J^^00001TW x 297公釐) 本、”氏張尺度適用+ S喊鮮(CNS)A丨規格(210477931 A8 B8 C8 D8 Printed by the Consumers 'Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs, and / or applied for patent scope 1 · A device' This device is separately from a writeable (pr〇gra_a) 3le) non-volatile (non- vo 1 at i 1 e) memory and a random access memory (rancjoni access memory) connection, the device includes: a processing circuit, in response to a command, selectively writeable non-volatile memory and the Random read-write memory for reading or writing data; and-a signal switching circuit, which is connected to the scale circuit with a "money line", the signal ring line includes-a switching start signal,-an activation enable signal , —Read signal and a write signal; where, when the switching start signal is enabled, the read signal or the write signal is output to the * writable human miscellaneous memory in order to write the -program code This can be written in non-volatile memory. '2. As for the device described in the first item of the scope of the patent application, the input signal of the signal switching circuit including the eight selectors is the switching start signal, the' to the tiger, the _ fetch signal, the write signal and an idle The signal change start signal is the one of this selector: knife pressure, ± ¾ of the pendulum is a round test signal of 芩 test electricity, and the output signal is _ the first output signal number, and the third round output — ~ K ^ The output signals are L1 and Y1, among which, the first. It is used to control the read action of the non-volatile writable human memory: == _ 发 _ 人 _ write, St ° ^ is used to control the read action of the random read and write memory in turn and should (please first Read the notes on the back and fill out this page} »-4TMI / 200001TW 477931 D8 Patent Application Fan Jij The signal is used to control the write operation of the random read and write memory. 'The signal is selected as a round moon dagger. Μ 山 5 虎, the write signal was selected as the horse-wheel riding number, which stimulated MH to say that the "fine material to three output signal phase signal was selected as the fourth round out signal. 4 The dream described in item 2 is set to "", when the switching start signal is disabled, it is selected as the second output stage, / 遽, the interposition signal is selected as the pass number. ~ The buy signal is selected as the first The three-output write ^ tiger is selected as the fourth output signal. 5 · As described in item (1) of the application scope, one person and one person can be obtained from the external device through the interface. Documents 6 · ^ Applying Fan Liuliu to set up, including-one finger stored in the inner axis 7. The device as described in item 6 of the scope of application, includes-a switch, when the switch is disabled, the device reads from the instruction set-the first-start the program and open the Intellectual Property Bureau of the Ministry of Economic Affairs The employee consumer cooperative prints 2 and executes 'when the switch is enabled', the device reads in from the non-volatile writable recorder-the second startup program and starts execution. 8. As stated in item 7 of the scope of application In the device described, the instruction set includes a first downloading program, which is stored in the built-in memory. When the switch is disabled, the second startup program may call the first downloading program and the first downloading program. The program reads the code from the external device through the interface—the code to be loaded, and loads the code ^ _J ^^ 00001TW x 297 mm.), "The scale is applicable + S shout fresh (CNS) A 丨 Specifications (210 申6弓專利範圍 經濟部智慧財產局員工消費合作社印製 程式碼寫人該非揮發性可寫人記憶體中,該第―作程式包 含下列步驟: (1) 將該切換啟動信號致能; ⑵將該程式碼寫入該非揮發性可寫入記憶體; (3) 將切換啟動信號失能。 9 ·=#範圍第7項所述之裳置,該非揮發性可寫人記憶體包 含-第二下载程式,在該切_關致能時,該第二啟動程式 于乎^Π亥第一下載矛玉式,該第二下載程式透過該介面自該外 將奴載入之私式碼讀入並將該欲載入程式碼寫入該 非揮發性可寫人記憶财,該第二下餘式包含下列步驟: ()將。$第—下餘式之程式碼,寫人該賴讀寫記憶體 成為一第三下載程式; (2) 將切換啟動信號致能; ⑶在切換啟祕致能後,«三下載程式接著執行透 過該介面自該外部裝置讀入該欲載入之程式碼,並寫 入該非揮發性可寫入記憶體的動作; (4) 將切換啟動信號失能。 10·如申請範圍第7項所述之裝置, 關。 4TMI/2000Q1TW 關家鮮(CNS)A4 規格(21〇 該切換開關包含一手動開 x 297^7 -------------------—訂---------線-- (請先閱讀背面之注意事項再填寫本頁) 477931 A8 R8 C8 D8 六、申請專利範圍 1 1 ·如申請範圍第7項所述之裝置,該切換開關包含一可程式 控制之開關。 12·如申請範圍第1項所述之裝置,該非揮發性可寫入記憶體 包含快閃記憶體。 13 ·如申請範圍第5項所述之裝置,該介面包含通用串列匯流 排(universal serial bus) 〇 14·如申請範圍第5項所述之裝置,該介面包含平行傳輸埠 (line printer) 〇 15·如申請範圍第5項所述之裝置,該外部裝置包含個人電腦 (personal computer) 〇 16·如申請範圍第5項所述之裝置,該外部裝置包含筆記型電 月甾(notebook) ° 17 ·如申請範圍第5項所述之裝置,該外部裝置包含個人掌上 型助理(PDA)。 ------- —訂---------線· ! (請先閱讀背面之注意事項再填寫本頁) 經濟部智慧財產局員工消費合作社印製 4TMI 200001TW 13 本紙張尺度適用中國國家標準(CNS)A丨規格(210 X 297公釐)The scope of the application for the patent of 6 bows is written by the consumer cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs in the non-volatile writable person's memory. The first program includes the following steps: (1) Enable the switching start signal; ⑵ Write the code into the non-volatile writable memory; (3) The switching start signal is disabled. 9 · = # The range described in item 7 of the range, the non-volatile writable human memory contains-a second download program, when the cut_off is enabled, the second startup program is about ^ Π first Download the spear jade style, the second download program reads the private code loaded by the slave through the interface and writes the code to be loaded into the non-volatile writable person's memory, the second remaining The formula includes the following steps: () will. $ 第 — 下 余 式 code, the writer should rely on the read-write memory to become a third download program; (2) The switch start signal is enabled; ⑶ After the switch is enabled, the «three download program is then executed Read the code to be loaded from the external device through the interface and write the non-volatile writable memory; (4) The switching start signal is disabled. 10. The device described in item 7 of the scope of application, Off. 4TMI / 2000Q1TW Guan Jiaxian (CNS) A4 Specification (21〇 The switch includes a manual ON x 297 ^ 7 -------------------- order ---- ----- Line-(Please read the precautions on the back before filling this page) 477931 A8 R8 C8 D8 VI. Application for patent scope 1 1 · As for the device described in item 7 of the scope of application, the switch includes a Programmable switch. 12 · The device described in the first application scope, the non-volatile writable memory includes flash memory. 13 · The device described in the fifth application scope, the interface includes a universal Universal serial bus 〇14 · The device described in item 5 of the scope of application, the interface includes a parallel printer port 〇15 · The device described in item 5 of the scope of application, the external device Including a personal computer 〇16 · The device described in item 5 of the scope of application, the external device includes a notebook type notebook ° 17 · The device described in item 5 of the scope of application, the external device Includes Personal Palm Assistant (PDA). ------- —Order --------- Line · (Please read the back first Please fill in this page again.) Printed by the Intellectual Property Bureau of the Ministry of Economic Affairs, Consumer Co-operative Society 4TMI 200001TW 13 This paper size applies to China National Standard (CNS) A 丨 Specifications (210 X 297 mm)
TW89111359A 2000-06-09 2000-06-09 Device capable of flexibly loading firmware into nonvolatile rewritable memory TW477931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW89111359A TW477931B (en) 2000-06-09 2000-06-09 Device capable of flexibly loading firmware into nonvolatile rewritable memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW89111359A TW477931B (en) 2000-06-09 2000-06-09 Device capable of flexibly loading firmware into nonvolatile rewritable memory

Publications (1)

Publication Number Publication Date
TW477931B true TW477931B (en) 2002-03-01

Family

ID=21660039

Family Applications (1)

Application Number Title Priority Date Filing Date
TW89111359A TW477931B (en) 2000-06-09 2000-06-09 Device capable of flexibly loading firmware into nonvolatile rewritable memory

Country Status (1)

Country Link
TW (1) TW477931B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI394041B (en) * 2004-07-22 2013-04-21 Cypress Semiconductor Corp Method and device to improve usb flash write performance
TWI796912B (en) * 2021-12-30 2023-03-21 新唐科技股份有限公司 Control device and access method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI394041B (en) * 2004-07-22 2013-04-21 Cypress Semiconductor Corp Method and device to improve usb flash write performance
TWI796912B (en) * 2021-12-30 2023-03-21 新唐科技股份有限公司 Control device and access method

Similar Documents

Publication Publication Date Title
TW556200B (en) Improved register interface for flash EEPROM memory arrays
TW518517B (en) Storing system-level mass storage configuration data in non-volatile memory on each mass storage device to allow for reboot/power-on reconfiguration of all installed mass storage devices to the same configuration as last use
TW514829B (en) Computer system including a memory access controller for using non-system memory storage resources during system boot time
JP2000148465A (en) Firmware changing method
JPH0259937A (en) Ic card
JPH10340575A (en) External memory device, its controller and data transmission/reception device
TW494312B (en) Emulating a delayed exception on a digital computer having a corresponding precise exception mechanism
JP5948976B2 (en) Image forming apparatus and information processing apparatus
CN107003864A (en) Recover system-on-chip apparatus
US6115813A (en) Selectively enabling advanced configuration and power interface BIOS support
US20020083427A1 (en) Embedded system capable of rapidly updating software and method for rapidly updating software of embedded system
TW477931B (en) Device capable of flexibly loading firmware into nonvolatile rewritable memory
JP5754264B2 (en) Program execution device, image processing device, and program
US20100082965A1 (en) Information processing apparatus and method of controlling information processing apparatus
JPH076028A (en) Electronic equipment
JP5970867B2 (en) Information processing apparatus, image forming apparatus, and program
TW521212B (en) Updating program code method for embedded type micro control unit
KR100223844B1 (en) Option circuit
KR20070044268A (en) Apparatus and method of processing booting in main board
JP2005258642A (en) Embedded information processor
JP2001154839A (en) Recording medium for managing reading information, and information processor
JP2008162054A (en) Printer
JP2008009494A (en) Image forming device
JP3080722U (en) Extended compact memory card with write protection
JP2006127554A (en) Information processing device and image formation device

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MK4A Expiration of patent term of an invention patent