1. Technical Field
The disclosed embodiments relate generally to a switch mode power converter, and more specifically, to a switch mode power converter that facilitates communication from a load device coupled to a secondary side of the power supply to a primary side controller.
2. Description of the Related Arts
In a conventional isolated switching power supply such as a flyback power converter, a switch controller located on the primary side of the power supply regulates power to the load by controlling on-times and off-times of a switch based upon one or more feedback signals representing output power, output voltage, and/or output current. It is often desirable to communicate messages from the load device to the primary side controller so that the load device can communicate a desired voltage, current, or operating mode to be provided by the power converter. In devices that distribute power through a standard Universal Serial Bus (USB) cable, there are different conventional methods of communication. Some conventional systems rely on communication through the D+/D− data lines of USB during negotiation stages where the power delivery method can be changed to different modes. However, it is often undesirable to use the D+/D− lines because connecting these lines to anything other than their normal high-speed communication path may impact the bit error rate. Another disadvantage of communicating operating mode information using the D+/D− data lines is that it such solutions typically require a communication integrated circuit on the secondary side of the charger/adapter, thereby increasing overall cost of the system.
A switching power converter provides power to an electronic device based on a digital message generated by the electronic device. The electronic device generates the digital message by modulating a load current to the electronic device according to a predefined pattern. A transformer electrically isolates a secondary side of the switching power converter coupled to the electronic device from a primary side. A load current detector obtains samples of a primary side voltage sense signal representative of an output voltage to the electronic device and samples of a current sense signal representing a primary side current. The voltage sense signal and the current sense signal vary based on the modulated load current to the electronic device. The load current detector generates a load current signal representing a waveform of the modulated current to the electronic device. A digital decoder decodes the load current signal to recover the digital message encoding by the electronic device. A power controller controls switching of a switch to control at least one of an output voltage and an output current to the electronic device based on the voltage sense signal, the current sense signal, and the digital message.
The features and advantages described in the specification are not all inclusive and, in particular, many additional features and advantages will be apparent to one of ordinary skill in the art in view of the drawings, specification, and claims. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter.
The teachings of the embodiments of the present invention can be readily understood by considering the following detailed description in conjunction with the accompanying drawings.
FIG. (FIG.) 1 illustrates an embodiment of a switching power converter.
The features and advantages described in the specification are not all inclusive and, in particular, many additional features and advantages will be apparent to one of ordinary skill in the art in view of the drawings, specification, and claims. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter.
The Figures (FIG.) and the following description relate to the preferred embodiments of the present invention by way of illustration only. It should be noted that from the following discussion, alternative embodiments of the structures and methods disclosed herein will be readily recognized as viable alternatives that may be employed without departing from the principles of the present invention.
Reference will now be made in detail to several embodiments of the present invention(s), examples of which are illustrated in the accompanying figures. It is noted that wherever practicable similar or like reference numbers may be used in the figures and may indicate similar or like functionality. The figures depict embodiments of the present invention for purposes of illustration only. One skilled in the art will readily recognize from the following description that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles of the invention described herein.
A load device on a secondary side of an isolated switching power converter communicates a digital message to a primary side controller by modulating the load current in accordance with certain predefined timing patterns. The load current modulation is detected by the primary side controller and the digital message is decoded based on the predefined timing patterns. The load device may encode the digital message in order to control the primary side controller to operate in a particular mode compatible with the load device. In one embodiment, where the power converter is coupled to the load device via a USB cable, the digital message may be transmitted over the Vbus lines that provide power to the load device.
An input voltage (VIN) 108, typically a rectified AC voltage, is input to power converter 100. The primary side controller 102 controls the on state and the off state of the switch 104 using the switch control signal 106 with on-times (TON) and off-times (TOFF). When the switch 104 is turned on during its on-time, energy is stored in the primary side windings Np of the transformer T1. The voltage across the secondary winding Ns is negative and the diode D1 is reverse biased, blocking transfer of energy to the load device 121. In this state, energy is supplied to the load device 121 via capacitor C1. When the switch 104 is turned off, the energy stored in the primary winding Np of the transformer T1 is released to the secondary winding Ns of the transformer T1. The diode D1 becomes forward biased enabling transfer of energy stored in the transformer T1 to the load device 121 and re-charging the capacitor C1.
The resistors R1 and R2 form a voltage divider coupled in series with the auxiliary winding Na of the transformer T1, and produce the sensed voltage (VSENSE) 112, which can be used to estimate the output voltage (VOUT) 110. The resistor R3 is coupled in series with the switch 104 to produce a voltage (ISENSE) 114 representing a primary side current which can be used in conjunction with VSENSE 112 to estimate the output current IOUT 116.
In normal operation, the controller 102 monitors VSENSE 112 and/or ISENSE 114 and controls switching of the switch 104 to maintain a regulated output. For example, in a constant voltage mode (CVM), the controller 102 controls switching of the switch 104 to maintain VOUT 110 substantially near a desired regulation voltage VREF (for example, within an allowable error range). In a constant current mode (CCM), the controller 102 controls switching of the switch 104 to maintain IOUT 116 substantially near a desired regulation current IREF (for example, within an allowable error range).
The controller 102 receives the voltage feedback signal VSENSE and the current feedback signal ISENSE and generates a switch control signal that is provided to the switch 104. The switch control signal controls the on/off states of the switch 104. In general, the controller 102 can implement any number of control schemes suitable for switch-mode power converters 100, such as pulse-width-modulation (PWM) or pulse-frequency-modulation (PFM), and/or their combinations. In one embodiment, the controller 102 outputs a control signal that causes the ON time (or duty cycle) of the power switch 104 to increase, during a certain switching cycle, in order to increase power delivery to the load during that switching cycle, or to decrease in order to decrease power delivery to the load during that switching cycle.
The primary side auxiliary winding Na of the transformer T1 allows for a low voltage VSENSE 112 to be generated because the voltage can be scaled down based on the turn ratio of the secondary winding Ns and auxiliary winding Na. However, in an alternative embodiment, the auxiliary winding Na may be omitted, and VSENSE may instead be detected by directly monitoring the voltage across the primary winding Np.
Based on the characteristics of the waveforms described above, the load current detector 402 can detect whether the load current is on or off by observing the peak current on the primary side of the controller 102 and comparing it to a threshold value. For example, the output current detector 402 determines that the load current is “on” when the peak current is above the threshold and determines that the load current is off when the peak current is below the same threshold or a different threshold set for hysteresis. However, due to the many different modes that mass produced power adapter/chargers operate in, this threshold method is not always robust to mode variations of the controller particularly if the controller 102 can operate in one of multiple PFM modes or in one of multiple PWM modes of operation, or when the controller is configurable to operate in either Continuous Voltage (CV) or Continuous Current (CC) mode.
To provide more robust detection of the message, the load current detector 402 can estimate the shape of the load current waveform via primary side sensing (as opposed to merely threshold testing of the primary peak current and/or primary voltage). As will be described below, an embodiment of the load current detector 402 detects the load current waveform by applying a digital filter to samples derived from the feedback signals ISENSE 114 and VSENSE 112. In one embodiment, the digital filter operates with variable sampling frequency while maintaining constant bandwidth. A state machine then correlates the filter output to determine patterns. The described technique beneficially provides reliable message recognition without false detection, and furthermore does not require a secondary side sensor.
ILoad=Iout−IC (1)
where IC is the current going into the capacitor C1. Since it is known that the capacitor C1 and output load (modelled as RL) act as a low pass filter to the current source IOUT 116, ILOAD 602 can therefore be estimated by filtering IOUT 116 if the low pass filter bandwidth is set at or below the natural bandwidth of the system.
where Disense is a voltage representative of the primary ISENSE peak current threshold Rsense is the resistance of the sense resistor R3 on the primary control switch 104, Np is the number of turns of the primary side winding of transformer T1, NS is the number of turns of the secondary side winding of transformer T1, Treset is the time for the flyback transformer T1 to fully discharge (in Discontinuous Conduction Mode (DCM)), Tperiod is the period for the power conversion cycle, and TS is a sampling period. TPERIOD, TRESET, and DISENSE can be derived from samples of ISENSE and VSENSE. The above relationship is valid for DCM, and is based on the fact that the secondary current is the product of the primary current and the turns ratio at the point where the transformer T1 communicates. The relationship in equation (1) describes the current from the secondary side of the transformer T1 to the output stage of the power converter 100.
In a digital implementation, equation (2) can be simplified as follows:
This approximation simply removes the constants from equation (2). The approximation is useful because an absolute current measurement is not necessarily needed, and the digital message can be detected based on the shape of the output current as a function of time. In one embodiment, the computation block 702 updates the value <Iout>TS once per switching cycle. In some embodiments, (e.g., when using PFM mode), the period of each switching cycle TPERIOD can change.
The time machine signal generator 704 obtains the value of Iout of <Iout>TS via signal 703 and synthesizes a signal 705 that represents the value of <Iout>TS (held constant) for a duration equivalent to the switching period TPERIOD of the last cycle. The synthesized signal 705 is thus updated at the end of each switching cycle (which may be of variable duration). The synthesized signal 705 is then filtered using a low pass filter 706 to simulate the effect of the output capacitor C1 and load resistance RL on the output current in order to generate a signal 707 that approximates a waveform of the load current. In one embodiment, the low pass filter 706 is tuned such that it is narrow enough in bandwidth so as to not capture the high frequency noise of the calculated result, but wide enough to support the communicated bit stream through the load current modulation scheme. In one embodiment, the low pass filter 706 is simple, but wide, and a time counter for each cycle is used. The use of a digital filter may be desirable since the input function to the filter is produced by calculations that already exist in the controller. In another embodiment, a continuous time filter may be used.
In order to maintain a constant bandwidth of the signal channel, it is also desirable to oversample the output of this IOUT sequence due to the non-periodic timing of its updates. To avoid aliasing, the signal is sampled at least as fast as the highest PWM frequency used in the system. The Nyquist frequency is one half of the highest PWM frequency.
The form of the filter 706 is a first order low pass seen as follows:
With a little algebra, the filter 706 is defined:
A further simplification of this filter is achieved when τ/TS=2n−1. When this is true, the multiply operations are easily swapped with shift and add/subtract operations. For example, if n=3 in the above, it simplifies to:
When τ>>TS, the add functions become quite wide, but there are no multiply operations, thus simplifying a digital implementation of the filter 706.
In one embodiment, the depth of the FIFO 918 is determined by the ratio of the largest TP to the shortest TP that can happen in adjacent cycles if it is desired to not lose any data. For example if there is a short period where the DiSENSE remains the same, the average current for that cycle is larger due to the small TP, but that large average output current is only present through the short duration of the cycle for which it was calculated. If the value is merely held there until the next calculation, it will appear that this extra current was there for a much longer time, and will introduce undesired noise into the current measurement (and therefore into the communication channel). The extra counter 920 overcomes this problem.
In another embodiment, to avoid using extra counters to ensure that each IOUT value is output for the correct time duration to the filter 706, an alternative embodiment uses a digital filter that is operable with a sample time that varies as the switching frequency varies. With a little algebra, equation (6) can be rewritten in terms of TP instead of TS:
With two multiplies, two adds, and one divide, the TS can be the TP which is measured each cycle. From this, one can easily see that if TP is short, the influence of the input is reduced. Although the arithmetic is slightly increased with this rendition, the counter (time machine signal generator 704) is not used. In equation (8),
so the final equation reduces to:
In another embodiment, the accuracy of the estimation of the load current waveform can be further improved by accounting for the fact that the current through the diode D1 be either going into our out of the output capacitor C1.
As was shown before, the relationship is as follows:
ILoad=Iout−IC (10)
IC can be determined by the relationship:
Equation (11) can be used when C is known. Even if the exact value of C is not known, but it is known to be within a certain range, a second order correction can still be applied to enhance the accuracy some. Vout and TS values can be determined based on the samples of ISENSE and VSENSE. In another alternative embodiment, these parameters can be user-configurable.
As described above with respect to
A matched filter is the filter that yields the highest signal-to-noise ratio (SNR) at its output. A matched filter has an impulse response that is the flipped in place version of the expected signal. Since the filter performs convolution in the time domain, this is numerically the same as correlation. If a bank of correlation functions is operated over the duration of the symbol, the one that has the highest cross correlation points to the most likely symbol to have been transmitted. These correlation operations do not need to slide if the beginning of the symbol can be accurately determined.
The above described functions can be costly in terms of numerical processing requirements. For a very slow data rate pattern where only two patterns exist, this system can be considerably simplified while maintaining robust operation that will reliably detect patterns without false positives. In the power conversion scheme, it is generally better to miss a message than to falsely decide one was received, resulting in an output voltage or current change that was not requested by the load device.
In one embodiment, the digital decoder 404 comprises a bank of state machines that are expecting each pattern based on “on” and “off” times. If there is a mistake in the pattern, the state machine goes to its beginning state, and waits for the correct pattern.
The estimated load current waveform is first de-glitched with a digital time filter that ensures that if the logic state changes, it remains in the changed state for a minimum time before the output of the filter changes to the new state. There is a group delay through the filter, but this does not affect performance since it is a minor delay and is applied to all transitions, thus differential time measurements are not affected. After the above processing, the resulting deglitched signal is processed by a bank of state machines that are each monitoring for the expected message pattern. The state machine is an event based machine and it advances with each transition in the filtered and de-glitched received signal.
In the block diagram, the filtered current measurement (“iomf” in
The “rx_d” signal is then processed to detect rising and falling edges by a rising edge detection block 1116 and a falling edge detection block 1118 respectively. These edges are logically “OR'd” together by an OR gate 11120 to be used as a counter reset. A free running counter 1122 outputs a signal shown as “sym_cnt” in the waveform of
There are multiple message state machines 1124 in parallel that each receive 3 inputs; a rising edge detection signal 1126, a falling edge detection signal 1128, and a captured counter output 1130 which is the output of the counter 1122 at the last edge (either rising or falling). With these inputs, each Message State Machine 1124 is tuned for reception of one message. The outputs of the message state machines 1124 control the power control state block 1132, which configures the power state of the power converter 100.
In alternative embodiments, a different message decoding system may be used. For example, alternative messaging formats may include start, stop, parity, or data bits. Although the techniques described herein are well suited for relatively slow message systems with a limited number of symbols, the method is also usable for faster speeds and more complex communications protocols.
The transitions that advance the state machine 1400 are based on the correct edge detection combined with the captured count being within a defined window. This determines that this high or low period was as expected for this message. Any time this condition is not met (an edge occurs at the wrong time), the state machine 1400 is reset (returns to state SO), and begins waiting for a new message.
In the embodiment illustrated, there are 2 message types; an “increase” and a “decrease” message. The purpose of these messages are to increase or decrease the regulation voltage value after the message is received. The messages could have very different purposes. The state variable for each of these machines is displayed in the waveform of
The example message in
Upon reading this disclosure, those of skill in the art will appreciate still additional alternative embodiments through the disclosed principles herein. Thus, while particular embodiments and applications have been illustrated and described, it is to be understood that the disclosed embodiments are not limited to the precise construction and components disclosed herein. Various modifications, changes and variations, which will be apparent to those skilled in the art, may be made in the arrangement, operation and details of the method and apparatus disclosed herein without departing from the spirit and scope described herein.
This application claims the benefit of U.S. Provisional Patent Application No. 61/920,997 to John Kesterson and Andrey Malinin, entitled “Current Meter for Load Modulation Communication Receiver Architecture,” filed on Dec. 26, 2013, the content of which is incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
6333624 | Ball et al. | Dec 2001 | B1 |
7719860 | Usi | May 2010 | B2 |
7821797 | Nishiyama et al. | Oct 2010 | B2 |
7864546 | Dhuyvetter et al. | Jan 2011 | B2 |
7911814 | Tao | Mar 2011 | B2 |
8018743 | Wang | Sep 2011 | B2 |
8125799 | Zhu et al. | Feb 2012 | B2 |
8233292 | Ren | Jul 2012 | B2 |
8605462 | Yang | Dec 2013 | B2 |
20020027787 | Nishida | Mar 2002 | A1 |
20080112193 | Yan et al. | May 2008 | A1 |
20080130325 | Ye | Jun 2008 | A1 |
20080157743 | Martin et al. | Jul 2008 | A1 |
20080192515 | Huynh | Aug 2008 | A1 |
20080259655 | Wei | Oct 2008 | A1 |
20090015227 | Wong et al. | Jan 2009 | A1 |
20090059632 | Li et al. | Mar 2009 | A1 |
20090141520 | Grande | Jun 2009 | A1 |
20090230930 | Jain et al. | Sep 2009 | A1 |
20090279334 | Xiong et al. | Nov 2009 | A1 |
20100054000 | Huynh | Mar 2010 | A1 |
20100103703 | Nishiyama et al. | Apr 2010 | A1 |
20100164455 | Li et al. | Jul 2010 | A1 |
20100195355 | Zheng | Aug 2010 | A1 |
20100208500 | Yan | Aug 2010 | A1 |
20110096572 | Liang | Apr 2011 | A1 |
20110096573 | Zhu | Apr 2011 | A1 |
20110261596 | Zong | Oct 2011 | A1 |
20120051099 | Funaba | Mar 2012 | A1 |
20120081927 | Matsumoto | Apr 2012 | A1 |
20120176819 | Gao | Jul 2012 | A1 |
20120262956 | DeHaven | Oct 2012 | A1 |
20120299566 | Hsu | Nov 2012 | A1 |
20130088898 | Gao | Apr 2013 | A1 |
20130107584 | Li | May 2013 | A1 |
20130148387 | Ren | Jun 2013 | A1 |
20130181635 | Ling | Jul 2013 | A1 |
20130235621 | Yan | Sep 2013 | A1 |
20130343101 | Zhang | Dec 2013 | A1 |
20140016375 | Gao | Jan 2014 | A1 |
20140036549 | Li | Feb 2014 | A1 |
20140160810 | Zheng | Jun 2014 | A1 |
20140192566 | Yang | Jul 2014 | A1 |
20140233269 | Feng | Aug 2014 | A1 |
20140268915 | Kong | Sep 2014 | A1 |
20140268919 | Yao | Sep 2014 | A1 |
20140301116 | Zhang | Oct 2014 | A1 |
20140355316 | Wu | Dec 2014 | A1 |
20150160270 | Shi | Jun 2015 | A1 |
Number | Date | Country |
---|---|---|
101002375 | Jul 2007 | CN |
101841250 | Sep 2010 | CN |
102231605 | Nov 2011 | CN |
Entry |
---|
PCT International Search Report and Written Opinion, PCT Application No. PCT/US2014/070978, Mar. 31, 2015, 13 pages. |
Chinese Office Action, Chinese Application No. 201410090425.6, Dec. 23, 2015, 12 pages (with concise explanation of relevance). |
Number | Date | Country | |
---|---|---|---|
20150188442 A1 | Jul 2015 | US |
Number | Date | Country | |
---|---|---|---|
61920997 | Dec 2013 | US |