TWI765240B - Usb hub and operating method thereof - Google Patents

Usb hub and operating method thereof Download PDF

Info

Publication number
TWI765240B
TWI765240B TW109110613A TW109110613A TWI765240B TW I765240 B TWI765240 B TW I765240B TW 109110613 A TW109110613 A TW 109110613A TW 109110613 A TW109110613 A TW 109110613A TW I765240 B TWI765240 B TW I765240B
Authority
TW
Taiwan
Prior art keywords
power
coupled
usb connector
power switch
usb
Prior art date
Application number
TW109110613A
Other languages
Chinese (zh)
Other versions
TW202109301A (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 CN202010331011.3A priority Critical patent/CN111581147B/en
Priority to US16/879,791 priority patent/US11151069B2/en
Publication of TW202109301A publication Critical patent/TW202109301A/en
Application granted granted Critical
Publication of TWI765240B publication Critical patent/TWI765240B/en

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

A USB hub and an operating method thereof are provided. The USB hub includes a first USB connector, a second USB connector, a first power switch, a second power switch, a power converter, and a third power switch. The first USB connector is coupled to a first device, and the second USB connector is coupled to a second device. The first power switch has a first end coupled to a power pin of the first USB connector. The second power switch has a first end coupled to a second end of the first power switch, wherein a second end of the second power switch is coupled to a power pin of the second USB connector. The power converter has an input coupled to the second end of the first power switch. The third power switch has a first end coupled to an output of the power converter, wherein a second end of the third power switch is coupled to the power pin of the second USB connector.

Description

USB集線器及其操作方法USB hub and how to operate it

本發明是有關於一種集線器,且特別是有關於一種通用序列匯流排(Universal Serial Bus,USB)集線器。The present invention relates to a hub, and more particularly, to a Universal Serial Bus (USB) hub.

一般而言,USB Type-C(USB-C)集線器或是USB-C供電(Power Delivery,PD)集線器的USB上行埠(Upstream-Facing Port,UFP)只能耦接到具有USB-C介面的主機(host)裝置(例如電腦、手機或平板電腦),並且可用作資料傳輸的周邊擴充埠或上行鏈路(uplink)。集線器的一個USB下行埠(Downstream-Facing Port,DFP)可耦接到電力適配器(power adapter)的供電(PD)USB連接器。集線器的其他USB下行埠可耦接到任何需與主機裝置進行資料傳輸的其他裝置。Generally speaking, the USB Upstream-Facing Port (UFP) of a USB Type-C (USB-C) hub or USB-C Power Delivery (PD) hub can only be coupled to a USB-C interface. A host device (such as a computer, mobile phone, or tablet) that can be used as a peripheral expansion port or uplink for data transfer. A USB Downstream-Facing Port (DFP) of the hub can be coupled to a power supply (PD) USB connector of a power adapter. The other USB downstream ports of the hub can be coupled to any other device that needs to communicate with the host device.

當集線器的具有直通充電(Charge-Through)功能的一個USB連接器(USB下行埠)耦接到電力適配器時,集線器可以操作於直通充電模式。在主機裝置經由所述集線器對所述其他裝置進行資料傳輸的同時,電力適配器可以經由所述集線器對主機裝置進行充電。然而,在電力適配器耦接到集線器的上行埠的狀況下,電力適配器無法對耦接到具有直通充電功能的所述USB連接器(USB下行埠)的其他裝置進行充電。When a USB connector (USB downstream port) with a Charge-Through function of the hub is coupled to the power adapter, the hub can operate in the charge-through mode. The power adapter may charge the host device via the hub while the host device is transferring data to the other device via the hub. However, when the power adapter is coupled to the upstream port of the hub, the power adapter cannot charge other devices coupled to the USB connector (USB downstream port) with a pass-through charging function.

須注意的是,「先前技術」段落的內容是用來幫助了解本發明。在「先前技術」段落所揭露的部份內容(或全部內容)可能不是所屬技術領域中具有通常知識者所知道的習知技術。在「先前技術」段落所揭露的內容,不代表該內容在本發明申請前已被所屬技術領域中具有通常知識者所知悉。It should be noted that the content of the "prior art" paragraph is used to help understand the present invention. Some (or all) of the content (or all of the content) disclosed in the "prior art" paragraph may not be known by those of ordinary skill in the art. The content disclosed in the "Prior Art" paragraph does not mean that the content has been known to those with ordinary knowledge in the technical field before the application of the present invention.

本發明提供一種USB集線器及其操作方法。所述USB集線器的上行埠可以接收電力適配器的輸出功率。The present invention provides a USB hub and an operation method thereof. The upstream port of the USB hub can receive the output power of the power adapter.

本發明的USB集線器包括第一USB連接器、第二USB連接器、第一功率開關、第二功率開關、第一電力轉換器以及第三功率開關。第一USB連接器作為一上行埠,用以耦接一第一裝置。第二USB連接器作為一下行埠,用以耦接一第二裝置。第一功率開關具有第一端耦接至該第一USB連接器的電力腳位。第二功率開關具有第一端耦接至該第一功率開關的第二端,其中該第二功率開關的第二端耦接至該第二USB連接器的電力腳位。第一電力轉換器具有輸入端耦接至該第一功率開關的該第二端。第三功率開關具有第一端耦接至該第一電力轉換器的輸出端,其中該第三功率開關的第二端耦接至該第二USB連接器的該電力腳位。The USB hub of the present invention includes a first USB connector, a second USB connector, a first power switch, a second power switch, a first power converter, and a third power switch. The first USB connector is used as an upstream port for coupling to a first device. The second USB connector is used as a downstream port for coupling to a second device. The first power switch has a power pin whose first end is coupled to the first USB connector. The second power switch has a first end coupled to a second end of the first power switch, wherein the second end of the second power switch is coupled to a power pin of the second USB connector. The first power converter has an input terminal coupled to the second terminal of the first power switch. The third power switch has a first end coupled to the output end of the first power converter, wherein a second end of the third power switch is coupled to the power pin of the second USB connector.

本發明的USB集線器的操作方法包括當該USB集線器操作於第一模式時,導通第一功率開關與第二功率開關而且截止第三功率開關,其中該第一功率開關的第一端耦接至第一USB連接器的電力腳位,該第一功率開關的第二端耦接至該第二功率開關的第一端與第一電力轉換器的輸入端,該第三功率開關的第一端耦接至該第一電力轉換器的輸出端,該第二功率開關的第二端與該第三功率開關的第二端耦接至第二USB連接器的電力腳位,該第一USB連接器作為一上行埠,耦接至一第一裝置,以及該第二USB連接器作為一下行埠,耦接至一第二裝置。當該USB集線器操作於第二模式時,導通該第一功率開關與該第三功率開關而且截止該第二功率開關。The operating method of the USB hub of the present invention includes, when the USB hub operates in the first mode, turning on the first power switch and the second power switch and turning off the third power switch, wherein the first end of the first power switch is coupled to The power pin of the first USB connector, the second end of the first power switch is coupled to the first end of the second power switch and the input end of the first power converter, the first end of the third power switch coupled to the output end of the first power converter, the second end of the second power switch and the second end of the third power switch are coupled to the power pins of the second USB connector, the first USB connection The USB connector acts as an upstream port, coupled to a first device, and the second USB connector acts as a downstream port, coupled to a second device. When the USB hub operates in the second mode, the first power switch and the third power switch are turned on and the second power switch is turned off.

基於上述,當電力適配器耦接於本發明諸實施例所述USB集線器的上行埠(第一USB連接器)時,第一電力轉換器可以使用電力適配器的輸出功率,以及經由第三功率開關提供輸出電壓給第二USB連接器(具有直通充電功能的USB連接器)的電力腳位。當電力適配器耦接於具有直通充電功能的USB連接器(第二USB連接器)時,USB集線器可以操作於直通充電模式而將電力適配器的輸出功率傳輸給上行埠(第一USB連接器)。Based on the above, when the power adapter is coupled to the upstream port (the first USB connector) of the USB hub according to the embodiments of the present invention, the first power converter can use the output power of the power adapter and provide the output power through the third power switch Output voltage to the power pin of the second USB connector (USB connector with pass-through charging function). When the power adapter is coupled to the USB connector with the pass-through charging function (the second USB connector), the USB hub can operate in the pass-through charging mode to transmit the output power of the power adapter to the upstream port (the first USB connector).

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and easy to understand, the following embodiments are given and described in detail with the accompanying drawings as follows.

在本案說明書全文(包括申請專利範圍)中所使用的「耦接(或連接)」一詞可指任何直接或間接的耦接手段。舉例而言,若文中描述第一裝置耦接(或連接)於第二裝置,則應該被解釋成該第一裝置可以直接耦接於該第二裝置,或者該第一裝置可以透過其他裝置或某種耦接手段而間接地耦接至該第二裝置。本案說明書全文(包括申請專利範圍)中提及的「第一」、「第二」等用語是用以命名元件(element)的名稱,或區別不同實施例或範圍,而並非用來限制元件數量的上限或下限,亦非用來限制元件的次序。另外,凡可能之處,在圖式及實施方式中使用相同標號的元件/構件/步驟代表相同或類似部分。不同實施例中使用相同標號或使用相同用語的元件/構件/步驟可以相互參照相關說明。The term "coupled (or connected)" as used throughout this specification (including the scope of the application) may refer to any direct or indirect means of coupling. For example, if it is described in the text that a first device is coupled (or connected) to a second device, it should be construed that the first device can be directly coupled to the second device, or the first device can be coupled to the second device through other devices or be indirectly coupled to the second device by some kind of coupling means. Terms such as "first" and "second" mentioned in the full text of the description (including the scope of the patent application) in this case are used to designate the names of elements or to distinguish different embodiments or scopes, rather than to limit the number of elements The upper or lower limit of , nor is it intended to limit the order of the elements. Also, where possible, elements/components/steps using the same reference numerals in the drawings and embodiments represent the same or similar parts. Elements/components/steps that use the same reference numerals or use the same terminology in different embodiments may refer to relative descriptions of each other.

圖1是依照本發明的一實施例所繪示的USB集線器100a的電路方塊示意圖。請參照圖1,USB集線器100a包括USB連接器110、USB連接器120_1、電力轉換器130_1、功率開關S1、功率開關S2以及功率開關S3。在圖1所示實施例中,USB連接器110作為上行埠(Upstream-Facing Port,UFP)並耦接至第一裝置(未繪示),而USB連接器120_1作為一下行埠(Downstream-Facing Port,DFP)並耦接至第二裝置(未繪示),第一裝置及第二裝置例如是主機(host)裝置或電力適配器(power adapter)等裝置,本發明並不加以限制。在一實施例中,USB連接器110及USB連接器120_1皆為USB-C連接埠,但本發明並不加以限制。當主機裝置(例如電腦、手機、平板電腦或其他電子裝置)耦接到USB連接器110時,USB集線器100a可以作為被用來擴增主機裝置的USB連接器數量的集線器。當電力適配器耦接到USB連接器110時,USB集線器100a可以作為被用來擴增電力適配器的USB連接器數量的集線器。一般而言,電力適配器本身的USB連接器具有供電功能,但不具有資料傳輸功能。FIG. 1 is a schematic block diagram of a circuit of a USB hub 100a according to an embodiment of the present invention. Referring to FIG. 1, the USB hub 100a includes a USB connector 110, a USB connector 120_1, a power converter 130_1, a power switch S1, a power switch S2, and a power switch S3. In the embodiment shown in FIG. 1 , the USB connector 110 serves as an Upstream-Facing Port (UFP) and is coupled to the first device (not shown), and the USB connector 120_1 serves as a Downstream-Facing Port (UFP). Port, DFP) and coupled to the second device (not shown), the first device and the second device are, for example, a host device or a power adapter, which is not limited in the present invention. In one embodiment, both the USB connector 110 and the USB connector 120_1 are USB-C ports, but the invention is not limited thereto. When a host device (eg, a computer, cell phone, tablet, or other electronic device) is coupled to the USB connector 110, the USB hub 100a may act as a hub that is used to augment the host device's USB connector count. When the power adapter is coupled to the USB connector 110, the USB hub 100a may act as a hub used to augment the number of USB connectors of the power adapter. Generally speaking, the USB connector of the power adapter itself has a power supply function, but does not have a data transmission function.

