Secondary side controller, universal serial bus power transfer system and operating method

By using a secondary-side controller and a current-sense amplifier in a universal serial bus power transfer system to identify fault conditions, the problem of incorrect sensing of output current caused by a faulty sensing resistor is solved, improving system safety and reliability. flexibility, reducing cost and space requirements.

CN118535502APending Publication Date: 2024-08-23INFINEON TECHNOLOGIES AMERICAS CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410183749.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-06-12
Filing Date
2024-02-19
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In existing universal serial bus power transmission systems, sensing resistors are susceptible to manufacturing defects or failures, resulting in incorrect sensing of output current, inability to effectively limit output current and power, and failure to meet safety requirements.

Method used

A secondary-side controller is used to control the power switch through a pulse width modulation signal, combined with a current sensing amplifier and an analog-to-digital converter, to generate a current code to identify fault conditions and disable the power converter based on the PWM signal and current code to avoid RSENSE Output current exceeds limit due to resistor failure.

Benefits of technology

Improves the reliability and safety of the power converter. By detecting RSENSE short-circuit faults, the output current over limit caused by resistor failure is avoided, enhancing the safety and reliability of the system while saving pins and circuit board space. , and reduce chip manufacturing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535502A_ABST
    Figure CN118535502A_ABST
Patent Text Reader

Abstract

A secondary side controller, a universal serial bus power transfer system, and a method of operation are provided. In an example of the technology presented herein, a method of operating a Universal Serial Bus Power Transfer (USB-PD) power converter is provided. The method includes generating a pulse width modulation (PWM) signal for controlling the power converter. An output current signal of the power converter is determined. The output current signal corresponds to an output current on an external sense resistor coupled in an output path of the USB-PD power converter. A fault condition is identified based on the PWM signal and the output current signal. Operation of the power converter is disabled in response to identifying the fault condition.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] priority

[0002] This application claims priority to and the benefit of U.S. Provisional Application No. 63 / 447,129, filed on February 21, 2023, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present invention relates to a secondary side controller, a universal serial bus power transmission system and an operation method. Background Art

[0004] Various electronic devices (e.g., such as smartphones, tablets, notebooks, laptops, hubs, chargers, adapters, etc.) are configured to deliver power through a USB connector according to the USB power delivery protocol defined in various revisions of the Universal Serial Bus (USB) Power Delivery (USB-PD) specification. An alternating current to direct current (AC-DC) converter converts power from an alternating current (AC) source to a direct current (DC) source at a specified voltage level. Summary of the invention

[0005] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

[0006] In an embodiment of the technology presented herein, a secondary-side controller for a Universal Serial Bus Power Delivery (USB-PD) power converter includes: a driver configured to control a power switch on a primary side of the USB-PD power converter based on a pulse width modulation (PWM) signal; a current sense amplifier configured to generate an output current signal corresponding to an output current provided by the power converter on an external sense resistor; and a controller configured to identify a fault condition based on the PWM signal and the output current signal.

[0007] In an embodiment of the technology presented herein, the secondary side controller includes an analog-to-digital converter coupled to a current sense amplifier to generate a current code representing an output current signal, wherein the controller is configured to identify a fault condition based on the PWM signal and the current code.

[0008] In an embodiment of the technology presented herein, a universal serial bus power delivery (USB-PD) system includes: a transformer including a primary side coupled to receive a rectified alternating current (AC) input voltage, and a secondary side connected to an output port to provide a direct current (DC) output voltage; a primary side controller coupled to a power switch to control the operation of the transformer; a sensing resistor coupled between the secondary side of the transformer and the output port; and a secondary side controller coupled to the output port, the secondary side controller including: a driver configured to provide a pulse width modulation (PWM) signal to turn the primary side controller on and off the power switch; an analog-to-digital converter connected to receive an output current signal and generate an output current code based on the output current signal, wherein the output current signal corresponds to an output current on the sensing resistor; and a controller configured to identify a fault condition based on the PWM signal and the output current code.

[0009] In an embodiment of the technology presented herein, a system for operating a universal serial bus power delivery (USB-PD) power converter includes: a device for generating a pulse width modulation (PWM) signal for controlling the power converter; a device for determining an output current signal of the power converter, wherein the output current signal corresponds to an output current across an external sense resistor coupled in an output path of the USB-PD power converter; a device for identifying a fault condition based on the PWM signal and the output current signal; and a device for disabling operation of the power converter in response to identifying the fault condition.

[0010] In an embodiment of the technology presented herein, a method of operating a universal serial bus power delivery (USB-PD) power converter includes: generating a pulse width modulation (PWM) signal for controlling the power converter; determining an output current signal of the power converter, wherein the output current signal corresponds to an output current across an external sense resistor coupled in an output path of the USB-PD power converter; identifying a fault condition based on the PWM signal and the output current signal; and disabling operation of the power converter in response to identifying the fault condition.

[0011] In order to achieve the aforementioned and related purposes, the following description and the accompanying drawings set forth some illustrative aspects and implementations. These illustrative aspects and implementations merely indicate some of the various ways in which one or more aspects may be employed. Other aspects, advantages, and novel features of the present disclosure will become apparent from the following detailed description when considered in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a schematic block diagram of a power converter according to some embodiments.

[0013] Figure 2 is a schematic diagram of a power converter configured for current sensing fault detection according to some embodiments.

[0014] Figure 3 is a flow chart of a current sensing fault detection method according to some embodiments.

[0015] Figure 4 An exemplary implementation of a system for a USB device in accordance with some implementations is shown. DETAILED DESCRIPTION

[0016] The claimed subject matter is now described with reference to the accompanying drawings, wherein like reference numerals are used to refer to like elements throughout the text. In the following description, for purposes of illustration, a number of specific details are set forth in order to provide a thorough understanding of the claimed subject matter. However, it is apparent that the claimed subject matter may be practiced without these specific details. In other cases, well-known structures and devices are shown in block diagram form in order to facilitate description of the claimed subject matter.

