Μ濟部中央搮準局員工消费合作社印装 323350 A7 ______B7____ 五、發明説明(1 ) 發明領域 本發明係關於操作電源之一種裝置及方法,主要是用於 一電腦系統,且特別是一種裝置及方法藉此可管理電腦系 統之電源,其中該電腦系統具有多個可同時操作之週邊裝 置,而如此之該等裝置所消耗之電源總數不會ϋ一預定 之臭量。 發明背景敘述 一般而言,以一電腦系統其允許由多個週邊裝置同時執 行多個工作,如此之遇邊裝置係獨立控制的,且藉由這些 週邊裝置提供工作同時執行之電源總數爲當執行時每個週 邊裝置所消耗之最大電源總數。 例如,對於一電腦系統而言,磁碟機(floppy disk)及CD-R0M驅動器亦包含爲遇邊裝置的一部分,用於電源的電源 供應能力設定爲等於磁碟機操作及CD-ROM驅動器操作所 要求之最大電源總數《此目的是爲了防止在所有可允許操 作情沉下電源之超載。然而在一般操作情沉下,兩遇邊裝 置之最大電源消耗通常不會同時發生,導致電源沒有被有 效地運用。再者,電源消耗是如此的大以致於干擾所欲減 少之所有的電腦系統之大小及比重。 發明目的 因此,本發明目的之一爲由控制週邊裝置之工作執行提 供有效的電源使用,以相應每個工作所要求的電源並達到 改進上述之缺點。 (210X297公釐) nl裝— (請先》讀t面之注意事項再填寫本頁) 訂 A7 B7 經濟部中央橾準局I工消费合作社印11 五、發明説明(2 ) 發明概述 爲了完成本發明,介紹一種包括多個週邊裝置及裝置程 式之電腦系統,介紹一種電腦系統,該電腦系統包括多個 週邊裝置及對遇邊裝置開放之多個裝置程式,其具有 種仵列控制程式"(queue control program),用於管理由一 些裝置程式所產生之執行要求,及2)—種"先進先出緩衝 ^M(FIF0 buffer),用以儲存由佇列控制程式所接收之執行 要求。所有控制程式所產生之要求係储存於缓衝器中且仔 列控制程式管理,該佇列控制程式從FIFO中取出該等要求 以與所接收的命令一致。祇有在用於處理新的要求及用於 目前執行的要求之所要求之電源總數比可用之最大電源小 時’佇列控制程式驅使新的要求至裝置程式以處理。當電 源總數超過可消耗之最大電源時,並不進一步要求處理, 佇列控制程式將該要求列爲等待狀態y將其儲存於佇列中 〇 較佳實施例敘述 本發明之實施例敘述以下將參考伴随圖式而説明之。 A. 個人電腦系統(圓〇 B. 硬體配置,個人電腦系統(圖2) C. 多媒體盒及PC卡(圖3) D. 裝置程式及佇列控制程式(圈4) E. 程式操作概述(圈5) F. 佇列控制程式操作(圖6) G. 個人裝置之消耗電源(圖7) -5 表紙張尺度適用中國國家標準(CNS ) A4规格(210X297公簸) (請先聞讀背面之注意事項再填寫本頁) :裝· -訂 A7 B7 323350 五、發明説明(3 ) Η·本發明之操作範例(圖8) 本配置説明由於方便起見,而且筆記型電腦已爲主要廣 泛使用之電腦型態故以其爲例説明,但卻不限定祇能用於 筆記型電腦’本發明亦可適用於桌上型、直立型及其他電 腦型式。 Α.個人電腦系統(囷1) 圖1顯示用於本發明之完整的電腦系統。電腦系統之主 體1可爲一可搞式電腦,如所述,一桌上型、或其他型式 PC,或一工作站》電腦系統1包括一鍵盤2,作爲一輸入 字元等用之裝置,一液晶顯示板3,作爲一輸出字元與圖 形之裝置,及擴音器9,作爲一輸出聲音之裝置。某些電 腦系統標準上具有一作爲輸入影像裝置之視頻照相機。 如所示之一多媒體盒11,其可由連接纜線8末端之 PCMCIA卡10連接至電腦系統之主體。多媒體盒^中具有 -CD-ROM驅動器5、一軟式磁碟機驅動器(FDD) 6、一硬 式磁碟機駔動器(HDD) 7。由於多媒體盒11沒有自己的電 源供應電路,多媒體盒11所需要的電源係經由PCMCIA卡 10及纜線8供應》 B.硬體配置,個人電腦系統(圖2) 圖2爲一方塊圖,其顯示一通常建構於一配置於圈1筆記 型電腦中之主機板(平板)之邏輯電路。在最近的電腦系統 中,多個匯流排供以連接具有不同處理速度之裝置,且該 等電路,或稱之爲匯流排橋(bus bridges),與這些匯流排 通訊並執行其間的協定轉換。圖2中,如此之匯流排之基 -6 - 本紙張尺度逋用中國國家標準(CNS ) A4規格(210Χ297公釐) (請先聞讀背面之注意事項再填寫本頁) 訂 經濟部中央橾準局負工消费合作社印11 經濟部中央標率局負工消费合作社印装 A7 B7 五、發明説明(4 )Printed and printed by 323350 A7 ______B7____ of the Employee Consumer Cooperative of the Central Department of Economics, Ministry of Economic Affairs 5. Description of the invention (1) Field of the invention The present invention relates to a device and method for operating a power supply, which is mainly used in a computer system, and in particular a device and The method can thereby manage the power supply of the computer system, wherein the computer system has a plurality of peripheral devices that can be operated simultaneously, and the total power consumed by such devices will not be a predetermined amount of odor. BACKGROUND OF THE INVENTION Generally speaking, a computer system allows multiple peripheral devices to perform multiple tasks at the same time. In this case, the edge devices are independently controlled, and the total number of power supplies provided by these peripheral devices for simultaneous execution is the current The maximum total power consumed by each peripheral device. For example, for a computer system, the floppy disk and CD-ROM drive are also included as part of the edge device, and the power supply capacity for the power supply is set equal to the operation of the drive and the operation of the CD-ROM drive The maximum total number of power supplies required is intended to prevent overloading of the power supply in all permissible operating conditions. However, under normal operating conditions, the maximum power consumption of the two-sided device usually does not occur at the same time, resulting in the power supply not being effectively used. Furthermore, the power consumption is so large that it interferes with the size and proportion of all computer systems that you want to reduce. OBJECT OF THE INVENTION Therefore, one of the objects of the present invention is to provide effective power supply by controlling the execution of work of peripheral devices, so as to correspond to the power required for each work and achieve the improvement of the aforementioned disadvantages. (210X297mm) nl equipment — (please read "Notes on t-face first and then fill in this page") Order A7 B7 Printed by the Central Bureau of Economics, Ministry of Economic Affairs, I Industrial and Consumer Cooperatives 11 V. Description of Invention (2) Summary of Invention In order to complete this The invention introduces a computer system including a plurality of peripheral devices and device programs, and introduces a computer system including a plurality of peripheral devices and a plurality of device programs open to a border device, which has a queue control program " (Queue control program), used to manage the execution requests generated by some device programs, and 2)-"First-in-first-out buffer ^ M (FIF0 buffer), used to store the execution requests received by the queue control program . The requests generated by all control programs are stored in the buffer and managed by the control program. The queue control program takes these requests from the FIFO to be consistent with the received commands. Only when the total number of power supplies required for processing new requests and for currently executing requests is less than the maximum power available 'queue control program drives new requests to the device program for processing. When the total number of power supplies exceeds the maximum power that can be consumed, no further request processing is performed. The queue control program lists the request as a waiting state y and stores it in the queue. DESCRIPTION OF THE PREFERRED EMBODIMENTS Refer to the accompanying drawings for explanation. A. Personal computer system (circle 〇B. Hardware configuration, personal computer system (Figure 2) C. Multimedia box and PC card (Figure 3) D. Device program and queue control program (circle 4) E. Overview of program operation (Circle 5) F. Queue control program operation (Figure 6) G. Power consumption of personal device (Figure 7) -5 Table paper scale is applicable to China National Standard (CNS) A4 specification (210X297 bumps) (please read first Note on the back and then fill out this page): Install · -book A7 B7 323350 5. Description of the invention (3) Η · The operation example of the present invention (Figure 8) This configuration description is for convenience, and the notebook computer has been the main The widely used computer type is described as an example, but it is not limited to notebook computers. The present invention can also be applied to desktop, upright, and other computer types. Α. Personal computer system (囷 1 ) FIG. 1 shows a complete computer system used in the present invention. The main body 1 of the computer system may be a portable computer, as described above, a desktop or other type of PC, or a workstation. The computer system 1 includes a Keyboard 2, as a device for inputting characters, etc., a liquid crystal display 3. As a device for outputting characters and graphics, and a microphone 9 as a device for outputting sound. Some computer systems have a video camera as an input video device as standard. As shown in one of the multimedia boxes 11, It can be connected to the main body of the computer system by the PCMCIA card 10 at the end of the connecting cable 8. The multimedia box ^ has a -CD-ROM drive 5, a floppy disk drive (FDD) 6, a hard disk drive ( HDD) 7. Since the multimedia box 11 does not have its own power supply circuit, the power required by the multimedia box 11 is supplied through the PCMCIA card 10 and the cable 8. B. Hardware configuration, personal computer system (Figure 2) Figure 2 is a A block diagram showing a logic circuit usually constructed on a motherboard (tablet) configured in a notebook computer in Circle 1. In recent computer systems, multiple busbars are provided to connect devices with different processing speeds, and These circuits, or bus bridges, communicate with these busses and perform protocol conversions between them. In Figure 2, the basis of such busbars-6-This paper standard uses the Chinese national standard (CNS) A4 specification (210Χ297mm) (please read the precautions on the back and then fill in this page) Ordered by the Ministry of Economic Affairs, Central Bureau of Accreditation, the negative work consumer cooperative printed 11 The Ministry of Economic Affairs, Central Bureau of Standards, the negative work consumer cooperative printed A7 B7 5. Description of the invention (4)
本例子係顯示一CPU之區域匯流排212,其直接連接至一 CPU 202 PCI匯流排213及216,其相對的連接至高速遇邊 裝置,及一ISA匯流排221,一 PCMCIA藥流排219及一 IDE 匯流排217,其相對地連接至低速週邊装置。 囷2亦顯示一將CPU區域匯流排212連接至PCI匯流排213 之主電腦(host)橋接/記憶體控制電路2〇4 ’將PCI匯流排213 連接至ISA匯流排221的PCI-ISA匯流排橋式電路215 ’及一 將匯流排213連接至PCMCIA匯流排219之PCI-pCMCIA醒流 排 214。 再者,該等匯流排與多個其處理速度和匿流排速度相符 合之週邊裝置通訊。例如,最高速之CPU區域匯流排212 與CPU 202通訊,PCI匯流排213與一高速靖圖/視頻控制器 222通訊,且ISA匯流排221與一鍵盤控制器229通訊’一聲 頻控制器230及一超級I/O控制器231 (其爲一通用之1/0控 制器)通訊》 主電腦橋接/記憶體控制電路204,其不祇具有匯流排橋 接功能還具有記憶體控制功能,係藉由一記憶嫌資料緩衝 器205連接至一 BIOS ROM 206及一主記憶嫌RAM 207 ° 繪圖/視頻控制器222,其連接至PCI匯流排213 ’具有一 螢幕顯示視頻記憶體223。繪圖/視頻控制器222使用一數 位信號以經由一缓衝器224與一 LCD面板,經由一類比前 端(AFE) 225數位化來自一外部裝置之類視頻輸入,並特 徵化數位資料》 C·多媒體盒及pc卡(囷3) 本紙張尺度適用中國國家榇準(CNS ) A4规格(210X297公釐) (請先閱讀背面之注意事項再填寫本頁) 訂 經濟部中央橾率局月工消费合作社印笨 A7 ____ B7_ 五、發明説明(5 ) 圖3爲一方塊圖,顯示圓1之多媒體盒11之内部配置,其 亦爲本發明目的之一。一0〇-11〇]^瓜〇〇/?〇〇盒310係經由 界面連接至電腦系統。在此説明中,一廣泛使用於電腦中 之PCMCIA協調器係作爲界面之範例。因此在此情沉下, 一 PC卡300係連接至一電腦系統1之PCMCIA匯流排301,且 00-1101^/1100/?00盒310係經由一特定之匯流排308而連接 至該PC卡300。 PC卡300具有一 PCMCIA界面控制器302,其作爲電腦系 統1之PCMCIA匯流排301與特定匯流排308之間的界面°而 且在PC卡300中備有一用於資料匯流排之堪動器/接收器 303及一用於位址匯流排之驅動器304,二者皆與界面控制 器302作用。 由PCMCIA界面控制器302所協調之特定之匯流排308係 經由纜線8連接至CD-ROM/HDD/FDD盒310,且其尚經由一 。。-厌01^/1^。/卩00盒310内部之界面電路311連接至該等個 人裝置之控制器》 00-11〇]^/1100/?00盒310包括不同型式之儲存裝置,例 如,CD-ROM驅動器315,一硬式磁碟驅動器(HDD) 316’ 及一软式磁碟驅動器(FDD) 317。這些驅動器經由相應連 接界面電路311之連接器,即一 CD-ROM控制器312,一 HDD控制器313,及一 FDD控制器314,與界面電路311通 訊β D.裝置程式及佇列控制程式(圖4) 根據本發明之軟禮架構現將參考圖4加以説明。一如參 -8 - 本紙張又度適用中國國家榡準(CNS ) Α4规格(210X297公釐) (請先聞讀背面之注意事項再填寫本頁) 訂 A7 B7 經濟部中央搮率局貝工消費合作社印製 五、發明説明(β ) 考圈3所述,€0-1101^/1^0/?00盒310包括一[00 402,一 CD-ROM 404,及一HDD 406 〇對於每個實際裝置而言具有 相應之控制程式。一FDD控制程式401控制FDD 402之操作 ,一 CD-ROM控制程式403控制CD-ROM 404,且HDD控制 程式405控制HDD 406 » FDD控制程式401,而非FDD 402,作爲"FD窝入"要求及 "FD讀取"要求》 CD-ROM控制程式403,而非CD-ROM 404,作爲"CD-ROM讀取"要求》HDD控制程式405,而非HDD 406,作爲 ••HD寫入"及"HD 讀取"要求》 用於實際裝置之控制程式係由一系統程式400所控制, 例如一操作程式(OS),其通常發布執行要求以控制程式, 而不管其他控制程式現在是否正服務其他。換言之,當系 統程式發出程式給特定的控制程式時,例如:FDD控制程 式時,並不考慮是否有CD-ROM控制程式或HDD控制程式 目前正在服務一要求的情沉存在》 在另一方面,根據本發明,一佇列控制程式407預先準 備一表格,於其中當服務一要求時,輸入每個控制程式之 電源需求,即在此實施例中,備有如國7所示之表格,由 此佇列控制程式407控制至裝置控制程式之要求傳輸,其 中用於服務要求之電源消耗要求之總和(psum)不超過系統 電源之最大容量(Pinax)。在本發明中配置三個實際装置之 電源之最大容量(Pinax)爲800 mW。 E.程式操作概述(圈5) 9 [纸張適用中目固家棣準(cns )从腦_ ( 2⑴χ2.97公董) (請先《讀背面之注f項再填寫本頁) 訂 323350 A7 B7 五、發明説明(7 ) 佇列控制程式407及裝置控制程式401,403與405之操作 摘要將參考圖5加以説明。 首先,系統程式400傳送一要求至一相應之裝置程式(方 塊502) »接收要求之裝置程式重新傳送要求給佇列控制程 式407。佇列控制程式407循序地累積由佇列控制程式FIFO 緩衝器之個別裝置程式所接收之該等要求。 F.佇列控制程式操作(圖6) 佇列控制程式407之内部操作將參考囷6加以説明。在一 來自一裝置程式要求被暫存於FIFO緩衝器之後,程式控制 於進入點1佇列控制程式407。 於方塊601中,佇列控制程式407判別是否有一要求餘留 在FIFO緩衝器中。假若判別的結果爲否,則佇列控制程式 407繼續爲等待狀態直到由控制程式再啓動爲止。假若判 別的結果爲是,則佇列控制程式407拷貝一要求於FIFO緩 衝器之標頭。FIFO缓衝器之内容此時不更新。 經濟部中央標準扃貝工消費合作社印裝 <請先閲讀背面之注f項再填寫本頁) 於方塊603中,從FIFO拷貝之要求處理所需之電源(Pnew) 係由參考圓7之表格而獲得,且加至由目前被服務(Pnow) 之該等要求所需之電源總和。然後,Pnow與Pnew相加所 獲得之總和(Psum)與目標裝置(target devices)操作所配置之 最大電源(Pmax)比較。Psum超過Pmax時,方塊604之程式 控制&續地等待直到目前所服務之至少一要求被完成爲止 〇 當至少一要求之執行被完成,程式返回方塊601。 於方塊603中,假若比較的結果爲是,於方塊605中,由 ______-10- _ 本紙張尺度逋用中國國家揉準(CNS ) A4規格(210X297公釐) A7 B7 五、發明説明(8 ) FIFO中取出所拷貝之要求並更新FIFO之内容。 之後,於方塊606中,傳送所取出之要求至適當之目的 裝置程式,然後程式控制返回方塊601。在裝置程式完成 所接收要求之服務後,佇列控制程式407重新進入進入點2 ,之後並執行方塊604之程序。 如上所述,該等處理反覆地執行以操控多個要求。 H.本發明之操作範例(囷8) 經濟部中央揉準局負工消費合作社印装 (請先聞讀背面之注意事項再填寫本頁) 之前參考囷5與圖6所説明之裝置程式及佇列控制程式 407之例子現在將參考圖8加以敘明》首先在圖8之第一列 中,系統程式400發佈一 "FD讀取"要求。因爲在"FD讀取" 要求之前並無任何要求發佈,因此假設個別裝置皆於停止 (halt)狀態中。藉由參考囷7可發現,以一 200 mW之新的電 源配置服務"FD讀取"要求是需要的》因爲目前使用的電源 爲0 mW總和Psum,其由將新的電源配置Pnew加入目前消 耗的電源Pnow而獲得,200 mW + 0 mW = 200 mW »當200 mW係小於目前系統之最大電源容量800 mW時,在圖6之 方塊603判定結果爲是並傳送"FD讀取"要求至相應FDD之 控制程式401,其輪流控制FDD 402以與"FD讀取"要求一致 。在"FD讀取"要求由FDD 402服務之後,FDD控制程式401 將結果返回系統程式400。之後,終止處理順序。 在第二列時,系統程式400發佈一 "CD-ROM讀取"要求, 且由第一列執行之處理係由第二列重複。然而此時之處理 與前面的處理不同,因爲Pnow已爲200 mW。更特別的是 ,當在圖6之方塊603時判別已被執行,且Pnow因此爲200 -11 - 本紙張尺度適用中國國家橾準(CNS ) A4规格(210X297公釐) 第85107287號專利申請案 中文説明書修正頁(86年1月) A7 ,B7This example shows a CPU's regional bus 212, which is directly connected to a CPU 202 PCI bus 213 and 216, which is relatively connected to a high-speed edge device, and an ISA bus 221, a PCMCIA drug bus 219 and a The IDE bus 217 is relatively connected to the low-speed peripheral device. Fig. 2 also shows a PCI-ISA bus that connects the CPU area bus 212 to the PCI bus 213, a host bridge / memory control circuit 204, and connects the PCI bus 213 to the ISA bus 221 The bridge circuit 215 'and a PCI-pCMCIA wake-up bus 214 connecting the bus 213 to the PCMCIA bus 219. Furthermore, these busbars communicate with a number of peripheral devices whose processing speed and hidden busbar speed match. For example, the highest-speed CPU area bus 212 communicates with the CPU 202, the PCI bus 213 communicates with a high-speed Jingtu / video controller 222, and the ISA bus 221 communicates with a keyboard controller 229 'an audio controller 230 and A super I / O controller 231 (which is a general-purpose 1/0 controller) communication "main computer bridge / memory control circuit 204, which not only has the bus bridge function but also has the memory control function, by A memory data buffer 205 is connected to a BIOS ROM 206 and a main memory RAM 207 ° graphics / video controller 222, which is connected to the PCI bus 213 'and has a screen display video memory 223. The graphics / video controller 222 uses a digital signal to digitize the video input from an external device through an analog front end (AFE) 225 through a buffer 224 and an LCD panel, and characterize the digital data. C. Multimedia Box and pc card (囷 3) The paper size is applicable to China National Standard (CNS) A4 (210X297mm) (Please read the notes on the back before filling this page) Yinben A7 ____ B7_ V. Description of the invention (5) FIG. 3 is a block diagram showing the internal configuration of the multimedia box 11 of circle 1, which is also one of the purposes of the present invention. [0〇-11〇] ^ melon 〇〇 /? 〇〇 box 310 is connected to the computer system via the interface. In this description, a PCMCIA coordinator widely used in computers is used as an example of an interface. Therefore, in this situation, a PC card 300 is connected to the PCMCIA bus 301 of a computer system 1, and the 00-1101 ^ / 1100 /? 00 box 310 is connected to the PC card via a specific bus 308 300. The PC card 300 has a PCMCIA interface controller 302, which serves as the interface between the PCMCIA bus 301 and the specific bus 308 of the computer system 1 and an actuator / receiver for the data bus is provided in the PC card 300 A controller 303 and a driver 304 for the address bus, both of which interact with the interface controller 302. The specific busbar 308 coordinated by the PCMCIA interface controller 302 is connected to the CD-ROM / HDD / FDD box 310 via the cable 8, and it is still connected via a cable. . -Tired of 01 ^ / 1 ^. / That the interface circuit 311 inside the 00 box 310 is connected to the controller of these personal devices "00-11〇] ^ / 1100 /? The 00 box 310 includes different types of storage devices, for example, a CD-ROM drive 315, a hard type Disk drive (HDD) 316 'and a floppy disk drive (FDD) 317. These drivers communicate with the interface circuit 311 via connectors corresponding to the interface circuit 311, namely a CD-ROM controller 312, an HDD controller 313, and an FDD controller 314. D. Device program and queue control program ( Figure 4) The soft gift architecture according to the present invention will now be described with reference to Figure 4. As the reference -8-This paper is also applicable to the Chinese National Standard (CNS) Α4 specification (210X297 mm) (please read the notes on the back before filling this page) Order A7 B7 Ministry of Economic Affairs Printed by the Consumer Cooperative V. Description of Invention (β) As described in Exam Circle 3, € 0-1101 ^ / 1 ^ 0 /? 00 box 310 includes one [00 402, one CD-ROM 404, and one HDD 406. For each Each actual device has a corresponding control program. An FDD control program 401 controls the operation of the FDD 402, a CD-ROM control program 403 controls the CD-ROM 404, and the HDD control program 405 controls the HDD 406 »The FDD control program 401, not the FDD 402, serves as " FD nesting "; Requirements and " FD reading " requirements》 CD-ROM control program 403, not CD-ROM 404, as " CD-ROM reading " requirements》 HDD control program 405, not HDD 406, as • • HD writing " and " HD reading " requests " The control program used for the actual device is controlled by a system program 400, such as an operating program (OS), which usually issues execution requirements to control the program, and Regardless of whether other control programs are currently serving others. In other words, when the system program issues a program to a specific control program, for example: FDD control program, it does not consider whether there is a CD-ROM control program or HDD control program that is currently serving a request. The existence of a request exists. On the other hand, According to the present invention, a queue control program 407 prepares a table in advance, in which when a service is requested, the power requirement of each control program is entered, that is, in this embodiment, a table as shown in country 7 is prepared The queue control program 407 controls the transmission of requests to the device control program, where the sum of the power consumption requests (psum) used for service requests does not exceed the maximum capacity of the system power supply (Pinax). In the present invention, the maximum capacity (Pinax) of the power supply of the three actual devices is 800 mW. E. Overview of program operation (circle 5) 9 [Paper is applicable to Zhongmu Gujiadizhun (cns) Congnao_ (2⑴χ2.97 Director) (please first read the note f on the back and then fill in this page) Order 323350 A7 B7 5. Description of the invention (7) The operation summary of the queue control program 407 and the device control programs 401, 403 and 405 will be explained with reference to FIG. 5. First, the system program 400 sends a request to a corresponding device program (block 502) »The device program receiving the request retransmits the request to the queue control program 407. The queue control program 407 sequentially accumulates the requests received by the individual device programs of the queue control program FIFO buffer. F. Queue control program operation (Figure 6) The internal operation of the queue control program 407 will be described with reference to Figure 6. After a program request from a device is temporarily stored in the FIFO buffer, the program control queues the program 407 at entry point 1. In block 601, the queue control program 407 determines whether there is a request remaining in the FIFO buffer. If the result of the discrimination is no, the queue control program 407 continues to wait until it is restarted by the control program. If the result of the determination is yes, the queue control program 407 copies a header required in the FIFO buffer. The contents of the FIFO buffer are not updated at this time. Printed by the Ministry of Economic Affairs, Central Standard, Pui Kong Consumer Cooperative; < Please read Note f on the back and then fill out this page) In block 603, the power required for processing the request copied from the FIFO (Pnew) is determined by reference circle 7 The form is obtained and added to the sum of the power required by the requirements currently served (Pnow). Then, the sum (Psum) obtained by adding Pnow and Pnew is compared with the maximum power supply (Pmax) configured for the operation of the target device. When Psum exceeds Pmax, the program control of block 604 continues to wait until at least one request currently served is completed. When the execution of at least one request is completed, the program returns to block 601. In block 603, if the result of the comparison is yes, in block 605, the Chinese paper standard (CNS) A4 specification (210X297 mm) is used from ______- 10- _ the paper size A7 B7 V. Description of invention ( 8) Take out the copied request from FIFO and update the content of FIFO. Then, in block 606, the retrieved request is sent to the appropriate destination device program, and then program control returns to block 601. After the device program completes the service requested, the queue control program 407 re-enters entry point 2 and then executes the process of block 604. As mentioned above, these processes are performed repeatedly to manipulate multiple requirements. H. Operational example of the present invention (囷 8) Printed by the Consumer Cooperative of the Central Bureau of Economic Development of the Ministry of Economic Affairs (please read the precautions on the back and then fill out this page) The example of the queue control program 407 will now be described with reference to FIG. 8. First, in the first column of FIG. 8, the system program 400 issues a " FD read " request. Since there is no request to issue before the "quote for FD read" request, it is assumed that individual devices are in a halt state. It can be found by referring to Fig. 7 that a new power configuration service of "200 mW" "FD reading" is required. "Because the current power supply is 0 mW sum Psum, it is added by adding the new power configuration Pnew The current power consumption Pnow is obtained, 200 mW + 0 mW = 200 mW »When 200 mW is less than the current maximum power supply capacity of the system, 800 mW, the determination result in block 603 of FIG. 6 is yes and send " FD read "; Request to the corresponding FDD control program 401, which in turn controls FDD 402 to be consistent with the " FD read " requirements. After the " FD read " request is served by FDD 402, FDD control program 401 returns the result to system program 400. After that, the processing sequence is terminated. In the second row, the system program 400 issues a "CD-ROM read" request, and the processing performed by the first row is repeated by the second row. However, the processing at this time is different from the previous processing because Pnow is already 200 mW. More specifically, when the block 603 in FIG. 6 is judged to have been performed, and Pnow is therefore 200 -11-This paper scale is applicable to China National Standard (CNS) A4 (210X297 mm) Patent Application No. 85107287 Chinese manual revision page (January 86) A7, B7
趣濟部中央揉準局負工消费合作社印*. 五、發明説明(9 ) mW,第一列的FDD讀取要求正枝服務,且由參考圈7可判 定Pnew爲400 mW,由圖6方塊603中發現’由Pnew舆Pnow 相加所獲得之總和Psum爲600 mW。因爲此値不超過Pmax ,800 mW,"CD-ROM讀取"要求返回所接收之裝置控制程 式》因此,和第一列相同的處理被執行。 一在第三列之要求爲用於"HD窝入"’且Pnew爲350 mW 。因爲由Pnew與Pnow相加所獲得之總和Psum爲950 mW, 已經超過Pmax之800 mW 了。在判別方塊603中’程式控制 跳至"否”且” HD寫入"要求亦儲存於佇列中。 當程式控制移動到第4行,就會有"FD寫入"請求,對此 ,Pnow是300 mW »因爲總和Psum是900 mW ’它超過800 mW此一 Pmax。結果,在決定方塊603處,程式控制分歧到 ••不”,而且"FD窝入••要求也存於佇列中。 程式控制跳至第五列時,處理终止在第一列之要求, "FD讀取"要求。因爲Pnew爲-200 mW而Pnew爲600 mW,所 以Psum被減至400 mW。 在第七列中,從保持等待狀態之佇列中取出"FD寫入"要 求。當目前的Pnow爲400 mW時’ Psum因▲小於Pmax爲750 mW,"FD寫入"要求被送至相應所服務之控制程式405。 在第八及第九列中,"FD寫入"要求係從保持等待狀態之 仵列中取出。但因爲目前之Psum-爲1050 mW,其比Pmax大 ,因此此要求再次儲存於佇列中,並保持爲等待狀況。 在第十列中;"CD-ROM讀取"要求之處理完成。因此 Psum此時被減至3 5 0 mW。 -12- 本紙張Λ度逋用中國國家標準(CNS ) A4规格(210X297公釐) ----------&----「--V------^. t (請先聞讀背面之注意事項再填寫本頁) A7 B7 五、發明説明(10 ) 在第十一及第十二列中,"FD窝入"要求係從保持等待狀 態之佇列中取出,因爲目前卩扣瓜爲65〇 mW並不超過Pmax ,所以此要求可繼續服務。 在第十三列中,"HD窝入"要求之處理完成,目前Pn〇w 爲 300 mW。 在第十四列中,"FD窝入"要求之處理完成,目前1^〇对爲 0 mW。 在此狀況下考慮最大之電源消耗,佇列控制程式4〇7可 使用仵列操控自系統程式400所循序接收之不同之要求。 結論’相關於本發明之配置揭示如下: 1·電源管理裝置,用於電腦系統可與週邊裝置連接, 包括.(a) —表格,於其中輸入一需求之電源消耗以操作 週邊裝置;(b)—控制程式,以控制相應一操作要求之週 邊裝置,及(c) 一彳τ列控制程式,用於以—旦接受操作要 求後,當操控操作要求時,從表格中讀取週邊裝置所需求 之電源消耗,並用於當所讀取之電源消耗等於或小於目前 可用之最大電源容量時,將操作要求傳送至控制程式。 2. 於1中引述之電源管理裝置,其中一旦接受操作要 經濟部中央揉準局貝工消費合作社印製 — I I 1-^ I — 1—, {請先聞讀背面之注f項再填寫本頁 訂 — 求後,佇列控制程式從表格讀取週邊裝置所需之電源率, 以操控操作要纟’而且其中當所讀取之電源消耗超過目前 可用&最大電源容f時’仵列控制程式错存操作要求於 列中。 、 3. 於2中引述之電源管理裝置,其中當操作要求保持 於仵列中時,仔列控制程式從:1^間週期之表格中諸 -13 經濟部中央揉準局貝工消費合作社印裝 A7 _______B7 五、發明説明(11 ) 取週迻裝置所需之電源消耗,以處理操作要求,而且其中 當所讀取之電源消耗等於或小於目前可用之最大電源容量 時’佇列控制程式將操作要求傳送至控制程式ο 4. 電源管理裝置,用於電腦系統可與週邊裝置連接, 包括:(a)—電源,其中一最大電源容量係由可配置多個 週邊裝置同時操作而決定;(b)—表格,其餘存每個週邊 裝置之操作所需之電源消耗;(c)多個控制程式,用以個 別地控制相應一操作要求之多個週邊裝置之操作;及(d) 一佇列控制程式,用以一旦接收操作要求,從表格中讀取 用以操控操作要求所需之電源消耗,及用以當所讀取之電 源消耗等於或小於最大電源容量時,將操作要求傳送至_ 控制程式,並當所讀取之電源消耗超過最大電源容量時, 儲存操作要求於佇列中。 5. 電源管理裝置,用於電腦系統可與週邊裝置連接, 包括:(a)—電源,其中一最大電源容量係由可配置多個 週邊裝置同時操作而決定;(b)—表格,其中儲存每個週 邊裝置之操作所需束之電源消耗;(c)多個控制程式,用 以個別地控制多個相應一操作要求之週邊裝置;及(d) 一 佇列控制程式,用以一旦接收操作要求,從表格中讀取操 控操作要求所需之電源消耗’及用以當所讀取之電源消耗 等於或小於一値,而該値係由從最大電源容量,取出用於 目前被處理之電源消耗所獲得時,將操作要求傳送至一相 應之控制程式,並當所讀取之電源消耗超過該値時,儲存 操作要求於佇列中》 -14- )A4AMS· ( 210X297公釐) I! II 1 裝 1· (請先Μ讀背面之注f項再填寫本頁 訂 323350 Α7 Β7 五、發明説明(12 ) 經濟部中央標準局βς工消费合作社印製 6·—種用於電腦系統之電源管理方法,包括:(a)—步 樣,其中系&程式將-操作要求傳送至—仲列控制程式; (b)-步驟’其一旦接收操作要求’佇列控制程式從一記 錄每個週邊裝置所需之電源消耗之表格中,讀取一用以處 理操作要求所需之電源消耗,以操控一操作要求;⑷一 步驟,其將操作要求之電源消耗與—配置以相應遇邊裝置 々最大電源容量相比較;及⑷—步驟,其只當比較後用 以處理操作要求所需之電源消耗等於或小於最大電源容量 時’才傳送操作要求至相應之控制程式。 7. 於6中引述之電源管理方法,尚包括:(e)_步驟, 當比較後用以操控操作要求所需之電源消耗超過最大電源 容量時’像存操作要求於-仵列中而不將操作要求傳送至 相應之控制程式。 8. 於7中引述之電源管理方法,尚包括:(f)—步驟, 當操作要求保存於佇列時,從一預定時間週期之表格中讀 取用以處理操作要求所需之電源消耗,並當所讀取之電源 消耗等於或小於最大電源容量時,傳送操作要求至相應之 控制程式》 9. 一種電源管理裝置,用於一包括多個模組之電腦 統,包括:(a)—表格,於其中對於每個模組輸入處理 操作要求所需求之電源消耗;(b)多個控制程式,每個 制程式皆相應於一模组,以控制相應操作要求之所有模 之操作;及(c) 一 Ir列控制程式旦接收.操作要求, 列控制程式從表格中讀取一模组所需之電源消耗,以處 系 控 组 佇 理 |_ (請先閱讀背面之注意^項再填寫本頁 訂 15- I紙張尺度逋用中國國家標準(CNS ) ( 210X297公釐) A7 B7 經濟部中央揉準局貞工消費合作社印¾ 五、發明説明(13 ) 操作要求所需疋電源消耗’並當所讀取之電源消耗等於或 小於目前可用之最大電源容量時,傳送操作要求至控制程 式,並當所讀取之電源消耗超過目前可用之最大電源容量 時,儲存操作要求於一佇列中; 10·於9中引述之電源管理裝置,其中:(£)一步驟當 操作要求保存於佇列而且尚未被處理時,佇列控制程式從 一預定時間週期之表格中讀取用以處理操作要求所需之電 源消耗,且其中當所讀取之電源消耗等於或小於目前可用 之最大電源容量時,佇列控制程式傳送操作要求至之控制 程式》 囷式簡單敘述 圖1顯示一執行本發明之電腦系統之方塊圖。 圖2顥示一執行本發明之電腦系統内之邏輯電路方塊圖 〇 圖3顯示一根據本發明之一 PC卡及多媒體盒之方塊囷。 圈4顯示本發明元件之該等裝置程式與一佇列控制程式 之間的關係》 圖5顯示一用於本發明每個程式處理概要之流程圖。 圖6顯示一用於本發明彳宁列控制程式處理概要之流程圖 〇 囷7顯示一用於本發明個別裝置之電源率之表格。 圖8顯示一用於本發明該等操作例子之表格。 -16- 表纸張A度適用中國國家標準(CNS ) A4规格(2丨0X297公釐) ^-袭-- (請先閱讀背面之注意事項再填窝本頁) 訂Printed by the Consumer Work Cooperative of the Central Ministry of Quality and Economics *. V. Description of the invention (9) mW, the FDD reading of the first row requires positive branch service, and the Pnew is determined to be 400 mW by the reference circle 7 It is found in 603 that the sum of Psum and Pnow is 600 mW. Because this value does not exceed Pmax, 800 mW, "CD-ROM read" requires the return of the received device control program. Therefore, the same processing as the first column is executed. 1. The requirements in the third column are for " HD nesting " ’and Pnew is 350 mW. Because the sum Psum obtained by adding Pnew and Pnow is 950 mW, it has exceeded 800 mW of Pmax. In decision block 603, the "program control jumps to" No "and the" HD write "request is also stored in the queue. When the program control moves to the fourth line, there will be a "quote FD write" request, for this, Pnow is 300 mW »because the sum Psum is 900 mW’ It exceeds 800 mW this Pmax. As a result, at decision block 603, the program control diverged to “• No” and the " FD nested •• request is also stored in the queue. When the program control jumps to the fifth row, the processing terminates at the request in the first row , &Quot; FD read " requirement. Because Pnew is -200 mW and Pnew is 600 mW, Psum is reduced to 400 mW. In the seventh column, take out " FD write from the queue that is waiting " Requirement. When the current Pnow is 400 mW ’, the Psum is sent to the corresponding control program 405 served by the " FD write " because ▲ is less than Pmax 750 mW. In the eighth and ninth columns The " FD write " request is taken from the queue that is waiting. However, because the current Psum- is 1050 mW, which is larger than Pmax, this request is stored in the queue again and remains in the waiting state. In the tenth column; "CD-ROM read" required processing is completed. Therefore, Psum is reduced to 3 5 0 mW at this time. -12- This paper uses the Chinese National Standard (CNS) A4 specification ( 210X297mm) ---------- & ---- "-V ------ ^. T (Please read the notes on the back before filling in (This page) A7 B7 5. Description of the invention (10) In the eleventh and twelfth columns, the "FD nesting" requirement is taken from the queue that remains in the waiting state, because the current melon is 65. mW does not exceed Pmax, so this request can continue to serve. In the thirteenth column, the processing of " HD nesting " requirements is completed, and the current Pn〇w is 300 mW. In the fourteenth column, " FD The processing of nesting " request is completed, and the current 1 ^ 〇 pair is 0 mW. Under this condition, considering the maximum power consumption, the queue control program 407 can use the queue control to control the differences received from the system program 400 in sequence. Requirement. Conclusion 'The configuration related to the present invention is disclosed as follows: 1. Power management device for the computer system can be connected to peripheral devices, including. (A) —Form, in which input a required power consumption to operate the peripheral device; (B) —Control program to control the peripheral devices corresponding to an operation request, and (c) A τ row control program to read the peripherals from the table when the operation request is controlled once the operation request is accepted Power consumption required by the device It is also used to send the operation request to the control program when the read power consumption is equal to or less than the currently available maximum power capacity. 2. The power management device quoted in 1 where the Central Ministry of Economic Affairs of the Ministry of Economy is required to accept the operation Printed by Beigong Consumer Cooperatives — II 1- ^ I — 1—, {Please read note f on the back and then fill out this page to order — after request, the queue control program reads the power rate required by peripheral devices from the form In order to control the operation, it is necessary to "manipulate the operation error of the row control program in the row when the power consumption of the reading exceeds the currently available & maximum power capacity f". 3. The power management device quoted in 2, when the operation requirements are kept in the queue, the control program is listed as follows: from the table of the period of 1 ^ to -13. Printed by the Ministry of Economic Affairs, Central Bureau of Economic Cooperation, Beigong Consumer Cooperative. Install A7 _______B7 V. Description of the invention (11) Take the power consumption required by the shifting device to handle the operation requirements, and when the power consumption read is equal to or less than the currently available maximum power capacity, the queue control program will The operation requirements are sent to the control program. 4. Power management device for the computer system to connect with peripheral devices, including: (a)-power supply, one of which is determined by the ability to configure multiple peripheral devices to operate simultaneously; ( b) —Form, the remaining power consumption required for the operation of each peripheral device; (c) Multiple control programs for individually controlling the operation of multiple peripheral devices corresponding to an operating requirement; and (d) One Row control program, used to read the power consumption required to control the operation request from the table once the operation request is received, and used when the read power consumption is equal to or less than the maximum When the power supply capacity is large, the operation request is sent to the control program, and when the power consumption read exceeds the maximum power supply capacity, the storage operation request is stored in the queue. 5. Power management device for computer system to connect with peripheral devices, including: (a) —power supply, one of which is determined by the ability to configure multiple peripheral devices to operate simultaneously; (b) —table, which is stored The power consumption required for the operation of each peripheral device; (c) multiple control programs for individually controlling multiple peripheral devices corresponding to an operation request; and (d) a queue control program for once receiving Operation requirements, read the power consumption required for control operation requirements from the table and used when the read power consumption is equal to or less than a value, and the value is taken from the maximum power capacity for the current processing When the power consumption is obtained, the operation request is sent to a corresponding control program, and when the power consumption read exceeds the value, the storage operation request is in the queue "-14-) A4AMS · (210X297mm) I ! II 1 Pack 1 · (please read the note f on the back and then fill in this page to order 323350 Α7 Β7 5. Invention Description (12) Printed by the Central Standards Bureau of the Ministry of Economic Affairs β 華工 Consumer Cooperatives 6 ·-for computer systems Of The power management method includes: (a) —Steps, in which the & program transmits the operation request to the secondary control program; (b) -Step 'Once it receives the operation request', the queue control program records from each record In the table of power consumption required by peripheral devices, read the power consumption required to handle the operation request to control an operation request; ⑷ one step, it will match the power consumption of the operation request with-configuration to meet the corresponding side 々Comparison of the maximum power capacity of the device; and ⑷-step, which only sends the operation request to the corresponding control program when the power consumption required to process the operation request after the comparison is equal to or less than the maximum power capacity. 7. At 6 The power management method quoted in the section also includes: (e) _steps, when the power consumption required to control the operation requirements after comparison exceeds the maximum power capacity, like storing the operation requirements in the-queue without sending the operation requirements To the corresponding control program. 8. The power management method quoted in 7 also includes: (f) -steps, when the operation requirements are saved in the queue, from a table of a predetermined time period Read the power consumption required to process the operation request, and when the read power consumption is equal to or less than the maximum power capacity, send the operation request to the corresponding control program. 9. A power management device for a The computer system of multiple modules, including: (a) -table, in which the power consumption required for input processing operation requirements for each module; (b) multiple control programs, each program corresponds to a module Group to control the operation of all modules corresponding to the operation requirements; and (c) an Ir row control program is received. The operation request, the row control program reads the power consumption required by a module from the table to handle the control group弫 理 | _ (Please read the notes on the back ^ item first and then fill out this page to order 15- I Paper Standards Use Chinese National Standards (CNS) (210X297mm) A7 B7 Printed by the Ministry of Economic Affairs Central Counseling Bureau Zhengong Consumer Cooperative ¾ V. Description of the invention (13) Operational requirements for power consumption ”and when the read power consumption is equal to or less than the currently available maximum power capacity, send the operation request to the control program and when read When the power consumption exceeds the currently available maximum power capacity, the storage operation request is in a queue; 10. The power management device quoted in 9, where: (£) one step when the operation request is saved in the queue and has not been processed When the queue control program reads the power consumption required to process the operation request from a table of a predetermined time period, and when the read power consumption is equal to or less than the currently available maximum power capacity, the queue control The control program to which the program transfers the operation request "is a simple description. FIG. 1 shows a block diagram of a computer system implementing the present invention. FIG. 2 shows a block diagram of a logic circuit in a computer system implementing the present invention. FIG. 3 shows a block diagram of a PC card and a multimedia box according to the present invention. Circle 4 shows the relationship between the device programs of the elements of the present invention and a queue control program. FIG. 5 shows a flowchart for the processing outline of each program of the present invention. FIG. 6 shows a flow chart of the processing outline of the control program of the Pening column of the present invention. FIG. 7 shows a table of power rates for individual devices of the present invention. FIG. 8 shows a table used for the operation examples of the present invention. -16- The A degree of the table paper is applicable to the Chinese National Standard (CNS) A4 specification (2 丨 0X297mm) ^-剒-(please read the precautions on the back and fill this page)