在本實施例中,功率開關S1的端點N1耦接至USB連接器110的電力腳位Vbus(電力匯流排腳位)。功率開關S2的端點N3耦接至功率開關S1的端點N2,且功率開關S2的端點N4耦接至USB連接器120_1的電力腳位Vbus。電力轉換器130_1的輸入端IN1耦接至功率開關S1的端點N2。功率開關S3的端點N5耦接至電力轉換器130_1的輸出端OUT1,且功率開關S3的端點N6耦接USB連接器120_1的電力腳位Vbus。In this embodiment, the terminal N1 of the power switch S1 is coupled to the power pin Vbus (power bus pin) of the USB connector 110 . The terminal N3 of the power switch S2 is coupled to the terminal N2 of the power switch S1, and the terminal N4 of the power switch S2 is coupled to the power pin Vbus of the USB connector 120_1. The input terminal IN1 of the power converter 130_1 is coupled to the terminal N2 of the power switch S1. The terminal N5 of the power switch S3 is coupled to the output terminal OUT1 of the power converter 130_1, and the terminal N6 of the power switch S3 is coupled to the power pin Vbus of the USB connector 120_1.

在一實施例中,USB集線器100a更包括控制電路140。控制電路140被配置為支援電力傳輸(Power Delivery,PD)協定。控制電路140耦接至USB連接器110的配置通道(configuration channel)腳位CC與USB連接器120_1的配置通道腳位CC。當電子裝置(未繪示)耦接到USB連接器110時,控制電路140可以經由USB連接器110的配置通道腳位CC來獲知這個電子裝置的配置(配置資訊SG1)。當電子裝置(未繪示)耦接到USB連接器120_1時,控制電路140亦可以經由USB連接器120_1的配置通道腳位CC來獲知這個電子裝置的配置(配置資訊SG2)。依據USB連接器110的配置(配置資訊SG1)與USB連接器120_1的配置(配置資訊SG2),控制電路140可以輸出控制訊號CS1、控制訊號CS2及控制訊號CS3來控制功率開關S1、功率開關S2與功率開關S3。In one embodiment, the USB hub 100a further includes a control circuit 140 . The control circuit 140 is configured to support a Power Delivery (PD) protocol. The control circuit 140 is coupled to the configuration channel pin CC of the USB connector 110 and the configuration channel pin CC of the USB connector 120_1. When the electronic device (not shown) is coupled to the USB connector 110 , the control circuit 140 can obtain the configuration of the electronic device (configuration information SG1 ) through the configuration channel pin CC of the USB connector 110 . When the electronic device (not shown) is coupled to the USB connector 120_1, the control circuit 140 can also learn the configuration of the electronic device (configuration information SG2) through the configuration channel pin CC of the USB connector 120_1. According to the configuration of the USB connector 110 (configuration information SG1 ) and the configuration of the USB connector 120_1 (configuration information SG2 ), the control circuit 140 can output the control signal CS1 , the control signal CS2 and the control signal CS3 to control the power switch S1 and the power switch S2 with power switch S3.

控制電路140藉由一訊號介面提供控制訊號CS來控制電力轉換器130_1。在一實施例中,此訊號介面可為I2C介面、SMBUS介面、抑或是其他規格的訊號介面。上述電力轉換器130_1可為一降壓轉換器,用以依據控制電路140給的控制訊號CS將一高電壓輸入訊號轉換為不同的低電壓輸出訊號。舉例來說,當控制電路140經由配置資訊SG1知道耦接在USB連接器110的電子裝置的電壓位準,也經由配置資訊SG2知道耦接在USB連接器120_1的電子裝置的電壓位準。控制電路140便輸出控制訊號CS以控制電力轉換器130_1進行對應的轉換,例如由20V轉換至5V、9V、12V、15V之一者,抑或是不需要轉換。The control circuit 140 provides the control signal CS through a signal interface to control the power converter 130_1. In one embodiment, the signal interface may be an I2C interface, an SMBUS interface, or a signal interface of other specifications. The power converter 130_1 can be a step-down converter for converting a high-voltage input signal into different low-voltage output signals according to the control signal CS given by the control circuit 140 . For example, when the control circuit 140 knows the voltage level of the electronic device coupled to the USB connector 110 through the configuration information SG1, it also knows the voltage level of the electronic device coupled to the USB connector 120_1 through the configuration information SG2. The control circuit 140 outputs the control signal CS to control the power converter 130_1 to perform corresponding conversion, for example, from 20V to one of 5V, 9V, 12V, and 15V, or no conversion is required.

依照不同的設計需求,上述控制電路140的方塊的實現方式可以是硬體(hardware)、韌體(firmware)、軟體(software,即程式)或是前述三者中的多者的組合形式。According to different design requirements, the implementation of the blocks of the control circuit 140 may be hardware, firmware, software (program), or a combination of the above three.

以硬體形式而言,上述控制電路140的方塊可以實現於積體電路(integrated circuit)上的邏輯電路。上述控制電路140的相關功能可以利用硬體描述語言(hardware description languages,例如Verilog HDL或VHDL)或其他合適的編程語言來實現為硬體。舉例來說,上述控制電路140的相關功能可以被實現於一或多個控制器、微控制器、微處理器、特殊應用積體電路(Application-specific integrated circuit,ASIC)、數位訊號處理器(digital signal processor,DSP)、場可程式邏輯閘陣列(Field Programmable Gate Array,FPGA)及/或其他處理單元中的各種邏輯區塊、模組和電路。In terms of hardware, the blocks of the control circuit 140 described above can be implemented as logic circuits on an integrated circuit. The relevant functions of the control circuit 140 described above may be implemented in hardware using hardware description languages (eg, Verilog HDL or VHDL) or other suitable programming languages. For example, the related functions of the control circuit 140 described above can be implemented in one or more controllers, microcontrollers, microprocessors, application-specific integrated circuits (ASICs), digital signal processors ( Various logic blocks, modules and circuits in digital signal processor (DSP), Field Programmable Gate Array (FPGA) and/or other processing units.

以軟體形式及/或韌體形式而言,上述控制電路140的相關功能可以被實現為編程碼(programming codes)。例如,利用一般的編程語言(programming languages,例如C、C++或組合語言)或其他合適的編程語言來實現上述控制電路140。所述編程碼可以被記錄/存放在記錄媒體中,所述記錄媒體中例如包括唯讀記憶體(Read Only Memory,ROM)、存儲裝置及/或隨機存取記憶體(Random Access Memory,RAM)。電腦、中央處理器(Central Processing Unit,CPU)、控制器、微控制器或微處理器可以從所述記錄媒體中讀取並執行所述編程碼,從而達成相關功能。作為所述記錄媒體,可使用「非臨時的電腦可讀取媒體(non-transitory computer readable medium)」,例如可使用帶(tape)、碟(disk)、卡(card)、半導體記憶體、可程式設計的邏輯電路等。而且,所述程式也可經由任意傳輸媒體(通信網路或廣播電波等)而提供給所述電腦(或CPU)。所述通信網路例如是互聯網(Internet)、有線通信(wired communication)、無線通信(wireless communication)或其它通信介質。In the form of software and/or firmware, the related functions of the above-mentioned control circuit 140 may be implemented as programming codes. For example, the above-described control circuit 140 is implemented using general programming languages (eg, C, C++, or assembly language) or other suitable programming languages. The programming code may be recorded/stored in a recording medium, for example, the recording medium includes a read only memory (Read Only Memory, ROM), a storage device and/or a random access memory (Random Access Memory, RAM) . A computer, a central processing unit (CPU), a controller, a microcontroller or a microprocessor can read and execute the programming code from the recording medium, thereby achieving related functions. As the recording medium, a "non-transitory computer readable medium" can be used, and for example, a tape, a disk, a card, a semiconductor memory, a Programming logic circuits, etc. Furthermore, the program may be provided to the computer (or CPU) via any transmission medium (communication network, broadcast waves, or the like). The communication network is, for example, the Internet, wired communication, wireless communication, or other communication media.

圖2是依照本發明的一實施例所繪示的USB集線器的操作方法200流程示意圖。圖2所示操作方法200適用於圖1所示USB集線器100a。以下將參照圖1實施例的各項元件來詳細說明圖2所示操作方法200。圖2所示操作方法200的相關說明亦可以被類推而適用於圖3所示USB集線器100b、圖4所示USB集線器100c與(或)圖5所示USB集線器100d。FIG. 2 is a schematic flowchart of a method 200 for operating a USB hub according to an embodiment of the present invention. The operation method 200 shown in FIG. 2 is applicable to the USB hub 100a shown in FIG. 1 . The operation method 200 shown in FIG. 2 will be described in detail below with reference to various elements of the embodiment of FIG. 1 . The related description of the operation method 200 shown in FIG. 2 can also be applied to the USB hub 100 b shown in FIG. 3 , the USB hub 100 c shown in FIG. 4 and/or the USB hub 100 d shown in FIG. 5 by analogy.

請參照圖1與圖2。控制電路140可以在步驟S210中判斷USB連接器110是否耦接主機(未繪示)。具體來說,當外部裝置(未繪示)耦接到USB連接器110時,控制電路140可以通過USB連接器110的配置通道腳位CC接收對應於所述外部裝置的配置資訊SG1,並且根據配置資訊SG1判斷耦接至USB連接器110的所述外部裝置是否為主機。在一實施例中,所述主機可以是桌上型電腦、筆記型電腦、個人數位助理(Personal Digital Assistant,PDA)、行動電話、數位相機或數位攝影機等任何裝置。若USB連接器110已經耦接主機(步驟S210的判斷結果為「是」),則控制電路140可以進行步驟S220。Please refer to FIG. 1 and FIG. 2 . The control circuit 140 can determine whether the USB connector 110 is coupled to the host (not shown) in step S210. Specifically, when an external device (not shown) is coupled to the USB connector 110, the control circuit 140 can receive the configuration information SG1 corresponding to the external device through the configuration channel pin CC of the USB connector 110, and according to The configuration information SG1 determines whether the external device coupled to the USB connector 110 is a host. In one embodiment, the host may be any device such as a desktop computer, a notebook computer, a Personal Digital Assistant (PDA), a mobile phone, a digital camera, or a digital video camera. If the USB connector 110 has been coupled to the host (the determination result of step S210 is "Yes"), the control circuit 140 may proceed to step S220.

在步驟S220中,控制電路140可以判斷USB連接器120_1是否耦接電力適配器(power adapter)(未繪示)。詳細來說,當外部裝置(未繪示)耦接到USB連接器120_1時,控制電路140可以通過USB連接器120_1的配置通道腳位CC接收對應於所述外部裝置的配置資訊SG2,並且根據配置資訊SG2判斷耦接至USB連接器120_1的所述外部裝置是否為電力適配器。若USB連接器120_1已經耦接電力適配器(步驟S220的判斷結果為「是」),則控制電路140可以進行步驟S230。In step S220, the control circuit 140 can determine whether the USB connector 120_1 is coupled to a power adapter (not shown). In detail, when an external device (not shown) is coupled to the USB connector 120_1, the control circuit 140 can receive the configuration information SG2 corresponding to the external device through the configuration channel pin CC of the USB connector 120_1, and according to The configuration information SG2 determines whether the external device coupled to the USB connector 120_1 is a power adapter. If the USB connector 120_1 has been coupled to the power adapter (the determination result of the step S220 is "Yes"), the control circuit 140 can proceed to the step S230.

在步驟S230中,控制電路140可以進入直通充電(Charge-Through)模式(第一模式)。當USB集線器100a操作於直通充電模式時,控制電路140可以藉由控制訊號CS1及控制訊號CS2來導通(turn on)功率開關S1及功率開關S2,以及藉由控制訊號CS3來截止(turn off)功率開關S3。因此,電力適配器(未繪示)的輸出功率可以經由USB連接器120_1、功率開關S2、功率開關S1以及USB連接器110而被傳輸給主機(未繪示)。In step S230, the control circuit 140 may enter a charge-through mode (first mode). When the USB hub 100a operates in the charge-through mode, the control circuit 140 can turn on the power switch S1 and the power switch S2 by the control signal CS1 and the control signal CS2, and turn off the power switch S2 by the control signal CS3 Power switch S3. Therefore, the output power of the power adapter (not shown) can be transmitted to the host (not shown) via the USB connector 120_1 , the power switch S2 , the power switch S1 and the USB connector 110 .

若USB連接器120_1非耦接至電力適配器(步驟S220的判斷結果為「否」),則控制電路140可以進行步驟S235。在步驟S235中,控制電路140可以進入一般集線器模式。當USB集線器100a操作於一般集線器模式時,控制電路140藉由控制訊號CS1及控制訊號CS3來導通功率開關S1及功率開關S3,以及藉由控制訊號CS2來截止功率開關S2。控制電路140藉由配置資訊SG1與配置資訊SG2來輸出控制訊號CS以控制電力轉換器130_1進行對應的轉換,例如由20V轉換至5V、9V、12V、15V之一者,抑或是不需要轉換。因此,電力轉換器130_1可以使用來自於USB連接器110的功率電壓,以及電力轉換器130_1可以將輸出功率經由功率開關S3而傳輸給USB連接器120_1。If the USB connector 120_1 is not coupled to the power adapter (the determination result of step S220 is "No"), the control circuit 140 may proceed to step S235. In step S235, the control circuit 140 may enter the general hub mode. When the USB hub 100a operates in the normal hub mode, the control circuit 140 turns on the power switch S1 and the power switch S3 by the control signal CS1 and the control signal CS3, and turns off the power switch S2 by the control signal CS2. The control circuit 140 outputs the control signal CS through the configuration information SG1 and the configuration information SG2 to control the power converter 130_1 to perform corresponding conversion, for example, from 20V to one of 5V, 9V, 12V, 15V, or no conversion is required. Therefore, the power converter 130_1 can use the power voltage from the USB connector 110, and the power converter 130_1 can transmit the output power to the USB connector 120_1 via the power switch S3.

若USB連接器110非耦接主機(步驟S210的判斷結果為「否」),則控制電路140可以進行步驟S240。在步驟S240中,控制電路140可以判斷USB連接器110是否耦接電力適配器(未繪示)。具體來說,當外部裝置(未繪示)耦接到USB連接器110時,控制電路140可以根據配置資訊SG1判斷耦接至USB連接器110的所述外部裝置是否為電力適配器。若USB連接器110非耦接電力適配器(步驟S240的判斷結果為「否」),則控制電路140返回到步驟S210。If the USB connector 110 is not coupled to the host (the determination result of step S210 is "No"), the control circuit 140 may proceed to step S240. In step S240, the control circuit 140 can determine whether the USB connector 110 is coupled to a power adapter (not shown). Specifically, when an external device (not shown) is coupled to the USB connector 110 , the control circuit 140 can determine whether the external device coupled to the USB connector 110 is a power adapter according to the configuration information SG1 . If the USB connector 110 is not coupled to the power adapter (the determination result of step S240 is "No"), the control circuit 140 returns to step S210 .

若USB連接器110耦接電力適配器(步驟S240的判斷結果為「是」),則進入步驟S250,控制電路140可以進入充電器擴展(Charger Extension)模式(第二模式)。當USB集線器100a操作於充電器擴展模式時,控制電路140可以藉由控制訊號CS1及控制訊號CS3來導通功率開關S1及功率開關S3,以及藉由控制訊號CS2來截止功率開關S2。因此,電力適配器(未繪示)的輸出功率可以經由USB連接器110與功率開關S1而被傳輸給電力轉換器130_1。因此,電力轉換器130_1可以使用來自於USB連接器110的功率電壓,以及電力轉換器130_1的輸出功率可以經由功率開關S3以及USB連接器120_1而被傳輸給所述電裝置(未繪示)。If the USB connector 110 is coupled to the power adapter (the determination result in step S240 is "Yes"), then step S250 is entered, and the control circuit 140 can enter the charger extension mode (the second mode). When the USB hub 100a operates in the charger extension mode, the control circuit 140 can turn on the power switch S1 and the power switch S3 through the control signal CS1 and the control signal CS3, and turn off the power switch S2 through the control signal CS2. Therefore, the output power of the power adapter (not shown) can be transmitted to the power converter 130_1 via the USB connector 110 and the power switch S1. Therefore, the power converter 130_1 can use the power voltage from the USB connector 110, and the output power of the power converter 130_1 can be transmitted to the electrical device (not shown) via the power switch S3 and the USB connector 120_1.

若USB連接器110耦接電力適配器(步驟S240的判斷結果為「是」),則控制電路140便進入充電器擴展模式(第二模式)。控制電路140可以進行步驟S260。在步驟S260中,控制電路140可以判斷USB連接器120_1是否耦接電裝置(未繪示)。詳細來說,當外部裝置(未繪示)耦接到USB連接器120_1時,控制電路140可以根據配置資訊SG2判斷耦接至USB連接器120_1的所述外部裝置是否為電裝置。在一實施例中,所述電裝置可以是電腦檯燈、電腦風扇、MP3、隨身碟、錄音筆、數位相機、手機等任何裝置。控制電路140藉由配置資訊SG1與配置資訊SG2來輸出控制訊號CS以控制電力轉換器130_1進行對應的轉換(步驟S270),例如由20V轉換至5V、9V、12V、15V之一者,抑或是不需要轉換。If the USB connector 110 is coupled to the power adapter (the determination result in step S240 is "Yes"), the control circuit 140 enters the charger extension mode (the second mode). The control circuit 140 may perform step S260. In step S260, the control circuit 140 may determine whether the USB connector 120_1 is coupled to an electrical device (not shown). Specifically, when an external device (not shown) is coupled to the USB connector 120_1, the control circuit 140 can determine whether the external device coupled to the USB connector 120_1 is an electrical device according to the configuration information SG2. In one embodiment, the electrical device may be any device, such as a computer desk lamp, a computer fan, MP3, a flash drive, a voice recorder, a digital camera, a mobile phone, and the like. The control circuit 140 outputs the control signal CS through the configuration information SG1 and the configuration information SG2 to control the power converter 130_1 to perform corresponding conversion (step S270 ), for example, from 20V to one of 5V, 9V, 12V, 15V, or No conversion is required.

若USB連接器120_1未耦接電裝置(步驟S260的判斷結果為「否」),則控制電路140返回到步驟S260。If the USB connector 120_1 is not coupled to the electrical device (the determination result of step S260 is "No"), the control circuit 140 returns to step S260.

圖3是依照本發明的另一實施例所繪示的USB集線器100b的電路方塊示意圖。圖3所示USB集線器100b可以參照圖1所示USB集線器100a的相關說明來類推。圖3的USB集線器100b與圖1的USB集線器100a不同之處在於,USB集線器100b還可選擇性地包括至少一USB連接器120_2以及電力轉換器130_2。圖3所示USB連接器120_2作為一下行埠並耦接至第三裝置(未繪示),第三裝置例如是電裝置等,本發明並不加以限制。在一實施例中,USB連接器110及USB連接器120_1皆為USB-C連接埠,所述至少一USB連接器120_2為USB Type-A(USB-A)連接埠,本發明並不加以限制。FIG. 3 is a schematic block diagram of a circuit of a USB hub 100b according to another embodiment of the present invention. The USB hub 100b shown in FIG. 3 can be deduced by referring to the relevant description of the USB hub 100a shown in FIG. 1 . The difference between the USB hub 100b of FIG. 3 and the USB hub 100a of FIG. 1 is that the USB hub 100b may optionally further include at least one USB connector 120_2 and a power converter 130_2. The USB connector 120_2 shown in FIG. 3 is used as a downstream port and is coupled to a third device (not shown), such as an electrical device, which is not limited in the present invention. In one embodiment, both the USB connector 110 and the USB connector 120_1 are USB-C ports, and the at least one USB connector 120_2 is a USB Type-A (USB-A) port, which is not limited in the present invention. .

在圖3實施例中,電力轉換器130_2的輸入端IN2耦接至功率開關S1的端點N2,電力轉換器130_2的輸出端OUT2耦接至USB連接器120_2的電力腳位Vbus。上述電力轉換器130_2可為一降壓轉換器,用以依據控制電路140給的控制訊號CS’將一高電壓輸入訊號轉換為不同的低電壓輸出訊號。圖2所示操作方法200亦適用於圖3所示USB集線器100b。當USB集線器100b操作在直通充電模式時,連接於USB連接器120_1的電力適配器的輸出功率會優先分配給連接於USB連接器110的主機,剩餘的輸出功率被分配給耦接於USB連接器120_2的電裝置。控制電路140藉由配置資訊SG2來輸出控制訊號CS’以控制電力轉換器130_2進行對應的轉換,例如由20V轉換至5V、9V、12V、15V之一者。在一實施例中,當控制電路140判斷USB連接器110未耦接第一裝置(主機或電力適配器)並且USB連接器120_1耦接電力適配器時,控制電路140藉由控制訊號CS1及控制訊號CS3去截止功率開關S1與功率開關S3,以及藉由控制訊號CS2去導通功率開關S2,並且電力轉換器130_1被禁能。此時,若USB連接器120_2耦接一電裝置,耦接USB連接器120_1的電力適配器便會將其輸出功率分配給耦接至USB連接器120_2的電裝置。In the embodiment of FIG. 3 , the input terminal IN2 of the power converter 130_2 is coupled to the terminal N2 of the power switch S1 , and the output terminal OUT2 of the power converter 130_2 is coupled to the power pin Vbus of the USB connector 120_2 . The power converter 130_2 can be a step-down converter for converting a high-voltage input signal into different low-voltage output signals according to the control signal CS' given by the control circuit 140 . The operation method 200 shown in FIG. 2 is also applicable to the USB hub 100b shown in FIG. 3 . When the USB hub 100b operates in the pass-through charging mode, the output power of the power adapter connected to the USB connector 120_1 is preferentially allocated to the host connected to the USB connector 110, and the remaining output power is allocated to the host connected to the USB connector 120_2 electrical device. The control circuit 140 outputs the control signal CS' through the configuration information SG2 to control the power converter 130_2 to perform corresponding conversion, for example, from 20V to one of 5V, 9V, 12V, and 15V. In one embodiment, when the control circuit 140 determines that the USB connector 110 is not coupled to the first device (host or power adapter) and the USB connector 120_1 is coupled to the power adapter, the control circuit 140 uses the control signal CS1 and the control signal CS3 The power switch S1 and the power switch S3 are turned off, and the power switch S2 is turned on by the control signal CS2, and the power converter 130_1 is disabled. At this time, if the USB connector 120_2 is coupled to an electrical device, the power adapter coupled to the USB connector 120_1 will distribute its output power to the electrical device coupled to the USB connector 120_2.

此外,在另一實施例中,若控制電路140判斷USB連接器110耦接電力適配器後,控制電路140還會依據電力適配器的輸出功率與門檻功率的關係來判斷USB集線器100b是否操作於充電器擴展模式。所述門檻功率可以依照設計需求來決定。具體而言,當耦接於USB連接器110的電力適配器的輸出功率大於門檻功率(例如30W)時,控制電路140判斷USB集線器100b操作於充電器擴展模式。在充電器擴展模式中,USB集線器100b會依據所耦接的電裝置所需的總功率與電力適配器的輸出功率的關係對應地控制電力供應電路(例如電力轉換器130_2)來動態調整輸出至所耦接的電裝置的充電功率。也就是說,控制電路140可以依據USB連接器120_1及USB連接器120_2的功率需求而對應地控制電力轉換器130_1及電力轉換器130_2,以便於動態地調整輸出至USB連接器120_1及USB連接器120_2的功率。如此一來,USB集線器100b可以智能地分配電力適配器的輸出功率至耦接USB連接器120_1及USB連接器120_2的電裝置。In addition, in another embodiment, if the control circuit 140 determines that the USB connector 110 is coupled to the power adapter, the control circuit 140 further determines whether the USB hub 100b operates as a charger according to the relationship between the output power of the power adapter and the threshold power Extended mode. The threshold power can be determined according to design requirements. Specifically, when the output power of the power adapter coupled to the USB connector 110 is greater than a threshold power (eg, 30W), the control circuit 140 determines that the USB hub 100b operates in the charger extension mode. In the charger expansion mode, the USB hub 100b controls the power supply circuit (eg, the power converter 130_2 ) to dynamically adjust the output to the power supply circuit according to the relationship between the total power required by the coupled electrical device and the output power of the power adapter. The charging power of the coupled electrical device. That is, the control circuit 140 can correspondingly control the power converter 130_1 and the power converter 130_2 according to the power requirements of the USB connector 120_1 and the USB connector 120_2, so as to dynamically adjust the output to the USB connector 120_1 and the USB connector 120_2. 120_2 power. In this way, the USB hub 100b can intelligently distribute the output power of the power adapter to the electrical devices coupled to the USB connector 120_1 and the USB connector 120_2.

圖4是依照本發明的又一實施例所繪示的USB集線器100c的電路方塊示意圖。圖4所示USB集線器100c可以參照圖1所示USB集線器100a的相關說明來類推。圖4的USB集線器100c與圖1的USB集線器100a不同之處在於,USB集線器100c還可選擇性地包括USB連接器120_3、電力轉換器130_3、功率開關S4以及功率開關S5。圖4所示USB連接器120_3作為一下行埠並耦接至第三裝置(未繪示),第三裝置例如是電裝置等,本發明並不加以限制。在一實施例中,USB連接器110、USB連接器120_1及USB連接器120_3皆為USB-C連接埠。FIG. 4 is a schematic block diagram of a circuit of a USB hub 100c according to yet another embodiment of the present invention. The USB hub 100c shown in FIG. 4 can be deduced by referring to the relevant description of the USB hub 100a shown in FIG. 1 . The USB hub 100c of FIG. 4 is different from the USB hub 100a of FIG. 1 in that the USB hub 100c may optionally further include a USB connector 120_3, a power converter 130_3, a power switch S4 and a power switch S5. The USB connector 120_3 shown in FIG. 4 is used as a downstream port and is coupled to a third device (not shown), such as an electrical device, which is not limited in the present invention. In one embodiment, the USB connector 110 , the USB connector 120_1 and the USB connector 120_3 are all USB-C ports.

在圖4所示實施例中,功率開關S4的端點N7耦接至功率開關S1的端點N2,並且功率開關S4的端點N8耦接至USB連接器120_3的電力腳位Vbus。電力轉換器130_3的輸入端IN3耦接至功率開關S1的端點N2。功率開關S5的端點N9耦接至電力轉換器130_3的輸出端OUT3,並且功率開關S5的端點N10至USB連接器120_3的電力腳位Vbus。上述電力轉換器130_3可為一降壓轉換器,用以依據控制電路140給的控制訊號CS’’將一高電壓輸入訊號轉換為不同的低電壓輸出訊號。In the embodiment shown in FIG. 4 , the terminal N7 of the power switch S4 is coupled to the terminal N2 of the power switch S1 , and the terminal N8 of the power switch S4 is coupled to the power pin Vbus of the USB connector 120_3 . The input terminal IN3 of the power converter 130_3 is coupled to the terminal N2 of the power switch S1. The terminal N9 of the power switch S5 is coupled to the output terminal OUT3 of the power converter 130_3, and the terminal N10 of the power switch S5 is connected to the power pin Vbus of the USB connector 120_3. The power converter 130_3 can be a step-down converter for converting a high-voltage input signal into a different low-voltage output signal according to the control signal CS'' given by the control circuit 140 .

控制電路140更耦接至USB連接器120_3的配置通道腳位CC,並且依據USB連接器110的配置與USB連接器120_3的配置來控制功率開關S1、功率開關S4與功率開關S5。詳細而言,當外部裝置(未繪示)耦接到USB連接器120_3時,控制電路140可以通過USB連接器120_3的配置通道腳位CC接收對應於所述外部裝置的配置訊號SG3,並且輸出控制訊號CS1、控制訊號CS4及控制訊號CS5以分別控制功率開關S1、功率開關S4與功率開關S5。The control circuit 140 is further coupled to the configuration channel pin CC of the USB connector 120_3, and controls the power switch S1, the power switch S4 and the power switch S5 according to the configuration of the USB connector 110 and the configuration of the USB connector 120_3. Specifically, when an external device (not shown) is coupled to the USB connector 120_3, the control circuit 140 can receive the configuration signal SG3 corresponding to the external device through the configuration channel pin CC of the USB connector 120_3, and output The control signal CS1 , the control signal CS4 and the control signal CS5 are used to control the power switch S1 , the power switch S4 and the power switch S5 respectively.

USB連接器110、USB連接器120_3、功率開關S1、功率開關S4與功率開關S5之間的操作方法與USB連接器110、USB連接器120_1、功率開關S1、功率開關S2與功率開關S3之間的操作方法相同,因此圖2實施例的USB集線器的操作方法200亦適用於圖4實施例的USB集線器100c。The operation method between the USB connector 110, the USB connector 120_3, the power switch S1, the power switch S4 and the power switch S5 and between the USB connector 110, the USB connector 120_1, the power switch S1, the power switch S2 and the power switch S3 The operation method is the same, so the operation method 200 of the USB hub in the embodiment in FIG. 2 is also applicable to the USB hub 100c in the embodiment in FIG. 4 .

圖5是依照本發明的再一實施例所繪示的USB集線器100d的電路方塊示意圖。圖5所示USB集線器100d可以參照圖1所示USB集線器100a的相關說明來類推。圖5的USB集線器100d為圖3的USB集線器100b的結構及圖4的USB集線器100c的結構的結合。並且,圖5實施例的USB集線器100d的操作方法與圖3實施例的USB集線器100b的操作方法相同,故不再贅述。FIG. 5 is a schematic block diagram of a circuit of a USB hub 100d according to still another embodiment of the present invention. The USB hub 100d shown in FIG. 5 can be deduced by referring to the related description of the USB hub 100a shown in FIG. 1 . The USB hub 100d of FIG. 5 is a combination of the structure of the USB hub 100b of FIG. 3 and the structure of the USB hub 100c of FIG. 4 . In addition, the operation method of the USB hub 100d of the embodiment of FIG. 5 is the same as the operation method of the USB hub 100b of the embodiment of FIG. 3, so it will not be repeated.

值得一提,USB集線器的下行埠可以是Type-A及Type-C介面的任何組合。例如,上述諸實施例所述USB集線器的下行埠可以包括1個Type-C連接器與2個Type-A連接器,或是1個Type-C連接器與3個Type-A連接器,或是2個Type-C連接器與1個Type-A連接器,或是2個Type-C連接器與2個Type-A連接器,或是其他組合。需注意的是,控制電路140可依照設計需求來支援多種USB協定,以因應不同規格的USB連接器110、USB連接器120_1、USB連接器120_2及USB連接器120_3的傳輸需求。舉例來說,當USB連接器110、USB連接器120_1、USB連接器120_2及USB連接器120_3的任一個為USB Type-C連接埠時,控制電路140可以是支援電力傳輸協定的USB Type-C連接埠控制器(Type-C Port Controller,TCPC)或是USB Type-C連接埠管理器(Type-C Port Manager,TCPM)。另舉例來說,如果USB連接器110、USB連接器120_1、USB連接器120_2及USB連接器120_3是USB Type-A連接埠,則電力轉換器130_1、130_2、130_3可以是支援QC(Quick Charge)協定的USB Type-A連接埠管理器。再舉例來說,當USB連接器110、USB連接器120_1、USB連接器120_2及USB連接器120_3的任一個被耦接至具有可編程電源供應(programmable power supply,PPS)功能的外部設備時,控制電路140可支援PPS協定。所述PPS協定/功能為習知協定/功能,故不再贅述。It is worth mentioning that the downstream port of the USB hub can be any combination of Type-A and Type-C interfaces. For example, the downstream ports of the USB hubs described in the above embodiments may include one Type-C connector and two Type-A connectors, or one Type-C connector and three Type-A connectors, or It is 2 Type-C connectors and 1 Type-A connector, or 2 Type-C connectors and 2 Type-A connectors, or other combinations. It should be noted that the control circuit 140 can support various USB protocols according to design requirements, so as to meet the transmission requirements of the USB connector 110 , the USB connector 120_1 , the USB connector 120_2 and the USB connector 120_3 of different specifications. For example, when any one of the USB connector 110 , the USB connector 120_1 , the USB connector 120_2 and the USB connector 120_3 is a USB Type-C port, the control circuit 140 may be a USB Type-C supporting power delivery protocol Port Controller (Type-C Port Controller, TCPC) or USB Type-C Port Manager (Type-C Port Manager, TCPM). For another example, if the USB connector 110 , the USB connector 120_1 , the USB connector 120_2 and the USB connector 120_3 are USB Type-A ports, the power converters 130_1 , 130_2 and 130_3 may support QC (Quick Charge) Protocol USB Type-A port manager. For another example, when any one of the USB connector 110 , the USB connector 120_1 , the USB connector 120_2 and the USB connector 120_3 is coupled to an external device with a programmable power supply (PPS) function, The control circuit 140 may support the PPS protocol. The PPS protocol/function is a conventional protocol/function, so it will not be repeated.

綜上所述,本發明諸實施例中,當電力適配器耦接於USB集線器的上行埠(USB連接器110)時,第一電力轉換器可以使用電力適配器的輸出功率,以及經由功率開關提供輸出電壓給USB連接器120_1與/或120_3(具有直通充電功能的USB連接器)的電力腳位。當電力適配器耦接於具有直通充電功能的USB連接器(USB連接器120_1與/或120_3)時,USB集線器可以操作於直通充電模式而將電力適配器的輸出功率傳輸給上行埠(USB連接器110)。To sum up, in various embodiments of the present invention, when the power adapter is coupled to the upstream port (USB connector 110 ) of the USB hub, the first power converter can use the output power of the power adapter and provide the output through the power switch The voltage is supplied to the power pins of the USB connectors 120_1 and/or 120_3 (USB connectors with pass-through charging function). When the power adapter is coupled to the USB connector (USB connector 120_1 and/or 120_3) with pass-through charging function, the USB hub can operate in the pass-through charging mode to transmit the output power of the power adapter to the upstream port (USB connector 110 ). ).

