TWI524177B - Debug test circuit and method thereof - Google Patents

Debug test circuit and method thereof Download PDF

Info

Publication number
TWI524177B
TWI524177B TW102143278A TW102143278A TWI524177B TW I524177 B TWI524177 B TW I524177B TW 102143278 A TW102143278 A TW 102143278A TW 102143278 A TW102143278 A TW 102143278A TW I524177 B TWI524177 B TW I524177B
Authority
TW
Taiwan
Prior art keywords
signal
processing unit
voltage
unit
identification signal
Prior art date
Application number
TW102143278A
Other languages
Chinese (zh)
Other versions
TW201520760A (en
Inventor
黃致銘
方英憲
Original Assignee
研華股份有限公司
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 研華股份有限公司 filed Critical 研華股份有限公司
Priority to TW102143278A priority Critical patent/TWI524177B/en
Publication of TW201520760A publication Critical patent/TW201520760A/en
Application granted granted Critical
Publication of TWI524177B publication Critical patent/TWI524177B/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

除錯測試電路及其方法 Debug test circuit and method thereof

本發明係為一種除錯測試電路及其方法,特別是關於一種設置於主機板的除錯測試電路及其方法。 The present invention is a debug test circuit and method thereof, and more particularly to a debug test circuit and a method thereof disposed on a motherboard.

隨著科技技術的進步,電腦、計算機、平板電腦、筆記型電腦、行動通訊裝置、個人數位助理(PDA)、掌上遊戲機、醫療資訊平台、醫療資訊護理平台或伺服主機等電子設備亦日趨漸多,因此,上述電子設備已普及至機關、團體、企業、家庭或個人來使用。舉例來說,一般人能便利地操作平板電腦或智慧型手機,以於外出時可輕鬆上網、看影片、聽音樂、看電子書、查地圖或玩遊戲等活動。 With the advancement of technology, electronic devices such as computers, computers, tablets, notebook computers, mobile communication devices, personal digital assistants (PDAs), handheld game consoles, medical information platforms, medical information nursing platforms or servo hosts are also gradually becoming more and more popular. As a result, the above electronic devices have been widely used by institutions, organizations, businesses, families, or individuals. For example, the average person can conveniently operate a tablet or a smart phone to easily access the Internet, watch movies, listen to music, read e-books, check maps or play games while on the go.

然而,當上述電子設備內建的程式、下載程式、軟體或韌體(Firmware)因設計缺陷或遭受病毒導致缺陷,或是上述電子設備內的硬體、電路板或韌體等的電子元件等因損耗或不良缺陷時,上述電子設備將發生故障,一般而言,人們會將故障的電子設備送廠維修,因此,工作人員須先拆卸上述電子設備的機殼或外殼或鬆開多顆鎖固螺絲,以進一步檢測機殼內裝設的主機板,藉此進行除錯作業,因此增加工作人員的檢測時間或維修時間,甚至,有部分電子設備的機殼需使用特殊的工具來拆卸,其中,例如為六角板手或梅花板手等這些特殊工具不一定配置於維修場所,因此造成工作人員檢測主機板的不方便性。 However, when the program, the download program, the software or the firmware of the above-mentioned electronic device is defective due to a design defect or a virus, or an electronic component such as a hardware, a circuit board or a firmware in the electronic device, etc. In the event of loss or defective defects, the above electronic equipment will malfunction. Generally, people will send the faulty electronic equipment to the factory for repair. Therefore, the staff must first disassemble the casing or casing of the above electronic equipment or loosen multiple locks. Fixing screws to further detect the motherboard installed in the casing, thereby performing debugging operations, thereby increasing the inspection time or maintenance time of the staff, and even some of the electronic equipment casings need to be disassembled using special tools. Among them, special tools such as hexagonal wrenches or plum wrenches are not necessarily arranged in the maintenance site, thus causing inconvenience for the worker to detect the motherboard.

本發明在於提供一種除錯測試電路,其中,本發明可透過所 述主機板預留於電子設備外部的通用序列匯流排來進行除錯作業,藉此達到節省時間、降低成本與提升檢測主機板的方便性。 The present invention provides a debug test circuit in which the present invention is transparent The motherboard is reserved for the general-purpose serial bus outside the electronic device to perform debugging operations, thereby saving time, reducing costs, and improving the convenience of detecting the motherboard.

本發明提出一種除錯測試電路,設置於一主機板,包括一中央處理單元、一多工處理單元、一判斷單元與一通用序列匯流排單元。多工處理單元透過一除錯通道及一通用序列匯流排通道,以耦接中央處理單元。判斷單元耦接多工處理單元。通用序列匯流排單元耦接於多工處理單元與判斷單元。其中,於通用序列匯流排單元接收到一識別訊號時,識別訊號經由判斷單元判別,於判別出識別訊號係屬一設定訊號時,判斷單元輸出一第一訊號給多工處理單元,以使多工處理單元切換導通一除錯通道。 The invention provides a debugging test circuit, which is disposed on a motherboard, and includes a central processing unit, a multiplexing processing unit, a determining unit and a universal serial bus unit. The multiplex processing unit is coupled to the central processing unit through a debug channel and a universal serial bus channel. The determining unit is coupled to the multiplex processing unit. The universal sequence bus unit is coupled to the multiplex processing unit and the determining unit. Wherein, when the universal sequence bus bar unit receives an identification signal, the identification signal is determined by the determining unit, and when it is determined that the identification signal belongs to a setting signal, the determining unit outputs a first signal to the multiplex processing unit, so as to The processing unit switches to turn on a debug channel.

本發明提出一種除錯測試方法,適用檢測一主機板,包括於通用序列匯流排單元接收到一識別訊號時,判斷識別訊號是否為一設定訊號,若是,判斷單元輸出一第一訊號給多工處理單元;及多工處理單元根據第一訊號以導通一除錯通道。 The invention provides a debugging test method, which is suitable for detecting a motherboard, which comprises determining whether the identification signal is a set signal when the universal sequence bus unit receives an identification signal, and if so, the determining unit outputs a first signal to the multiplexer. The processing unit; and the multiplex processing unit turn on a debug channel according to the first signal.

本發明之除錯測試電路,係設置於主機板,因此,使用者可透過通用序列匯流排,以插接本發明之除錯測試電路,其中判斷單元根據通用序列匯流排所輸出的識別訊號,以判別是否為第一訊號,當判別的結果為第一訊號時,多工處理單元將導通通用非同步收發器通道,藉此達到節省時間、降低成本與提升檢測主機板的方便性。 The debug test circuit of the present invention is disposed on the motherboard. Therefore, the user can insert the debug test circuit of the present invention through the universal serial bus, wherein the judging unit outputs the identification signal according to the universal serial bus. To determine whether it is the first signal, when the result of the determination is the first signal, the multiplex processing unit will turn on the universal asynchronous transceiver channel, thereby saving time, reducing cost, and improving the convenience of detecting the motherboard.

以上之概述與接下來的實施例,皆是為了進一步說明本發明之技術手段與達成功效,然所敘述之實施例與圖式僅提供參考說明用,並非用來對本發明加以限制者。 The above summary and the following examples are intended to be illustrative of the invention and the embodiments of the invention.

1‧‧‧除錯測試電路 1‧‧‧Debug test circuit

9‧‧‧電腦裝置 9‧‧‧Computer equipment

10‧‧‧中央處理單元 10‧‧‧Central Processing Unit

12‧‧‧多工處理單元 12‧‧‧Multiworking unit

14‧‧‧判斷單元 14‧‧‧judging unit

140‧‧‧比較線路 140‧‧‧Comparative lines

OP1‧‧‧第一比較器 OP1‧‧‧First Comparator

C11‧‧‧第一輸入端 C11‧‧‧ first input

C12‧‧‧第二輸入端 C12‧‧‧ second input

CO1‧‧‧第一輸出端 CO1‧‧‧ first output

OP2‧‧‧第二比較器 OP2‧‧‧Second comparator

C21‧‧‧第一輸入端 C21‧‧‧ first input

C22‧‧‧第二輸入端 C22‧‧‧ second input

CO2‧‧‧第二輸出端 CO2‧‧‧ second output

16‧‧‧通用序列匯流排單元 16‧‧‧Common sequence bus unit

18‧‧‧轉換裝置 18‧‧‧ Conversion device

181‧‧‧第一連接元件 181‧‧‧First connecting element

182‧‧‧第二連接元件 182‧‧‧Second connection element

U1‧‧‧除錯通道 U1‧‧‧Wiring channel

U2‧‧‧通用序列匯流排通道 U2‧‧‧Universal Sequence Bus Channel

OUTC‧‧‧輸出通道 OUTC‧‧‧ output channel

R1~R4‧‧‧電阻 R1~R4‧‧‧ resistor

IDV‧‧‧識別訊號 IDV‧‧‧ identification signal

VDD‧‧‧工作電壓 VDD‧‧‧ working voltage

V1‧‧‧第一電壓 V1‧‧‧ first voltage

V2‧‧‧第二電壓 V2‧‧‧second voltage

C1~C6‧‧‧電容 C1~C6‧‧‧ capacitor

D1‧‧‧第一二極體 D1‧‧‧First Diode

D2‧‧‧第二二極體 D2‧‧‧ second diode

DGND‧‧‧接地端 DGND‧‧‧ grounding terminal

S401~S413‧‧‧流程步驟 S401~S413‧‧‧ Process steps

圖1為本發明一實施例之除錯測試電路之功能方塊圖。 1 is a functional block diagram of a debug test circuit according to an embodiment of the present invention.

圖2為根據圖1之本發明另一實施例之除錯測試電路之電路圖。 2 is a circuit diagram of a debug test circuit in accordance with another embodiment of the present invention.

圖3為根據圖2之本發明另一實施例之除錯測試電路之識別運作表。 3 is an identification operation table of a debug test circuit according to another embodiment of the present invention.

圖4為本發明另一實施例之除錯測試方法之流程圖。 4 is a flow chart of a debugging test method according to another embodiment of the present invention.

圖1為本發明一實施例之除錯測試電路之功能方塊圖。請參閱圖1。一種除錯測試電路1,包括一中央處理單元10、一多工處理單元12、一判斷單元14、一通用序列匯流排單元16與一轉換裝置18。 1 is a functional block diagram of a debug test circuit according to an embodiment of the present invention. Please refer to Figure 1. A debug test circuit 1 includes a central processing unit 10, a multiplex processing unit 12, a determination unit 14, a universal sequence bus unit 16 and a conversion device 18.

在實務上,多工處理單元12耦接通用序列匯流排單元16、判斷單元14與中央處理單元10,且中央處理單元10、多工處理單元12、判斷單元14與通用序列匯流排單元16係設置於主機板(Mother Board)上,而轉換裝置18係以外接方式電性連接通用序列匯流排單元16與電腦裝置9,其中,主機板的內嵌程式可透過通用序列匯流排單元16輸出程式訊息,並經由轉換裝置18以輸出至電腦裝置9顯示,因此,使用者可透過電腦裝置9所顯示的資訊,以檢測出主機板的缺陷(bug)。 In practice, the multiplex processing unit 12 is coupled to the sequence bus bar unit 16, the judging unit 14 and the central processing unit 10, and the central processing unit 10, the multiplex processing unit 12, the judging unit 14, and the universal sequence bus unit 16 are The device is disposed on the motherboard, and the conversion device 18 is electrically connected to the universal serial bus unit 16 and the computer device 9. The embedded program of the motherboard can output the program through the universal serial bus unit 16. The message is output to the computer device 9 via the conversion device 18. Therefore, the user can use the information displayed by the computer device 9 to detect a defect of the motherboard.

進一步來說,主機板例如為具有精簡指令集(RISC)或進階精簡指令集(ARM)的電腦機板、電路板或印刷電路板,並設置於電腦、計算機、平板電腦、筆記型電腦、行動通訊裝置、個人數位助理(PDA)、掌上遊戲機、醫療資訊平台、醫療資訊護理平台或伺服主機等電子設備,另主機板的內嵌程式例如為內建的除錯檢測程式、初始化程式或是支援C++語言及/或組合語言的編譯程式,本實施例不限制主機板的態樣與用途。 Further, the motherboard is, for example, a computer board, a circuit board or a printed circuit board with a reduced instruction set (RISC) or an advanced reduced instruction set (ARM), and is installed in a computer, a computer, a tablet, a notebook computer, Electronic devices such as mobile communication devices, personal digital assistants (PDAs), handheld game consoles, medical information platforms, medical information nursing platforms, or servo hosts. The built-in programs of the motherboards are, for example, built-in debug detectors, initialization programs, or It is a compiler that supports C++ language and/or combination language. This embodiment does not limit the aspect and use of the motherboard.

中央處理單元10例如為x86處理器、精簡指令集電腦處理器(RISC Processor)、進階精簡指令集電腦處理器(ARM Processor)或其他種類處理器,其中中央處理單元10例如由Advanced Micro Devices、TI、三星、Cortex或Intel等公司製造的處理器,且中央 處理單元10可輸出通用序列匯流排訊號(USB Signal)及通用非同步收發器訊號(Universal Asynchronous Receiver Transmitter Signal,UART Signal)給多工處理單元12,本實施例不限制中央處理單元10的態樣。 The central processing unit 10 is, for example, an x86 processor, a RISC Processor, an ARM Processor, or other type of processor, wherein the central processing unit 10 is, for example, Advanced Micro Devices. Processors manufactured by companies such as TI, Samsung, Cortex or Intel, and central The processing unit 10 can output a Universal Signal Receiver Transmitter Signal (UART Signal) and a Universal Asynchronous Receiver Transmitter Signal (UART Signal) to the multiplex processing unit 12. This embodiment does not limit the aspect of the central processing unit 10. .

多工處理單元12耦接中央處理單元10與通用序列匯流排單元16。在實務上,多工處理單元12例如為2-1MUX、3-1MUX、M-NMUX(M、N為大於2的正整數)、輸出選擇多工器(DMUX)或PI3USB10多工器,本實施例不限制多工處理單元12的態樣。其中,多工處理單元12與中央處理單元10之間具有二個通道,其中一個通道用以輸出或接收通用序列匯流排訊號,例如通用序列匯流排的D+、D-訊號可於通道上傳遞;另一個通道用以輸出通用非同步收發器訊號,例如通用非同步收發器的TX與RX訊號可於通道上傳遞。 The multiplex processing unit 12 is coupled to the central processing unit 10 and the universal sequence bus unit 16. In practice, the multiplex processing unit 12 is, for example, 2-1MUX, 3-1MUX, M-NMUX (M, N is a positive integer greater than 2), an output selection multiplexer (DMUX), or a PI3USB10 multiplexer. The aspect of the multiplex processing unit 12 is not limited. The multiplex processing unit 12 and the central processing unit 10 have two channels, one of which is used for outputting or receiving a universal serial bus signal. For example, the D+ and D- signals of the universal serial bus can be transmitted on the channel; The other channel is used to output a general asynchronous transceiver signal. For example, the TX and RX signals of the universal asynchronous transceiver can be transmitted on the channel.

詳細來說,多工處理單元12係透過除錯通道U1及通用序列匯流排通道U2,以電性連接中央處理單元10,而多工處理單元12例如為2-1MUX,多工處理單元12係從兩個輸入訊號中進行選擇:其中一輸入訊號為通用序列匯流排訊號,以及另一輸入訊號為通用非同步收發器訊號,因此,多工處理單元12可選擇兩個輸入訊號其中之一,並透過通用序列匯流排單元16輸出。 In detail, the multiplex processing unit 12 is electrically connected to the central processing unit 10 through the debug channel U1 and the universal serial bus channel U2, and the multiplex processing unit 12 is, for example, a 2-1 MUX, and the multiplex processing unit 12 is The two input signals are selected: one of the input signals is a universal serial bus signal, and the other input signal is a universal asynchronous transceiver signal. Therefore, the multiplex processing unit 12 can select one of the two input signals. And output through the universal sequence bus unit 16.

舉例來說,多工處理單元12的輸入端耦接中央處理單元10,所以,多工處理單元12的輸入端將接收到D+/D-的通用序列匯流排訊號或TX/RX的通用非同步收發器訊號,其中,多工處理單元12的輸出端耦接通用序列匯流排單元16,所以,多工處理單元12可根據第一或第二訊號,以選擇通用序列匯流排通道U2以輸出D+/D-的通用序列匯流排訊號,或是選擇除錯通道U1輸出以TX/RX的通用非同步收發器訊號,且D+/D-的通用序列匯流排訊號或TX/RX的通用非同步收發器訊號將經由通用序列匯流排單元16傳輸至電腦裝置9。 For example, the input end of the multiplex processing unit 12 is coupled to the central processing unit 10, so that the input of the multiplex processing unit 12 will receive the D+/D- universal sequence bus signal or the TX/RX universal non-synchronization. The transceiver signal, wherein the output of the multiplex processing unit 12 is coupled to the serial bus unit 16, so that the multiplex processing unit 12 can select the universal sequence bus channel U2 to output D+ according to the first or second signal. /D- general-purpose serial bus signal, or select the debug channel U1 to output the TX/RX universal non-synchronous transceiver signal, and D+/D- general-purpose serial bus signal or TX/RX universal asynchronous transmission and reception The device signal will be transmitted to the computer device 9 via the universal serial bus unit 16.

在其他實施例中,多工處理單元12例如為輸出選擇多工器(DMUX),其中多工處理單元12的輸入端耦接通用序列匯流排單元16,所以,多工處理單元12的輸入端將接收到通用序列匯流排訊號,其中,多工處理單元12的輸出端耦接中央處理單元10,多工處理單元12可根據第一訊號或第二訊號,以選擇輸出D+/D-的通用序列匯流排訊號或TX/RX的通用非同步收發器訊號給中央處理單元10,本實施例不限制多工處理單元12與中央處理單元10的運作態樣。 In other embodiments, the multiplex processing unit 12 is, for example, an output selection multiplexer (DMUX), wherein the input of the multiplex processing unit 12 is coupled to the serial bus unit 16 so that the input of the multiplex processing unit 12 The output of the multiplexed processing unit 12 is coupled to the central processing unit 10, and the multiplex processing unit 12 can select the output D+/D- according to the first signal or the second signal. The serial bus signal or the TX/RX universal non-synchronous transceiver signal is sent to the central processing unit 10. This embodiment does not limit the operation of the multiplex processing unit 12 and the central processing unit 10.

判斷單元14耦接多工處理單元12與通用序列匯流排單元16。在實務上,於轉換裝置18的第一連接元件181插接通用序列匯流排單元16時,通用序列匯流排單元16的一識別接腳將輸出一識別訊號給判斷單元14,而判斷單元14用以判斷識別訊號,其中識別訊號例如為符合通用序列匯流排通訊協定的電壓訊號,當這電壓訊號符合通用序列匯流排通訊協定的預設訊號時,中央處理單元10將根據預設訊號以區別主從關係。 The determining unit 14 is coupled to the multiplex processing unit 12 and the universal sequence bus unit 16. In practice, when the first connection component 181 of the conversion device 18 is inserted into the sequence bus bar unit 16, an identification pin of the universal sequence bus bar unit 16 outputs an identification signal to the determination unit 14, and the determination unit 14 uses For determining the identification signal, wherein the identification signal is, for example, a voltage signal conforming to the universal serial bus communication protocol, when the voltage signal conforms to the preset signal of the universal serial bus communication protocol, the central processing unit 10 will distinguish the main according to the preset signal. From relationship.

舉例來說,當隨身碟裝置插接於主機板上的通用序列匯流排單元16時,判斷單元14判別出識別訊號為預設訊號,則中央處理單元10將根據預設訊號以區別主從關係,例如主機板端的通用序列匯流排單元16為主埠(Host Port),而外接式的隨身碟裝置例如為從埠(Device Port),因此,當隨身碟裝置插接本發明之通用序列匯流排單元16時,判斷單元14可根據符合預設訊號的識別訊號,以判別出隨身碟裝置,並區別隨身碟裝置與主機板的主從關係。 For example, when the portable device is plugged into the universal serial bus unit 16 on the motherboard, the determining unit 14 determines that the identification signal is a preset signal, and the central processing unit 10 will distinguish the master-slave relationship according to the preset signal. For example, the universal serial bus unit 16 on the motherboard side is a Host Port, and the external flash drive device is, for example, a Device Port. Therefore, when the USB flash drive device is plugged into the universal serial bus of the present invention, In the case of the unit 16, the determining unit 14 can determine the flash drive device according to the identification signal conforming to the preset signal, and distinguish the master-slave relationship between the flash drive device and the motherboard.

值得注意的是,判斷單元14更包括一比較線路140,比較線路140具有一第一電壓與一第二電壓,而第一電壓大於第二電壓。在實務上,比較線路140例如為一個或多個比較器組成的電路或晶片、邏輯積體電路、晶片或邏輯判斷電路或晶片,本實施例不限制比較線路140的態樣,其中,第一電壓例如為上限電壓,第 二電壓例如為下限電壓,其中上限電壓例如為3、2.5或2.2伏特,而下限電壓例如為0.5、0.8或1.1伏特,本實施例不限制第一及第二電壓的數值。 It should be noted that the determining unit 14 further includes a comparison line 140 having a first voltage and a second voltage, and the first voltage is greater than the second voltage. In practice, the comparison line 140 is, for example, a circuit or a chip composed of one or more comparators, a logic integrated circuit, a wafer or a logic determination circuit or a wafer. This embodiment does not limit the aspect of the comparison line 140, wherein the first The voltage is, for example, an upper limit voltage, The second voltage is, for example, a lower limit voltage, wherein the upper limit voltage is, for example, 3, 2.5 or 2.2 volts, and the lower limit voltage is, for example, 0.5, 0.8 or 1.1 volts, and the present embodiment does not limit the values of the first and second voltages.

通用序列匯流排單元16耦接於多工處理單元12與判斷單元14。在實務上,通用序列匯流排單元16可以是通用序列匯流排(USB)、迷你通用序列匯流排(Mini USB)、微型通用序列匯流排(Micro USB)或者其他傳輸訊號的傳輸介面,本實施例不限制通用序列匯流排單元16的態樣。 The universal sequence bus unit 16 is coupled to the multiplex processing unit 12 and the determining unit 14. In practice, the universal sequence bus unit 16 can be a universal serial bus (USB), a mini universal serial bus (Mini USB), a micro universal serial bus (Micro USB) or other transmission signal transmission interface, this embodiment The aspect of the universal sequence bus unit 16 is not limited.

接下來,於通用序列匯流排單元16接收到一識別訊號時,識別訊號經由判斷單元14判別,於判別出識別訊號係屬一設定訊號時,判斷單元14輸出一第一訊號給多工處理單元12,以使多工處理單元12切換導通一除錯通道U1。 Next, when the identification signal is received by the universal sequence bus unit 16, the identification signal is determined by the determining unit 14, and when it is determined that the identification signal belongs to a setting signal, the determining unit 14 outputs a first signal to the multiplex processing unit. 12, so that the multiplex processing unit 12 switches to turn on a debug channel U1.

在實務上,設定訊號係符合通用序列匯流排的通訊協定,而設定訊號係為介於第一電壓與第二電壓之間的電壓訊號,換句話說,設定訊號係為介於上限電壓與下限電壓之間的電壓訊號。因此,當判斷單元14判別出識別訊號係為設定訊號時,判斷單元14輸出第一訊號給多工處理單元12,其中第一訊號係為指示多工處理單元12選擇通用非同步收發器通道的訊號,因此,使用者可透過通用序列匯流排以進行除錯作業。 In practice, the setting signal conforms to the communication protocol of the universal serial bus, and the setting signal is a voltage signal between the first voltage and the second voltage. In other words, the setting signal is between the upper limit voltage and the lower limit. Voltage signal between voltages. Therefore, when the determining unit 14 determines that the identification signal is a set signal, the determining unit 14 outputs the first signal to the multiplex processing unit 12, wherein the first signal is for instructing the multiplex processing unit 12 to select the universal asynchronous transceiver channel. Signals, therefore, users can use the universal serial bus to perform debugging operations.

另外,於通用序列匯流排單元16接收到識別訊號時,識別訊號經由判斷單元14判別,於判別出識別訊號係屬一預設訊號時,判斷單元14輸出一第二訊號給多工處理單元12,以使多工處理單元12切換導通一通用序列匯流排通道U2。在實務上,當識別訊號經判別而大於第一電壓,或是識別訊號經判別而小於第二電壓時,判斷單元14判別出識別訊號係為預設訊號,因此,判斷單元14輸出第二訊號給多工處理單元12,其中第二訊號係為指示多工處理單元12選擇通用序列匯流排通道U2的訊號,因此,使用者可透過通用序列匯流排,以進行一般通用序列匯流排的隨插即用 的資料存取作業。 In addition, when the identification signal is received by the universal sequence bus unit 16, the identification signal is determined by the determining unit 14, and when it is determined that the identification signal belongs to a predetermined signal, the determining unit 14 outputs a second signal to the multiplex processing unit 12. So that the multiplex processing unit 12 switches to turn on a universal sequence bus channel U2. In practice, when the identification signal is determined to be greater than the first voltage, or the identification signal is determined to be smaller than the second voltage, the determining unit 14 determines that the identification signal is a preset signal, and therefore, the determining unit 14 outputs the second signal. The multiplex processing unit 12, wherein the second signal is a signal indicating that the multiplex processing unit 12 selects the universal sequence bus channel U2, so that the user can use the universal sequence bus to perform the insertion of the general universal sequence bus. Ready to use Data access operation.

值得一提的是,除錯測試電路1更包括一轉換裝置18,具有一第一連接元件181與一第二連接元件182,其中第一連接元件181用以插接通用序列匯流排單元16,第二連接元件182用以插接一電腦裝置9。在實務上,轉換裝置18用以將通用非同步收發器訊號轉換為RS-232介面的訊號,其中第一連接元件181例如為通用序列匯流排(USB)、迷你通用序列匯流排(Mini USB)、微型通用序列匯流排(Micro USB)或者其他傳輸訊號的傳輸介面,而第一連接元件181係配合通用序列匯流排單元16的態樣而設計,第二連接元件182例如為RS-232,第二連接元件182係配合電腦裝置9的終端埠的態樣而設計,本實施例不限制轉換裝置18的態樣。 It is worth mentioning that the debug test circuit 1 further includes a conversion device 18 having a first connection element 181 and a second connection element 182, wherein the first connection element 181 is used to plug in the serial bus unit 16 for connection. The second connecting component 182 is for plugging in a computer device 9. In practice, the conversion device 18 is configured to convert the universal asynchronous transceiver signal into an RS-232 interface signal, wherein the first connection component 181 is, for example, a universal serial bus (USB), a mini universal serial bus (Mini USB). a micro-universal serial bus (Micro USB) or other transmission interface for transmitting signals, and the first connection component 181 is designed to match the aspect of the universal serial bus unit 16, and the second connection component 182 is, for example, RS-232. The two connecting members 182 are designed in accordance with the state of the terminal port of the computer device 9, and the embodiment does not limit the aspect of the switching device 18.

接下來說,進一步說明除錯測試電路1的細部運作與電路。 Next, the detailed operation and circuit of the debug test circuit 1 will be further explained.

圖2為根據圖1之本發明另一實施例之除錯測試電路之電路圖。請參閱圖2。圖2所繪示一多工處理單元12與一判斷單元14,其中判斷單元14包括一比較線路140,而比較線路140係由複數個比較器OP1、OP2、複數個電阻R1~R4、複數個電容C1~C4及複數個二極體D1、D2所組成。 2 is a circuit diagram of a debug test circuit in accordance with another embodiment of the present invention. Please refer to Figure 2. 2 illustrates a multiplex processing unit 12 and a determination unit 14, wherein the determination unit 14 includes a comparison line 140, and the comparison line 140 is composed of a plurality of comparators OP1, OP2, a plurality of resistors R1 to R4, and a plurality of Capacitors C1 ~ C4 and a plurality of diodes D1, D2.

進一步來說,比較線路140包括一第一比較器OP1與一第二比較器OP2,第一比較器OP1的第一輸入端C11耦接一第一電壓,第一比較器OP1的第二輸入端C12用以接收識別訊號IDV,第一比較器OP1的輸出端耦接一第一二極體D1,第二比較器OP2的第一輸入端C21用以接收識別訊號IDV,第二比較器OP2的第二輸入端C22耦接第二電壓,第二比較器OP2的輸出端耦接一第二二極體D2。 Further, the comparison circuit 140 includes a first comparator OP1 and a second comparator OP2. The first input terminal C11 of the first comparator OP1 is coupled to a first voltage, and the second input terminal of the first comparator OP1. C12 is configured to receive the identification signal IDV, the output of the first comparator OP1 is coupled to a first diode D1, and the first input C21 of the second comparator OP2 is configured to receive the identification signal IDV, and the second comparator OP2 The second input terminal C22 is coupled to the second voltage, and the output terminal of the second comparator OP2 is coupled to the second diode D2.

其中,第一或第二比較器OP1、OP2例如為運算放大器(Operational Amplifier),其中第一輸入端C11、C21例如為非反相輸入端,而第二輸入端C12、C22例如為反相輸入端,因此,第一 或第二比較器OP1、OP2用以比較非反相輸入端及反相輸入端的電壓,並生成與該結果相對的信號,本實施例不限制第一或第二比較器OP1、OP2的態樣。 The first or second comparators OP1 and OP2 are, for example, operational amplifiers, wherein the first input terminals C11 and C21 are, for example, non-inverting inputs, and the second input terminals C12 and C22 are, for example, inverting inputs. End, therefore, first Or the second comparators OP1 and OP2 are used to compare the voltages of the non-inverting input terminal and the inverting input terminal, and generate a signal opposite to the result, and the embodiment does not limit the aspect of the first or second comparators OP1 and OP2. .

簡單來說,第一比較器OP1用以比較第一及第二輸入端C11、C12的電壓,例如比較上限電壓與識別訊號IDV的電壓,以生成與該結果相對的信號。當非反相輸入端的電壓大於反相輸入端的電壓時,比較器OP1、OP2會輸出一高電壓位準或一高邏輯位準,反之,當非反相輸入端的電壓小於反相輸入端的電壓時,比較器OP1、OP2會輸出一低電壓位準或一低邏輯位準。 Briefly, the first comparator OP1 is used to compare the voltages of the first and second input terminals C11, C12, for example, the upper limit voltage and the voltage of the identification signal IDV to generate a signal opposite to the result. When the voltage of the non-inverting input terminal is greater than the voltage of the inverting input terminal, the comparators OP1 and OP2 output a high voltage level or a high logic level. Conversely, when the voltage of the non-inverting input terminal is lower than the voltage of the inverting input terminal. The comparators OP1 and OP2 output a low voltage level or a low logic level.

同理可知,第二比較器OP2用以比較第一及第二輸入端C21、C22的電壓,例如比較識別訊號IDV的電壓與下限電壓,並生成與該結果相對的信號。第一及第二比較器OP1、OP2具有相同的功用,在此不予贅述。 Similarly, the second comparator OP2 is used to compare the voltages of the first and second input terminals C21 and C22, for example, to compare the voltage of the identification signal IDV with the lower limit voltage, and generate a signal opposite to the result. The first and second comparators OP1 and OP2 have the same functions and will not be described herein.

另外,第一或第二二極體D1、D2例如為稽納二極體,本實施例不限制第一或第二二極體D1、D2的態樣。第一二極體D1的陰極端耦接第一比較器OP1的第一輸出端CO1,第二二極體D2的陰極端耦接第二比較器OP2的第一輸出端CO1,而第一及第二二極體D1、D2的陽極端耦接多工處理單元12的SEL接腳。 In addition, the first or second diodes D1 and D2 are, for example, a sinus diode, and the embodiment does not limit the aspect of the first or second diodes D1 and D2. The cathode end of the first diode OP1 is coupled to the first output terminal CO1 of the first comparator OP1, and the cathode end of the second diode D2 is coupled to the first output terminal CO1 of the second comparator OP2. The anode ends of the second diodes D1 and D2 are coupled to the SEL pins of the multiplex processing unit 12.

值得一提的是,多工處理單元12的SEL接腳耦接判斷單元14,多工處理單元12的Y0及Y1接腳耦接通用序列匯流排單元16,多工處理單元12的P1及P2接腳用以輸出或接收通用序列匯流排訊號,而P3、P4接腳用以接收通用非同步收發器訊號,其中第一訊號或第二訊號自判斷單元14,經由SEL接腳以傳輸至多工處理單元12,因此,多工處理單元12可根據第一訊號或第二訊號,並透過Y0及Y1接腳以輸出通用序列匯流排訊號或通用非同步收發器訊號。 It is worth mentioning that the SEL pin of the multiplex processing unit 12 is coupled to the determining unit 14, the Y0 and Y1 pins of the multiplex processing unit 12 are coupled to the sequence bus bar unit 16, and the P1 and P2 of the multiplex processing unit 12. The pin is used to output or receive the universal serial bus signal, and the P3 and P4 pins are used to receive the universal asynchronous transceiver signal. The first signal or the second signal is sent from the determining unit 14 to the multiplex via the SEL pin. The processing unit 12, therefore, the multiplex processing unit 12 can output a universal sequence bus signal or a universal non-synchronous transceiver signal according to the first signal or the second signal and through the Y0 and Y1 pins.

此外,圖2中識別訊號IDV的輸入節點耦接於一可調式電阻(未繪示),而這可調式電阻的一端接地,這可調式電阻的另一端耦接 一常規電阻(未繪示),其中,這常規電阻的的阻抗數值為一固定數值大小,且這常規電阻的的另一端耦接一工作電壓VDD,因此,可調式電阻與常規電阻將形成一分壓電路,其中,可調式電阻的阻抗數值大小將影響識別訊號IDV的電壓數值,例如可調式電阻的阻抗數值為10K歐姆時,識別訊號IDV的電壓數值為2.06伏特,當可調式電阻的阻抗數值為1K歐姆時,識別訊號IDV的電壓數值為2.3伏特,藉此,使用者可透過調整可調式電阻的阻抗數值,以使識別訊號IDV的電壓數值介於第一電壓與第二電壓之間,所以,使用者可隨時隨地透過調整可調式電阻,以檢測主機板並進行除錯作業。 In addition, the input node of the identification signal IDV in FIG. 2 is coupled to an adjustable resistor (not shown), and one end of the adjustable resistor is grounded, and the other end of the adjustable resistor is coupled. A conventional resistor (not shown), wherein the impedance value of the conventional resistor is a fixed value, and the other end of the conventional resistor is coupled to an operating voltage VDD. Therefore, the adjustable resistor and the conventional resistor form a The voltage dividing circuit, wherein the magnitude of the impedance of the adjustable resistor affects the voltage value of the identification signal IDV. For example, when the impedance value of the adjustable resistor is 10K ohms, the voltage value of the identification signal IDV is 2.06 volts, when the adjustable resistor is When the impedance value is 1K ohm, the voltage value of the identification signal IDV is 2.3 volts, whereby the user can adjust the impedance value of the adjustable resistor so that the voltage value of the identification signal IDV is between the first voltage and the second voltage. Therefore, the user can adjust the adjustable resistor to detect the motherboard and perform debugging operations anytime and anywhere.

圖3為根據圖2之本發明另一實施例之除錯測試電路之識別運作表。請參閱圖3與圖2。為了方便說明,本發明之第一電壓例如為2.2伏特,第二電壓例如為1.1伏特,因此,第一比較器OP1的非反相輸入端的電壓為2.2伏特,而第二比較器OP2的反相輸入端的電壓為1.1伏特,其中使用者透過通用序列匯流排以插接本發明之通用序列匯流排單元16,而本實施例係以3伏特、0伏特及1.5伏特的識別的電壓訊號來說明,所屬技術領域具有通常知識者可自由設計第一及第二電壓、識別訊號IDV的電壓數值。 3 is an identification operation table of a debug test circuit according to another embodiment of the present invention. Please refer to Figure 3 and Figure 2. For convenience of explanation, the first voltage of the present invention is, for example, 2.2 volts, and the second voltage is, for example, 1.1 volts. Therefore, the voltage of the non-inverting input terminal of the first comparator OP1 is 2.2 volts, and the phase of the second comparator OP2 is inverted. The voltage at the input is 1.1 volts, wherein the user inserts the universal serial bus unit 16 of the present invention through a universal serial bus, and this embodiment is illustrated by the identified voltage signals of 3 volts, 0 volts, and 1.5 volts. Those skilled in the art can freely design voltage values of the first and second voltages and the identification signal IDV.

於狀態一的操作狀況下,判斷單元14接收到例如為3V的識別訊號IDV的電壓,其中第一比較器OP1比較出非反相輸入端的電壓小於反相輸入端的電壓,因此,第一比較器OP1生成一低邏輯位準的訊號;另第二比較器OP2比較出非反相輸入端的電壓大於反相輸入端的電壓,因此,第二比較器OP2生成一高邏輯位準的訊號。 In the operating state of the state 1, the determining unit 14 receives a voltage of the identification signal IDV of, for example, 3V, wherein the first comparator OP1 compares the voltage of the non-inverting input terminal with the voltage of the inverting input terminal, and therefore, the first comparator OP1 generates a low logic level signal; the second comparator OP2 compares the voltage of the non-inverting input terminal to be greater than the voltage of the inverting input terminal. Therefore, the second comparator OP2 generates a signal with a high logic level.

多工處理單元12的SEL接腳會接收到一低邏輯位準與一高邏輯位準的訊號,其中低邏輯位準與高邏輯位準的訊號例如為不相等的訊號,而上述這些不相同的訊號例如為第二訊號,因此,多工處理單元12根據第二訊號以選擇通用序列匯流排通道,而上述 此功用為通用序列匯流排-用戶端(USB-Client),藉此區別主機板端為主埠,而隨身碟裝置端為從埠。 The SEL pin of the multiplex processing unit 12 receives a low logic level and a high logic level signal, wherein the low logic level and the high logic level signal are, for example, unequal signals, and the above are different. The signal is, for example, a second signal. Therefore, the multiplex processing unit 12 selects a universal sequence bus channel according to the second signal, and the above This function is a universal serial bus-user terminal (USB-Client), which distinguishes the motherboard side as the main port, and the pen drive device side as the slave port.

接下來,於狀態二的操作狀況下,判斷單元14接收到例如為0V的識別訊號IDV的電壓,其中第一比較器OP1比較出非反相輸入端的電壓大於反相輸入端的電壓,因此,第一比較器OP1生成一高邏輯位準的訊號;另第二比較器OP2比較出非反相輸入端的電壓小於反相輸入端的電壓,因此,第二比較器OP2生成一低邏輯位準的訊號。 Next, in the operation state of the second state, the determining unit 14 receives the voltage of the identification signal IDV, for example, 0V, wherein the first comparator OP1 compares the voltage of the non-inverting input terminal with the voltage of the inverting input terminal, therefore, A comparator OP1 generates a high logic level signal; and a second comparator OP2 compares the voltage of the non-inverting input terminal to a voltage lower than the inverting input terminal. Therefore, the second comparator OP2 generates a low logic level signal.

多工處理單元12的SEL接腳會接收到一高邏輯位準與一低邏輯位準的訊號,其中高邏輯位準與低邏輯位準的訊號例如為不相等的訊號,而上述這些不相同的訊號例如為第二訊號,因此,多工處理單元12根據第二訊號以選擇通用序列匯流排通道,而上述此功用為通用序列匯流排-主機端(USB-Host),藉此區別主機板端為從埠,而隨身碟裝置端為主埠。 The SEL pin of the multiplex processing unit 12 receives a high logic level and a low logic level signal, wherein the high logic level and the low logic level signal are, for example, unequal signals, and the above are different. The signal is, for example, a second signal. Therefore, the multiplex processing unit 12 selects a universal sequence bus channel according to the second signal, and the above function is a universal serial bus-host (USB-Host), thereby distinguishing the motherboard. The end is slave, and the pen drive device is the main one.

之後,於狀態三的操作狀況下,判斷單元14接收到例如為1.5V的識別訊號IDV的電壓,其中第一比較器OP1比較出非反相輸入端的電壓大於反相輸入端的電壓,因此,第一比較器OP1生成一高邏輯位準的訊號;另第二比較器OP2比較出非反相輸入端的電壓大於反相輸入端的電壓,因此,第二比較器OP2生成一高邏輯位準的訊號。 Thereafter, in the operating state of state three, the determining unit 14 receives a voltage of, for example, an identification signal IDV of 1.5 V, wherein the first comparator OP1 compares the voltage of the non-inverting input terminal with the voltage of the inverting input terminal, and therefore, A comparator OP1 generates a high logic level signal; and a second comparator OP2 compares the voltage of the non-inverting input terminal to a voltage greater than the inverting input terminal. Therefore, the second comparator OP2 generates a high logic level signal.

多工處理單元12的SEL接腳會接收到二個高邏輯位準的訊號,其中這二個高邏輯位準的訊號例如為相同的訊號,而上述這些相同的訊號為第一訊號,因此,多工處理單元12根據第一訊號以選擇通用非同步收發器通道,而上述此功用為除錯-通用非同步收發器(Debug-UART),因此使用者可透過電腦裝置9以進行除錯作業。 The SEL pin of the multiplex processing unit 12 receives two high logic level signals, wherein the two high logic level signals are, for example, the same signal, and the same signals are the first signals. The multiplex processing unit 12 selects a universal non-synchronous transceiver channel according to the first signal, and the above function is a debug-universal asynchronous transceiver (Debug-UART), so that the user can perform debugging operations through the computer device 9. .

圖4為本發明另一實施例之除錯測試方法之流程圖。請參閱 圖4與圖1。一種除錯測試方法,適用於檢測一主機板,包括:於步驟S401中,判斷通用序列匯流排單元16是否接收到一識別訊號。在實務上,使用者透過隨身碟裝置或具有通用序列匯流排的裝置,以插接本發明之通用序列匯流排單元16時,隨身碟裝置或具有通用序列匯流排的裝置將產生識別訊號,並傳輸給判斷單元14,而判斷單元14可判別是否接收識別訊號,若是,則進行步驟S403;若否,則本發明之通用序列匯流排單元16仍維持原始狀態或待命狀態。 4 is a flow chart of a debugging test method according to another embodiment of the present invention. See Figure 4 and Figure 1. A debugging test method, applicable to detecting a motherboard, includes: determining, in step S401, whether the universal sequence bus unit 16 receives an identification signal. In practice, when the user inserts the universal serial bus unit 16 of the present invention through the flash drive device or the device having the universal serial bus, the flash drive device or the device having the universal serial bus will generate an identification signal, and The determination unit 14 can determine whether to receive the identification signal, and if so, proceed to step S403; if not, the universal sequence bus unit 16 of the present invention maintains the original state or the standby state.

於步驟S403中,判斷識別訊號是否為一設定訊號。在實務上,判斷單元14會根據識別訊號,以判別這識別訊號是否為設定訊號,其中判別設定訊號的條件為,這識別訊號的電壓係介於第一電壓及第二電壓之間,當判斷單元14的判斷結果為是時,則進行步驟S405,若判斷單元14的判斷結果為否時,則進行步驟S409。 In step S403, it is determined whether the identification signal is a set signal. In practice, the determining unit 14 determines whether the identification signal is a set signal according to the identification signal, wherein the condition for determining the set signal is that the voltage of the identification signal is between the first voltage and the second voltage, when judging If the determination result of the unit 14 is YES, the process proceeds to step S405, and if the determination result of the determination unit 14 is NO, the process proceeds to step S409.

於步驟S405中,判斷單元14輸出一第一訊號給多工處理單元12。在實務上,步驟S403的判斷結果為是,係表示本發明之通用序列匯流排單元16係插接到一進行除錯作業的電腦裝置9,因此,判斷單元14輸出第一訊號給多工處理單元12,其中第一訊號係為指示多工處理單元12選擇通用非同步收發器通道的訊號。 In step S405, the determining unit 14 outputs a first signal to the multiplex processing unit 12. In practice, the determination result in step S403 is YES, indicating that the universal sequence bus bar unit 16 of the present invention is plugged into a computer device 9 for performing a debugging operation, and therefore, the determining unit 14 outputs the first signal to the multiplex processing. The unit 12, wherein the first signal is a signal indicating that the multiplex processing unit 12 selects a universal non-synchronous transceiver channel.

接著,於步驟S407中,多工處理單元12根據第一訊號以導通一除錯通道U1。在實務上,通用非同步收發器通道係用以進行除錯作業的通道,因此,當除錯通道U1導通時,上述進行除錯作業的電腦裝置9將可接收到中央處理單元10的除錯訊息,例如為TX/RX的除錯訊息,因此,使用者可不必拆裝機殼,並透過主機板預留於電子設備外部的通用序列匯流排單元16以進行除錯作業,藉此提升除錯作業的方便性。 Next, in step S407, the multiplex processing unit 12 turns on a debug channel U1 according to the first signal. In practice, the universal asynchronous transceiver channel is used for the channel of the debugging operation. Therefore, when the debugging channel U1 is turned on, the computer device 9 performing the debugging operation can receive the debugging of the central processing unit 10. The message is, for example, a debug message of the TX/RX. Therefore, the user does not need to disassemble the chassis, and the general-purpose serial bus unit 16 outside the electronic device is reserved through the motherboard for debugging, thereby improving the deletion. The convenience of wrong work.

另外,於步驟S409中,判斷識別訊號是否為一預設訊號。在實務上,判斷單元14會根據識別訊號,以判別這識別訊號是否為預設訊號,其中判別預設訊號的條件為,這識別訊號的電壓大於 第一電壓,或是這識別訊號的電壓小於第二電壓,當判斷單元14的判斷結果為是時,則進行步驟S411,若判斷單元14的判斷結果為否時,則本發明之通用序列匯流排單元16仍維持原始狀態或待命狀態。 In addition, in step S409, it is determined whether the identification signal is a preset signal. In practice, the determining unit 14 determines whether the identification signal is a preset signal according to the identification signal, wherein the condition for determining the preset signal is that the voltage of the identification signal is greater than The first voltage, or the voltage of the identification signal is less than the second voltage. When the determination result of the determining unit 14 is YES, the process proceeds to step S411, and if the determination result of the determining unit 14 is negative, the universal sequence convergence of the present invention. Row unit 16 remains in its original state or standby state.

於步驟S411中,判斷單元14輸出一第二訊號給多工處理單元12。在實務上,步驟S409的判斷結果為是,係表示本發明之通用序列匯流排單元16係插接到一隨身碟裝置,因此,判斷單元14輸出第二訊號給多工處理單元12,其中第二訊號係為指示多工處理單元12選擇通用序列匯流排通道U2的訊號。 In step S411, the determining unit 14 outputs a second signal to the multiplex processing unit 12. In practice, the determination result in step S409 is YES, indicating that the universal sequence bus bar unit 16 of the present invention is plugged into a flash drive device, and therefore, the determining unit 14 outputs the second signal to the multiplex processing unit 12, wherein The second signal is a signal for instructing the multiplex processing unit 12 to select the universal serial bus channel U2.

於步驟S413中,多工處理單元12根據第二訊號以導通一通用序列匯流排通道U2。在實務上,通用序列匯流排通道U2係用以進行一般的通用序列匯流排訊號或電力傳輸的通道,因此,當通用序列匯流排通道U2導通時,上述隨身碟裝置將可接收到中央處理單元10的通用序列匯流排訊息,例如為D+/D-的通用序列匯流排訊息,因此,使用者可進行隨插即用的資料存取等作業。 In step S413, the multiplex processing unit 12 turns on a general sequence bus channel U2 according to the second signal. In practice, the universal sequence bus channel U2 is used to perform a general universal sequence bus signal or power transmission channel. Therefore, when the universal sequence bus channel U2 is turned on, the above-mentioned flash drive device can receive the central processing unit. The universal sequence bus message of 10, for example, the general sequence bus message of D+/D-, allows the user to perform operations such as plug-and-play data access.

值得一提的是,步驟S403~S407以及步驟S409~S413可調整先後順序,例如可先進行步驟S409「判斷識別訊號是否為一預設訊號」的判斷,再進行步驟S403「判斷識別訊號是否為一設定訊號」的判斷,當然,根據步驟S409或步驟S403的判斷結果,將進行相對應的後續步驟。此外,在其他實施例中,步驟S409~S413是可以省略的步驟,例如步驟S409~S413係由原始的通用序列匯流排的規範來界定,而除錯測試電路1進行步驟S403~S407的判斷,當然,步驟S403「判斷識別訊號是否為一設定訊號」的判斷為否時,可交由原始的通用序列匯流排規範的電路來判斷,本實施例不限制除錯測試方法的流程的態樣。 It is worth mentioning that the steps S403 ~ S407 and steps S409 ~ S413 can adjust the order of, for example, can be the first step S409, "determine whether the identification signal to a predetermined signal" judgment, then step S403 "determine whether the identifying signal The judgment of a setting signal", of course, according to the judgment result of step S409 or step S403, the corresponding subsequent steps will be performed. In addition, in other embodiments, steps S409 to S413 are steps that can be omitted. For example, steps S409 to S413 are defined by the specification of the original universal sequence bus, and the debug test circuit 1 performs the determination of steps S403 to S407. Certainly, when the determination in step S403, "determine whether the identification signal is a setting signal" is negative, it may be judged by the circuit of the original universal sequence bus specification. This embodiment does not limit the aspect of the flow of the debugging test method.

綜上所述,本發明之除錯測試電路透過通用序列匯流排單元,以外接至一進行除錯作業的電腦裝置,其中,使用者可透過通用序列匯流排,以插接本發明之除錯測試電路,其中判斷單元 根據通用序列匯流排所輸出的識別訊號,以判別是否為第一訊號,當判別的結果為第一訊號時,多工處理單元將導通一通用非同步收發器通道,藉此達到節省時間、降低成本與提升檢測主機板的方便性。此外,當判別的結果為第二訊號時,多工處理單元將導通一通用序列匯流排通道,藉此達到隨插即用的資料存取的方便性。 In summary, the debug test circuit of the present invention is externally coupled to a computer device for performing debug operations through a universal serial bus unit, wherein the user can insert the debug of the present invention through the universal serial bus. Test circuit According to the identification signal outputted by the universal sequence bus, to determine whether it is the first signal, when the result of the determination is the first signal, the multiplex processing unit will turn on a universal asynchronous transceiver channel, thereby saving time and reducing Cost and ease of inspection of the motherboard. In addition, when the result of the discrimination is the second signal, the multiplex processing unit will turn on a universal sequence bus channel, thereby achieving the convenience of plug-and-play data access.

以上所述僅為本發明之實施例,其並非用以侷限本發明之專利範圍。 The above description is only an embodiment of the present invention, and is not intended to limit the scope of the invention.

1‧‧‧除錯測試電路 1‧‧‧Debug test circuit

9‧‧‧電腦裝置 9‧‧‧Computer equipment

10‧‧‧中央處理單元 10‧‧‧Central Processing Unit

12‧‧‧多工處理單元 12‧‧‧Multiworking unit

14‧‧‧判斷單元 14‧‧‧judging unit

140‧‧‧比較線路 140‧‧‧Comparative lines

16‧‧‧通用序列匯流排單元 16‧‧‧Common sequence bus unit

18‧‧‧轉換裝置 18‧‧‧ Conversion device

181‧‧‧第一連接元件 181‧‧‧First connecting element

182‧‧‧第二連接元件 182‧‧‧Second connection element

U1‧‧‧除錯通道 U1‧‧‧Wiring channel

U2‧‧‧通用序列匯流排通道 U2‧‧‧Universal Sequence Bus Channel

Claims (11)

一種除錯測試電路,設置於一主機板,包括:一中央處理單元;一多工處理單元,透過一除錯通道及一通用序列匯流排通道,以耦接該中央處理單元;一判斷單元,耦接該多工處理單元;及一通用序列匯流排單元,耦接於該多工處理單元與該判斷單元;其中,於該通用序列匯流排單元接收到一識別訊號時,由該判斷單元判別該識別訊號,於判別出該識別訊號係屬一設定訊號時,該判斷單元輸出一第一訊號給該多工處理單元,以使該多工處理單元切換導通該除錯通道。 A debugging test circuit is provided on a motherboard, comprising: a central processing unit; a multiplex processing unit, coupled to the central processing unit through a debug channel and a universal serial bus channel; a determining unit, The multiplex processing unit is coupled to the multiplex processing unit and coupled to the multiplex processing unit and the determining unit; wherein when the universal sequence bus unit receives an identification signal, the determining unit determines The determining signal, when determining that the identification signal belongs to a setting signal, the determining unit outputs a first signal to the multiplexing processing unit, so that the multiplexing processing unit switches to turn on the debugging channel. 如申請專利範圍第1項所述之除錯測試電路,其中於該通用序列匯流排單元接收到該識別訊號時,該識別訊號經由該判斷單元判別,於判別出該識別訊號係屬一預設訊號時,該判斷單元輸出一第二訊號給該多工處理單元,以使該多工處理單元切換導通該通用序列匯流排通道。 The debug test circuit of claim 1, wherein when the identification signal is received by the universal sequence bus unit, the identification signal is determined by the determining unit, and the identification signal is determined to be a preset. During the signal, the determining unit outputs a second signal to the multiplex processing unit, so that the multiplex processing unit switches to turn on the universal sequence bus channel. 如申請專利範圍第1或2項所述之除錯測試電路,其中該判斷單元更包括一比較線路,該比較線路具有一第一電壓與一第二電壓,該第一電壓大於該第二電壓,當該識別訊號經判別而介於該第一電壓與該第二電壓之間時,該判斷單元判別出該識別訊號係屬該設定訊號。 The debugging test circuit of claim 1 or 2, wherein the determining unit further comprises a comparison circuit having a first voltage and a second voltage, the first voltage being greater than the second voltage When the identification signal is determined to be between the first voltage and the second voltage, the determining unit determines that the identification signal belongs to the setting signal. 如申請專利範圍第3項所述之除錯測試電路,其中該比較線路包括一第一比較器與一第二比較器,該第一比較器的一第一輸入端耦接該第一電壓,該第一比較器的一第二輸入端用以接收該識別訊號,該第一比較器的一第一輸出端耦接一第一二極體,該第二比較器的一第一輸入端用以接收該識別訊號,該第二比較器的一第二輸入端耦接該第二電壓,該第二比較器的一 第二輸出端耦接一第二二極體。 The debug circuit of claim 3, wherein the comparison circuit includes a first comparator and a second comparator, a first input of the first comparator is coupled to the first voltage, A first input end of the first comparator is configured to receive the identification signal, a first output end of the first comparator is coupled to a first diode, and a first input end of the second comparator is used Receiving the identification signal, a second input end of the second comparator is coupled to the second voltage, and one of the second comparators The second output is coupled to a second diode. 如申請專利範圍第3項所述之除錯測試電路,其中當該識別訊號經判別而大於該第一電壓,或是該識別訊號經判別而小於該第二電壓時,該判斷單元判別出該識別訊號係屬該預設訊號。 The debugging test circuit of claim 3, wherein the determining unit discriminates when the identification signal is determined to be greater than the first voltage, or the identification signal is determined to be smaller than the second voltage The identification signal is the preset signal. 如申請專利範圍第2項所述之除錯測試電路,其中該第一訊號為指示該多工處理單元選擇除錯通道的訊號,而第二訊號為指示該多工處理單元選擇通用序列匯流排的訊號。 The debug test circuit of claim 2, wherein the first signal is a signal indicating that the multiplex processing unit selects a debug channel, and the second signal is to indicate that the multiplex processing unit selects a universal sequence bus Signal. 如申請專利範圍第2項所述之除錯測試電路,其中該除錯通道為一通用非同步收發器通道,於該多工處理單元導通該通用非同步收發器通道時,該中央處理單元輸出或接收一通用非同步收發器訊號,而該通用非同步收發器訊號經由該通用非同步收發器通道,以傳輸至該多工處理單元,並經由該通用序列匯流排單元輸出,或是該通用非同步收發器訊號經由該通用序列匯流排單元輸入,以傳輸至該多工處理單元,並經由該通用非同步收發器通道傳輸該中央處理單元。 The debug test circuit of claim 2, wherein the debug channel is a general-purpose asynchronous transceiver channel, and the central processing unit outputs when the multiplex processing unit turns on the universal asynchronous transceiver channel. Or receiving a universal asynchronous transceiver signal, and the universal asynchronous transceiver signal is transmitted to the multiplex processing unit via the universal asynchronous transceiver channel, and outputted through the universal serial bus unit, or the universal The asynchronous transceiver signal is input via the universal sequence bus unit for transmission to the multiplex processing unit and the central processing unit is transmitted via the universal asynchronous transceiver channel. 如申請專利範圍第7項所述之除錯測試電路,更包括一轉換裝置,具有一第一連接元件與一第二連接元件,該第一連接元件用以連接該通用序列匯流排單元,該第二連接元件用以連接一電腦裝置,而該第一連接元件為通用序列匯流排,該第二連接元件為RS-232,而該通用非同步收發器訊號經由該轉換裝置傳輸至該電腦裝置,或是該電腦裝置傳輸該通用非同步收發器訊號,並經由該轉換裝置傳輸至該通用序列匯流排單元。 The debug test circuit of claim 7, further comprising a conversion device having a first connection component and a second connection component, the first connection component being used to connect the universal serial bus unit, The second connecting component is connected to a computer device, and the first connecting component is a universal serial bus, the second connecting component is RS-232, and the universal asynchronous transceiver signal is transmitted to the computer device via the converting device Or the computer device transmits the universal asynchronous transceiver signal and transmits to the universal serial bus unit via the conversion device. 一種除錯測試方法,適用檢測一主機板,該主機板具有一中央處理單元、一多工處理單元、一判斷單元及一通用序列匯流排單元,該多工處理單元耦接於該中央處理單元、該判斷單元與該通用序列匯流排單元之間,而該多工處理單元透過一除錯通道及一通用序列匯流排通道,以耦接該中央處理單元,而該除錯測試方法包括: 於該通用序列匯流排單元接收到一識別訊號時,判斷該識別訊號是否為一設定訊號,若判斷結果為是,則該判斷單元輸出一第一訊號給該多工處理單元;及該多工處理單元根據該第一訊號以導通該除錯通道。 A debugging method for detecting a motherboard having a central processing unit, a multiplexing processing unit, a determining unit, and a universal serial bus unit coupled to the central processing unit The multiplex processing unit is coupled to the central processing unit through a debug channel and a universal serial bus channel, and the debug test method includes: When the universal sequence bus unit receives an identification signal, determining whether the identification signal is a set signal, and if the determination result is yes, the determining unit outputs a first signal to the multiplex processing unit; and the multiplexing The processing unit turns on the debug channel according to the first signal. 如申請專利範圍第9項所述之除錯測試方法,其中於判斷該識別訊號是否為一設定訊號之步驟中,更包括:若判斷該識別訊號不是該設定訊號時,則判斷該識別訊號是否為一預設訊號,若判斷該識別訊號為該預設訊號時,則該判斷單元輸出一第二訊號給該多工處理單元;及該多工處理單元根據該第二訊號以導通該通用序列匯流排通道。 The method of determining the debug signal according to the ninth aspect of the invention, wherein the determining whether the identification signal is a set signal further comprises: determining whether the identification signal is not the set signal, determining whether the identification signal is If the identification signal is a preset signal, the determining unit outputs a second signal to the multiplex processing unit; and the multiplex processing unit turns on the universal sequence according to the second signal Bus channel. 如申請專利範圍第10項所述之除錯測試方法,其中該判斷單元包括一具有一第一電壓與一第二電壓的比較線路,而該第一電壓大於該第二電壓,當該識別訊號介於該比較線路的該第一電壓與該第二電壓之間時,該判斷單元判別出該識別訊號係屬該設定訊號;當該識別訊號大於該比較線路的該第一電壓,或是該識別訊號小於該比較線路的該第二電壓時,該判斷單元判別出該識別訊號係屬該預設訊號。 The debugging test method of claim 10, wherein the determining unit comprises a comparison line having a first voltage and a second voltage, and the first voltage is greater than the second voltage, when the identification signal When the first voltage of the comparison line is between the first voltage and the second voltage, the determining unit determines that the identification signal belongs to the setting signal; when the identification signal is greater than the first voltage of the comparison line, or When the identification signal is less than the second voltage of the comparison line, the determining unit determines that the identification signal belongs to the preset signal.
TW102143278A 2013-11-27 2013-11-27 Debug test circuit and method thereof TWI524177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102143278A TWI524177B (en) 2013-11-27 2013-11-27 Debug test circuit and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102143278A TWI524177B (en) 2013-11-27 2013-11-27 Debug test circuit and method thereof

Publications (2)

Publication Number Publication Date
TW201520760A TW201520760A (en) 2015-06-01
TWI524177B true TWI524177B (en) 2016-03-01

Family

ID=53935006

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102143278A TWI524177B (en) 2013-11-27 2013-11-27 Debug test circuit and method thereof

Country Status (1)

Country Link
TW (1) TWI524177B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408443A (en) * 2017-08-18 2019-03-01 神讯电脑(昆山)有限公司 Electronic device and its means of communication

Also Published As

Publication number Publication date
TW201520760A (en) 2015-06-01

Similar Documents

Publication Publication Date Title
US7921233B2 (en) Signal converter for an all-in-one USB connector that includes USB 2.0, USB 3.0 and eSATA
CN108475227B (en) Test functional assembly and data debugging method
TW201820159A (en) Hub
US8832347B2 (en) Automatic detection device, system and method for inter-integrated circuit and serial general purpose input/output
US8886864B1 (en) Interface card apparatus
CN106445858B (en) Information processing method, information processing module and electronic equipment
KR20110053536A (en) Express interface apparatus using optical connection
TW201520754A (en) System for detecting universal serial bus (USB) device and method thereof
WO2017161750A1 (en) Mobile apparatus
US8886859B2 (en) USB storage device
CN113392054B (en) Interface integrated circuit and server
US20170039153A1 (en) Mobile device and method for reading uart data
JP2014534509A (en) System, IO connector assembly and storage medium for connection
US20120096286A1 (en) Charging management method, charging control circuit and the host apparatus having the same
CN109346883B (en) System for realizing positive and negative insertion of Type-C interface
CN114860639A (en) UART aggregation and JTAG selection circuit for multiple solid state drive environments
TWI524177B (en) Debug test circuit and method thereof
CN111984569A (en) Interface switching circuit and electronic device using same
CN101853232B (en) Extensible adapter
US20140201420A1 (en) Transmission interface system with detection function and method
CN102479129B (en) Detecting device for states of peripheral components
TWI731295B (en) Display apparatus and method for controlling display apparatus
TWM483532U (en) Motherboard and debug device
US8909821B2 (en) Slim-line connector for serial ATA interface that is mounted on expansion bay of computer includes detection signals which indicate connection status and type of device
TWI780910B (en) Testing tool

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees