TW201203116A - Method and system for executing application programs - Google Patents

Method and system for executing application programs Download PDF

Info

Publication number
TW201203116A
TW201203116A TW99122523A TW99122523A TW201203116A TW 201203116 A TW201203116 A TW 201203116A TW 99122523 A TW99122523 A TW 99122523A TW 99122523 A TW99122523 A TW 99122523A TW 201203116 A TW201203116 A TW 201203116A
Authority
TW
Taiwan
Prior art keywords
application
memory
storage device
program
mode
Prior art date
Application number
TW99122523A
Other languages
Chinese (zh)
Other versions
TWI507986B (en
Inventor
Chien-Fu Lee
Original Assignee
Phison Electronics 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 Phison Electronics Corp filed Critical Phison Electronics Corp
Priority to TW099122523A priority Critical patent/TWI507986B/en
Publication of TW201203116A publication Critical patent/TW201203116A/en
Application granted granted Critical
Publication of TWI507986B publication Critical patent/TWI507986B/en

Links

Abstract

A method for executing application programs stored in an external memory storage device and a system thereof are provided. The method includes disposing a select switch on the external memory storage device, wherein the select switch is set at one of a plurality of operation modes and each of the operation modes is corresponding to one of the application programs. The method also includes detecting a operation modes that the select switch currently is set at, and marking a select flag as the operation mode. The method still includes running a launcher program; requesting the select flag from the external memory storage device by the launcher program; and running a corresponding application program among the application programs according to the select flash by the launcher program. Accordingly, the method and system can automatically executing a corresponding application program based on a user's demand.

Description

201203116 •ι υι 10-0007 34464tw£doc/n 六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種應用程式執行方法與系統,且特 別是有關於一種能夠在主機系統的作業系統中自動地執行 儲存在外接式儲存裝置中之應用程式的應用程式執行方法 與系統。 【先前技術】 數位相機、手機與MP3在這幾年來的成長十分迅速, 使得消費者對儲存媒體的需求也急速增加。由於快閃記憶 體(Flash M_ry)具有㈣轉發性、省電、體積小與無 機械結構等的特性,最適合用作為外接式記隨儲存裝置 歹1如,&身碟)。此外,隨著即插即用之連接介面(例如, = =^_niversal Serial Bus,㈣))的發展,使得 卜接式喊體儲存裝置已廣泛應用於數位内容的儲存上。 歸Ιϋί ’企錢訊部門的電辭理者為了解決電腦可 會將多個電腦維護應用程式(例如,掃毒軟 ΐ)儲H隨身财料便維護或祕電腦時使用2= 行儲存於隨身射的某—躺程式時,使用者 如,滑作”㈣i液晶勞幕)與輸入裝置(例 應肋執行之槽案總管尹點選欲執行之 中運轉1、㈣,由此使欲執行之應難式於作業系統 、而對於不具輪入/輪出裝置的祠服器或工業用電腦 201203116 ii007 34464twf.doc/n 來說,使用者無法透過上述方絲於 欲執行的應靠式。例如,當不具輸入擇與執行 或工業用,電腦管理者無法藉由執的飼服器 的防毒軟體來進行掃毒。 儲存於隨身碟中 【發明内容】 據 本發明提供—觀㈣式執財法 使用者的需求自動地執行儲存於外接其能夠根 中的多個應用轾式。 ' 式。己隐體儲存裝置 本發明範例實施例提出—種應用田 在主機系統的作業系統中自動地運轉儲存於於 儲存裝置之記憶體模組中的多個應用程ft式讀體 行方法包括在此外料記憶贿存^ ^程式執 ίίΐ,ί'統;.由記憶體控制器她選;開關目前所處 本應用 式向此外接式記憶體儲存裝i;求:;;二= 體控制器中接收此選擇旗標;以及由此導引:式ί 前鍋物纖轉開心 關’其:此選擇開晴至外接式記憶體二;擇開 體控,器,此選擇開關可被設定於多^運作模"中。己, 2每一運作模式各別地對應此些應用程式的之ί一 ==行方法也包括將此外接式記憶體儲存㈣ w识閃此迸擇開關 程,並且將轉旗標標記為此運作模式。本庫用 t執=㈣包括於主___—料程式本應用 201203116 --J10-0007 34464twf.doc/n 在本發明之-實施例中,上述之應用程式包一應 用程式與第二剌程式’上述之運倾式包括對應二 應用程式的第-運作模式與對應此第二應用程^第二運 作模式。在此,上狀由料程式轉·旗標於 統中運轉對應選擇關之目前運作模式的朗程步驟 模式為第—運作模式時’由導!1程式於 應用程式;以及當目前運作模式為第 j 式魏作㈣财運娜二應用 在本發明之-實施例中,上述之應用程式執 包括在由導引程式於作業系統中運轉第一應 斷在作業系統中第二應用程式是否已被運^ ;二‘作 業系統中第二制程式已被運轉時,由導引 二 統中終止第二應用程式。 、邛菜糸 ^本發明之—實施例中,上述之由導引程式向外接 存裝置請求選擇旗標並從記憶體控制器中接收該 的步驟包括:由.導引程式週期地向外接式記情體 ^存裝置請求選擇旗標並從記憶體控制器中接收選擇旗 在本發明之一實施例中,上述之應用程式執 =番^上述導引程式個上述外接式記憶體儲存裝置^ 存^置、古ί接至上述主機系統;以及當此外接式記憶體儲 存裝置破重新耦接至主機系統時,由導 省 憶體健錢置請求選擇旗標並從記憶體控制器;^ = ^己 υ〇07 34464twf.doc/n 201203116 旗標 在本發明之-實施例中,上述之應用程式 包括:將記憶體模組賴地分割為一分割區,並 ^ ^模擬為一光碟分割區。此外,上述之應用程式執行^ ϋΓ! 一自動執行檔、上述導引程式與上述應用程式 其中此自動執行檔用以自動地執行: 導引私式’並且其中當上述外接式記憶體儲存裝 主機系統時此自動執行齡被上述作業系統自動地運轉。 2明範例實施例提出—種應用程式執行系統用以 在作業系統中自動地運轉多個應用程式。此應用程式執 =統包括主機系統與外接式記龍儲存裝置。主機系統具 有内建式儲存裝置,其中此内建式儲存裝置絲有此作ς 系統並且導引程式被運轉於此作㈣統卜外接式記憶體 裝置包括選擇開關、連接11、記憶體模組與記憶i控 」盗。選擇開關可被設定於多個運作模式其中之一並且每 運作模式各別地對應此些應用程式的其中之一。連接器 ,以輕接至此主機系統。記憶體模組用以儲存此些應用.程 ί。記憶體控制器輕接至此選擇開關、記憶體模組與連接 :’其中記憶體控制器用以偵測此選擇開關所處的目前運 模式並且將選擇旗標標記為此目前運作模式。在此,每 夕卜接式記憶體儲存裝置墟至主機系統時,此導引程式: ί接式記憶體儲存裝置請求此選擇旗標並從此記憶體控制 2接收此選擇旗標。此外,導引程式會根據所接收的選 標於作業系統中運轉對應此目前運作模式的應用程 …J10-0007 34464twf.doc/n 201203116 式。 在本發明之-實施例中,上述之記憶體模組包括一八 割區’並且此分割區儲存一自動執行檔、上述導引程^ =應:,式’其中此自動執行檔用以自動地執行此g201203116 • ι υ 10 10-0007 34464 tw. The invention is related to an application execution method and system, and in particular to an operating system capable of being in a host system. An application execution method and system for automatically executing an application stored in an external storage device. [Prior Art] Digital cameras, mobile phones and MP3s have grown very rapidly in recent years, and the demand for storage media has increased rapidly. Since the flash memory (Flash M_ry) has (four) transmissibility, power saving, small size and no mechanical structure, it is most suitable for use as an external storage device, such as & In addition, with the development of the plug-and-play connection interface (e.g., ==^_niversal Serial Bus, (4)), the connection type storage device has been widely used for storage of digital content. Ιϋ ' 'The vocabulary of the enterprise's money department can save multiple computer maintenance applications (for example, anti-virus soft sputum) to save the computer, and then use the 2= line to store it in the portable computer. Somewhere - when the program is lying, the user, for example, slips "(4) i LCD screen) and the input device (for example, the ribs executed by the ribs are selected to perform the operation 1, (4), thereby making the desired Difficult to operate the system, and for the server or industrial computer 201203116 ii007 34464twf.doc/n without the wheeled/rounded device, the user cannot pass the above-mentioned square wire to the type to be executed. For example, When there is no input, execution or industrial use, the computer administrator cannot use the anti-virus software of the holding device to perform the anti-virus. Stored in the flash drive [invention content] According to the present invention, the use of the (four)-style financial method is provided. The user's needs are automatically executed in a plurality of applications that are stored in the external roots of the device. The embodiment of the present invention proposes that the application field is automatically operated and stored in the operating system of the host system. Yu The plurality of application ft-type reading methods in the memory module of the storage device include: storing the memory in the storage device, and storing the program by the memory controller; the switch is currently in the present Applying to the external memory storage device; seeking:;; two = the body controller receives the selection flag; and thereby guiding: the formula 395, the front pot material fiber turns happy close 'its: this selection is open to External memory 2; select the body controller, the selector switch can be set in the multi-operation mode ". 2, each mode of operation corresponds to the respective application of the application == line The method also includes storing the external memory (4) w to identify the switching process, and marking the flag to the operation mode. The library uses t = (4) is included in the main ___ - program application 201203116 - -J10-0007 34464twf.doc/n In the embodiment of the present invention, the application package-application and the second program "the above-mentioned operation type includes the first operation mode of the corresponding two applications and corresponds to this The second application mode is the second mode of operation. Here, the top state is transferred from the program to the flag. The Lange step mode of the current mode of operation should be selected as the first mode of operation - the operation mode is the program; and when the current mode of operation is the j-type Wei Zuo (four) Fortune Na 2 application in the present invention - implementation In the example, the application is executed in the operating system by the boot program. The first application should be disconnected in the operating system. The second application has been run. In the second operating system, the second program has been run. Terminating the second application by the guiding system. In the embodiment, the guiding program requests the selection flag from the external storage device and receives the flag from the memory controller. The step includes: requesting, by the booting program, the externally-connected memory device to select the flag and receiving the selection flag from the memory controller. In an embodiment of the present invention, the application program is executed. The above-mentioned boot program includes the external memory storage device, the memory device is connected to the host system, and when the external memory storage device is re-coupled to the host system, Setting the request selection flag and from the memory controller; ^ = ^ υ〇 07 34464 twf.doc / n 201203116 Flag In the embodiment of the present invention, the above application includes: dividing the memory module It is a partition, and ^^ is simulated as a disc partition. In addition, the above-mentioned application executes ^ ϋΓ an automatic execution file, the above-mentioned navigation program and the above-mentioned application program, wherein the automatic execution file is automatically executed: guiding private 'and in which the external memory storage host This automatic execution age is automatically operated by the above operating system at the time of the system. 2 The example embodiment proposes an application execution system for automatically running a plurality of applications in an operating system. This application includes the host system and the external storage device. The host system has a built-in storage device, wherein the built-in storage device has the operating system and the guiding program is operated. (4) The external memory device includes a selection switch, a connection 11, and a memory module. With the memory i control "theft. The selection switch can be set to one of a plurality of operational modes and each of the operational modes individually corresponds to one of the applications. Connector to lightly connect to this host system. The memory module is used to store such applications. The memory controller is lightly connected to the selection switch, the memory module and the connection: 'where the memory controller is used to detect the current mode in which the selection switch is located and mark the selection flag as the current mode of operation. Here, when the memory storage device is shipped to the host system, the navigation program: the connection memory storage device requests the selection flag and receives the selection flag from the memory control 2. In addition, the pilot program will run the application corresponding to the current operating mode in the operating system according to the received selection ... J10-0007 34464twf.doc/n 201203116. In the embodiment of the present invention, the memory module includes an eight-cutting area and the partitioning area stores an automatic execution file, and the guiding path ^= should:, where the automatic execution file is used for automatic Execute this g

Si之記憶體控制器將此分割區模擬為-2 碟刀割區,其中當上述外接式記憶體儲存裝置 系統時此自動執行财被上述作㈣、統自動地運轉。 ^明範例實施例提出—種應用程式執行方法,用於 在主機系統的一作業系統中自動地運轉儲存於一; 記憶體儲存裝置之-記憶_財^程卜,式 置傳送-選擇開關未=;記憶趙储存裝 此選擇開_運作模錢行此些_程柄^=依據 本發明範例實施例提出一種外接/、 。 置,包括連接器、記憶體模組、選擇體儲存裝 連接器用叫接至域系統。制器。 程式。選擇開關可被設定於多個運作模式的應用 每一運,式各別地對應姑應用程式2其;並且 選關、記憶體模組與連接器:: 存裝置傳送此些運作模式之二: -的運作模式至主機系統’藉此,此主機系統= --U007 34464twf.doc/n 201203116 被設定的運作模式的應用程式。 ,於上述,本發明範例實施例的應用程式執行方法與 系統能夠根據選擇開關的位置自動地執行儲存於外接式記 憶體儲存裝置中的多個應用程式。 為讓本發明之上述特徵和優點能更明顯易懂,下文特 舉實施例,並配合所附圖式作詳細說明如下。 【實施方式】 圖1是根據本發明範例實施例所繪示的應用程式執行 系統的概要方塊圖。 請參照圖1 ’應用程式執行系統1000包括主機系統 1100與外接式記憶體储存裝置1〇〇。 主機系統1100包括電腦主機111〇與輸入/輸出 (input/output,I/〇)裝置 1150。 在本範例實施例中,電腦主機1110為桌上型個人電 腦。必須瞭解的是,本發明不限於此,在本發明另一範例 實施例中,電腦域111G亦可歧筆記型電腦、伺服器或 其他任何_執行地電職驗式的线系統。電腦主機 1110 包括中央處理單元(Central Processing unit, CPU)1112、主記憶體1114、系統匯流排1116、資料傳輸 介面1118、内建式儲存裝置⑽及安裝在内建式儲存裝 置1120中的作業系統1122。 中央處理單元1112用以解釋電腦指令以處 軟體中的資料。 处电肠 2012031.16」_7 34464twf.doc/n 主記憶體1114是經㈣、難賴u 理單元1112並且用以載 =镬至中央處 央處理單元1112直接:行樣=與資料以供中 1114具可隨時讀寫且較快之讀寫速度等特性,因此t j 體1114是用以作為作業系統1122或其他正在執行 式的臨時資料儲存媒介。在本範例實施例中,传 1114為動態隨機存取記憶體(—c Rand〇m 5Ac= Memory,DRAM)。此外,必須瞭解的是,在本發明 例實施例巾’作業祕亦可#由贿裝置_存空】 擬的虛擬記憶體來作為執行應用程式之臨時資料儲存媒 介,在此例子中,主記憶體更包括此類虛擬記憶體。、 資料傳輸介面1118經由系統匯流排1116耦接至中央 處理單元1112,用以耦接外接式記憶體儲存裝置1〇〇。在 本範例實施例中,資料傳輸介面為通用序列匯流排 (Universal Serial Bus,USB)介面。然而,必須瞭解的是本發 明不限於此,資料傳輸介面1118亦可以是其他適合即插即 用介面。 内建式儲存裝置1120經由系統匯流排u 16耦接至中 央處理器單元1112用以作為電腦主機mo的主要儲存裝 置。在本範例實施例中’内建式儲存裝置1120為硬碟(Hard Disk) ’然而,必須瞭解的是,本發明不限於此。内建式儲 存裝置1120安裝有作業系統1122,作業系統1122是用以 管理電腦硬體(Computer hardware)與電腦軟體(Computer software)資源的程式。具體來說’作業系統1122用以管理 201203116 ----—--u007 34464twf. doc/n 與配置主記憶體1114、決定系統資源(例如,中央處理單 元1112、主記憶體1114、輸入/輸出裝置1150)供需的優先 次序、控制輸入/輪出裝置H50、管理檔案系統等運作。 在本範例實施例中,作業系統1122為微軟(Microsoft)公司 的視窗(Windows)作業系統。然而,必須瞭解的是,本發明 不限於此,本發明亦可應用於Linux、Mac或其他作業系 統中》 輸入/輸出裝置1150是耦接至電腦主機liu^在本範 例實施例中,輸入/輸出裝置1150包括滑鼠22〇2、鍵盤 2204、顯示器2206與印表機2208(如圖2所示)。必須瞭解的 是’輸入/輸出裝置1150不限於圖2所示的裝置,輸入/輸 出裝置1150可更包括其他裝置。此外,在本發明另一範例 貫施例中’主機系統11〇〇亦可不配備有輸入輸出裝置IK。 外接式記憶體儲存裝置100是即插即用記憶體儲存裝 置,並且以可移除的方式耦接至主機系統11〇〇。例如,外 接式記憶體儲存裝置100為隨身碟221〇或固態硬碟 2^12(如圖2所示)。外接式記髓财裝置包括連接 器102 β己隐體控制器1〇4、記憶體模组與選擇開關 連接器102為通用序列匯流排(Universal Serial Bus, US^連接^ ’必_解狀,本發料限於此,連 接裔102亦可以其他適合即插即用連接器。 記憶體控制ϋ 執行 作的多個賴縣㈣財,並且《球 10 201203116 10-0007 34464twf.doc/n 令在記憶體模組106中進行資料的寫入、讀取斑抹除等運 作。 記憶體模組106是耦接至記憶體控制器1〇4,並且用 以儲存資料。 記憶體模組106包括多個實體區塊,並且各實體區塊 分別具有複數個頁面’其中屬於同一個實體區塊之實體頁 面可被獨立地寫入且被向時地抹除。在本範例實施例中, 籲 實體區塊為抹除之最小單位。亦即,每一實體區塊含有最 小數目之一併被抹除之記憶胞。而實體頁面為寫入的最小 單元。即,實體頁面為寫入資料的最小單元。然而,必須 瞭解的是,在本發明另一範例實施例中,寫入資料的最小 單位亦可以是扇區(Sector)或其他大小。 在本範例實施例中,記憶體模組1〇6為可複寫式非揮 發性記憶體模組。例如,記憶體模組1〇6為多層記憶胞 (Multilevel Cell,MLC)NAND快閃記憶體模組。然而,本 發明不限於此’記憶體模組1〇6亦可是單層記憶胞(Single ® Level Cel1,SLC)NAND快閃記憶體模組、其他快閃記憶體 模組或其他具有相同特性的記憶體模組。 記憶體模組106的儲存位址會被邏輯地劃分為分割區 180並且分割區18〇中儲存有第一應用程式182與第二應 用程式184。必須瞭解的是,在本發明另一範例實施例中, 記憶體模組10 6亦可被劃分為更多分割區。 選擇開關108是耦接至記憶體控制器ι〇4 ’並且可設 定於多個運作模式其中之—。具體來說,選擇開關1〇8的 201203116 * …v -0007 34464twf.doc/n -部份是暴露於外接式記憶體儲存裝置刚的外殼表面 上’用於設定外接式記賴贿裝置⑽_接至主機系 統110的運作方式。特別是,主機系統1100會依選擇開關 :=前被歧之運作模絲執行-健杨記憶The memory controller of Si simulates this partition as a -2 disc cutting zone, in which the automatic execution of the above-mentioned external memory storage device system is automatically operated by the above (4). The exemplary embodiment of the present invention provides an application execution method for automatically operating in an operating system of a host system, stored in a memory storage device, and stored in a memory storage device. =; memory Zhao storage installed this option open _ operation mode money line _ handle ^ ^ = according to an exemplary embodiment of the present invention proposed an external /,. The connector, the memory module, and the selection storage connector are connected to the domain system. Controller. Program. The selection switch can be set to apply to multiple operating modes, each of which corresponds to the application 2; and the selection, memory module and connector:: The storage device transmits the second of these modes of operation: - The mode of operation to the host system 'By this, the host system = --U007 34464twf.doc/n 201203116 is set to the operating mode of the application. In the above, the application execution method and system of the exemplary embodiment of the present invention can automatically execute a plurality of applications stored in the external memory storage device according to the position of the selection switch. The above described features and advantages of the present invention will become more apparent from the description of the appended claims. [Embodiment] FIG. 1 is a schematic block diagram of an application execution system according to an exemplary embodiment of the present invention. Referring to Figure 1, the application execution system 1000 includes a host system 1100 and an external memory storage device. The host system 1100 includes a computer host 111 and an input/output (I/〇) device 1150. In the present exemplary embodiment, the host computer 1110 is a desktop personal computer. It should be understood that the present invention is not limited thereto. In another exemplary embodiment of the present invention, the computer domain 111G may also be a notebook computer, a server, or any other line system that performs an electric service. The host computer 1110 includes a central processing unit (CPU) 1112, a main memory 1114, a system bus 1116, a data transmission interface 1118, a built-in storage device (10), and an operating system installed in the built-in storage device 1120. 1122. The central processing unit 1112 is used to interpret the computer instructions to be in the software. The electric sausage 2012031.16"_7 34464twf.doc/n main memory 1114 is the (four), difficult to handle unit 1112 and used to load = 镬 to the central processing unit 1112 direct: sample = and data for 1114 The tj body 1114 is used as the operating system 1122 or other executable data storage medium, which can be read and written at any time and has a fast reading and writing speed. In the present exemplary embodiment, the transmission 1114 is a dynamic random access memory (-c Rand〇m 5Ac=Memory, DRAM). In addition, it must be understood that in the example of the present invention, the virtual memory is used as a temporary data storage medium for executing an application, in this example, the main memory. The body also includes such virtual memory. The data transmission interface 1118 is coupled to the central processing unit 1112 via the system bus 1116 for coupling to the external memory storage device 1 . In this exemplary embodiment, the data transmission interface is a Universal Serial Bus (USB) interface. However, it must be understood that the present invention is not limited thereto, and the data transmission interface 1118 may be other suitable plug and play interfaces. The built-in storage device 1120 is coupled to the central processor unit 1112 via the system bus bar u16 for use as a primary storage device for the host computer mo. In the present exemplary embodiment, the 'built-in storage device 1120 is a Hard Disk'. However, it must be understood that the present invention is not limited thereto. The built-in storage device 1120 is equipped with an operating system 1122, which is a program for managing computer hardware and computer software resources. Specifically, the operating system 1122 is used to manage 201203116 -----u007 34464twf. doc/n and configure the main memory 1114, determine system resources (for example, central processing unit 1112, main memory 1114, input / output The device 1150) prioritizes supply and demand, controls the input/rounding device H50, manages the file system, and the like. In the present exemplary embodiment, the operating system 1122 is a Windows (Windows) operating system of Microsoft Corporation. However, it should be understood that the present invention is not limited thereto, and the present invention is also applicable to Linux, Mac, or other operating systems. The input/output device 1150 is coupled to a computer host. In the present exemplary embodiment, input/ Output device 1150 includes a mouse 22, a keyboard 2204, a display 2206, and a printer 2208 (shown in Figure 2). It must be understood that the 'input/output device 1150' is not limited to the device shown in Fig. 2, and the input/output device 1150 may further include other devices. Further, in another exemplary embodiment of the present invention, the host system 11A may not be equipped with an input/output device IK. The external memory storage device 100 is a plug-and-play memory storage device and is removably coupled to the host system 11A. For example, the external memory storage device 100 is a flash drive 221 or a solid state hard disk 2^12 (shown in Figure 2). The external serial memory device includes a connector 102 β-hidden controller 1〇4, and the memory module and the selection switch connector 102 are universal serial buss (Universal Serial Bus, US^ connection ^ ' must be solved, This issue is limited to this, the connection 102 can also be suitable for other plug-and-play connectors. Memory Control ϋ Execution of a number of Lai County (four) Cai, and "Ball 10 201203116 10-0007 34464twf.doc/n order in memory The memory module 106 is coupled to the memory controller 1〇4 and configured to store data. The memory module 106 includes a plurality of functions. a physical block, and each physical block has a plurality of pages respectively, wherein physical pages belonging to the same physical block can be independently written and erased in a timely manner. In the present exemplary embodiment, the physical block is called The smallest unit for erasing. That is, each physical block contains one of the smallest number and is erased. The physical page is the smallest unit written. That is, the physical page is the smallest unit for writing data. However, what must be understood is In another exemplary embodiment of the present invention, the minimum unit for writing data may also be a sector or other size. In the exemplary embodiment, the memory module 1〇6 is rewritable and non-volatile. For example, the memory module 1〇6 is a multi-level cell (MLC) NAND flash memory module. However, the present invention is not limited to the 'memory module 1〇6 or a single Single-level memory cell (Single ® Level Cel1, SLC) NAND flash memory module, other flash memory modules or other memory modules with the same characteristics. The memory address of the memory module 106 will be logically The first application 182 and the second application 184 are stored in the partition 180. The memory module 106 can also be divided in another exemplary embodiment of the present invention. For more partitions, the selection switch 108 is coupled to the memory controller 〇4' and can be set in a plurality of operating modes - specifically, the 201203116 * ...v -0007 34464twf of the selection switch 1 〇 8 .doc/n - part is exposed to external records The surface of the body storage device is used to set the operation mode of the external connection system (10)_ to the host system 110. In particular, the host system 1100 is executed according to the selection switch: = the operation mode of the front is disassociated - Jian Yang Memory

108可於多個位置之間移動。也就找,❹者可將Z ”選擇地定位在其中—個位置上。在本範例實施例 中’選擇開_ 108可被定位在第一位置或第二位置 -範例實施财,選擇關⑽亦可依據所接收的訊自, 如預定的激發訊號,或激發訊號的次數,來設定; I:憶體控制器1〇4會儲存一選擇旗標並且根 開關⑽的運作模式。例如,#選擇開關⑽處於第一= ==,記龍控制器104會將此選擇旗標標 一 運作模式,並且當選擇開關1〇8處於第二運作 憶體控制器H)4會將此選擇旗標標記為第二運作模5己 的概據本發明範例實施例崎示的記憶體㈣器 請參照圖3,記憶體控制器1〇4包括 202、主機介面2〇4與記憶體介面2〇。 吕 體管理電路2G2用以控制記憶體控制器脱的整 SI且記憶體管理電路2〇2具有多個控制指 :並且在外接式記顏儲存裝置刚運作時,此些 k會被執行崎記憶體餘1G6進行:轉以、讀^、 12 201203116 〜y “J10-0007 34464twf.doc/n 抹除等運作。 在本範例實施例中’記憶體管理電路2〇2的控制指令 是以韌體型式來實作。例如,記憶體管理電路2〇2具^& 處理器單元(未繪示)與唯讀記憶體(未繪示),並且此^栌制 指令是被燒錄至此唯讀記顏巾。當外接式記憶體^裝 置100運作時,此些控制指令會由微處理器單元來執行以 完成資料寫入、讀取、抹除等運作。 # 在本發明另一範例實施例中,記憶體管理電路202的 控制扣令亦可以程式碼型式儲存於記憶體模組的特定 區域(例如,記憶體模組中專·存放系統資料的系統區) 中。此外,記憶體管理電路202具有微處理器單元(未緣 不)、唯讀把憶體(未繪示)及隨機存取記憶體(未繪示)。特 別是’此唯讀記憶體具有驅動碼段,並且當記憶體控制器 104被致㈣,微處理器單元會先執行此驅動碼段來將儲 存於記憶體模組106中之控制指令载入至記憶體管理電路 2G2的隨機存取記憶射。之後,微處理料元會運轉此 •鍊·相執行資料寫人、讀取、抹料運作。此外,108 can be moved between multiple locations. In other words, the Z can be selectively positioned in one of the positions. In the present exemplary embodiment, 'select open _ 108 can be located at the first position or the second position - the example implementation is implemented, and the selection is closed (10) It can also be set according to the received message, such as the predetermined excitation signal, or the number of times the signal is excited; I: The memory controller 1〇4 stores a selection flag and the operation mode of the root switch (10). For example, # The selection switch (10) is at the first ===, the record controller 104 will mark the selection flag in an operation mode, and when the selection switch 1〇8 is in the second operation memory controller H)4, the selection flag will be selected. Referring to FIG. 3, the memory controller 1〇4 includes 202, a host interface 2〇4, and a memory interface 2〇. The Lv management circuit 2G2 is used to control the whole SI of the memory controller and the memory management circuit 2〇2 has a plurality of control fingers: and when the external type storage device is just operating, the k will be executed by the memory. Body 1G6: Transfer to, read ^, 12 201203116 ~ y "J10-0007 34464twf.doc/n erase and other operations. In the present exemplary embodiment, the control command of the memory management circuit 2〇2 is implemented in a firmware type. For example, the memory management circuit 2 has a processor unit (not shown) and a read-only memory (not shown), and the command is burned to the read-only face. When the external memory device 100 operates, such control commands are executed by the microprocessor unit to perform data writing, reading, erasing, and the like. In another exemplary embodiment of the present invention, the control button of the memory management circuit 202 can also be stored in a specific area of the memory module in a code type (for example, a system area in the memory module for storing system data) ). In addition, the memory management circuit 202 has a microprocessor unit (none), a read-only memory (not shown), and a random access memory (not shown). In particular, 'this read-only memory has a drive code segment, and when the memory controller 104 is caused (4), the microprocessor unit first executes the drive code segment to load the control commands stored in the memory module 106. Random access memory to the memory management circuit 2G2. After that, the micro-processing unit will run this • Chain·phase execution data write, read, and wipe operation. In addition,

在本發明另一範例實施例中,記憶體管理電路2〇2的控制 指令亦可以一硬體型式來實作。 I 在本範例實施例+,記憶體控制器1〇4的記憶體管理 電路202更用以執行偵測選擇開關108的目前運作模式並 且根據主機系統11GG的請求將關於選擇開關⑽的目前運 倾紅#轉送給线祕11GG。鍾來說,記憶體管 理電路202會偵測選擇開關1〇8目前所處的運作模式並且 201203116 ------------- 34464twf.doc/n 標記上述選擇旗標以記錄選擇開關1〇8的運作模式。此 外^己憶體管理電路2〇2會識別來自於主機系統i 1〇〇的用 於請求此選擇旗標的指令(例如,製造商指令(Vender Command))並且將上述選擇旗標或其相對應之訊息傳送給 主機系統1100以回應此指令。 圖4是根據本發明範例實施例所繪示之主機系統自動 地運轉儲存於外接式記憶體儲存裝置之應用程式的流程 圖。 /請參照圖4,當外接式記憶體儲存裝置1〇〇耦接至主 機系統1100時,在步驟S4〇i中主機系統11〇〇會主動請 求外接式記憶體儲存裝置100傳送選擇開關1〇8的目前運 作模式。例如,能夠傳送此用於請求此選擇旗標之指令的 導引程式1124會事先地運轉於主機系統11〇〇的作業系統 中,並且當使用者將外接式記憶體儲存裝置1〇〇耦接至主 機系統1100時,導引程式1124會向外接式記憶體儲存裝 置100下達用於請求此選擇旗標的指令。並且,當接收到 用於請求此選擇旗標的指令時,.記憶體控制器1〇4的記憶 體管理電路202會將所儲存之選擇旗標傳送給導引程式 1124。例如,當選擇開關1〇8處於第一位置時,記憶體管 理電路202會將標記為第一運作模式的選擇旗標傳送給導 弓丨程式1124,並且當選擇開關1〇8處於第二位置時,記憶 體控制器104會將標記為第二運作模式的選擇旗標傳送給 導引程式1124。 ° 之後,在步驟S403中主機系統1100會依據選擇開關 】4 201203116 r ^-^010-0007 34464twf.doc/n 108的目前運作模式執行所儲存之應用 例如,當減到選擇旗標時,導引程式 之… 標的標記運轉⑽記㈣㈣1G6HJ擇旗 吟等弓丨程式im會在作業系統1122 式m。並且,當接收到標記為第二運作 時,導引程式1124會在作辈系續1]29&、大的選擇旗才示 式m。 ㈣作業祕1122中運轉第二應用程 值得丨程d24會獅細記憶 裝置100輪詢(polling)此選楼旅於,c存 觼是否已被改轡。你丨‘—、、示識別選擇旗標的狀 儲存裝置Η)〇。 4此選擇旗標的指令給記憶體 此外,在本發明另一範例實施例中 偵測到記憶體儲存裝置100被重新輕:至主機24 ίΓ的體1_置100被切斷與主機系統_之 記憶體儲存裝置=達用U此選擇旗標的指令給 •V iH提的是’當選擇旗標的狀態被改變時,導%程 式會再根據選擇旗標的狀態來執行對應的應用 的21’ ^在選擇開關_的位置被定位在第—位置 導館存裝置100被輕接至主機系統簡時, b 1124會轉所接收的選擇旗標在作業系統1122 201203116 *-------*0007 34464twf.doc/n 中運轉第-應用程式脱。此時,倘若使用者將選擇開關 108的位置設定成第二位置時,由於選擇旗標的標記已改 變為第二運作模式,因此導㈣式lm會根據所接收的選 擇旗標在作業系統1122中運轉第二應用程式184。也就是 說,在此例子巾,第-赫程式182與第二應難式184 皆會在作業系統1122中被運轉。 ,得-提較’除了 _運轉齡於外接式記憶體儲 存2 _的多個應用程式之外,在本發明另—範例實施 =導?丨程式1124亦可於同—時間僅讓其卜個應用程 式被運轉。例如,在本發明另—範例實施例中,者使用者 將選擇開關⑽的位置設定成第二位置時,導引程田式ιΐ24 2運轉第二制程式m之前糾斷在作業系統1122 中第-應用程式182是否已被運轉。並且,當 式^2已被運轉時,導引程式1124會終止第f 182的運轉,並且之後再運轉第二應用程式⑻。反之,當 使用者將選擇開關m的位置設定成第一位置時,導引程 式im會在運轉第一應用程式in之前先判斷在作業系統 1122中第二應用程式184是否已被運轉。並且,當第二應 =程式m已被運轉時,導引程式1124會終止第二應用程 彡184的運轉,並且之後再運轉第一應用程式⑻。 。在本範例實施例中,預先運轉於主機系統1100的導引 程式1124是預先儲存於内建式儲存裝置112〇中。然而, 本,明不限於此。例如’在本發明另一範例實施例中,導 引‘式1124與用以自動地運轉導引程式U24的自動執行 16 201203116 χ «χ ^ ^J10-0007 34464twf.doc/n 檔(例如’樓名為"Automn.inf,的描述檀(script flle))會被儲 存在兄憶體模組106的分割區18〇中,並且記憶體控制器 104會將分割區模擬為光碟分割區。 也就是說,當使用者將記憶體儲存裝置1〇〇耦接至主 機系’’充1100並且主機系統1丨⑼向外接式記憶體儲存裝置 1〇〇 5旬問其媒體特徵時,記憶體管理電路202會將向主機 系統1100旦告分割區為光碟分割區。之後,作業系統 • 1122會自動地運轉儲存於分割區180中的自動執行檔,並 且所運轉的自動執行標會於作業系統1122中自動地運轉 導引程式1124。基此,在此範例實施例中,導引程式1124 無需預先儲存於内建式儲存裝置112〇中。 主機介面204是耦接至記憶體管理電路2〇2並且用以 接收與識別主機系統1100所傳送的指令與資料。也就是 說,主機系統1100所傳送的指令與資料會透過主機介面 204來傳送至6己憶體管理電路202 ^在本範例實施例中,主 機介,204是對應連接器102為USB介面。然而,必須瞭 解的是本發明不限於此,主機介面2〇4亦可以是其他適合 即插即用資料傳輸介面。 記憶體介面206是耦接至記憶體管理電路2〇2並且用 以存取_δ己憶體模組1〇6。也就是說,欲寫入至記憶體模組 106的資料會經由記憶體介面206轉換為記憶體模組106 所能接受的格式。 ☆ /在本發明一範例實施例中,記憶體控制器1〇4還包括 緩衝記憶體252。緩衝記憶體252是搞接至記憶體管理電 201203116 ---------υ〇〇7 34464twf.doc/n 路202並且用以暫存來自於主機系統11〇〇的資料與指令或 來自於記憶體模組106的資料。例如,上述選擇旗標;被 儲存於緩衝記憶體252中。 在本發明一範例實施例中,記憶體控制器1〇4還包括 電源管理電路254。電源管理電路2S4是輕接至記憶體管 理電路202並且用以控制外接式記憶體儲存裝置1〇〇的竜 源。 在本發明一範例實施例中,記憶體控制器還包括 錯誤檢查與校正電路256。錯誤檢查與校正電路256是耦 接至記憶體管理電路202並且用以執行一錯誤檢查與校正 程序以確保資料的正確性。具體來說,當記憶體管理電路 2〇2從主機系統中接收到寫入指令時,錯誤檢查與校 正電路256會為對應此寫入指令的資料產生對應的錯誤檢In another exemplary embodiment of the present invention, the control command of the memory management circuit 2〇2 can also be implemented in a hardware type. In the present exemplary embodiment, the memory management circuit 202 of the memory controller 1〇4 is further configured to perform the current operation mode of the detection selection switch 108 and to present the current operation of the selection switch (10) according to the request of the host system 11GG. Red # transferred to the line secret 11GG. For the clock, the memory management circuit 202 detects the current mode of operation of the selection switch 1〇8 and 201203116 ------------- 34464twf.doc/n marks the above selection flag for recording Select the operating mode of switch 1〇8. In addition, the memory management circuit 2 会 2 will recognize an instruction from the host system i 1 用于 for requesting the selection flag (for example, a Vender Command) and the above selection flag or its corresponding The message is transmitted to the host system 1100 in response to this command. 4 is a flow diagram of an application system for automatically operating a host system stored in an external memory storage device according to an exemplary embodiment of the invention. Referring to FIG. 4, when the external memory storage device 1 is coupled to the host system 1100, the host system 11A actively requests the external memory storage device 100 to transmit the selection switch 1 in step S4〇i. The current mode of operation of 8. For example, the driver 1124 capable of transmitting the instruction for requesting the selection flag is previously operated in the operating system of the host system 11 and is coupled to the external memory storage device 1 by the user. When the host system 1100 is reached, the boot program 1124 issues an instruction to the external memory storage device 100 for requesting the selection flag. And, upon receiving an instruction to request the selection flag, the memory management circuit 202 of the memory controller 1〇4 transmits the stored selection flag to the vector 1124. For example, when the selection switch 1〇8 is in the first position, the memory management circuit 202 transmits the selection flag labeled as the first mode of operation to the pilot program 1124, and when the selection switch 1〇8 is in the second position. The memory controller 104 transmits a selection flag labeled as the second mode of operation to the vector 1124. After that, in step S403, the host system 1100 executes the stored application according to the current operation mode of the selection switch 4 201203116 r ^-^010-0007 34464twf.doc/n 108, for example, when the selection flag is reduced, The indexing function... The marking operation (10) (4) (4) 1G6HJ selection flag and other bows will be in the operating system 1122. Moreover, when the mark is received as the second operation, the guide program 1124 will continue to execute 1] 29 & large selection flag m. (4) The second application in the operation secret 1122 is worthwhile. The d24 will be the lion's fine memory. The device 100 polls the choice of the building, and whether it has been changed. You 丨 ‘—、, indicate the storage device that identifies the selection flag Η)〇. 4, the flag selection instruction is given to the memory. In addition, in another exemplary embodiment of the present invention, the memory storage device 100 is detected to be lightly re-applied: the body 1_set 100 to the host 24 is disconnected from the host system. Memory storage device = up to U to select the flag of the instruction to the V iH is 'when the state of the selection flag is changed, the derivative program will execute the corresponding application according to the state of the selection flag. The position of the selection switch _ is positioned when the first position storage device 100 is lightly connected to the host system, and b 1124 will transfer the received selection flag to the operating system 1122 201203116 *-------*0007 34464twf.doc/n running the first - application off. At this time, if the user sets the position of the selection switch 108 to the second position, since the flag of the selection flag has been changed to the second operation mode, the guide type (4) lm is in the operating system 1122 according to the received selection flag. The second application 184 is run. That is to say, in this example, both the first and second programs 182 and 184 are operated in the operating system 1122. In addition to the multiple applications that are older than the external memory storage 2 _, the implementation of the present invention is another example. The program 1124 can also be used to run only one application at the same time. For example, in another exemplary embodiment of the present invention, when the user sets the position of the selection switch (10) to the second position, the guidance of the field type ι 24 24 is corrected in the operating system 1122 before the second program m is operated. - Whether the application 182 has been run. Further, when the formula 2 has been operated, the pilot program 1124 terminates the operation of the f 182 and then operates the second application (8). On the other hand, when the user sets the position of the selection switch m to the first position, the guidance mode im determines whether the second application 184 has been operated in the operating system 1122 before running the first application in. And, when the second = program m has been run, the pilot program 1124 terminates the operation of the second application 184 and then runs the first application (8). . In the present exemplary embodiment, the pilot program 1124 pre-running on the host system 1100 is pre-stored in the built-in storage device 112A. However, this is not limited to this. For example, in another exemplary embodiment of the present invention, the guide type 1124 and the automatic execution of the guide program U24 for automatic operation 16 201203116 χ «χ ^ ^J10-0007 34464twf.doc/n file (for example, 'floor A description of the name "quoting "Automn.inf," will be stored in the partition 18 of the brotherly memory module 106, and the memory controller 104 will simulate the partition as a disc partition. That is, when the user couples the memory storage device 1 to the host system '1' and the host system 1 丨 (9) to the external memory storage device 1 to ask for its media characteristics, the memory The management circuit 202 will report the partition to the host system 1100 as a disc partition. Thereafter, the operating system • 1122 automatically operates the automatic execution file stored in the divided area 180, and the operated automatic execution target automatically runs the guidance program 1124 in the operating system 1122. Therefore, in this exemplary embodiment, the navigation program 1124 does not need to be stored in the built-in storage device 112A in advance. The host interface 204 is coupled to the memory management circuit 2〇2 and is configured to receive and identify the instructions and data transmitted by the host system 1100. That is to say, the instructions and data transmitted by the host system 1100 are transmitted to the 6 memory management circuit 202 through the host interface 204. In the present exemplary embodiment, the host interface 204 is the USB interface of the corresponding connector 102. However, it must be understood that the present invention is not limited thereto, and the host interface 2〇4 may be other suitable plug and play data transmission interfaces. The memory interface 206 is coupled to the memory management circuit 2〇2 and is used to access the _δ memory module 1〇6. That is, the data to be written to the memory module 106 is converted to a format acceptable to the memory module 106 via the memory interface 206. ☆ / In an exemplary embodiment of the invention, the memory controller 1〇4 further includes a buffer memory 252. The buffer memory 252 is connected to the memory management power 201203116 --------- 34 7 34464 twf.doc / n 202 and is used to temporarily store data and instructions from the host system 11 或 or Information from the memory module 106. For example, the selection flag described above is stored in the buffer memory 252. In an exemplary embodiment of the invention, the memory controller 1〇4 further includes a power management circuit 254. The power management circuit 2S4 is lightly connected to the memory management circuit 202 and is used to control the source of the external memory storage device. In an exemplary embodiment of the invention, the memory controller further includes an error checking and correction circuit 256. Error checking and correction circuit 256 is coupled to memory management circuit 202 and is used to perform an error checking and correction procedure to ensure the correctness of the data. Specifically, when the memory management circuit 2〇2 receives a write command from the host system, the error check and correction circuit 256 generates a corresponding error check for the data corresponding to the write command.

查與校正碼(Error Checking and Correcting Code,ECCError Checking and Correcting Code (ECC)

Code)’並且§己憶體管理電路202會將對應此寫入指令的資 料與對應的錯誤檢查與校正碼寫入至記憶體模組1〇6中。 之後,當記憶體管理電路202從記憶體模組106中讀取資 料時會同時讀取此資料對應的錯誤檢查與校正碼,並且錯 誤杈查與校正電路256會依據此錯誤檢查與校正碼對所讀 取的資料執行錯誤校正程序。 圖5是根據本發明範例實施例所繪示的應用程式執行 方法的流程圖。 請參照圖5,步驟S501為在外接式記憶體儲存裝置 1 〇〇中配置可被設定於多.個運作模式其中之—的選擇開關 18 2012〇3Π6_7 34464_/η 108。在此,選擇開關ι〇8之運作模式的數目可根據欲 於記憶體儲存裝置100中的應用程式的數目而定,其中: 一運作模式會各別地對應其中一個應用程式。 、母 步驟S503為在主機系統11〇〇的作業系統1122 轉導引程式1124。·之後,步驟S5〇5為將外接式記情 存裝置100祕至主機系統1100。值得一提岐 程式II24是儲存於外接式儲存裝置刪之模擬光 區的例子中,導引程式1124是在外接式記憶體健存裝置 1〇〇被麵接至主機系統1100之後才被運轉於作業系統^ 中。 ’ 在步驟S507中記憶體控制器2〇4會偵 ,處的目前運作模式並絲選職標敎為此目#前^8 式,。標記選擇旗標的方式已描述如上,在此不再重複、 之後,在步驟SM)9中導引程式1124向外 =裝置請求選擇旗標並從記憶體控制器綱中接收i擇 然後,在步驟灿中導引程式112 作業系統1122中運轉對應的應用程 r重裝新置二::選擇旗標或者偵二= 重新输至域錢11啊向記__置漏再 19 201203116 r〇rj^-AV/ivi-0007 34464twf.doc/n 記憶 次請求選擇旗標’同時根據旗標的變動來運轉儲 體儲存裝置100中對應的應用程式。 子於 综上所述’本發明範例實施例的應用程式執-、 系統能夠根據選擇開關的位置自動地執行儲存於2方法與 存裝置的多個應用程式,由此可讓使用者於無輪入體儲 置的主機系統中運轉儲存於記憶體儲存裝置的特定 雖然本發明已以實施例揭露如上,然其並非用以限定 本發明,任何所屬技術領域中具有通常知識者,在不 本發明之精神和範圍内,當可作些許之更動與潤飾,故本 發明之保護範圍當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 圖1是根據本發明第一範例實施例所繪示的應用程式 執行系統的概要方塊圖》 圖2是根據本發明範例實施例所繪示的電腦、輪入/ 輸出裝置與快閃記憶體儲存裝置的示意圖。 圖3是根據本發明範例實施例所繪示的記憶體控制器 的概要方塊圖。 圖4是根據本發明範例實施例所繪示之主機系统自動 地運轉儲存於外接式記憶體儲存裝置之應用程式的流程 圖。 圖5是根據本發明範例實施例所繪示的應用程式執行 方法的流程圖。 20 201203116 ror^olO-0007 34464twf.doc/n 【主要元件符號說明】 1000 :應用程式執行系統 1100 :主機系統 1110 :電腦主機 1112 :中央處理器單元 1114 :主記憶體 1116 :系統匯流排 I 1118:資料傳輸介面 1120 :内建式儲存裝置 1122 :作業系統 1124 :導引程式 1150 :輸入/輸出裝置 100 :外接式記憶體儲存裝置 102 :連接器 104記憶體控制器 106 :記憶體模組 # 108 :選擇開關 180 :分割區 182 :第一應用程式 184 :第二應用程式 2202 :滑鼠 2204 :鍵盤 2206 :顯示器 2208 :印表機 21The code management node 202 writes the data corresponding to the write command and the corresponding error check and correction code to the memory module 1〇6. After that, when the memory management circuit 202 reads the data from the memory module 106, the error check and correction code corresponding to the data is simultaneously read, and the error check and correction circuit 256 checks the error check code and the correction code pair. The read data performs an error correction procedure. FIG. 5 is a flowchart of an application execution method according to an exemplary embodiment of the present invention. Referring to FIG. 5, step S501 is to configure a selection switch 18 2012〇3Π6_7 34464_/η 108 which can be set in one of the plurality of operation modes in the external memory storage device 1 . Here, the number of modes of operation of the selection switch 〇8 may be determined according to the number of applications to be used in the memory storage device 100, wherein: one mode of operation corresponds to one of the applications. The parent step S503 is to transfer the program 1124 to the operating system 1122 of the host system 11 . Then, in step S5〇5, the external type memory device 100 is secreted to the host system 1100. It is worth mentioning that the program II24 is stored in an example of the analog optical zone deleted by the external storage device. The booting program 1124 is operated after the external memory storage device 1 is connected to the host system 1100. In the operating system ^. In step S507, the memory controller 2〇4 will detect the current mode of operation and select the job title for this purpose. The manner of marking the selection flag has been described above, and is not repeated here. Thereafter, in step SM), the guidance program 1124 outwards = the device requests the selection flag and receives the selection from the memory controller, then in the step Canzhong pilot program 112 operating system 1122 running corresponding application r reloading new two:: select flag or detect two = re-transfer to domain money 11 ah Xiangji __ leaking again 19 201203116 r〇rj^ -AV/ivi-0007 34464twf.doc/n The memory request request flag 'at the same time, the corresponding application in the storage device 100 is operated according to the change of the flag. In the above, the application of the exemplary embodiment of the present invention can automatically execute a plurality of applications stored in the method and the storage device according to the position of the selection switch, thereby allowing the user to have no round. The present invention has been disclosed in the embodiment of the present invention. The present invention has been disclosed in the above embodiments. However, it is not intended to limit the present invention, and any one of ordinary skill in the art does not. In the spirit and scope of the invention, the scope of protection of the invention is defined by the scope of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic block diagram of an application execution system according to a first exemplary embodiment of the present invention. FIG. 2 is a diagram showing a computer and a wheel input/output device according to an exemplary embodiment of the present invention. Schematic diagram of a flash memory storage device. FIG. 3 is a schematic block diagram of a memory controller according to an exemplary embodiment of the invention. 4 is a flow diagram of an application system for automatically operating a host system stored in an external memory storage device according to an exemplary embodiment of the invention. FIG. 5 is a flowchart of an application execution method according to an exemplary embodiment of the present invention. 20 201203116 ror^olO-0007 34464twf.doc/n [Key component symbol description] 1000 : Application execution system 1100 : Host system 1110 : Computer host 1112 : Central processor unit 1114 : Main memory 1116 : System bus I 1118 : Data transmission interface 1120 : Built-in storage device 1122 : Operating system 1124 : Guidance program 1150 : Input / output device 100 : External memory storage device 102 : Connector 104 Memory controller 106 : Memory module # 108: selection switch 180: partition 182: first application 184: second application 2202: mouse 2204: keyboard 2206: display 2208: printer 21

201203116 X t^X X V .0007 34464twf.doc/n 2210 :隨身碟 2212:固態硬碟 202 :記憶體管理電路 204:主機介面 206 :記憶體介面 252 :緩衝記憶體 254 :電源管理電路 256 :錯誤檢查與校正電路 S401、S403 :運轉應用程式的步驟 S501、S503、S505、S507、S509、S511 :運轉應用程 式的步驟201203116 X t^XXV .0007 34464twf.doc/n 2210: USB flash drive 2212: Solid state hard disk 202: Memory management circuit 204: Host interface 206: Memory interface 252: Buffer memory 254: Power management circuit 256: Error check And correction circuits S401 and S403: steps S501, S503, S505, S507, S509, and S511 of operating the application: steps of operating the application

Claims (1)

/10-0007 34464twf.doc/n 201203116 七、申請專利範面·· 業系運 記憶體模財㈣做用程;^接/記賴儲存裝置之一 在該外接式式執行方法包括·· :,開_接至該外接式記憶體職置的一 制選擇開關可被設定於多個運作模式其中 母一該些運作模式各別地對應該些應用程式的其中之i· =該外接式域贿存裝置輪线主機系統;, 祚射? §己憶體控制器偵測該選擇開關所處的-目前運 =式並且將1擇旗標標記為該目前運倾式,复2 目則運作模式為該些運作模式的其中之一; /、以 於該主機系統運轉一導引程式; 漏2導引程式向該外接式記憶體儲存裝置請求該選 擇旗標並從該記憶體控制器中接收該選擇旗標;以及、 由該導引程式根據該選擇旗標於該作業系統 對應該目前運作模式的應用程式。 母轉 2.如申請專利範圍第丨項所述之應用程式執行方法, 其中該些應甩程式包括一第一應用程式與一第二 用程式,該些運作模式包括對應該第一應用程式的一^二 運作模式與對應該第二應用程式的一第二運作模式, 其中由s亥導引程式根據該選擇旗標於該作業系統 運轉對應該目前運作模式的應用程式的步驟包括: 當該目前運作模式為該第一運作模式時,由該導弓丨程 23 ,Ό007 34464twf.doc/n 201203116 式於該作業系統中運轉該第一應用程式;以及 當該目前運作模式為該第二運作模式時,由 式於該作業系統中運轉該第二應用程式。 3.如中請專職圍第2項所述之勒程式執行方 法’更包括: ^該導引程式於該作業系統中運轉該第—應用程 ^之則判斷在該作業祕中該第二應用程式是否已被運 轉,以及 虽在該作業系統巾該第二助程式已被運轉時由該 導引程式於該作業系統中終止該第二應用程式。 4·如申請專利範圍第1項所述之應用程式執行方 ί媒if由該導引程式向該外接式記憶體儲存裝置請求該 擇旗標並從該記憶體控制器中接收該選擇旗標的步驟包 枯· ,該導引程式職地向該外接式域贿存裝 求5〜擇旗標並從該記憶體控制器中接收該選擇旗_ / 法,^包如括申請專利範圍第1項所述之應用程式“方 番仏由該導5丨程式制該外接式記髓儲存裝置是不、dr 重新轉接至該主機系統;以及 子褒置疋否破 統時當料裝置被錢输至該主機季 擇置請求該選 •如申叫專利乾圍第1項所述之應用程式執行方法 201203116 ror^-^υ 10-0007 34464twf.doc/n 更包括: 將該記憶體模組邏輯地分割為一分割區,並且將該分 割區模擬為一光碟分割區;以及 將一自動執行播、該導引程式與該些應用程式儲存至 該分割區中,其中該自動執行檔用以自動地執行該導引程 式’/10-0007 34464twf.doc/n 201203116 VII. Application for patents · · Industry system memory (4) for use; ^ Connected/remembered storage device in the external implementation method including: · , the open-connected to the external memory device, the one-system selection switch can be set in a plurality of operating modes, wherein the parent operating mode corresponds to each of the applications i. = the external domain Bribe storage device wheel host system;, 祚射? § The memory controller detects the current mode of the selection switch and marks the 1st flag as the current mode, and the mode 2 is one of the modes of operation; So that the host system runs a boot program; the leak 2 guide program requests the selection flag from the external memory storage device and receives the selection flag from the memory controller; and The program selects the application corresponding to the current operating mode of the operating system according to the selection flag. The application execution method as described in the application of the patent application, wherein the application program comprises a first application and a second application, the operation modes including corresponding to the first application a second mode of operation and a second mode of operation corresponding to the second application, wherein the step of operating the application corresponding to the current mode of operation according to the selection flag according to the selection flag comprises: when When the current mode of operation is the first mode of operation, the first application is run in the operating system by the guide bow process 23, Ό007 34464twf.doc/n 201203116; and when the current mode of operation is the second mode of operation In the mode, the second application is run by the operating system. 3. If the application execution method described in item 2 of the full-time division is further included: ^ The guidance program runs the first application in the operating system, and then determines the second application in the operation secret. Whether the program has been run, and the second application is terminated in the operating system by the boot program while the second system has been run. 4. The application executor as described in claim 1 of the patent application, wherein the guide program requests the selection flag from the external memory storage device and receives the selection flag from the memory controller. The step of the package is dry, the guide program to the external domain bribes to find the 5 flag and select the flag from the memory controller _ / method, ^ package, including the scope of patent application The application described in the article "Fang Fanyu is not connected to the host system by the program 5," and the dr is re-transferred to the host system; The application to the host season is requested to be selected. • The application execution method described in the first paragraph of the application patent 201203116 ror^-^υ 10-0007 34464twf.doc/n further includes: Logically divided into a partition, and the partition is simulated as a disc partition; and an automatic execution broadcast, the boot program and the applications are stored in the partition, wherein the automatic execution is used Automatically execute the guide program' 其中當該外接式記憶體儲存裝置耦接至該主機系統 時該自動執行檔會被該作業系統自動地運轉。 7. —種應用程式執行系統,用以在一作業系統中自動 地運轉多個應用程式,該應用程式執行系統包括: 一主機系統,具有一内建式儲存裝置,其中該内建式 儲存裝置安裝有該作業系統並且—料㈣被運轉於該作 業系統中;以及 一外接式記憶體儲存裝置,包括: 一選擇開關,其中該選擇開關可被設定於多個運 作模式其中之一並且每一該些運作模式各別地對應 該些應用程式的其中之一; 〜 一連接器,用以耦接至該主機系統; 一記憶體模組,儲存該些應用程式;以及 一記憶體控制器,耦接至該選擇開關、該記憶體 模組與該連接H ’其中該記憶體控制㈣以彳貞測該選 擇開關所處的一目前運作模式並且將一選擇旗標標 記為該目前運作模式,其中該目前運作模式為該= 些運作模式的其中之一, 25 201203116 7 * w v ·0007 34464twf.doc/n 其中當斜接式記㈣贿裝置_至該主機系统 時’該導引程式向該外接式記憶體儲存震置請求 標並從該記憶體控制器中接收該選擇旗標, Λ、 其中該導引程式根據簡擇旗標於該 轉對應該目前運作模式的應用程式。 -系統1τ迷 8·如申請專利範圍第7項所叙_程式 其中該些應用程式包括一第一應用程式與'二應 些運作模式包括對應該第-應用程式的t二 運作模式與對應該第二應用程式的一第二運作$第 程式模式為該第一運作模式‘㈣^ 程式於該作業糸統中運轉該第一應用程式, 程式;:;=:?:::;:模式時,該導引 r判斷在該物統4第:應== 時,統+該第二應用程式已被運轉 Γ〇 作業系統中終止該第二應用程式。 .如申切專利範圍第8項所述之應用 ί該二式週期地向該外接式記憶體儲;裝】請 °Χ、擇旗“並從該記憶體控制H巾接收該選擇旗標。 統,如申m專利fe圍第8項所述之應用程式執行系 26 tv) 10-0007 34464twf.doc/n 201203116 其中該導引程式更用以偵測該外接 置是否被㈣_至齡機純,紅⑽體储存裝 當該外接式記憶贿存裝置被重新 統時、,該料程式向該外接式記憶體儲存裝置請== 旗標並從該記憶體控制器中接收該選擇旗標。5、 二如申請專利範圍第8項所述之“行 統,其中該記憶體模組包括一分利區,飞钒仃系 動執行檔、該導引程式與祕料程儲存一自 以自動地執行該^丨料應祕式其中該自動執行 區,其中該記紐控㈣將該分模擬為—光碟分割 其中當該外接式記憶體儲存裝置輕接至 時該自動執行槽會被該作業系統自動地運轉。〃機糸統 13. _種朗程式執財法,驗在_ 作業系統中自動地運轉儲存於—外接式 =統的一 :記憶體模組中的多個應用程式,該應用;式4= 當該外接式記㈣存裝置減至魅 該主機系敎動請求該外接式記㈣料 ^時’由 開關的一運作模式;以及 得适一選擇 由該主機系統依據該選擇開關的該運作 些應用程式的其中之一。 、式執行該 14. 一種外接式記憶體儲存裝置,包括: 一連接器’用叫接至—主機系統; 27 201203116 X iJl 1 V -0007 34464twf.d〇c/n 。…愚旺供組,两什後致個應用程式; ^擇開關,可被設定於多個辦_料# 母一該些運作模式各別地對應該些應用程式 的其中之一;以及 心Γ記紐?制器’输至該選擇_、該記憶體 、、且與該連接^,其㈣記,隨控㈣肖則貞測該選 擇開關所設定的運作模式; 其中當該外接式記憶_存裝置输至該主機系統 姐’該外料記憶贿存裝置料該純倾紅中該選 擇開關被設定的-運作模式至該主機系統,藉此,該主機 糸統運轉對應被設定的該運作模式的該些應用程式的其中 一 〇The automatic execution file is automatically operated by the operating system when the external memory storage device is coupled to the host system. 7. An application execution system for automatically running a plurality of applications in an operating system, the application execution system comprising: a host system having a built-in storage device, wherein the built-in storage device The operating system is installed and the material (4) is operated in the operating system; and an external memory storage device comprises: a selection switch, wherein the selection switch can be set in one of a plurality of operating modes and each The operating modes are respectively corresponding to one of the applications; a connector for coupling to the host system; a memory module for storing the applications; and a memory controller, Coupled to the selection switch, the memory module and the connection H' wherein the memory control (4) is to detect a current mode of operation in which the selection switch is located and mark a selection flag as the current mode of operation, The current mode of operation is one of the modes of operation, 25 201203116 7 * wv ·0007 34464twf.doc/n where the slanting type (four) bribe When the system is set to the host system, the boot program stores a shock request flag to the external memory and receives the selection flag from the memory controller, wherein the guide program is based on the simple selection flag This is the application that should be in the current mode of operation. - System 1τ fans 8 · As described in the scope of application for patent application No. 7, the applications include a first application and the 'two operating modes including the corresponding two-operation mode of the application-- A second operation of the second application, the first program mode is the first operation mode '(4)^ program runs the first application in the operation system, the program;:;=:?:::;: mode The guide r judges that when the system 4: should ==, the second application has been operated, and the second application is terminated in the operating system. According to the application of the eighth aspect of the patent application, the two types periodically store the external memory; the device selects the flag and receives the selection flag from the memory control H towel. System, such as the Application Execution Department of the 8th item of the application of the patent, 26 tv) 10-0007 34464twf.doc/n 201203116 The guide program is used to detect whether the external connection is (4) _ to the age machine Pure, red (10) storage device When the external memory storage device is re-organized, the program sends a == flag to the external memory storage device and receives the selection flag from the memory controller 5. The application system of the eighth aspect of the patent application, wherein the memory module includes a distribution area, the flying vanadium crucible is activated, the guiding program and the secret storage are stored. Automatically executing the automatic execution area, wherein the key control (4) simulates the minute as a disc division, wherein the automatic execution slot is when the external memory storage device is lightly connected The operating system operates automatically. 〃 糸 13 13 13 13 13 程式 程式 程式 程式 程式 程式 程式 程式 程式 程式 程式 程式 程式 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业 作业When the external type (four) storage device is reduced to the charm of the host system, the external mode (four) material is requested to be 'operated by the switch'; an appropriate mode is selected by the host system according to the operation of the selection switch One of the applications. Execution of the method 14. An external memory storage device comprising: a connector 'connected to the host system; 27 201203116 X iJl 1 V -0007 34464twf.d〇c/n. ... 愚旺 for the group, two later to an application; ^ select switch, can be set to multiple _ material # mother one of these modes of operation respectively correspond to one of these applications; and heart The button controller enters the selection _, the memory, and the connection ^, the (four) record, and the control (four) xiao test the operation mode set by the selection switch; wherein when the external memory _ The device is sent to the host system, the external storage memory bribe device, the pure red, the selection switch is set to the operation mode to the host system, whereby the host system operation corresponds to the set operation mode One of the applications of these applications 2828
TW099122523A 2010-07-08 2010-07-08 Method and system for executing application programs TWI507986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099122523A TWI507986B (en) 2010-07-08 2010-07-08 Method and system for executing application programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099122523A TWI507986B (en) 2010-07-08 2010-07-08 Method and system for executing application programs