應用本發明的兩用USB集線器(Dual Purpose Hub)可當作一般的USB集線器,其上行埠耦接於一主機,多個下行埠可耦接多個裝置,與主機進行資料傳輸以及獲得供電。另一方面,此兩用USB集線器也可當作充電擴展埠使用,其上行埠耦接於一電力適配器,該USB集線器可將該電力適配器提供的電力供給至每一下行埠,讓每一下行埠可以分別對不同電裝置進行充電,如此使用者只要攜帶此一兩用USB集線器,便可減少攜帶太多裝備的困擾。The dual purpose USB hub (Dual Purpose Hub) of the present invention can be used as a general USB hub, and its upstream port is coupled to a host, and a plurality of downstream ports can be coupled to a plurality of devices for data transmission and power supply with the host. On the other hand, the dual-purpose USB hub can also be used as a charging expansion port, and its upstream port is coupled to a power adapter. The USB hub can supply the power provided by the power adapter to each downstream port, allowing each downstream port to The ports can charge different electrical devices separately, so users can reduce the trouble of carrying too many devices as long as they carry this dual-purpose USB hub.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed above by the embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, The protection scope of the present invention shall be determined by the scope of the appended patent application.

100a、100b、100c、100d:USB集線器 110、120_1、120_2、120_3:USB連接器 130_1、130_2、130_3:電力轉換器 140:控制電路 200:操作方法 CS、CS1、CS2、CS3、CS4、CS5、CS’、CS’’:控制訊號 IN1、IN2、IN3:輸入端 N1、N2、N3、N4、N5、N6、N7、N8、N9、N10:端點 OUT1、OUT2、OUT3:輸出端 S1、S2、S3、S4、S5:功率開關 S210、S220、S230、S235、S240、S250、S260、S270:步驟 SG1、SG2、SG3:配置資訊100a, 100b, 100c, 100d: USB hub 110, 120_1, 120_2, 120_3: USB connectors 130_1, 130_2, 130_3: Power converters 140: Control circuit 200: How to operate CS, CS1, CS2, CS3, CS4, CS5, CS’, CS’’: Control signal IN1, IN2, IN3: input terminal N1, N2, N3, N4, N5, N6, N7, N8, N9, N10: Endpoints OUT1, OUT2, OUT3: output terminals S1, S2, S3, S4, S5: Power switch S210, S220, S230, S235, S240, S250, S260, S270: Steps SG1, SG2, SG3: Configuration information