[0017] It is to be understood that the following description of the embodiments should not be construed as limiting. The scope of the present disclosure is not intended to be limited by the embodiments or drawings described below, which are considered to be illustrative only. The drawings are considered to be schematic representations, and the elements shown in the drawings are not necessarily shown to scale. On the contrary, the various elements are represented so that their functions and general purposes become apparent to those skilled in the art.

[0018] All numerical values ​​in the detailed description and claims herein are indicated values ​​modified by "about" or "approximately", and take into account experimental errors and variations that would be expected by a person of ordinary skill in the art.

[0019] Power converters meet the safety requirements of equipment powered by industrial power supplies by limiting current and power during various operating environments of the power converter, including normal conditions, load transient conditions, and severe output fault conditions. For example, for a limited power source (LPS) supply with up to 30V output, the power converter should limit the output current to a maximum of 8A. An example LPS standard is specified in the IEC 60950-1 standard.

[0020] The power converter can be operated in a constant voltage mode, where the power converter maintains the output voltage. If the load demand increases, the load current increases to maintain the output voltage. When the current limit is reached, the power converter can be switched to a constant current mode, where the current is not allowed to exceed the current limit. In constant current mode, the output voltage may drop in response to an increase in load demand, but the output current will not exceed the limit. In some embodiments, the power converter detects the load current and changes the operating mode by sensing the output current using a sensing resistor RSENSE in the output path to limit the output power. The output current can trigger an overcurrent protection (OCP) and / or short circuit protection (SCP) fault during an output fault / short circuit state. However, the sensing resistor is susceptible to manufacturing defects, short circuits, or faults or damage in operation that may cause incorrect sensing of the output current, and therefore, the power converter may not be able to effectively limit the output current / power to meet safety requirements. For example, if the RSENSE resistor is damaged and the measured current is lower than the actual current, the power converter can increase the duty cycle of the power converter to maintain the output voltage without sensing that the output current has exceeded the limit.

[0021] Various embodiments of the technology for sensing resistor short circuit detection in a discontinuous conduction mode (DCM) secondary-side controlled AC-DC converter are described herein. For example, the AC-DC converter may include a transformer to step down the input AC voltage from the primary side of the AC-DC converter to an output DC voltage on the secondary side. The output DC voltage can be provided to a USB Type-C connector for charging a USB compatible device, for example. In some embodiments, the transformer may include an auxiliary winding that generates a reflected voltage to the primary side so as to provide voltage to the primary side after the AC-DC converter is started. In some embodiments, the auxiliary winding also reflects the scaled output voltage of the secondary winding of the transformer to the primary side, for example by being designed to be similar to the secondary winding but located on the primary side.

[0022] Figure 1 1 is a schematic block diagram of a power converter 100 according to some embodiments. In some embodiments, the power converter 100 is an AC-DC power converter operating in DCM. The power converter 100 includes a primary side controller 102 and a secondary side controller 104 for controlling a flyback transformer 106 having an electrical connection or connection to an AC input (AC IN ) of the first winding (N P1 ), and connected to the DC output (DC OUT ) on the secondary side 110 of the secondary winding (N S). The AC input is connected to a first terminal of the flyback transformer 106 through a bridge rectifier 112, one or more input filters 114, and a buffer 116. In some embodiments, the AC input is a sinusoidal signal with an amplitude between about 85V and 285V. A power switch 118, such as a primary field effect transistor (PRFET), has a first node or drain node connected to a second terminal of the flyback transformer 106, a gate node connected to the primary side controller 102, and a third node or source node connected to the primary side controller 102 through a current sensing element, such as a resistor element 120 (RCS), which is grounded to sense the primary side current (I ) flowing through the primary winding when the power switch 118 is closed or turned on. PR In some embodiments, the primary side controller 102 further includes a resistor element (R IN ) 122 is connected to the first terminal of the flyback transformer 106 to receive a voltage V that is equal to or proportional to the rectified AC input voltage DD or signal.

[0023] On the secondary side 110, the power converter 100 includes a filter capacitor 124 connected between a third terminal of the flyback transformer 106 and an electrical ground or ground terminal, and an output capacitor 126 connected between the third terminal and the electrical ground, the output capacitor 126 providing a DC output voltage to an output interface such as an output connector 128. In some embodiments, the capacitance of the filter capacitor 124 is between about 500uF and 1000uF, such as about 680uF. Typically, as in the embodiment shown, the output connector 128 is also connected to the secondary side controller 104 via a plurality of communication channels 130 to support various charging protocols. Suitable output connectors 128 may include connectors that are compatible with and support the following standard and proprietary charging protocols, including Universal Serial Bus Power Delivery USB PD 2.0 and USB PD 3 with Programmable Power Supply (PPS), Quick Charge, AFC and Charging Protocol. For example, output connector 128 may include a Universal Serial Bus-C (USB-C) compatible connector, wherein power converter 100 complies with the USB protocol to provide a DC output voltage of about 3.3 VDC to about 21.5 VDC (or higher in the case of an extended power range (EPR)) at a current of up to substantially 5 amperes (A).

