1220478 玖、發明說明: 【發明所屬之技術領域】 本發明是有關於一種以低電力消耗操作光碟機進行音 樂播放的電腦,特別是指一種利用序列匯流排來控制光碟 機’以減少其整體建置成本之電腦。 【先前技術】 桌上型電腦或筆記型電腦,其功能除了用來執行特定 的應用程式以進行文書、影像處理以及程式編輯等工作外 ’亦可以作為個人的多媒體播放平台。 由於目前光碟片、影音光碟片(DVD)等光學儲存媒體的 普及,因此絕大部分的電腦中皆配備有光碟機來作為讀取 光學儲存媒體的媒介,除了用作一般資料存取的功能以外 ’光碟機本身亦具備有播放音樂光碟片(cd_a,由紅皮書所 定義)的功能,原因是光碟機内部所建置的韌體與硬體已能 針對音樂光碟片之音樂資料進行解碼,隨後再進行數位/類 比轉換後,即能輸出至揚聲器上加以播出。 _在一般的情況下,使用者若想播放音樂光碟,則必需 讓電月自處於全開”的情況,換言之,必需讓電腦中處理器、 作^系統等維持運作,才能夠以應用程式來控制光碟機進 行音樂的播放,然而若僅將電腦用作音樂的播放,則因大 P刀的電力皆消耗於光碟機以外的電子元件上,因此極不 經濟:特料對筆記型電腦而言,其電池之電力更容易因 此大ϊ消耗而耗竭。 1圖1有鑑於上述之缺點,因此目前發展出所謂的 1220478 τ"^式(suspend)下能進行音樂播放的電腦細(或稱不 "開機即能進行音樂播放的電腦),其内部主要包含了一處 2卜一系統控制器22、一電源管理控制器& 一光碟 5 24光碟機控制器25、-鍵盤控制!! 26,以及一硬碟 二而SC暫停模式下’處理 21與硬碟27並不被供給 電源’僅有光碟機24、雷源总田奸在丨w 器26等被供給電源。1 : 1杰23,以及鍵盤控制 ^正常模式下’是透過處理器21、系統控制器 10 Γ制信號(ATAPI)至光碟機24上。當在暫停模式時,則是 利用鍵盤、滑鼠等發送信號續脸制器26±,再經 器25發出控制信號至光碟機24上,使光碟機24 仃曰条之播放、停止、暫停等動作。 15 ==上述兩種不同模式下,皆是以連接光碟機Μ之 匯&排30來進行控制信號的傳送,因此除 的光碟機控制器25外,更需|夕 ’、要1外 控制器28與多工哭25整人在/工器28(亦有將光碟機 ^ 〇口 25整合在—起)來切換不同模式中批制 ㈣的傳遞’因此所需的硬體建置成本甚為 工 【發明内容】 20 本發明之目的即在提供一種以 所需硬體的以低電力消耗操作機 即能建構出 。 尤嘴機進仃音樂播放的電腦 於是’本發明以低電力消耗操作 的電腦包含-光碟機、一系統控制器 :曰桌播放 鍵盤控制器。 处理為,以及一 5 广光碟機疋犯又一光碟機控制信號Ap 控制而進行音樂的處理,例如播放、停止、暫停:: 目、下一曲目、退出箄。兮 寺该系統控制器是以一 IDE匯流排 與該光碟機相連接,該盧理H 匯瓜排 ^ 為疋與該系統控制器相連接, 當該電腦在一正常模式下旧安 该處理窃能經由該系統控制器 ’以-控制錢㈣該光碟機進行音樂處理。 該鍵盤控制器是以一序列匯流排與該光碟 當該電腦在一音举播访措斗、τ * 式下’該鍵盤控制器是與該處理 10 該鍵盤控制器並能經由該序列匯流排傳送該控制 u至該光碟機上,使該光碟機進行音樂處理。 15 本發明之電腦能在該正常模式與該音樂播放模式下工 作’當在該音樂播放模式時,處理器、系統控制器並不被 供電故鍵盤控制器是獨立於該處理器外,因此可以以低 電力消耗來㈣光碟機進行音樂播放,更佳的是,由於是 利用額外设置之序列匯流排來進行音樂模式底下控制信號 的傳送,因此可以減少硬體建置的成本。 【實施方式】 有關本發明之前述及其他技術内容、特點與功效,在 乂下配δ參考圖式之—較佳實施例的詳細說明中,將可清 楚的明白。 彳 參閱圖2 ’本發明以低電力消耗操作光碟機3播放音樂 的電腦Η)0之較佳實施例’主要包含一處理器i、一系統控 制益2、-光碟機3、-鍵盤控制器4、—電源供應器5, 以及-電源管理控制器6。為簡化說明起見,其它諸如動態 6 1220478 隨機存取記憶體(DRAM)、唯讀記憶體(ROM)、RTC晶片等 ,由於乃是熟習此技者所能輕易瞭解,故在此並不特別指 明,僅就本發明主要作動部分加以說明。 處理器1即指一般的中央處理單元(CPU),例如Intel 5 公司生產之80X86、Pentium等系列,處理器1是用來自記 憶體(圖未示)中捉取相關的程式碼,以進行關於各應用程式 、作業系統,以及驅動程式等的計算與執行。系統控制器2 即是指支援該處理器1之南橋晶片,除了能將處理器1發 出之控制信號傳送至其它週邊元件以外,亦可以用來接收 1 〇 各週邊元件之要求,進而對處理器1發送中斷信號,以取 得處理器1的控制權。 光碟機3與系統控制器2之間是藉由整合電子式驅動 介面(Integrated Drive Electronics,以下簡稱 IDE)匯流排 1〇(又稱ΑΤΑ匯流排)來相互連接。當然,在一般的電腦系 15 統中,通常具有一主要IDE匯流排與一次要IDE匯流排, 而每一匯流排皆能再連接兩個IDE/ΑΤΑ電子裝置,例如硬 碟、光碟機等,本實施例中,僅表示其中之一 IDE匯流排 1〇。光碟機3是指光碟播放器(CD player)、光碟燒錄器(CD· RW)、影音光碟播放器(Dvd player),或是影音光碟燒錄器 20 (DVD-RW)等能讀取音樂光碟片之光碟機。 特別要說明的是,光碟機3與系統控制器2之間,是 以ΑΤΑ封包介面(ATAPI控制信號,ATApi c〇inmand)來作為 兩者間通訊的標準協定,此協定是以封包型式傳送資料, 因此光碟機3可以與一般硬碟一樣採用標準的IDE匯流排 7 1220478 來進行貧料傳輸,本實施例中,A丁Αρι光碟機3特別是 指-標準之薄型光碟機(slim CD_R0M),其5〇針腳(細^ 的16隻針腳(DD6〜DD21)來進行16位元之資料傳輸。 5 鍵盤控制器4與系統控制器2相連接,在一般的情況 下w使用者按壓-鍵盤(圖未示)上之按鍵時,即會送出一 掃晦碼(scan⑶㈣供鍵盤控制器4暫存,並由鍵盤控制写4 發送-中斷要求(卿)至系統控制器2上,使得處理器i能 丄由I/O埠(織)讀出資料’並傳送至應用程式上。當然, 10 鍵盤控制器4亦能夠接收PS/2滑鼠之座標信號,以進一步 控制電腦螢幕上游標的移動。 15 另一方面,鍵盤控制器4亦透過一序列匯流排2〇與光 碟機3相連接,本實施例t,序列匯流排2()指的是以序列 方式傳送資料之匯流排,可以是非同步序列匯流排,例如 RS-232,或者是同步序列匯流排,例如沉。由於.扣 為業界所熟知’且I2C之進一步詳細内容已公開 於關專利案第4,_,740號中,故在此不再賛述。 20 為了使得序列匯流排2〇與光碟機3相連接,因此是利 機3上兩隻預備用之針腳,pin49與來作為 :匯流排20雙向資料的傳輸,由於一般鍵盤控制器4上 置有供序列傳輸之腳位,因此可以輕易地與序列匯流 、羅親雷目連接,特別是,在本實施例中,鍵盤控制器4中之 j電路受到特定按鍵41的觸發時,此特定按鍵Μ指的 二二盤上特定的組合鍵、額外增加的按鍵,或是額外 5又5十的面板等時,能使得鍵盤控制器4發送出AT絕控制 8 1220478 號 例如 play—AUDIO—MSF(opcode 為 47¾)、 START/STOP—UNIT(opcode 為 1Bh)、pAUSE(〇pc〇de 為働) 、READ_TOC(opcode 為 43h)、INQmRY(〇pc〇de 為 , 5 並藉由序舰流排2G發送至光碟機3上,以㈣光碟機3 進行音樂的處理,例如播放、停止、暫停、前一曲目、後 一曲目、退出等動作。 為了能夠處理前述由鍵盤控制器4以序列方式傳來的 ATAPI控制信號’必須對光碟機3㈣之㈣進行部分更動 10 ’以使得光韻3具備有解譯序列信號的能力,換言之, 由於序列方式一次只傳送一個位元的資料,因此必須先暫 存部分之運算碼,待接收到所需之運算碼以及所需資料的 所有位兀後,再依據運算碼進行各命令的執行。 15 電源供應器5是用來供應電力給上述各元件,者在正 常模式下時’電源管理控制器、6並不作用,即各元: 正常供電’當-段時間使用者未有任何輸入之動作時,或 是使用者以制程式直接選擇音_放模式時,電理 控制器6即依據處理器1之命令,關閉各元件連接至電源 20 =純供給至光碟機3與鍵盤控制器4上而能減少電力 祕:在此楔式下’由於處理器1並不作用,故鍵盤控制 益4疋獨^於該處理器i之外而不受到處理器1的控制。 以下分職明在正常模式與音樂播放模式(暫停 ,光碟機控制信號的流程: 、)丁 (1)正常模式一 9 1220478 在正常模式下,僅用去&私心 w. , 「 吏用者此夠利用應用程式,例如 Γ Γ^ ’」χ _㈣機3播放音樂的命令處 控制信號經由系統控制器2、 ^ ☆1將 5 i 匯抓排10傳送至光碟機3 上就此進仃音樂播放的控制。 (2)音樂播放模式— 在音樂播放模式下,經由特定按鍵41的按星 經由鍵盤控制器4、序% be 至光碑機W ㈣匯机排20,傳达ΑΤΑρι控制信號 10 上’使得光销3進行音_放,並不需要經 由處理g 1來進行控制。由於僅供應電力至光碟機3 盤控制器4上,因此相對於正轉式而言,可減少大部 電力的消耗。 15 綜合上述,本發明利用鍵盤控制器4經由序列匯流排 20來傳送ATAPI控制信號,因此毋需以往之多工器、光碟 機控制器等構件,除了能夠以低電力消耗來進行音樂的播 放外,更因為減少習知構件而降低整體之硬體建置^本 確實達到本發明之目的。 _ 20 惟以上所述者,儀為本發明之較佳實施例而已,杏不 旎以此限定本發明實施之範圍,即大凡依本發明申請專利 範圍及發明說明書内容所作之簡單的等效變化與修飾,比· 應仍屬本發明專利涵蓋之範圍内。 【囷式簡單說明】 圖1是一示意圖,說明以往以低電力消耗操作光碟機 進行音樂播放的電腦;以及 10 1220478 圖2是一示意圖,說明本發明以低電力消耗操作光碟 機進行音樂播放的電腦的一較佳實施例。 11 1220478 【圖式之主要元件代表符號說明】 100 電腦 6 電源管理控制器 1 處理器 41 按鍵 2 系統控制器 10 IDE匯流排 3 光碟機 20 序列匯流排 4 鍵盤控制器 S1〜 S3電晶體 5 電源供應器1220478 发明 Description of the invention: [Technical field to which the invention belongs] The present invention relates to a computer that operates an optical disc player with low power consumption for music playback, and particularly refers to a method that uses a serial bus to control the optical disc drive to reduce its overall construction. Cost computer. [Prior art] In addition to the functions of desktop computers or notebook computers used to execute specific applications for document, image processing, and program editing, it can also be used as a personal multimedia playback platform. Due to the current popularity of optical storage media such as optical discs, audio and video discs (DVDs), most computers are equipped with optical disc drives as media for reading optical storage media, in addition to the function of general data access 'The optical disc drive itself also has the function of playing music discs (cd_a, defined by the Redbook), because the firmware and hardware built into the optical disc drive can already decode the music data of the music disc, and then After digital / analog conversion, it can be output to the speaker for broadcasting. _ Under normal circumstances, if users want to play music discs, they must keep the power on at full power. In other words, the processor and operating system in the computer must be maintained in order to be controlled by the application program. The optical disc player plays music. However, if the computer is only used for music playback, the power of the big P knife is consumed by electronic components other than the optical disc drive, so it is extremely uneconomical: special materials for notebook computers, The power of its battery is more likely to be consumed and exhausted due to large consumption. 1 In view of the above disadvantages, Figure 1 has developed a so-called 1220478 τ " suspend type computer capable of playing music (or not). A computer that can play music when you turn it on), which mainly contains a 2 system controller 22, a power management controller & a disc 5 24 disc drive controller 25,-keyboard control 26, and One hard disk and two in SC pause mode. 'Process 21 and hard disk 27 are not supplied with power.' Only the optical disk drive 24, Lei Yuan Zongtian, 26, etc. are supplied with power. 1: 1:23, and keyboard The control ^ in normal mode is through the processor 21 and the system controller 10 signal (ATAPI) to the optical disc drive 24. When in the pause mode, the keyboard, mouse, etc. are used to send signals to continue the face controller 26 ± Then, the controller 25 sends a control signal to the optical disc drive 24, so that the optical disc drive 24 plays, stops, pauses, etc. 15 == In the above two different modes, it is the connection of the optical disc drive M & Row 30 is used to transmit control signals, so in addition to the CD player controller 25, it is also necessary to | Xi ', the controller 28 and multiplexer 25 are required to be in the / worker 28 (there is also a CD player) ^ 口 口 25Integrated in the beginning) to switch the transfer of batch ㈣ in different modes' Therefore, the required hardware installation cost is very expensive [Content of the invention] 20 The object of the present invention is to provide a It can be constructed with a low power consumption operating machine. Youzui machine enters the computer for music playback, so the computer of the present invention operating with low power consumption includes an optical disc drive and a system controller: a keyboard controller for table playback. Processing For, and a 5 cd player offend another light Player control signal Ap to perform music processing, such as play, stop, pause :: track, next track, exit 箄. The system controller of Xi Temple is connected to the optical disc drive with an IDE bus. H Huiguai is connected to the system controller. When the computer is in a normal mode, it should be handled by the system controller 'to control the money to the CD player for music processing. The keyboard control The controller is a serial bus and the optical disc. When the computer is in a tone broadcast mode, the keyboard controller is connected to the processor 10 and the keyboard controller can transmit the control via the serial bus. u go to the optical disc drive, so that the optical disc drive performs music processing. 15 The computer of the present invention can work in the normal mode and the music playback mode. 'When in the music playback mode, the processor and system controller are not powered. Therefore, the keyboard controller is independent of the processor, so it can With low power consumption, the optical disc drive is used for music playback. More preferably, because the additional set of serial buses are used to transmit control signals under the music mode, the cost of hardware installation can be reduced. [Embodiment] The foregoing and other technical contents, features, and effects of the present invention will be clearly understood in the detailed description of the preferred embodiment with reference to the δ reference pattern.彳 Refer to FIG. 2 'The present invention operates a computer for playing music on the optical disc drive 3 with low power consumption.) 0 The preferred embodiment' mainly includes a processor i, a system control benefit 2,-optical disc drive 3,-keyboard controller. 4.-power supply 5, and-power management controller 6. In order to simplify the description, other such as dynamic 6 1220478 random access memory (DRAM), read-only memory (ROM), RTC chip, etc., because it is easily understood by those skilled in the art, so it is not special here It is pointed out that only the main action of the present invention will be described. Processor 1 refers to a general central processing unit (CPU), such as 80X86, Pentium series produced by Intel 5. The processor 1 is used to capture relevant code from the memory (not shown) for Calculation and execution of applications, operating systems, and drivers. The system controller 2 refers to the south bridge chip supporting the processor 1. In addition to transmitting the control signals sent by the processor 1 to other peripheral components, it can also be used to receive requests from 10 peripheral components, and then to the processor. 1 sends an interrupt signal to take control of processor 1. The optical disc drive 3 and the system controller 2 are connected to each other through an integrated electronic drive interface (Integrated Drive Electronics, hereinafter referred to as IDE) bus 10 (also referred to as an ATBA bus). Of course, in a general computer system, there is usually a main IDE bus and a secondary IDE bus, and each bus can be connected to two IDE / ΑΤΑ electronic devices, such as hard disks, optical drives, etc. In this embodiment, only one of the IDE buses 10 is shown. CD player 3 refers to a CD player, CD burner (CD · RW), DVD player (DVD player), or DVD player 20 (DVD-RW). Optical disc drive. It should be particularly noted that the optical disc drive 3 and the system controller 2 use ATP package interface (ATAPI control signal, ATApi cinmand) as a standard protocol for communication between the two. This protocol transmits data in the form of packets. Therefore, the optical disc drive 3 can use the standard IDE bus 7 1220478 to perform lean material transmission, as in general hard disks. In this embodiment, the Ding Aρι optical disc drive 3 particularly refers to a standard slim CD_R0M. Its 50 pins (thin 16 pins (DD6 to DD21) are used for 16-bit data transmission. 5 The keyboard controller 4 is connected to the system controller 2. Under normal circumstances, the user presses the-keyboard ( When not pressing the button on the keyboard, a scan code (scanCD) will be sent to the keyboard controller 4 for temporary storage, and the keyboard control writes 4 to send an interrupt request (Qing) to the system controller 2, so that the processor i can读 出 Read the data from the I / O port (text) and send it to the application. Of course, the keyboard controller 4 can also receive the coordinate signal of the PS / 2 mouse to further control the movement of the cursor on the computer screen. 15 Another On the one hand, the keyboard controls The device 4 is also connected to the optical disc drive 3 through a serial bus 20. In this embodiment t, the serial bus 2 () refers to a bus that transmits data in a serial manner, and may be an asynchronous serial bus, such as RS- 232, or a synchronous serial bus, such as Shen. Since the buckle is well known in the industry 'and further details of I2C have been disclosed in the related patent case No. 4, _, 740, it will not be described here again. 20 In order to connect the serial bus 20 to the optical disc drive 3, it is two ready-to-use pins on pinch 3. Pin49 is used as: the two-way data transmission of bus 20, because the general keyboard controller 4 is provided with The pin of the serial transmission, so it can be easily connected to the serial confluence, Luo Qinleimu, especially in this embodiment, when the j circuit in the keyboard controller 4 is triggered by the specific key 41, the specific key M refers to When the specific key combination on the second or second disk, additional keys, or additional 5 and 50 panels, etc., can cause the keyboard controller 4 to send out AT control number 8 1220478, such as play_AUDIO-MSF (opcode is 47¾), START / STOP UNIT (opcode is 1Bh), pAUSE (〇pc〇de is 働), READ_TOC (opcode is 43h), INQmRY (〇pc〇de is 5), and sends it to the optical disc drive 3 through the sequencer 2G, and ㈣ The optical disc drive 3 performs music processing, such as play, stop, pause, previous track, next track, exit, etc. In order to be able to process the aforementioned ATAPI control signal transmitted by the keyboard controller 4 in a serial manner, the optical disc drive must be 3㈣ 之 ㈣ make a partial change of 10 'to make Guangyun 3 have the ability to interpret sequence signals. In other words, because the sequence method only transmits one bit of data at a time, it must first temporarily store some of the operation code until it is received. After the required operation code and all bits of the required data, each command is executed according to the operation code. 15 The power supply 5 is used to supply power to the above components. The power management controller 6 does not work when in normal mode, that is, each element: normal power supply. When the user has not input anything for a period of time When in action, or when the user directly selects the sound-and-play mode with a programming program, the electrical controller 6 will turn off each component and connect to the power supply according to the command of the processor 20 = pure supply to the optical disc drive 3 and keyboard controller 4 It can reduce the power secret: in this wedge type, because the processor 1 does not work, the keyboard control is independent of the processor i and is not controlled by the processor 1. The following divisions are in the normal mode and the music playback mode (pause, the process of the CD player control signal:) Ding (1) Normal mode 9 1220478 In the normal mode, only use & selfish w., "用 用 者This is enough to use the application program, for example, Γ Γ ^ '″ χ _㈣ 3 3 3 3 3 control command signal to play music through the system controller 2, ^ ☆ 1 to transfer the 5 i sink 10 to the optical disc drive 3 to play music control. (2) Music playback mode — In the music playback mode, the star of a particular key 41 passes through the keyboard controller 4 to the light beam machine W ㈣ sink machine row 20 via the keyboard controller 4, and transmits the ΑΑΑιι control signal 10 to the light. The pin 3 performs the sound release and does not need to be controlled through the process g1. Since only power is supplied to the disc controller 3 of the optical disc drive 3, compared with the forward rotation type, most of the power consumption can be reduced. 15 In summary, the present invention uses the keyboard controller 4 to transmit the ATAPI control signal via the serial bus 20, so there is no need for components such as the conventional multiplexer, optical disc drive controller, etc., in addition to being able to play music with low power consumption Moreover, the overall hardware construction is reduced because the conventional components are reduced, and the purpose of the present invention is indeed achieved. _ 20 However, the above is the preferred embodiment of the present invention. This is not to limit the scope of implementation of the present invention, that is, simple equivalent changes made in accordance with the scope of the patent application and the content of the invention specification. Compared with modification, it should still be within the scope of the invention patent. [Simple explanation] Figure 1 is a schematic diagram illustrating a computer that used to operate an optical disc player for music playback with low power consumption in the past; and 10 1220478 FIG. 2 is a schematic diagram illustrating that the present invention operates an optical disc player with low power consumption for music playback. A preferred embodiment of a computer. 11 1220478 [Description of the main components of the diagram] 100 Computer 6 Power management controller 1 Processor 41 Button 2 System controller 10 IDE bus 3 Optical drive 20 Serial bus 4 Keyboard controller S1 ~ S3 transistor 5 Power Provider
1212