圖1是依照本發明的一實施例所繪示的USB集線器的電路方塊(circuit block)示意圖。 圖2是依照本發明的一實施例所繪示的USB集線器的操作方法流程示意圖。 圖3是依照本發明的另一實施例所繪示的USB集線器的電路方塊示意圖。 圖4是依照本發明的又一實施例所繪示的USB集線器的電路方塊示意圖。 圖5是依照本發明的再一實施例所繪示的USB集線器的電路方塊示意圖。FIG. 1 is a schematic diagram of a circuit block of a USB hub according to an embodiment of the present invention. FIG. 2 is a schematic flowchart of an operating method of a USB hub according to an embodiment of the present invention. 3 is a schematic block diagram of a circuit of a USB hub according to another embodiment of the present invention. FIG. 4 is a schematic block diagram of a circuit of a USB hub according to another embodiment of the present invention. FIG. 5 is a schematic block diagram of a circuit of a USB hub according to yet another embodiment of the present invention.

100a:USB集線器 100a: USB hub

110、120_1:USB連接器 110, 120_1: USB connector

130_1:電力轉換器 130_1: Power Converter

140:控制電路 140: Control circuit

CS、CS1、CS2、CS3:控制訊號 CS, CS1, CS2, CS3: Control signal

IN1:輸入端 IN1: input terminal