[0024] In some embodiments, the power converter 100 includes a synchronous rectifier (SR) field effect transistor 132 (SRFET) on the secondary side 110, which is connected between the flyback transformer 106 and the current sensing resistor 134 (RSENSE) and is connected to the negative terminal of the DC output through the current sensing resistor 134 (RSENSE). The SRFET 132 includes a drain node 132A, a gate node 132B, and a source node 132C. The drain node 132A is connected to the fourth terminal of the flyback transformer 106 and is connected to the SR sense pin (SR_SEN 138) of the secondary side controller 104 through a resistor 136 to sense the voltage on the drain node 132A of the SRFET 132; the gate node 132B is connected to the SR gate drive pin (SR_DRV 140) of the secondary side controller 104 to drive or control the SRFET 132; the source node 132C is connected to the negative DC output and the secondary side controller 104 through the SR-Vss ground voltage level pin (SR-Vss) 142. A first node of RSENSE resistor 134 is connected to a current sense negative pin (CSN) 144 of secondary side controller 104, and a second node is connected to a negative terminal of the DC output and a current sense positive pin (CSP) 146 to enable secondary side controller 104 to sense the output current I OUT In some implementations, the resistance of RSENSE resistor 134 is between about 3 Mohm and 10 Mohm, such as 5 Mohm.

[0025] Optionally, as in the illustrated embodiment, the secondary side 110 includes an additional or secondary provider switch (PS) 148, such as an NFET, connected between the flyback transformer 106 and the positive terminal of the DC output to enable the secondary side controller 104 to shut down the DC output to prevent overvoltage and / or undervoltage conditions. The secondary provider switch 148 includes a voltage bus input pin (V BUS_IN ) 150, connected to the source node 148A of the voltage bus control pin (V BUS CTRL ) 152 to drive or control the gate node 148B of the secondary switch 148 and the voltage bus output pin (V BUS_OUT )154 and the drain node 148C of the positive terminal of the DC output.

[0026] like Figure 1As shown, the power converter 100 includes an isolation circuit or barrier 156 to electrically isolate the secondary side 110 from the high AC input voltage present on the primary side 108. Because the flyback transformer 106 is a step-down transformer, the flyback transformer 106 is considered to be part of the isolation barrier 156. Figure 1 In an example embodiment of the present invention, the isolation barrier 156 also includes an auxiliary winding of the flyback transformer 106, which is used as a flyback buck transformer 106A to provide power to the primary side controller 102. The flyback buck transformer 106A, together with the diode 158 and the subsequent capacitor 160 to ground, stores the stepped-down voltage, which is then clipped by a bipolar junction transistor (BJT) structure 162, which is then connected to the AUX pin 164 of the primary side controller 102. This additional circuit is connected to the primary side controller 102 by connecting the AUX pin 164 to the primary side controller 102 instead of connecting the AUX pin 164 to the primary side controller 102. DD Pin 165 is connected via R IN The resistor element 122 is connected to a separate power source V on the primary side 108 of the flyback transformer 106. DD The primary side controller 102 is powered by the resistor divider 166, 168 connected to the overvoltage protection (OVP_AUX) pin 170 of the primary side controller 102 to help reduce the overall power consumption of the power converter 100. The resistor divider 166, 168 is used to sense the V on the secondary side 110 via the flyback buck transformer 106A. BUS_IN The reflected voltage of the secondary side input voltage is measured to disable the power switch 118 when an overvoltage condition is detected.

[0027] In addition, as in Figure 1 In an example embodiment, the power converter 100 uses a pulse width modulation (PWM) signal provided to the primary side controller 102 from a PWM drive pin 172 on the secondary side controller 104, and the isolation barrier 156 may also include a pulse transformer 174 connected between the PWM drive pin and a pulse input (PULSEIN) pin 176 and a soft start (SS) pin 178 of the primary side controller 102. The SS pin may be grounded via a capacitor 180. The secondary side controller 104 controls the width of the PWM signal based on the power required on the DC output, which turns on the power switch 118 to start the switching cycle, thereby optimizing or increasing the efficiency of the power converter 100.

