TWI635438B - Expandable universal serial bus audio instruction decoding circuit - Google Patents
Expandable universal serial bus audio instruction decoding circuit Download PDFInfo
- Publication number
- TWI635438B TWI635438B TW106115417A TW106115417A TWI635438B TW I635438 B TWI635438 B TW I635438B TW 106115417 A TW106115417 A TW 106115417A TW 106115417 A TW106115417 A TW 106115417A TW I635438 B TWI635438 B TW I635438B
- Authority
- TW
- Taiwan
- Prior art keywords
- universal
- universal serial
- serial bus
- bus
- sequence bus
- Prior art date
Links
Landscapes
- Information Transfer Systems (AREA)
Abstract
本發明關於一種通用序列匯流排(USB)音訊指令解碼電路,此USB音訊指令解碼電路包括一USB連接器、一可讀寫非揮發性記憶體、一描述元唯讀記憶體以及一USB設備控制器。USB連接器用以電性連接USB主機。可讀寫非揮發性記憶體用以儲存有多個USB音訊指令。描述元唯讀記憶體用以儲存一預設USB描述元。USB設備控制器電性連接描述元唯讀記憶體以及可讀寫非揮發性記憶體。當可讀寫非揮發性記憶體未儲存程式碼時,通用序列匯流排設備控制器讀取描述元唯讀記憶體並傳送預設USB描述元給USB主機以建立USB連接。當USB連接建立完成,USB主機便可下達一寫入指令,寫入程式碼及通用序列匯流排音訊描述元至可讀寫非揮發性記憶體。 The invention relates to a universal serial bus (USB) audio command decoding circuit. The USB audio command decoding circuit comprises a USB connector, a readable and writable non-volatile memory, a description element read-only memory and a USB device control. Device. The USB connector is used to electrically connect to the USB host. Read and write non-volatile memory for storing multiple USB audio commands. The meta-read memory is used to store a preset USB description element. The USB device controller electrically connects the meta-read memory and the readable and writable non-volatile memory. When the readable and writable non-volatile memory does not store the code, the universal sequence bus device controller reads the description element read-only memory and transmits a preset USB description element to the USB host to establish a USB connection. When the USB connection is established, the USB host can issue a write command to write the code and the general sequence bus audio description element to the readable and writable non-volatile memory.
Description
本發明係關於一種通用序列匯流排音訊的技術,更進一步來說,本發明係關於一種通用序列匯流排音訊指令解碼電路。 The present invention relates to a technique for universal sequence bus audio, and more particularly to a universal sequence bus audio command decoding circuit.
通用序列匯流排音訊技術,一般係應用在通用序列匯流排耳機、通用序列匯流排音效卡等。然而,通用序列匯流排指令漸趨繁複,且規格不斷更新,導致通用序列匯流排音訊產品常常因為需要支援新的規格而使用新的通用序列匯流排積體電路,不能沿用舊的通用序列匯流排積體電路。原因在於,新規格的出現,會增加新的指令,另外,亦需要新的通用序列匯流排描述元,因而產品線需要為了新的規格而更新,因而造成了生產成本的增加。 Universal serial bus audio technology, generally used in general-purpose serial bus headphones, universal serial bus sound card. However, the general sequence bus instructions are becoming more complex and the specifications are constantly updated, resulting in the use of new universal serial bus circuits for general-purpose serial bus audio products, and the use of old universal serial buss. Integrated circuit. The reason is that new specifications will add new instructions. In addition, new universal serial bus description elements are needed, so the product line needs to be updated for new specifications, resulting in an increase in production costs.
本發明的一目的在於提供一種可擴充 指令之通用序列匯流排音訊指令解碼電路,當內部非揮發性記憶體無程式碼時,由主機寫入程式碼。藉此,不需另一生產線,用同一產品線支援新的通用序列匯流排音訊規格。 It is an object of the present invention to provide an expandable The general sequence bus instruction audio decoding circuit of the instruction writes the code by the host when the internal non-volatile memory has no code. This allows the new universal serial bus audio specification to be supported by the same product line without the need for another production line.
有鑒於此,本發明提供一種通用序列匯流排(Universal Serial Bus,USB)音訊指令解碼電路,配置於一通用序列匯流排設備(USB device),其中,通用序列匯流排設備用以透過一通用序列匯流排連接埠電性連接一通用序列匯流排主機(USB host)。此通用序列匯流排音訊指令解碼電路包括一通用序列匯流排連接器(USB connector)、一可讀寫非揮發性記憶體、一描述元唯讀記憶體(descriptor ROM)以及一通用序列匯流排設備控制器(USB device controller)。通用序列匯流排連接器用以電性連接通用序列匯流排主機。可讀寫非揮發性記憶體用以儲存通用序列匯流排音訊指令解碼電路之韌體,其包括程式碼及通用序列匯流排音訊描述元。描述元唯讀記憶體用以儲存一預設通用序列匯流排描述元。通用序列匯流排設備控制器,電性連接該描述元唯讀記憶體以及該可讀寫非揮發性記憶體。 In view of the above, the present invention provides a universal serial bus (USB) audio command decoding circuit, which is configured in a universal serial bus device (USB device), wherein the universal serial bus device is used to transmit a universal sequence. The bus bar is electrically connected to a universal serial bus host (USB host). The universal sequence bus audio command decoding circuit includes a universal serial connector (USB connector), a readable and writable non-volatile memory, a descriptive memory (descriptor ROM), and a universal serial bus device. Controller (USB device controller). The universal serial bus connector is used to electrically connect to the universal serial bus master. The readable and writable non-volatile memory is used to store the firmware of the universal serial bus audio command decoding circuit, which includes the code and the universal sequence bus audio description element. The meta-read memory is used to store a preset universal sequence bus description element. The universal serial bus device controller is electrically connected to the description element read-only memory and the readable and writable non-volatile memory.
當可讀寫非揮發性記憶體未儲存程式碼時,通用序列匯流排設備控制器讀取描述元唯讀記憶體並傳送預設通用序列匯流排描述元給通用序列匯流排主機以建立通用序列匯流排連接。當通用序列匯流排連接建立完成,通用序列匯流排主機便可下達一寫入指令,寫入 上述韌體至可讀寫非揮發性記憶體。 When the readable and writable non-volatile memory does not store the code, the universal sequence bus device controller reads the description element read-only memory and transmits the preset universal sequence bus description element to the universal sequence bus master to establish a universal sequence. Bus connection. When the universal sequence bus connection is established, the universal sequence bus master can issue a write command and write The above firmware is readable and writable non-volatile memory.
依照本發明較佳實施例所述之通用序列匯流排音訊指令解碼電路,上述通用序列匯流排音訊指令解碼電路還包括一暫存器庫區(register bank)以及一微處理器。暫存器庫區電性連接通用序列匯流排設備控制器,用以暫存與上述通用序列匯流排音訊描述元相對應之通用序列匯流排音訊指令。微處理器耦接該可讀寫非揮發性記憶體以及暫存器庫區,用以讀取通用序列匯流排音訊描述元並判讀相對應之通用序列匯流排音訊指令,並放置於暫存器庫區。 According to a general sequence bus audio command decoding circuit according to a preferred embodiment of the present invention, the universal sequence bus audio command decoding circuit further includes a register bank and a microprocessor. The temporary storage area is electrically connected to the universal serial bus device controller for temporarily storing the universal serial bus audio command corresponding to the universal serial bus audio description element. The microprocessor is coupled to the readable and writable non-volatile memory and the temporary storage area for reading the universal serial bus audio description element and interpreting the corresponding universal serial bus audio command, and placing the same in the temporary register Library area.
依照本發明較佳實施例所述之通用序列匯流排音訊指令解碼電路,上述通用序列匯流排音訊指令解碼電路還包括一隨機存取記憶體,電性連接微處理器。當可讀寫非揮發性記憶體儲存有程式碼時,且通用序列匯流排設備連接通用序列匯流排主機時微處理器讀取可讀寫非揮發性記憶體的程式碼中之描述元,並儲存於隨機存取記憶體,且通用序列匯流排設備控制器由隨機存取記憶體取出描述元以和該通用序列匯流排主機建立通用序列匯流排連接。 According to a general-purpose serial bus audio command decoding circuit according to a preferred embodiment of the present invention, the universal sequence bus audio command decoding circuit further includes a random access memory electrically connected to the microprocessor. When the readable and writable non-volatile memory stores the code, and the universal serial bus device is connected to the universal serial bus host, the microprocessor reads the description element in the readable and writable non-volatile memory code, and Stored in the random access memory, and the universal sequence bus device controller fetches the description element from the random access memory to establish a universal sequence bus connection with the universal sequence bus master.
依照本發明較佳實施例所述之通用序列匯流排音訊指令解碼電路,當可讀寫非揮發性記憶體儲存有程式碼時,且通用序列匯流排設備連接通用序列匯流排主機時,微處理器讀取可讀寫非揮發性記憶體內之上述通用序列匯流排音訊指令,並轉存至暫存器庫區,通用序 列匯流排設備控制器將通用序列匯流排主機傳遞之指令與暫存器庫區之上述通用序列匯流排音訊指令一一比對,直到暫存器庫區的指令內容與該通用序列匯流排主機所傳遞之指令相符或直至暫存器庫區被讀取完畢。在一較佳實施例中,若暫存器庫區中有任一指令與通用序列匯流排主機所傳遞之指令相符則此指令為有效,所有參數將被存放至隨機存取記憶體。在另一較佳實施例中,若通用序列匯流排主機所傳遞之一特定指令在暫存器庫區中無相符之指令,則特定指令為無效指令,通用序列匯流排設備控制器回傳暫停(stall)給通用序列匯流排主機。 The universal sequence bus audio command decoding circuit according to the preferred embodiment of the present invention, when the readable and writable non-volatile memory stores the code, and the universal sequence bus device is connected to the universal serial bus host, the micro processing Read the above-mentioned universal sequence bus audio command in the readable and writable non-volatile memory, and transfer it to the scratchpad area, general order The busbar device controller compares the instruction passed by the universal serial bus host with the above-mentioned universal sequence bus audio command in the register area until the instruction content of the register area and the universal sequence bus host The passed instructions match or until the scratchpad area is read. In a preferred embodiment, if any instruction in the scratchpad area matches the instruction passed by the general sequence bus master, then the instruction is valid and all parameters are stored in the random access memory. In another preferred embodiment, if a specific instruction transmitted by the universal sequence bus master has no matching instruction in the scratchpad area, the specific instruction is an invalid instruction, and the universal sequence bus device controller returns a pause. (stall) to the universal sequence bus master.
本發明之精神在於在通用序列匯流排音訊產品上設置一個預設性質的描述元唯讀記憶體(descriptor ROM),在可讀寫非揮發性記憶體尚未被寫入前,此通用序列匯流排音訊產品透過通用序列匯流排被電性連接到通用序列匯流排主機時,通用序列匯流排音訊產品使用上述描述元唯讀記憶體內的描述元與通用序列匯流排主機進行通用序列匯流排連結,進而由通用序列匯流排主機依照產品性質,寫入對應的程式碼。爾後,通用序列匯流排音訊產品再次連接通用序列匯流排主機時,即使用上述寫入之程式碼中的描述元和通用序列匯流排主機進行連結。因此,本發明無須因規格升級而改變產品線或改設計新的積體電路,只需要改變儲存在通用序列匯流排主機內部的程式碼即可。 The spirit of the present invention is to set a default description descriptor ROM on a universal serial bus audio product, and the universal sequence bus is before the readable and writable non-volatile memory has been written. When the audio product is electrically connected to the universal serial bus host through the universal serial bus, the universal serial bus audio product uses the description element in the described meta-read memory to perform a universal sequence bus connection with the universal serial bus host, and further The general sequence bus master writes the corresponding code according to the nature of the product. Then, when the universal serial bus audio product is connected to the universal serial bus host again, the description element in the above written code is used to connect with the universal serial bus host. Therefore, the present invention does not need to change the product line or design a new integrated circuit due to the specification upgrade, and only needs to change the code stored in the universal serial bus host.
為讓本發明之上述和其他目的、特徵和 優點能更明顯易懂,下文特舉較佳實施例,並配合所附圖式,作詳細說明如下。 The above and other objects, features and features of the present invention are The advantages can be more clearly understood, and the preferred embodiments are described below in conjunction with the drawings and are described in detail below.
101‧‧‧通用序列匯流排連接器(USB connector) 101‧‧‧Common serial bus connector (USB connector)
102‧‧‧可讀寫非揮發性記憶體 102‧‧‧Read and write non-volatile memory
103‧‧‧描述元唯讀記憶體(descriptor ROM) 103‧‧‧Description of the only read-only memory (descriptor ROM)
104‧‧‧通用序列匯流排設備控制器(USB device controller) 104‧‧‧Common serial bus controller controller (USB device controller)
105‧‧‧指令電路 105‧‧‧Command circuit
106‧‧‧通用序列匯流排主機 106‧‧‧Common sequence bus master
201‧‧‧暫存器庫區(register bank) 201‧‧‧Register bank (register bank)
202‧‧‧微處理器 202‧‧‧Microprocessor
203‧‧‧靜態隨機存取記憶體 203‧‧‧Static Random Access Memory
204‧‧‧快閃記憶體(flash memory) 204‧‧‧flash memory (flash memory)
S300~S310‧‧‧本發明一較佳實施例的通用序列匯流排設備中之通用序列匯流排音訊指令解碼電路的運作流程 S300~S310‧‧‧ The operational flow of the universal sequence bus audio command decoding circuit in the universal serial bus device of a preferred embodiment of the present invention
第1圖繪示為本發明一較佳實施例的通用序列匯流排設備中之通用序列匯流排音訊指令解碼電路的電路方塊圖。 1 is a circuit block diagram of a general-purpose serial bus audio command decoding circuit in a universal serial bus device according to a preferred embodiment of the present invention.
第2圖繪示為本發明一較佳實施例的通用序列匯流排設備中之通用序列匯流排音訊指令解碼電路的電路方塊圖。 2 is a circuit block diagram of a general-purpose serial bus audio command decoding circuit in a universal serial bus device according to a preferred embodiment of the present invention.
第3圖繪示為本發明一較佳實施例的通用序列匯流排設備中之通用序列匯流排音訊指令解碼電路的運作流程圖。 FIG. 3 is a flow chart showing the operation of the universal sequence bus audio command decoding circuit in the universal serial bus device according to a preferred embodiment of the present invention.
第1圖繪示為本發明一較佳實施例的通用序列匯流排設備中之通用序列匯流排音訊指令解碼電路的電路方塊圖。請參考第1圖,此通用序列匯流排音訊指令解碼電路包括通用序列匯流排連接器(USB connector)101、可讀寫非揮發性記憶體102、描述元唯讀記憶體(descriptor ROM)103、通用序列匯流排設備控制器(USB device controller)104以及一指令電路105。為了方便說明本發明,在此實施例中,還繪示了一通用序列匯流排主機106。 1 is a circuit block diagram of a general-purpose serial bus audio command decoding circuit in a universal serial bus device according to a preferred embodiment of the present invention. Referring to FIG. 1 , the universal sequence bus audio command decoding circuit includes a universal serial port connector (USB connector) 101, a readable and writable non-volatile memory 102, a descriptive memory (descriptor ROM) 103, A universal serial device controller (USB device controller) 104 and an instruction circuit 105. In order to facilitate the description of the present invention, in this embodiment, a universal serial bus master 106 is also illustrated.
通用序列匯流排連接器101用以電性連接通用序列匯流排主機106。可讀寫非揮發性記憶體102主要是用來儲存通用序列匯流排設備的韌體,在此實施例中,韌體內部包括程式碼及通用序列匯流排音訊描述元及音訊指令等。通用序列匯流排音訊描述元及音訊指令可以在USB audio class 1.0規格、USB audio class 2.0規格或USB audio class 3.0規格中找到。描述元唯讀記憶體103用以儲存一預設通用序列匯流排描述元,其功能容後詳述。通用序列匯流排設備控制器104電性連接描述元唯讀記憶體103以及可讀寫非揮發性記憶體102。 The universal serial bus connector 101 is used to electrically connect the universal serial bus host 106. The readable and non-volatile memory 102 is mainly used to store the firmware of the universal serial bus device. In this embodiment, the firmware includes a code and a general sequence bus audio description element and an audio command. Universal sequence bus audio descriptions and audio commands can be found in the USB audio class 1.0 specification, the USB audio class 2.0 specification, or the USB audio class 3.0 specification. The description meta-read memory 103 is used to store a preset universal sequence bus description element, the function of which is detailed later. The universal serial bus device controller 104 is electrically coupled to describe the meta-read memory 103 and the readable and writable non-volatile memory 102.
首先,假設此通用序列匯流排設備的可讀寫非揮發性記憶體102並未被寫入韌體或程式碼,因此,主機端並不能辨識出此設備為通用序列匯流排音訊設備(USB audio device)。此時,假設此通用序列匯流排設備被插入此通用序列匯流排主機,例如是電腦、平板電腦、伺服器等。在可讀寫非揮發性記憶體102並未被寫入韌體或程式碼的情況下,通用序列匯流排設備控制器104會直接擷取描述元唯讀記憶體103中所儲存的預設描述元。舉例來說,此預設描述元可以是通用序列匯流排大量儲存裝置(USB Mass Storage Device)的描述元,此時,通用序列匯流排主機會把此通用序列匯流排設備辨識為一隨身碟。故通用序列匯流排主機便可以直接燒錄程式碼進入上述可讀寫非揮發性記憶體102中。上述程式碼中會包括通用序列匯流排音訊設備的描述元以及其對應的通 用序列匯流排音訊指令。 First, it is assumed that the readable and writable non-volatile memory 102 of the universal serial bus device is not written into the firmware or the code. Therefore, the host cannot recognize the device as a universal serial bus audio device (USB audio). Device). At this time, it is assumed that the universal serial bus device is inserted into the universal serial bus host, such as a computer, a tablet, a server, and the like. In the case that the readable and writable non-volatile memory 102 is not written into the firmware or the code, the universal sequence bus device controller 104 directly retrieves the preset description stored in the description element read-only memory 103. yuan. For example, the preset description element may be a description element of a universal serial bus storage device (USB Mass Storage Device). At this time, the universal sequence bus bar device recognizes the universal sequence bus bar device as a flash drive. Therefore, the universal serial bus master can directly program the code into the readable and writable non-volatile memory 102. The above code will include the description element of the universal serial bus audio device and its corresponding pass. Use the sequence bus to order audio commands.
之後,當可讀寫非揮發性記憶體102具有程式碼時,通用序列匯流排設備控制器104在下次連接時,便會由可讀寫非揮發性記憶體102的程式碼中擷取出通用序列匯流排音訊設備的描述元,此時,通用序列匯流排主機便會將所插入通用序列匯流排插槽的設備辨識為通用序列匯流排音訊設備。之後,透過上述指令電路105進行比對指令等動作執行上述通用序列匯流排音訊設備的動作。 Thereafter, when the readable and writable non-volatile memory 102 has a code, the universal sequence bus device controller 104 extracts the universal sequence from the code of the readable and writable non-volatile memory 102 at the next connection. The description element of the bus audio device, at this time, the universal sequence bus master recognizes the device inserted into the universal sequence bus slot as a universal sequence bus audio device. Thereafter, the above-described command circuit 105 performs an operation such as a comparison command to execute the operation of the universal sequence bus audio device.
原本先前技術中,通用序列匯流排音訊設備,在USB audio class 1.0規格需要一個生產線,在USB audio class 2.0規格需要另一個生產線,在USB audio class 3.0規格需要另一個生產線。原因在於,系統啟動前必須要在可讀寫非揮發性記憶體中燒錄程式碼。一般的程序為,先在其他機台將程式碼燒錄至可讀寫非揮發性記憶體中,再將可讀寫非揮發性記憶體焊上系統。然而,由上述實施例可以看出,無論規格如何推陳出新,硬體部分完全不需要進行變更,只需要變更通用序列匯流排主機內部的程式碼,藉由燒錄程式碼的方式,讓產品向上相容,增加硬體的相容性。故本發明可以達到在不必變動硬體的情況下,同時支援USB audio class 1.0規格以及USB audio class 2.0規格的目的。 In the prior art, the universal serial bus audio device requires a production line in the USB audio class 1.0 specification, another production line in the USB audio class 2.0 specification, and another production line in the USB audio class 3.0 specification. The reason is that the program must be programmed in readable and writable non-volatile memory before starting the system. The general procedure is to first program the code into a readable and writable non-volatile memory on another machine, and then solder the readable and writable non-volatile memory to the system. However, it can be seen from the above embodiment that no matter how the specifications are introduced, the hardware part does not need to be changed at all, and only the code inside the universal serial bus host is changed, and the product is upwardly phased by programming the code. Capacity, increase the compatibility of the hardware. Therefore, the present invention can achieve the purpose of supporting the USB audio class 1.0 specification and the USB audio class 2.0 specification without changing the hardware.
另外,本發明的通用序列匯流排音訊解碼電路的應用產品範圍廣泛,先前技術的固定描述元將限 制通用序列匯流排音訊積體電路的使用範圍,本發明採用彈性調整描述元,能讓通用序列匯流排音訊解碼電路所支援的產品多樣性極大化。例如,二聲道和八聲道或十六位元取樣率與三十二位元取樣率的設定便可經由在可讀寫非揮發性記憶體102中填入不同的描述元來達成。 In addition, the general-purpose serial bus audio decoding circuit of the present invention has a wide range of application products, and the fixed description elements of the prior art are limited. The use range of the universal serial bus audio integrated circuit, the invention adopts the elastic adjustment description element, which can maximize the product diversity supported by the universal serial bus audio decoding circuit. For example, the setting of the two-channel and eight-channel or six-bit sampling rate and the thirty-two-bit sampling rate can be achieved by filling different readable elements in the readable and writable non-volatile memory 102.
上述實施例中,雖然是以通用序列匯流排大量儲存裝置(USB Mass Storage Device)的描述元做舉例,然所屬技術領域具有通常知識者應當知道,除通用序列匯流排大量儲存裝置的描述元外,其他的描述元亦可以達到存取可讀寫非揮發性記憶體102的功效,故本發明不以此為限。 In the above embodiment, although the description element of the universal serial storage device (USB Mass Storage Device) is taken as an example, those skilled in the art should know that, besides the description element of the mass storage device of the universal serial bus. The other description elements can also achieve the function of accessing the readable and writable non-volatile memory 102, so the invention is not limited thereto.
第2圖繪示為本發明一較佳實施例的通用序列匯流排設備中之通用序列匯流排音訊指令解碼電路的電路方塊圖。請參考第2圖,在此實施例中,上述指令電路105係由暫存器庫區(register bank)201、微處理器202以及靜態隨機存取記憶體(static random access memory,SRAM)203實施。另外,上述可讀寫非揮發性記憶體102是以快閃記憶體(flash memory)204實施。其耦接關係如圖所繪示。 2 is a circuit block diagram of a general-purpose serial bus audio command decoding circuit in a universal serial bus device according to a preferred embodiment of the present invention. Referring to FIG. 2, in the embodiment, the instruction circuit 105 is implemented by a register bank 201, a microprocessor 202, and a static random access memory (SRAM) 203. . Further, the readable and writable non-volatile memory 102 is implemented by a flash memory 204. The coupling relationship is as shown in the figure.
當此通用序列匯流排音訊裝置開始運作時,微處理器202將本產品所支援的通用序列匯流排音訊指令寫入暫存器庫區201中,並且將通用序列匯流排音訊裝置的描述元從快閃記憶體204存入靜態隨機存取記憶體203中。當通用序列匯流排音訊裝置與通用序列匯流排 主機106建立連結時,通用序列匯流排設備控制器104從靜態隨機存取記憶體203中讀出描述元回傳通用序列匯流排主機106。 When the universal serial bus audio device starts to operate, the microprocessor 202 writes the universal serial bus audio command supported by the product into the temporary memory area 201, and the description element of the universal serial bus audio device is The flash memory 204 is stored in the static random access memory 203. General-purpose serial bus audio device and universal serial bus When the host 106 establishes a connection, the universal sequence bus device controller 104 reads the description meta-return universal sequence bus master 106 from the static random access memory 203.
當此通用序列匯流排設備控制器104接收到通用序列匯流排主機106所送出的通用序列匯流排音訊指令後,通用序列匯流排設備控制器104內部的比較電路或程式會讀取暫存器庫區201的內容,並將儲存在暫存器庫區201內的通用序列匯流排音訊指令和通用序列匯流排主機106所送出的通用序列匯流排音訊指令一一比較,直到暫存器庫區201的指令內容與通用序列匯流排主機106傳遞之指令相符或直至暫存器讀取完畢才結束。 After the universal sequence bus device controller 104 receives the universal sequence bus audio command sent by the universal sequence bus master 106, the comparison circuit or program inside the universal sequence bus device controller 104 reads the scratchpad library. The content of the area 201 is compared with the general sequence bus audio command stored in the scratchpad area 201 and the general sequence bus audio command sent by the universal serial bus host 106 until the register area 201 The contents of the instruction match the instructions passed by the universal sequence bus master 106 or until the register is completed.
若暫存器庫區201中有任一指令與通用序列匯流排主機106所傳遞的指令相符則此指令為有效,所有參數將被微處理器202存放至靜態隨機存取記憶體203中。在比對的過程中,若暫存器庫區201無相符之指令,則此為無效指令,控制電路將回傳暫停(stall)給通用序列匯流排主機106。 If any instruction in the scratchpad area 201 matches the instruction passed by the general sequence bus master 106, then the instruction is valid and all parameters will be stored in the static random access memory 203 by the microprocessor 202. In the process of comparison, if there is no matching instruction in the scratchpad area 201, this is an invalid instruction, and the control circuit stalls the back to the universal sequence bus host 106.
第3圖繪示為本發明一較佳實施例的通用序列匯流排設備中之通用序列匯流排音訊指令解碼電路的運作流程圖。請參考第3圖,此通用序列匯流排音訊指令解碼電路的運作流程包括: FIG. 3 is a flow chart showing the operation of the universal sequence bus audio command decoding circuit in the universal serial bus device according to a preferred embodiment of the present invention. Please refer to FIG. 3, the operation process of the universal sequence bus audio instruction decoding circuit includes:
步驟S300:開始。 Step S300: Start.
步驟S301:將通用序列匯流排設備插入主機。 Step S301: Insert the universal serial bus device into the host.
步驟S302:判斷快閃記憶體中是否有程式碼。若快閃記憶體中有程式碼,進行步驟S303,若快閃記憶體中沒有程式碼,進行步驟S307。 Step S302: Determine whether there is a code in the flash memory. If there is a code in the flash memory, step S303 is performed, and if there is no code in the flash memory, step S307 is performed.
步驟S303:下載程式碼到微處理器內部之靜態隨機存取記憶體。通用序列匯流排設備控制器104將程式碼由快閃記憶體204轉存到微處理器202內部之靜態隨機存取記憶體中。 Step S303: Download the code to the static random access memory inside the microprocessor. The universal serial bus device controller 104 dumps the code from the flash memory 204 to the static random access memory inside the microprocessor 202.
步驟S304:根據不同的應用填寫描述元。微處理器202將描述元、音訊指令填寫至暫存器庫區201。 Step S304: Fill in the description element according to different applications. The microprocessor 202 fills in the description element and audio instructions into the scratchpad area 201.
步驟S305:上傳音訊設備描述元至主機以建立連線。通用序列匯流排設備控制器104將暫存器庫區中的描述元上傳至通用序列匯流排主機106。 Step S305: Upload the audio device description element to the host to establish a connection. The universal sequence bus device controller 104 uploads the description elements in the scratchpad pool area to the universal sequence bus master 106.
步驟S306:通用序列匯流排主機認可所插入的通用序列匯流排設備為音訊設備。 Step S306: The universal sequence bus master recognizes that the inserted universal sequence bus device is an audio device.
步驟S307:啟動內建描述元。當快閃記憶體中沒有程式碼時,通用序列匯流排設備控制器104由描述元唯讀記憶體103中,取出預設描述元。 Step S307: Start the built-in description element. When there is no code in the flash memory, the universal sequence bus device controller 104 extracts the preset description element from the description element read-only memory 103.
步驟S308:上傳上述預設描述元至通用序列匯流排主機以建立連線。通用序列匯流排設備控制器104將取出的預設描述元給通用序列匯流排主機,以建立預設的通用序列匯流排連接,如通用序列匯流排大量儲存裝置連接。 Step S308: Upload the preset description element to the universal sequence bus host to establish a connection. The universal sequence bus device controller 104 sends the fetched preset description elements to the universal sequence bus master to establish a preset universal sequence bus connection, such as a universal serial bus mass storage device connection.
步驟S309:系統被通用序列匯流排主 機認可為通用序列匯流排設備。通用序列匯流排設備控制器104藉由上述動作,使通用序列匯流排主機認定此設備為例如通用序列匯流排大量儲存裝置。 Step S309: the system is connected to the general sequence bus master The machine is recognized as a universal serial bus device. The universal sequence bus device controller 104, by the above actions, causes the universal sequence bus master to identify the device as, for example, a universal serial bus mass storage device.
步驟S310:通用序列匯流排主機將程式碼寫入快閃記憶體。藉此,在下次連接建立時,此系統將會被辨識為通用序列匯流排音訊裝置。 Step S310: The universal sequence bus master writes the code to the flash memory. Thereby, the system will be recognized as a universal serial bus audio device when the next connection is established.
綜上所述,本發明之精神在於在通用序列匯流排音訊產品上設置一個預設性質的描述元唯讀記憶體(descriptor ROM),在可讀寫非揮發性記憶體尚未被寫入前,此通用序列匯流排音訊產品透過通用序列匯流排被電性連接到通用序列匯流排主機時,通用序列匯流排音訊產品使用上述描述元唯讀記憶體內的描述元與通用序列匯流排主機進行通用序列匯流排連結,進而由通用序列匯流排主機依照產品性質,寫入對應的程式碼。爾後,通用序列匯流排音訊產品再次連接通用序列匯流排主機時,即使用上述寫入之程式碼中的描述元和通用序列匯流排主機進行連結。因此,本發明無須因規格升級而改變產品線或改設計新的積體電路,只需要改變儲存在通用序列匯流排主機內部的程式碼即可。 In summary, the spirit of the present invention is to set a default description descriptor ROM on a universal serial bus audio product, before the readable and writable non-volatile memory has been written. When the universal serial bus audio product is electrically connected to the universal serial bus host through the universal serial bus, the universal serial bus audio product uses the description element described above in the meta-read memory and the universal serial bus host to perform a universal sequence. The bus is connected, and the general-purpose serial bus host writes the corresponding code according to the nature of the product. Then, when the universal serial bus audio product is connected to the universal serial bus host again, the description element in the above written code is used to connect with the universal serial bus host. Therefore, the present invention does not need to change the product line or design a new integrated circuit due to the specification upgrade, and only needs to change the code stored in the universal serial bus host.
在較佳實施例之詳細說明中所提出之具體實施例僅用以方便說明本發明之技術內容,而非將本發明狹義地限制於上述實施例,在不超出本發明之精神及以下申請專利範圍之情況,所做之種種變化實施,皆屬於本發明之範圍。因此本發明之保護範圍當視後附之申請專 利範圍所界定者為準。 The specific embodiments of the present invention are intended to be illustrative only and not to limit the invention to the above embodiments, without departing from the spirit of the invention and the following claims. The scope of the invention and the various changes made are within the scope of the invention. Therefore, the scope of protection of the present invention is attached to the application for the application. The scope defined by the scope of interest is subject to change.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106115417A TWI635438B (en) | 2017-05-10 | 2017-05-10 | Expandable universal serial bus audio instruction decoding circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW106115417A TWI635438B (en) | 2017-05-10 | 2017-05-10 | Expandable universal serial bus audio instruction decoding circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI635438B true TWI635438B (en) | 2018-09-11 |
TW201901415A TW201901415A (en) | 2019-01-01 |
Family
ID=64452826
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW106115417A TWI635438B (en) | 2017-05-10 | 2017-05-10 | Expandable universal serial bus audio instruction decoding circuit |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI635438B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI696995B (en) * | 2018-11-23 | 2020-06-21 | 巧連科技股份有限公司 | Audio apparatus with noise proof and noise reduction |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWM312856U (en) * | 2006-11-10 | 2007-05-21 | A Data Technology Co Ltd | Portable storage device and audio signal conversion system capable of converting audio signal |
US20130158692A1 (en) * | 2011-12-19 | 2013-06-20 | Gn Netcom A/S | Adaptive Isochronous USB Audio To RF Communication Device |
TW201411356A (en) * | 2012-09-07 | 2014-03-16 | Apple Inc | Accessory booting over USB |
TW201519093A (en) * | 2013-11-01 | 2015-05-16 | Silicon Motion Inc | Firmware loading system and firmware loading method |
-
2017
- 2017-05-10 TW TW106115417A patent/TWI635438B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWM312856U (en) * | 2006-11-10 | 2007-05-21 | A Data Technology Co Ltd | Portable storage device and audio signal conversion system capable of converting audio signal |
US20130158692A1 (en) * | 2011-12-19 | 2013-06-20 | Gn Netcom A/S | Adaptive Isochronous USB Audio To RF Communication Device |
TW201411356A (en) * | 2012-09-07 | 2014-03-16 | Apple Inc | Accessory booting over USB |
TW201519093A (en) * | 2013-11-01 | 2015-05-16 | Silicon Motion Inc | Firmware loading system and firmware loading method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI696995B (en) * | 2018-11-23 | 2020-06-21 | 巧連科技股份有限公司 | Audio apparatus with noise proof and noise reduction |
Also Published As
Publication number | Publication date |
---|---|
TW201901415A (en) | 2019-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102443078B1 (en) | Apparatus, system and method for determining comparison information based on memory data | |
US8001304B2 (en) | Portable memory device with multiple I/O interfaces wherein each I/O interface has respective protocol and device parameters are requested from one I/O interface using only respective protocol | |
US11099831B2 (en) | Firmware update in a storage backed memory system | |
KR102453780B1 (en) | Apparatuses and methods for securing an access protection scheme | |
US8631188B1 (en) | Data storage device overlapping host data transfer for a write command with inter-command delay | |
TWI421765B (en) | Display control device with automatic firmware update and update method thereof | |
US20060059300A1 (en) | Firmware Update for Optical Disc Drive | |
US20020178307A1 (en) | Multiple memory card adapter | |
TWI704489B (en) | Status management in storage backed memory package | |
US7908417B2 (en) | Motherboard system, storage device for booting up thereof and connector | |
US20120179871A1 (en) | Memory systems and methods of initiallizing the same | |
US10037170B2 (en) | Motherboard and a method for boot-up | |
CN106407145A (en) | An interface access method and system and a memory card | |
TWI635438B (en) | Expandable universal serial bus audio instruction decoding circuit | |
WO2011060703A1 (en) | Method and device for implementing electrically-erasable programmable read-only memory | |
TW201005654A (en) | Host controller disposed in multi-function card reader | |
TWI512475B (en) | Method for facilitating communication between a memory module and a central processor,and related machine-readable storage medium | |
US20170192917A1 (en) | Systems and methods for hardware arbitration of a communications bus | |
US20090138673A1 (en) | Internal memory mapped external memory interface | |
KR20060020284A (en) | Method and apparatus for initializing of a central processing unit | |
CN107479938B (en) | Electronic equipment and starting method thereof | |
US20080215799A1 (en) | Control Chip of Adapter Interconnecting Pc and Flash Memory Medium and Method of Enabling the Control Chip to Program the Flash Memory Medium to be Accessible by the Pc | |
US20150089088A1 (en) | Interface controller, external electronic device, and external electronic device control method | |
TWI613547B (en) | Computer system having PCI-E redriver, and configurating method of the PCI-E redriver | |
US20080098162A1 (en) | Embedded system and interface apparatus thereof and method of updating data for non-volatile memory |