N1、N2、N3、N4、N5、N6:端點 N1, N2, N3, N4, N5, N6: Endpoints

OUT1:輸出端 OUT1: output terminal

S1、S2、S3:功率開關 S1, S2, S3: Power switch

SG1、SG2:配置資訊 SG1, SG2: configuration information

Claims (16)

一種USB集線器,包括:一第一USB連接器,作為一上行埠,用以耦接一第一裝置;一第二USB連接器,作為一下行埠,用以耦接一第二裝置;一第一功率開關,具有一第一端耦接至該第一USB連接器的一電力腳位;一第二功率開關,具有一第一端耦接至該第一功率開關的一第二端,其中該第二功率開關的一第二端耦接至該第二USB連接器的一電力腳位;一第一電力轉換器,具有一輸入端耦接至該第一功率開關的該第二端;一第三功率開關,具有一第一端耦接至該第一電力轉換器的一輸出端,其中該第三功率開關的一第二端耦接至該第二USB連接器的該電力腳位;以及一控制電路,被配置為支援電力傳輸協定,其中該控制電路耦接至該第一USB連接器的一第一配置通道腳位與該第二USB連接器的一第二配置通道腳位,以及該控制電路依據耦接於該第一USB連接器的該第一裝置的一第一配置資訊與耦接於該第二USB連接器的該第二裝置的一第二配置資訊來控制該第一功率開關、該第二功率開關與該第三功率開關。 A USB hub, comprising: a first USB connector as an upstream port for coupling a first device; a second USB connector as a downstream port for coupling with a second device; a first a power switch having a first end coupled to a power pin of the first USB connector; a second power switch having a first end coupled to a second end of the first power switch, wherein A second end of the second power switch is coupled to a power pin of the second USB connector; a first power converter has an input end coupled to the second end of the first power switch; a third power switch having a first end coupled to an output end of the first power converter, wherein a second end of the third power switch is coupled to the power pin of the second USB connector ; and a control circuit configured to support a power delivery protocol, wherein the control circuit is coupled to a first configuration channel pin of the first USB connector and a second configuration channel pin of the second USB connector , and the control circuit controls the the first power switch, the second power switch and the third power switch. 如申請專利範圍第1項所述的USB集線器,其中,當該USB集線器操作於一第一模式時,該第一功率開關與該 第二功率開關為導通而且該第三功率開關為截止;以及當該USB集線器操作於一第二模式時,該第一功率開關與該第三功率開關為導通而且該第二功率開關為截止。 The USB hub of claim 1, wherein when the USB hub operates in a first mode, the first power switch and the The second power switch is on and the third power switch is off; and when the USB hub operates in a second mode, the first power switch and the third power switch are on and the second power switch is off. 如申請專利範圍第2項所述的USB集線器,其中,當該第一USB連接器耦接一主機並且該第二USB連接器耦接一電力適配器時,該USB集線器操作於該第一模式;以及當該第一USB連接器耦接該電力適配器時,該USB集線器操作於該第二模式。 The USB hub of claim 2, wherein when the first USB connector is coupled to a host and the second USB connector is coupled to a power adapter, the USB hub operates in the first mode; And when the first USB connector is coupled to the power adapter, the USB hub operates in the second mode. 如申請專利範圍第3項所述的USB集線器,其中,當該USB集線器操作於該第二模式時,並且一電裝置耦接到該第二USB連接器時,該控制電路藉由該第一配置資訊與該第二配置資訊來輸出一控制訊號以控制該第一電力轉換器進行對應的電力轉換。 The USB hub of claim 3, wherein when the USB hub operates in the second mode, and an electrical device is coupled to the second USB connector, the control circuit operates through the first The configuration information and the second configuration information are used to output a control signal to control the first power converter to perform corresponding power conversion. 如申請專利範圍第2項所述的USB集線器,更包括:一第三USB連接器,作為一下行埠,用以耦接一第三裝置;以及一第二電力轉換器,具有一輸入端耦接至該第一功率開關的該第二端,其中該第二電力轉換器的一輸出端耦接至該第三USB連接器的一電力腳位。 The USB hub as described in claim 2, further comprising: a third USB connector serving as a downstream port for coupling to a third device; and a second power converter having an input coupling connected to the second end of the first power switch, wherein an output end of the second power converter is coupled to a power pin of the third USB connector. 如申請專利範圍第5項所述的USB集線器,其中,當該第一USB連接器未耦接該第一裝置並且該第二USB連接器耦接一電力適配器時,該第一功率開關與該第三功率開關為 截止,該第二功率開關為導通,而且該第一電力轉換器被禁能。 The USB hub of claim 5, wherein when the first USB connector is not coupled to the first device and the second USB connector is coupled to a power adapter, the first power switch and the The third power switch is When turned off, the second power switch is turned on, and the first power converter is disabled. 如申請專利範圍第6項所述的USB集線器,其中,耦接於該第二USB連接器的該電力適配器的輸出功率優先分配給耦接於該第一USB連接器的一主機,剩餘的輸出功率被分配給耦接於該第三USB連接器的一電裝置。 The USB hub of claim 6, wherein the output power of the power adapter coupled to the second USB connector is preferentially allocated to a host coupled to the first USB connector, and the remaining output power Power is distributed to an electrical device coupled to the third USB connector. 如申請專利範圍第6項所述的USB集線器,其中,該控制電路藉由該第二USB連接器的該第二配置資訊來輸出一控制訊號以控制該第二電力轉換器進行對應的轉換。 The USB hub of claim 6, wherein the control circuit outputs a control signal to control the second power converter to perform corresponding conversion by using the second configuration information of the second USB connector. 如申請專利範圍第1項所述的USB集線器,更包括:一第三USB連接器,作為一下行埠,用以耦接一第三裝置;一第四功率開關,具有一第一端耦接至該第一功率開關的該第二端,其中該第四功率開關的一第二端耦接至該第三USB連接器的一電力腳位;一第二電力轉換器,具有一輸入端耦接至該第一功率開關的該第二端;以及一第五功率開關,具有一第一端耦接至該第二電力轉換器的一輸出端,其中該第五功率開關的一第二端耦接至該第三USB連接器的該電力腳位。 The USB hub as described in claim 1, further comprising: a third USB connector serving as a downstream port for coupling to a third device; and a fourth power switch having a first end coupled to to the second end of the first power switch, wherein a second end of the fourth power switch is coupled to a power pin of the third USB connector; a second power converter has an input end coupled to connected to the second end of the first power switch; and a fifth power switch having a first end coupled to an output end of the second power converter, wherein a second end of the fifth power switch coupled to the power pin of the third USB connector. 如申請專利範圍第9項所述的USB集線器,其中該控制電路耦接至該第一USB連接器的該第一配置通道腳位與該第三USB連接器的一第三配置通道腳位,以及該控制電路依據耦接於該第一USB連接器的該第一裝置的該第一配置資 訊與耦接於該第三USB連接器的該第三裝置的一第三配置資訊來控制該第一功率開關、該第四功率開關與該第五功率開關。 The USB hub of claim 9, wherein the control circuit is coupled to the first configuration channel pin of the first USB connector and a third configuration channel pin of the third USB connector, and the control circuit is based on the first configuration information of the first device coupled to the first USB connector and a third configuration information of the third device coupled to the third USB connector to control the first power switch, the fourth power switch and the fifth power switch. 一種USB集線器的操作方法,包括:當該USB集線器操作於一第一模式時,導通一第一功率開關與一第二功率開關而且截止一第三功率開關,其中該第一功率開關的一第一端耦接至一第一USB連接器的一電力腳位,該第一功率開關的一第二端耦接至該第二功率開關的一第一端與一第一電力轉換器的一輸入端,該第三功率開關的第一端耦接至該第一電力轉換器的一輸出端,該第二功率開關的一第二端與該第三功率開關的一第二端耦接至一第二USB連接器的一電力腳位,該第一USB連接器作為一上行埠,耦接至一第一裝置,以及該第二USB連接器作為一下行埠,耦接至一第二裝置;當該USB集線器操作於一第二模式時,導通該第一功率開關與該第三功率開關而且截止該第二功率開關;以及由一控制電路依據耦接於該第一USB連接器的該第一裝置的一第一配置資訊與耦接於該第二USB連接器的該第二裝置的一第二配置資訊來控制該第一功率開關、該第二功率開關與該第三功率開關,其中該控制電路耦接至該第一USB連接器的一第一配置通道腳位與該第二USB連接器的一第二配置通道腳位。 An operating method of a USB hub, comprising: when the USB hub operates in a first mode, turning on a first power switch and a second power switch and turning off a third power switch, wherein a first power switch of the first power switch is turned off. One end is coupled to a power pin of a first USB connector, a second end of the first power switch is coupled to a first end of the second power switch and an input of a first power converter terminal, a first terminal of the third power switch is coupled to an output terminal of the first power converter, a second terminal of the second power switch and a second terminal of the third power switch are coupled to a a power pin of a second USB connector, the first USB connector is used as an upstream port, coupled to a first device, and the second USB connector is used as a downstream port, coupled to a second device; When the USB hub operates in a second mode, turning on the first power switch and the third power switch and turning off the second power switch; and a control circuit according to the first power switch coupled to the first USB connector A first configuration information of a device and a second configuration information of the second device coupled to the second USB connector are used to control the first power switch, the second power switch and the third power switch, wherein The control circuit is coupled to a first configuration channel pin of the first USB connector and a second configuration channel pin of the second USB connector. 如申請專利範圍第11項所述的操作方法,更包括:當該第一USB連接器耦接一主機並且該第二USB連接器耦接一電力適配器時,由該USB集線器操作於該第一模式;以及 當該第一USB連接器耦接該電力適配器時,由該USB集線器操作於該第二模式。 The operating method of claim 11, further comprising: when the first USB connector is coupled to a host and the second USB connector is coupled to a power adapter, operating the first USB hub on the first USB hub mode; and The second mode is operated by the USB hub when the first USB connector is coupled to the power adapter. 如申請專利範圍第12項所述的操作方法,更包括:當該USB集線器操作於該第二模式時,並且一電裝置耦接到該第二USB連接器時,輸出一控制訊號以控制該第一電力轉換器進行對應的電力轉換。 The operating method of claim 12, further comprising: when the USB hub operates in the second mode and an electrical device is coupled to the second USB connector, outputting a control signal to control the The first power converter performs corresponding power conversion. 如申請專利範圍第11項所述的操作方法,更包括:當該第一USB連接器未耦接該第一裝置並且該第二USB連接器耦接一電力適配器時,截止該第一功率開關與該第三功率開關,導通該第二功率開關,而且禁能該第一電力轉換器。 The operation method of claim 11, further comprising: when the first USB connector is not coupled to the first device and the second USB connector is coupled to a power adapter, turning off the first power switch With the third power switch, the second power switch is turned on, and the first power converter is disabled. 如申請專利範圍第14項所述的操作方法,更包括:優先分配耦接於該第二USB連接器的該電力適配器的輸出功率給耦接於該第一USB連接器的一主機,剩餘的輸出功率被分配給耦接於一第三USB連接器的一電裝置,其中該第三USB連接器作為一下行埠,耦接一第三裝置。 The operating method of claim 14, further comprising: preferentially allocating the output power of the power adapter coupled to the second USB connector to a host coupled to the first USB connector, and the rest The output power is distributed to an electrical device coupled to a third USB connector, wherein the third USB connector acts as a downstream port, coupled to a third device. 如申請專利範圍第15項所述的操作方法,更包括:輸出一控制訊號以控制一第二電力轉換器進行對應的轉換,其中該第二電力轉換器的一輸入端耦接至該第一功率開關的該第二端,其中該第二電力轉換器的一輸出端耦接至該第三USB連接器的一電力腳位。 The operation method of claim 15, further comprising: outputting a control signal to control a second power converter to perform corresponding conversion, wherein an input end of the second power converter is coupled to the first power converter The second end of the power switch, wherein an output end of the second power converter is coupled to a power pin of the third USB connector.
TW109110613A 2019-05-23 2020-03-27 Usb hub and operating method thereof TWI765240B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010331011.3A CN111581147B (en) 2019-05-23 2020-04-24 USB hub and operation method thereof
US16/879,791 US11151069B2 (en) 2019-05-23 2020-05-21 USB hub and operating method thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201962851642P 2019-05-23 2019-05-23
US62/851,642 2019-05-23