[0028] In some embodiments, the power converter 100 is configured for DCM operation. In DCM, during each switching cycle, before the secondary side 110 turns on, the primary winding (N P1 ) decreases to zero, and the magnetic flux established in the transformer core causes current to flow through the secondary winding (N SWhen the current flowing through the secondary winding of the flyback transformer 106 (N S ) decreases to zero, the secondary side controller 104 sends a signal to the primary side controller 102 (e.g., through the pulse transformer 174) to start a new switching cycle.

[0029] Figure 2 is a schematic diagram of a power converter 100 configured for RSENSE short circuit detection according to some embodiments. Figure 1 In comparison, Figure 2 1 or are shown in simplified form. A primary side controller 102 on the primary side 108 of the power converter 100 controls the switching cycle of the flyback transformer 106 through a primary (PR) gate driver 200 based on a control signal received from a secondary side controller 104 (such as a PWM signal transmitted using a pulse transformer 174). The secondary side controller 104 on the secondary side 110 of the power converter 100 includes an SR gate driver 202 for controlling the SRFET 132 and a PS gate driver 204 for controlling the secondary switch 148, as well as other circuits (not shown) for controlling the operation of the secondary side 110 and providing signals (e.g., a PWM signal indicating the transformer duty cycle) to control the operation of the PR gate driver 200 in the primary side controller 102. The PWM signal is shown in dashed lines to represent the isolation barrier 156.

[0030] In some embodiments, to detect a short circuit on the RSENSE resistor 134, the secondary side controller 104 includes a low side current sense amplifier (CSA) 206, which is connected to the negative terminal of the RSENSE resistor 134 through the CSN pin 144 and to the positive terminal of the RSENSE resistor 134 through the CSP pin 146. The low side CSA 206 senses the output current based on the voltage drop between the CSN pin 144 and the CSP pin 146. The low side CSA 206 is configured to enable the secondary side controller 104 to sense the current I from the power converter 100 to the output connector 128. OUT, and provides constant current (CC) regulation, short circuit protection (SCP), over current protection (OCP) and RSENSE short circuit detection based on the output current. The secondary side controller 104 also includes a controller 208 configured to detect an RSENSE short circuit condition. The controller 208 is connected to the PS gate driver 204, the PWM driver 210 and an analog-to-digital converter (ADC) 212 connected to the low-side CSA 206. The controller 208 and the ADC 212 are configured to operate under the control of the firmware (FW) 214 based on programmable parameters stored in registers and / or memory of the secondary side controller 104. The PWM driver 210 is configured to provide a pulse width modulation (PWM) signal indicating the duty cycle of the flyback transformer 106 to the controller 208, and send the PWM signal across the isolation barrier 156 to the receiver 216 in the primary side controller 102. The controller 218 in the primary side controller 102 controls the PR gate driver 200 based on the PWM signal.

[0031] For an implementation in which the power converter 100 operates in DCM, the following example for RSENSE short circuit detection is described. OUT If the RSENSE resistor 134 short circuit condition (such as a resistor defect, a printed circuit board manufacturing defect, and / or an operation-induced fault) exceeds a predefined limit (e.g., 8A), the secondary side controller 104 will be inhibited from performing constant current (CC) regulation, and may inhibit OCP / SCP during a DC output fault (e.g., short circuit) even due to inaccurate sensed current. This situation will cause the secondary side controller 104 to continue to operate in a constant voltage (CV) mode and deliver the required output power on the DC output, despite the increase in the on-pulse width of the PWM control signal sent to the controller 218 to control the duty cycle of the flyback transformer 106.

[0032] In some embodiments, the controller 208 issues an RSENSE short circuit detection interrupt in response to the output of the low-side CSA 206 decreasing (e.g., below a first threshold) and the on-pulse of the PWM control signal becoming wider (e.g., greater than a second threshold). In some embodiments, the output current I flowing through the RSENSE resistor 134 OUTThe output current measurement is measured by the low-side CSA 206, the output current measurement is converted to a digital code by the ADC 212, and the digital code is compared to a predefined first threshold value (which can be set by the firmware 214). Similarly, the PWM pulse width is measured using a counter 208A implemented by the controller 208, and the resulting PWM count is compared to be above a predefined second threshold value (which can also be set by the firmware 214). For example, the counter 208A can be triggered by the rising edge of the PWM signal and terminated by the falling edge of the PWM signal. In some embodiments, the first threshold value (current) and the second threshold value (PWM pulse width) can depend on the secondary side input voltage V generated by the flyback transformer 106. BUS_IN and the output voltage V provided to the output connector 128 BUSC One or more voltages in . These values ​​are known by the secondary side controller 104 on the secondary side 110. When these two conditions are met, for example, the current through the RSENSE resistor 134 is below the first threshold and the pulse width counter is above the second threshold, the controller 208 issues an interrupt to indicate an RSENSE short circuit fault. In some embodiments, the firmware 214 checks the persistence of the interrupt multiple times before asserting the RSENSE short circuit condition signal (e.g., sampled N times after an interval of M ms and exists). Checking the persistence of the RSENSE short circuit fault interrupt can avoid false RSENSE short circuit condition assertions caused by dynamic current load changes. In some embodiments, the firmware 214 and / or the controller 208 generates an interrupt based on the line input voltage V BUS_IN and output voltage V BUSC The PWM pulse width threshold and the output current threshold are dynamically determined. In this way, RSENSE short circuit detection dynamically adjusts itself during operation. In some embodiments, the PWM pulse width threshold and / or the output current threshold are determined using a voltage determined by V BUS_IN and V BUSC The index is determined by the lookup table 214A in the firmware 214.

[0033] Figure 3 3 is a flow chart of a method 300 for RSENSE short circuit detection by a secondary side controller 104 of a power converter 100 according to some embodiments. In some embodiments, the power converter 100 is an AC-DC converter operating in DCM. The method 300 starts at 302. At 304, the output current I OUT208A is compared with a current threshold. At 306, the PWM width is compared with a PWM threshold, for example, by comparing the output of counter 208A with a PWM count threshold. Other techniques may be used to determine the PWM pulse width. If either condition is not met at 304 or 306, the RSENSE fault counter is reset at 310, and the method 300 returns to the start at 302. If the conditions of 304 and 306 are met at 308, an RSENSE fault interrupt is issued at 312 and the RSENSE fault counter is incremented. At 314, if the fault count reaches a threshold (such as N), at 316, an RSENSE fault condition is issued, such as by firmware 214, and the method 300 stops at 318. If the fault count does not meet the threshold at 314 , a wait interval, such as M ms, is implemented at 320 and method 300 returns to 304 and 306 to determine whether the RSENSE fault persists, which results in repeating incrementing the RSENSE fault counter at 312 as long as the condition at 308 persists until the fault count is met at 314 .

[0034] In some embodiments, issuing an RSENSE fault condition at 316 results in a protective action by the secondary side controller 104. In some embodiments, the protective action includes an alert message provided on an indicator on the output connector 128. In some embodiments, the protective action includes disabling the power converter 100, such as by opening the secondary provider switch 148, opening the SRFET 132, inhibiting the PWM signal to prevent the PRFET 118 from closing, or some other protective action to disable the power converter 100.

[0035] In some embodiments, the method 300 is performed at least in part by processing logic including hardware (e.g., circuitry, dedicated logic, programmable logic, microcode, etc.), firmware, or a combination thereof. In one example embodiment, the method 300 is performed by a processor including Figure 1 and Figure 2 Executed by processing logic (e.g., such as controller 208) in secondary-side controller 104 of power converter 100 shown. In some embodiments, method 300 can be executed based on various parameters programmable by firmware 214. For example, firmware inputs can be used to define and / or set one or more of the following: a current threshold for the current measured across RSENSE resistor 134 at 304, a PWM pulse width threshold used at 306, a fault count (N) for the count of RSENSE short-circuit fault interrupts that need to be detected before asserting an RSENSE short-circuit condition at 314, and / or a wait time in ms (M) for checking the persistence of the RSENSE short-circuit fault interrupt at 320, one or more of which can be set during operation based on the input voltage (VBUS_IN ) or output voltage (V BUSC ) changes dynamically.

[0036] The technique for RSENSE short-circuit detection described in this article provides at least the following advantages over existing conventional schemes:

[0037] Reliability / Safety: By detecting RSENSE short circuit faults, the reliability of the power converter 100 is increased by limiting power at the output in any output fault condition caused by a failure of the RSENSE resistor 134;

[0038] BOM / pin and board space savings: No additional pins or external components are required to detect RSENSE short-circuit faults.

[0039] Flexibility / Programmability: The threshold for detecting an RSENSE short-circuit fault can be based on the AC input voltage, the secondary side voltage (V BUS_IN or V BUSC ) range to allow dynamic sensing, and

[0040] Lower die cost: Chip manufacturers can reuse existing circuits and logic as well as firmware to implement RSENSE short-circuit detection.

[0041] Example embodiments may include a computer-readable medium (e.g., such as firmware, flash memory, etc.) storing instructions that, when executed by a device (e.g., such as Figure 1 to Figure 2 When executed by the controller 104 in Figure 3 At least a portion of the method described in . For example, one or more embodiments may include a non-transitory computer-readable medium storing a set of processor-executable instructions, which, when executed by a semiconductor device controller including at least a processor (e.g., a CPU or another core processor) and a memory, are configured to facilitate operation according to the techniques set forth herein. In some embodiments, the processor-executable instructions, when executed, are configured to facilitate execution of a method, such as at least some of the aforementioned methods. In some embodiments, the processor-executable instructions, when executed, are configured to facilitate implementation of a system, such as at least some of one or more of the aforementioned systems. Many such computer-readable media can be designed by a person of ordinary skill in the art that are configured to operate according to the techniques presented herein.

[0042] Figure 44 is a block diagram illustrating a system 400 for a USB device according to some embodiments. The system 400 may include a peripheral subsystem 402 including multiple components for USB power delivery (USB-PD). The peripheral subsystem 402 may include a peripheral interconnect 404 including a peripheral clock module (PCLK) 406 for providing clock signals to various components of the peripheral subsystem 402. The peripheral interconnect 404 may be a peripheral bus, such as a single-stage or multi-stage advanced high-performance bus (AHB), and may provide a data and control interface between the peripheral subsystem 402, the CPU subsystem 408, and the system resources 410. The peripheral interconnect 404 may include a controller circuit system such as a direct memory access (DMA) controller, which may be programmed to transfer data between peripheral blocks without input from the CPU subsystem 408, without control of the CPU subsystem 408, or without imposing the same transfer.

[0043] Peripheral interconnect 404 may be used to couple peripheral subsystem 402 components to other components of system 400. A plurality of general purpose input / outputs (GPIOs) 412 may be coupled to peripheral interconnect 404 for sending and receiving signals. GPIO 412 may include circuitry configured to implement various functions such as pull-ups, pull-downs, input threshold selection, input and output buffer enable / disable, single multiplexing, and the like. Other functions may also be implemented by GPIO 412. One or more timer / counter / pulse width modulators (TCPWM) 414 may also be coupled to peripheral interconnect and may include circuitry implementing timing circuits (timers), counters, pulse width modulators (PWMs), decoders, and other digital functions associated with I / O signal operation, and may provide digital signals to system components of system 400. The peripheral subsystem 402 may also include one or more serial communication blocks (SCBs) 416 for implementing serial communication interfaces, such as I2C, serial peripheral interface (SPI), universal asynchronous receiver / transmitter (UART), controller area network (CAN), CXPI (clock extension peripheral interface), etc.

[0044] For USB power delivery applications, peripheral subsystem 402 may include USB power delivery subsystem 418 coupled to peripheral interconnect 404, and USB power delivery subsystem 418 includes a set of USB PD modules 420 for USB power delivery. USB PD modules 420 may be coupled to peripheral interconnect 404 via USB-PD interconnect 422. The USB PD module 420 may include: an analog-to-digital converter (ADC) module for converting various analog signals into digital signals; an error amplifier (AMP) for regulating the output voltage on the VBUS line through the PD protocol; a high voltage (HV) regulator for converting the power supply voltage into a precise voltage (such as 3.5V to 5V) to power the system 400; a low-side current sensing amplifier (LSCSA) for accurately measuring the load current; an overvoltage protection (OVP) module and an overcurrent protection (OCP) module for providing overcurrent and overvoltage protection on the VBUS line with configurable thresholds and response times; one or more gate drivers for external power field effect transistors (FETs) for USB power transmission in provider and consumer configurations; and a communication channel PHY (CC-BB-PHY) module for supporting communication on the Type-C communication channel (CC) line. The USB PD module 420 may also include a charger detection module to determine whether the charging circuit system is present and coupled to the system 400, and a VBUS discharge module to control the voltage discharge on the VBUS. The VBUS discharge module can be configured to couple to a power node on the VBUS line or an output (power dissipater) node on the VBUS line and regulate the voltage on the VBUS line to a desired voltage level (i.e., a voltage level specified in the voltage level negotiated by the PD protocol). The USB power delivery subsystem 418 may also include pads 424 for external connections and electrostatic discharge (ESD) suppression circuitry 426 that may be required on the Type-C port. The USB PD module 420 may also include a communication module for retrieving and transmitting information (such as control signals) such as from the secondary side controller 104 to the primary side controller 102.

[0045] The GPIO 412, TCPWM 414, and SCB 416 may be coupled to an input / output (I / O) subsystem 428, which may include a high-speed (HS) I / O matrix 430 connected to a plurality of GPIOs 432. The GPIO 412, TCPWM 414, and SCB 416 may be coupled to the GPIO 432 via the HS-I / O matrix 430.

[0046] The central processing unit (CPU) subsystem 408 is used to process instructions, store program information and data. The CPU subsystem 408 may include one or more processing units 434 for executing instructions and reading and writing memory locations from multiple memories. The processing unit 434 may be a processor suitable for operation in an integrated circuit (IC) or a system on chip (SOC) device. In some embodiments, the processing unit 434 may be optimized for low-power operation using a large number of clock gating. In this embodiment, different internal control circuits may be implemented for the operation of the processing unit in different power states. For example, the processing unit 434 may include a single-wire debug (SWD) module, a terminal count (TC) module, a wake-up interrupt controller (WIC) configured to wake up the processing unit from a sleep state (which can turn off the power when the IC or SOC is in a sleep state), a fast multiplier, a nested vector interrupt controller (NVIC) and an interrupt multiplexer (IRQMUX). The CPU subsystem 408 may include one or more memories, including flash memory 436, static random access memory (SRAM) 438 and read-only memory (ROM) 440. Flash memory 436 may be a non-volatile memory (NAND flash memory, NOR flash memory, etc.) configured to store data, programs, and / or other firmware instructions. Flash memory 436 may include a system performance controller interface (SPCIF) register and a read accelerator, and improve access times by being integrated into the CPU subsystem 408. SRAM 438 may be a volatile memory configured to store data and firmware instructions accessible by the processing unit 434. ROM 440 may be configured to store boot routines, configuration parameters, and other firmware parameters and settings that do not change during operation of the system 400. SRAM 438 and ROM 440 may have associated control circuitry. Processing unit 434 and memory modules 436, 438, 440 may be coupled to a system interconnect 442 to route signals to various components of the CPU subsystem 408 and to route signals from various components of the CPU subsystem 408 to other blocks or modules of the system 400. System interconnect 442 may be implemented as a system bus, such as a single-stage or multi-stage AHB. System interconnect 442 may be configured as an interface to couple together various components of CPU subsystem 408. System interconnect 442 may be coupled to peripheral interconnect 404 to provide a signal path between components of CPU subsystem 408 and peripheral subsystem 402.

[0047] System resources 410 may include a power module 444, a clock module 446, a reset module 448, and a test module 450. The power module 444 may include a sleep control module, a wake-up interrupt control (WIC) module, a power-on reset (POR) module, multiple voltage references (REF), and a PWRSYS module. In some embodiments, the power module 444 may include a circuit system that enables the system 400 to draw power from an external source and / or provide power to an external source at different voltage levels and / or current levels, and control operations in different power states such as active, low power, or sleep. In various embodiments, more power states may be achieved as the system 400 throttles to achieve desired power consumption or power output. For example, the secondary side controller 104 may access secondary electrical parameters on the secondary side. The clock module 446 may include a clock control module, a watchdog timer (WDT), an internal low speed oscillator (ILO), and an internal main oscillator (IMO). The reset module 448 may include a reset control module and an external reset module (XRES module). The test module 450 may include a module for controlling and entering a test mode, and a test control module for analog functions and digital functions (digital test and analog DFT).

[0048] System 400 may be implemented in a monolithic (e.g., single) semiconductor die. In other embodiments, different portions or modules of system 400 may be implemented on different semiconductor dies. For example, memory modules 436, 438, 440 of CPU subsystem 408 may be on-chip or off-chip. In other embodiments, circuit systems with separate dies may be packaged in a single "chip," or remain separate and arranged as separate components on a circuit board (or in a USB cable connector).

[0049] System 400 can be implemented in multiple application environments to provide USB PD functionality. In any application environment, an electronic device (e.g., a USB-enabled device) can have an IC controller or SOC implementation implemented by system 400, which is arranged and configured to perform operations according to the techniques described herein. In one embodiment, system 400 can be arranged and configured in a personal computer (PC) power adapter for a laptop computer, a notebook computer, etc. In another embodiment, system 400 can be housed in a power adapter (e.g., a wall charger) for a mobile electronic device (e.g., a smartphone, a tablet computer, etc.). In another embodiment, system 400 can be set and configured in a wall socket, which is configured to provide power via a USB type A port and / or a USB type C port. In another embodiment, system 400 can be arranged and configured in a car charger, which is configured to provide power via a USB type A port and / or a USB type C port. In yet another embodiment, the system 400 may be arranged and configured in a power pack that can be charged via a USB Type A port and / or a USB Type C port and then power another electronic device. In other embodiments, a system such as the system 400 may be configured with the power switch gate control circuitry described herein and may be incorporated into various other USB-enabled electronic devices or electromechanical devices.

[0050] It should be understood that a system implemented on or as an IC controller (such as system 400) can be placed in a variety of applications that vary depending on the type of power source used and the direction of power supply. For example, in the case of a car charger, the power source is an on-board battery that provides DC power, while in the case of a mobile power adapter, the power source is an AC wall outlet. In addition, in the case of a PC power adapter, the flow of power input is from the provider device to the consumer device, while in the case of a power pack, the flow of power input can be in either direction, depending on whether the power pack is operating as a power provider (e.g., powering another device) or as a power consumer (e.g., allowing itself to be charged). For these reasons, the various applications of system 400 should be viewed in an illustrative rather than a restrictive sense.

[0051] In an embodiment of the technology presented herein, a secondary-side controller for a Universal Serial Bus Power Delivery (USB-PD) power converter includes: a driver configured to control a power switch on a primary side of the USB-PD power converter based on a pulse width modulation (PWM) signal; a current sense amplifier configured to generate an output current signal corresponding to an output current provided by the power converter on an external sense resistor; and a controller configured to identify a fault condition based on the PWM signal and the output current signal.

[0052] In an embodiment of the technology presented herein, the secondary side controller includes an analog-to-digital converter coupled to a current sense amplifier to generate a current code representing an output current signal, wherein the controller is configured to identify a fault condition based on the PWM signal and the current code.

[0053] In an embodiment of the technology presented herein, the secondary side controller includes a pulse width counter configured to generate a PWM count corresponding to a pulse width of a PWM signal, wherein the controller is configured to identify a fault condition based on the PWM count and the output current signal.

[0054] In an implementation of the technology presented herein, the controller is configured to identify a fault condition in response to the PWM count exceeding a first threshold and the output current signal being less than a second threshold.

[0055] In an embodiment of the technology presented herein, the secondary side controller includes a lookup table configured to store a first value of a first threshold and a second value of a second threshold, wherein at least one of the first value or the second value is selected based on at least one of an output voltage of the USB-PD power converter or a line input voltage of the USB-PD power converter.

[0056] In an embodiment of the technology presented herein, a secondary side controller includes a first current sensing terminal coupled to a current sensing amplifier and a second current sensing terminal coupled to the current sensing amplifier, wherein the current sensing amplifier senses a voltage drop between the first current sensing terminal and the second current sensing terminal to generate an output current signal.

[0057] In an implementation of the techniques presented herein, a controller is configured to disable a power converter in response to identifying a fault condition.

[0058] In an implementation of the techniques presented herein, the controller is configured to disable the power converter in response to determining that the fault condition persists for a predetermined time interval.

[0059] In an embodiment of the technology presented herein, a universal serial bus power delivery (USB-PD) system includes: a transformer including a primary side coupled to receive a rectified alternating current (AC) input voltage, and a secondary side connected to an output port to provide a direct current (DC) output voltage; a primary side controller coupled to a power switch to control the operation of the transformer; a sensing resistor coupled between the secondary side of the transformer and the output port; and a secondary side controller coupled to the output port, the secondary side controller including: a driver configured to provide a pulse width modulation (PWM) signal to turn the primary side controller on and off the power switch; an analog-to-digital converter connected to receive an output current signal and generate an output current code based on the output current signal, wherein the output current signal corresponds to an output current on the sensing resistor; and a controller configured to identify a fault condition based on the PWM signal and the output current code.

[0060] In an implementation of the technology presented herein, a USB-PD system includes a current sense amplifier connected across a sense resistor and configured to generate an output current signal.

[0061] In an embodiment of the technology presented herein, the secondary side controller includes a pulse width counter configured to generate a PWM count corresponding to a pulse width of a PWM signal, and the controller is configured to identify a fault condition based on the PWM count and an output current code.

[0062] In an implementation of the technology presented herein, the controller is configured to identify a fault condition based on a PWM count exceeding a first threshold and an output current code being less than a second threshold.

[0063] In an embodiment of the technology presented herein, the secondary side controller includes a lookup table configured to store a first value of a first threshold and a second value of a second threshold, wherein at least one of the first value or the second value is selected based on at least one of the output voltage or the rectified AC input voltage.

[0064] In an implementation of the technology presented herein, the controller is configured to disable operation of the transformer in response to identifying a fault condition.

[0065] In an embodiment of the technology presented herein, the controller is configured to disable operation of the transformer in response to determining that the fault condition persists for a predetermined time interval.

[0066] In an embodiment of the technology presented herein, the output port includes a USB Type-C (USB-C) compliant connector.

[0067] In an embodiment of the technology presented herein, a method of operating a universal serial bus power delivery (USB-PD) power converter includes: generating a pulse width modulation (PWM) signal for controlling the power converter; determining an output current signal of the power converter, wherein the output current signal corresponds to an output current across an external sense resistor coupled in an output path of the USB-PD power converter; identifying a fault condition based on the PWM signal and the output current signal; and disabling operation of the power converter in response to identifying the fault condition.

[0068] In an embodiment of the technology presented herein, the method includes generating a current code representing an output current signal, and generating a PWM count corresponding to a pulse width of the PWM signal, wherein identifying a fault condition includes identifying the fault condition in response to the PWM count exceeding a first threshold and the output current signal being less than a second threshold.

[0069] In an embodiment of the technology presented herein, the method includes modifying at least one of the first threshold or the second threshold based on a change in the output voltage of the USB-PD power converter.

[0070] In an embodiment of the technology presented herein, determining an output current signal of a USB-PD power converter includes sensing a voltage drop between a first current sensing terminal and a second current sensing terminal connected in an output path of the USB-PD power converter.

[0071] Various operations of the embodiments are provided herein. In one embodiment, one or more of the operations described may constitute computer-readable instructions stored on one or more computer-readable media, and if executed by a computing device, these computer-readable instructions will cause the computing device to perform the described operations. The order of describing some or all operations should not be interpreted as implying that these operations must rely on the order. Those skilled in the art who benefit from this specification will understand the alternative ordering. In addition, it will be understood that not all operations must be present in each embodiment provided herein. In addition, it will be understood that in some embodiments, not all operations are necessary.

[0072] Any aspect or design described herein as an "example" or the like is not necessarily to be construed as being superior to other aspects or designs. Rather, the use of the word "example" is intended to present one possible aspect and / or implementation that may be related to the techniques presented herein. Such an example is not necessary for or intended to be limiting of such techniques. Various implementations of such techniques may include such examples alone or in combination with other features, and / or the examples shown may be altered and / or omitted.

[0073] As used in this application, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X adopts A or B" is intended to mean any natural inclusive arrangement. That is, if X adopts A, X adopts B, or X adopts both A and B, then "X adopts A or B" is satisfied in any of the aforementioned cases. In addition, unless otherwise specified or clearly directed to a singular form from the context, the articles "one" and "an" used in this application and the appended claims can generally be interpreted as referring to "one or more". In addition, unless otherwise specified, "first", "second", etc. are not intended to imply time, space, order, etc. On the contrary, such terms are only used as identifiers, names, etc. of features, elements, items, etc. For example, the first element and the second element generally correspond to element A and element B or two different or two identical elements or the same element.

[0074] In addition, although the present disclosure has been shown and described with respect to one or more implementations, those skilled in the art will think of equivalent changes and modifications based on reading and understanding of this specification and the accompanying drawings. The present disclosure includes all such modifications and changes and is limited only by the scope of the appended claims. In particular, with respect to the various functions performed by the components (e.g., elements, sources, etc.) described above, unless otherwise indicated, the terms used to describe such components are intended to correspond to any component that performs the specified functions of the described components (e.g., functionally equivalent), even if structurally not equivalent to the disclosed structure that performs the functions in the example implementations shown in this article of the present disclosure. In addition, although specific features of the present disclosure may be disclosed only for one implementation in several implementations, such features may be combined with one or more other features of other implementations as may be desired and advantageous for any given or specific application. In addition, with respect to the terms "includes", "having", "has", "with" or variations thereof used in the detailed description and claims, such terms are intended to be inclusive in a manner similar to the term "comprising".

Claims

1. A secondary side controller for a universal serial bus power transmission USB-PD power converter, the secondary side controller include: A driver configured to control a power switch on a primary side of the USB-PD power converter based on a pulse width modulation (PWM) signal; a current sense amplifier configured to generate an output current signal corresponding to an output current provided by the USB-PD power converter across an external sense resistor; as well as A controller is configured to identify a fault condition based on the PWM signal and the output current signal.

2. The secondary side controller according to claim 1, include: an analog-to-digital converter coupled to the current sensing amplifier to generate a current code representing the output current signal, wherein: The controller is configured to identify the fault condition based on the PWM signal and the current code.

3. The secondary side controller according to claim 1, include: a pulse width counter configured to generate a PWM count corresponding to a pulse width of the PWM signal, wherein: The controller is configured to identify the fault condition based on the PWM count and the output current signal.

4. The secondary side controller according to claim 3, in: The controller is configured to identify the fault condition in response to the PWM count exceeding a first threshold and the output current signal being less than a second threshold.

5. The secondary side controller according to claim 4, include: A lookup table configured to store a first value of the first threshold and a second value of the second threshold, wherein at least one of the first values ​​or the second values ​​is selected based on at least one of an output voltage of the USB-PD power converter or a line input voltage of the USB-PD power converter.

6. The secondary side controller according to claim 1, include: a first current sense terminal coupled to the current sense amplifier; as well as coupled to a second current sense terminal of the current sense amplifier, wherein: The current sense amplifier senses a voltage drop between the first current sense terminal and the second current sense terminal to generate the output current signal.

7. The secondary side controller according to claim 1, in: The controller is configured to disable the USB-PD power converter in response to identifying the fault condition.

8. The secondary side controller according to claim 1, in: The controller is configured to disable the USB-PD power converter in response to determining that the fault condition persists for a predetermined time interval.

9. A universal serial bus power transmission USB-PD system, include: A transformer comprising: a primary side coupled to receive a rectified alternating current (AC) input voltage; and a secondary side connected to an output port to provide a direct current (DC) output voltage, a primary side controller coupled to the power switch to control operation of the transformer; a sense resistor coupled between the secondary side of the transformer and the output port; and a secondary-side controller coupled to the output port, the secondary-side controller comprising: A driver configured to provide a pulse width modulation (PWM) signal to enable the primary side controller to turn on and off the power switch; an analog-to-digital converter connected to receive an output current signal and to generate an output current code based on the output current signal, wherein the output current signal corresponds to an output current on the sense resistor; and A controller is configured to identify a fault condition based on the PWM signal and the output current code.

10. The USB-PD system according to claim 9, include: A current sense amplifier is connected across the sense resistor and is configured to generate the output current signal.

11. The USB-PD system according to claim 9, in: The secondary side controller includes a pulse width counter configured to generate a PWM count corresponding to a pulse width of the PWM signal, and The controller is configured to identify the fault condition based on the PWM count and the output current code.

12. The USB-PD system according to claim 11, in: The controller is configured to identify the fault condition based on the PWM count exceeding a first threshold and the output current code being less than a second threshold.

13. The USB-PD system according to claim 12, in: The secondary side controller comprises: A lookup table is configured to store a first value of the first threshold and a second value of the second threshold, wherein at least one of the first values ​​or the second values ​​is selected based on at least one of the DC output voltage or the rectified AC input voltage.

14. The USB-PD system according to claim 9, in: The controller is configured to disable operation of the transformer in response to identifying the fault condition.

15. The USB-PD system according to claim 9, in: The controller is configured to disable operation of the transformer in response to determining that the fault condition persists for a predetermined time interval.

16. The USB-PD system according to claim 9, in, The output port includes a USB Type-C USB-C compliant connector.

17. A method of operating a Universal Serial Bus Power Delivery (USB-PD) power converter, include: Generate a pulse width modulation (PWM) signal for controlling the USB-PD power converter; determining an output current signal of the USB-PD power converter, wherein the output current signal corresponds to an output current across an external sense resistor coupled in an output path of the USB-PD power converter; identifying a fault condition based on the PWM signal and the output current signal; and Operation of the USB-PD power converter is disabled in response to identifying the fault condition.

18. The method according to claim 17, include: generating a current code representing the output current signal; as well as A PWM count corresponding to the pulse width of the PWM signal is generated, wherein: Identifying the fault condition includes identifying the fault condition in response to the PWM count exceeding a first threshold and the output current signal being less than a second threshold.

19. The method according to claim 18, include: At least one of the first threshold or the second threshold is modified based on a change in an output voltage of the USB-PD power converter.

20. The method according to claim 17, in: Determining the output current signal of the USB-PD power converter includes sensing a voltage drop between a first current sensing terminal and a second current sensing terminal connected in an output path of the USB-PD power converter.