Publications (2)

Publication Number Publication Date
TW201203116A true TW201203116A (en) 2012-01-16
TWI507986B TWI507986B (en) 2015-11-11

Family

ID=46756320

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099122523A TWI507986B (en) 2010-07-08 2010-07-08 Method and system for executing application programs

Country Status (1)

Country Link
TW (1) TWI507986B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI273422B (en) * 2005-06-24 2007-02-11 Wen-Bin Chen Portable device capable of switching access modes and system thereof
TW200807434A (en) * 2006-07-21 2008-02-01 Ours Technology Inc USB storage apparatus and method of switching the media types
TWI373045B (en) * 2008-01-07 2012-09-21 Phison Electronics Corp Flash memory storage apparatus, flash memory controller and switching method thereof

Also Published As

Publication number Publication date
TWI507986B (en) 2015-11-11

Similar Documents

Publication Publication Date Title
US9021178B2 (en) High performance path for command processing
JP5170055B2 (en) Processing method, storage system, information processing apparatus, and program
US8271706B2 (en) Stabilization of host to storage subsystem ownership
KR102020466B1 (en) Data storage device including a buffer memory device
KR101547317B1 (en) System for detecting fail block using logic block address and data buffer address in storage test device
US8897092B2 (en) Memory storage device, memory controller and controlling method
JP2006031579A5 (en)
KR20120132820A (en) Storage device, storage system and method of virtualizing a storage device
KR20100039182A (en) Solid state disk, computing system including the same and operating method thereof
JP2005190187A (en) Storage device
KR20140119679A (en) Storage device, controller, and recording medium
KR20190083148A (en) Data storage device and operating method thereof and data process system containing the same
US9870162B2 (en) Method to virtualize PCIe controllers to support boot/hibernation/crash-dump from a spanned virtual disk
KR20210098717A (en) Controller, operating method thereof and storage device including the same
US20100180080A1 (en) External storage device having a self-contained security function
US8826461B2 (en) Method and system for protecting data, storage device, and storage device controller
JP2006338345A (en) Virtual tape library device, virtual tape library system and virtual tape writing method
CN104133640B (en) From the fast quick-recovery of dormancy
TWI582599B (en) Data transimitting method, memory controller and data transmitting system
US20190138473A1 (en) Semiconductor devices including command priority policy management and related systems
TW201203116A (en) Method and system for executing application programs
KR101152108B1 (en) Hybrid hard disk drive apparatus and read/write control method thereof
KR102213665B1 (en) Memory card and storage system having authentication program and method for operating thereof
KR102423278B1 (en) Memory system and operating method thereof
US8595417B2 (en) Memory configuring method, memory controller and memory storage apparatus