Publications (2)

Publication Number Publication Date
TW202109301A TW202109301A (en) 2021-03-01
TWI765240B true TWI765240B (en) 2022-05-21

Family

ID=76035622

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109110613A TWI765240B (en) 2019-05-23 2020-03-27 Usb hub and operating method thereof

Country Status (1)

Country Link
TW (1) TWI765240B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI762296B (en) 2021-05-03 2022-04-21 威鋒電子股份有限公司 Protection circuit and hub chip
CN115566662A (en) * 2021-07-02 2023-01-03 瑞昱半导体股份有限公司 Connector and power transmission control method
TWI817794B (en) * 2022-10-27 2023-10-01 宏碁股份有限公司 Usb hub and operation method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100146307A1 (en) * 2008-10-31 2010-06-10 Griffin Jr Paul P Power Hub
US20130132758A1 (en) * 2011-11-18 2013-05-23 Canon Kabushiki Kaisha Hub device and system using the same
TWI583090B (en) * 2015-01-12 2017-05-11 李東昇 Hub having complex power converters
CN108897704A (en) * 2018-06-26 2018-11-27 南通森雅商务服务有限公司 The intelligent management system of extensive USB device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100146307A1 (en) * 2008-10-31 2010-06-10 Griffin Jr Paul P Power Hub
US20130132758A1 (en) * 2011-11-18 2013-05-23 Canon Kabushiki Kaisha Hub device and system using the same
TWI583090B (en) * 2015-01-12 2017-05-11 李東昇 Hub having complex power converters
CN108897704A (en) * 2018-06-26 2018-11-27 南通森雅商务服务有限公司 The intelligent management system of extensive USB device

Also Published As

Publication number Publication date
TW202109301A (en) 2021-03-01

Similar Documents

Publication Publication Date Title
TWI765240B (en) Usb hub and operating method thereof
TWI827581B (en) Circuits and systems for programmable gate driver control in usb power delivery
US10599597B2 (en) Programmable VBUS discharge in USB power delivery
US10890957B2 (en) Low-power type-C receiver with high idle noise and DC-level rejection
TWI684869B (en) Hub
KR102468187B1 (en) Eletronic device and external device charging method thereof
US10955888B2 (en) Universal serial bus device and method for dynamically defining a power source or sink status for downstream facing ports
JP6813392B2 (en) Configurable and power-optimized integrated gate driver for USB power supply and Type-C SoC
TWI464596B (en) System and method for facilitating communication between components in a portable electronic device and portable electronic devices
KR20070096849A (en) Intergrated circuit and signal processing device using the same
TWI675300B (en) Universal serial bus device and operating method thereof
TW201828557A (en) Two way charging-discharging circuit structure
CN107544653A (en) A kind of USB Type C interface and mobile device
US20220404891A1 (en) Power management device and consumer electronic product
CN104021809A (en) Universal serial bus (USB) storage
US7654861B2 (en) Connector and method thereof
CN111581147B (en) USB hub and operation method thereof
TWI817794B (en) Usb hub and operation method thereof
TWI845994B (en) Power management device and consumer product
WO2023001034A1 (en) Discharge circuit and terminal device
TWI780394B (en) Data cable for fast charging
CN101598958A (en) The changeable type CPU module device of notebook computer
TW202406263A (en) Power management device and consumer product
TW202418099A (en) Usb hub and operation method thereof
CN118017311A (en) USB hub and operation method thereof