The field of representative embodiments of this disclosure relates to motor drivers and other power output electronics, such as haptic drivers that have selectable operating modes in which one or more current-monitoring inputs are decoupled in one or more operating modes, and in particular to current monitoring circuits in which bias error due to decoupled current-monitoring inputs is reduced or eliminated.
In motor position controllers and other power output drivers, such as those for driving haptic feedback devices, a current-mode controller is needed to properly control the operation of the load. The current may be provided with high efficiency using a class-D type output, or low distortion, noise and offset using a linear amplifier. In particular, for motor and haptic controllers, a pulse-width modulated (PWM) output stage has been used in combination with linear output motor control to provide high-efficiency for large excursions and low distortion and offset error by transitioning to a linear control once the motor-driven position is close to the commanded position or for functions such as maintaining image focus (auto-focus) or image stabilization. Such operation enhances accuracy by providing a less noisy environment when the system is in a linear operation mode, while providing high power efficiency for large excursions when the system is in the PWM operating mode. The output stage is typically a push-pull pair of transistors and for cost/area efficiency it is desirable to use the same output devices for both the PWM operating mode and the linear operating mode.
However, when operating a fully-differential switch/amplifier, such as an H-bridge arrangement, while both PWM control and linear control may be implemented, the linear control is operated with class-B biasing, in order to match a closed-loop feedback transfer function of the PWM control in which one device on each side of the H-bridge is always off. Class-B biasing, by definition, introduces cross-over distortion that may be reduced, but not eliminated. Solutions to the cross-over distortion have been proposed that allow the linear mode to operate with Class-A or Class-AB biasing, while operating in PWM mode with Class-B biasing for efficiency. The proposed systems pulse-width modulate one half of the H-bridge, while setting the other half of the H-bridge to a state that depends on the polarity of current to be provided to the load. The modulated side and the source/sink side of the H-bridge can be swapped based on the polarity of the current, so that one side of the H-bridge is modulated, while the other always sinks current, which allows ground-referenced monitoring of current by including sense resistors in series with the N-channel (sink) transistors.
In such current monitors, which are used to determine the instantaneous current through the load, the voltage drop across the sense resistor on the source side in the linear operating mode corresponds only to the bias current, while the voltage drop across the sense resistor on the sink side corresponds to the bias current plus the load current. When the two voltages are subtracted the output of the current monitor corresponds only to the load current. In the PWM operating mode, the load current appears on the sink side of the H-bridge, as well, since on the sink side of the H-bridge, the current is always returning through the N-channel transistor. However, the current on the source side is switched based on the duty cycle of the PWM signal and therefore has a load current component that would generate an error in measured load current if subtracted from the current measured on the sink side. Disconnecting the source-side sense resistor from the current monitor removes the error due to the load current appearing on the source side sense resistor, but introduces other error due to the unselected current monitor input.
Therefore, it would be advantageous to operate a current-mode controller such that may operate selectively in PWM mode or linear mode that eliminates current monitor errors due to an unselected current monitor input.
Improved current monitoring is accomplished in electronic systems, integrated circuits including the electronic systems and their methods of operation.
The electronic system includes an output stage for supplying a current to a load. The output stage includes a first push-pull driver providing a first output for coupling to a first terminal of the load and a first sense resistor for providing a first sense voltage indicative of a first current in the first push-pull driver. The output stage also includes a second push-pull driver providing a second output for coupling to a second terminal of the load and having a second sense resistor for providing a second sense voltage indicative of a second current in the second push-pull driver. The electronic system also includes a mode selection control circuit for selecting between a first operating mode and a second operating mode of the electronic system and for selecting a polarity of the current. The electronic system also includes a current measurement circuit for receiving the first sense voltage at a first sense input and the second sense voltage at a second sense input. The current measurement circuit has a control input coupled to the mode selection control circuit and provides a current measurement output that is dependent on both the first sense voltage and the second sense voltage in the first operating mode and is indicative of a selected one of the first sense voltage or the second sense voltage selected according to the selected polarity. The current measurement circuit includes a bias circuit that injects a bias voltage into an unselected one of the first sense input or the second sense input to maintain active operation of the unselected one of the first sense input or the second sense input.
The summary above is provided for brief explanation and does not restrict the scope of the claims. The description below sets forth example embodiments according to this disclosure. Further embodiments and implementations will be apparent to those having ordinary skill in the art. Persons having ordinary skill in the art will recognize that various equivalent techniques may be applied in lieu of, or in conjunction with, the embodiments discussed below, and all such equivalents are encompassed by the present disclosure.
The present disclosure encompasses electronic systems that circuits and integrated circuits that include improved current-mode control systems, amplifiers and other current-supplying device, and their methods of operation. The electronic system includes an output stage for supplying a current to a load. The output stage includes push-pull drivers that supply current to the load and have sense resistors supplying a first and a second sense voltage indicative of the current through one side of each of the push-pull drivers. A mode control circuit selects between a first and a second operating mode and selects a polarity of the current. A current monitor receives the sense voltages and has a control input coupled to the mode selection control circuit. The current monitor provides an output that is dependent on both sense voltages in the first operating mode and is indicative of one of the sense voltages selected according to the selected polarity in the second operating mode, so that, for example, error due to the load current appearing across both sense resistors in the second operating mode is not introduced. The bias voltage is injected into an unselected sense inputs to maintain active operation of the sense amplifier, so that error due to the unselected sense input of the current monitor is not introduced into the current measurement, which may form part of a feedback network around the electronic system.
Referring now to
Referring now to
Referring now to
Referring now to
Input to example motor controller 30, is provided from CPU 17 or image processor 13 of
In the depicted embodiment, the output of combiner 35B is provided as an input to a proportional integral-derivative (PID) control block 31. PID control block 31 corrects for the phase difference between the motor current through the inductive load of motor 21 and generates an output that provides an input to a PWM quantizer 32, which generates PWM output signals that provide input to a pair of PWM drive blocks 33A and 33B. The outputs of PWM drive blocks 33A, 33B are provided as inputs to respective to selector blocks 38A, 38B. Selector blocks 38A, 38B select between providing the output of one of PWM drive blocks 33A, 33B to a side of the H-bridge that is being modulated when a control signal MODE is asserted, while enabling the N-channel transistor N1 or N2 on the other side of H-bridge to conduct the current returning from motor 21 to the power supply return. The P-channel transistor P1 or P2 on the non-modulated side of the H-bridge is turned off by the corresponding of selector blocks 38A, 38B or by an external pull-up configuration (not shown).
In the linear operating mode, as selected by control block 37 de-asserting control signal MODE, the outputs of both of a pair of linear driver amplifiers A1, A2 are coupled to their corresponding side of the H-bridge. Linear driver amplifiers A1, A2 also receive the output of PID control block 31, so that a common feedback loop may be shared between linear and PWM mode drive. Linear driver amplifiers A1, A2 have a gain that compensates for the difference between the single-ended PWM signal generated by only one half of the H-bridge vs. the differential signaling during operation of the H-bridge in linear mode, e.g., an attenuation of ½. Selector blocks 38A, 38B, also include the bias resistors or active bias circuits that bias transistors P1, P2, N1 and N2 to provide Class AB bias when linear mode is selected, i.e., all of transistors P1, P2, N1 and N2 conduct a bias current in addition to signal current. For single-ended operation, a class-A bias may be employed instead, for the single push-pull output stage implementing the single-ended output.
Referring now to
The common terminals of switches S12A, S12B are coupled to the inverting inputs of corresponding amplifiers A14A, A14B, which control the gates of transistors P10A, NOB to implement voltage-controlled current sources (VCVSs) that produce a current through resistors R7A, R7B, respectively, that is proportional to the voltage received from respective switches S12A, S12B. Another pair of amplifiers A15A, A15B, along with buffer transistors P10A, NOB and resistors R5A, R5B, produce a current through resistors R5A, R5B that shifts the common connection between resistors R5A, R6A and between resistors R5B, R6B to a common-mode reference voltage VCM. A fully-differential amplifier A16 receives the combined voltage drop across resistors R5A, R6A through resistors R11A and R13A and receives the combined voltage drop across resistors R5B, R6B through resistors R11A and R13A, but in reversed polarity, so that differential outputs Iout+ and Iout− are representative of the difference of the currents sensed by current sense resistors RS1 and RS2. Amplifiers A14A, A14B and A15A, A15B will generally be op-amps with internal offset nulling/cancellation, to ensure accuracy in the load current measurement.
Referring now to
Referring now to
In summary, this disclosure shows and describes systems and integrated circuits implementing an electronic system that provides current to a load, and methods of operation of the electronic system. The electronic system may include an output stage for supplying the current to the load, and the output stage may have a first push-pull driver providing a first output for coupling to a first terminal of the load and that has a first sense resistor for providing a first sense voltage indicative of a first current in the first push-pull driver. The output stage may also include a second push-pull driver providing a second output for coupling to a second terminal of the load and that has a second sense resistor for providing a second sense voltage indicative of a second current in the second push-pull driver. The electronic system may also include a mode selection control circuit for selecting between a first operating mode and a second operating mode of the electronic system and for selecting a polarity of the current, and a current measurement circuit for receiving the first sense voltage at a first sense input and the second sense voltage at a second sense input. The current measurement system may have a control input coupled to the mode selection control circuit and that may provide a current measurement output that is dependent on both the first sense voltage and the second sense voltage in the first operating mode and is indicative of a selected one of the first sense voltage or the second sense voltage selected according to the selected polarity. The current measurement circuit may include a bias circuit that injects a bias voltage into an unselected one of the first sense input or the second sense input to maintain active operation of the unselected one of the first sense input or the second sense input.
In some example embodiments, the bias circuit may inject the bias voltage into both the first sense input and the second sense input and disable the unselected one of the first sense input or the second sense input according to the polarity of the current, so that an effect of the bias voltage is canceled in the current measurement output. In some example embodiments, in the first operating mode, the current may be sourced from either the first output or the second output independent of the selected polarity, and in the second operating mode the current may be sourced from either first output or the second output in accordance with the selected polarity. The current measurement circuit may generate the current measurement output indicative of a difference between the first sense voltage and the second sense voltage when the mode selection circuit selects the first operating mode.
In some example embodiments, the electronic system may further include a linear amplifier stage for providing a linear analog signal to an input of the output stage when the mode selection control circuit selects the first operating mode, and both the first push-pull driver and the second push-pull driver may be operated to supply the current to the load when the mode selection control circuit selects the first operating mode. The electronic system may further include a pulse-width modulator output driver for providing pulse-width modulated drive signals to the input of the output stage when the mode selection control circuit selects the second operating mode. The pulse-width modulator output driver may provide a pulse-width modulated signal to a selected one of the first push-pull driver or the second push-pull driver in conformity with the selected polarity, and may operate another one of the first push-pull driver or the second push-pull driver to supply a fixed voltage when the mode selection control circuit selects the second operating mode.
In some example embodiments, the load may be a motor, and the electronic system may be a motor controller, and the selected polarity may select a direction of movement of the motor. In some example embodiments, the electronic system may further include a feedback control loop having an input coupled to an output of the current measurement circuit and having a first output coupled to an input of the pulse-width modulator and a second output coupled to an input of the linear amplifier stage. An input may be included for receiving a current control value, and a first transfer function from the input to the selected one of the first push-pull driver or the second push-pull driver when the mode selection control circuit selects the second operating mode may be substantially equivalent to a second transfer function from the input to the combination of the first push-pull driver and the second push-pull driver when the mode selection control circuit selects the first operating mode, such that an output of a loop filter of the feedback control loop settles to approximately a same value after the mode selection control changes between the first operating mode and the second operating mode as a previous value of the output of the loop filter prior to the change. In some example embodiments, the electronic system may include an analog-to-digital converter having an input coupled to an output of the current measurement circuit for providing current measurement digital information.
In some example embodiments, when the mode selection control selects the first operating mode, the first push-pull driver and the second push-pull driver may provide a signal swing that extends substantially over a range of voltage from a negative power supply rail supplied to the output stage to a positive power supply rail supplied to the output stage. In some example embodiments, the current measurement circuit may include a differential amplifier having inputs selectively coupled to each terminal of the first sense resistor and the second sense resistor and selectively coupled to the bias circuit. In some example embodiments, the current measurement circuit may include a first amplifier having an input selectively coupled to either the first sense resistor or the bias circuit, a second amplifier having another input selectively coupled to either the first second resistor or the bias circuit, and a difference circuit for generating the current measurement output from a difference between an output of the first amplifier and another output of the second amplifier.
It should be understood, especially by those having ordinary skill in the art with the benefit of this disclosure, that the various operations described herein, particularly in connection with the figures, may be implemented by other circuitry or other hardware components. The order in which each operation of a given method is performed may be changed, and various elements of the systems illustrated herein may be added, reordered, combined, omitted, modified, etc. It is intended that this disclosure embrace all such modifications and changes and, accordingly, the above description should be regarded in an illustrative rather than a restrictive sense. Similarly, although this disclosure makes reference to specific embodiments, certain modifications and changes may be made to those embodiments without departing from the scope and coverage of this disclosure. Moreover, any benefits, advantages, or solutions to problems that are described herein with regard to specific embodiments are not intended to be construed as a critical, required, or essential feature or element.
While the disclosure has shown and described particular embodiments of the techniques disclosed herein, it will be understood by those skilled in the art that the foregoing and other changes in form, and details may be made therein without departing from the spirit and scope of the disclosure. For example, the techniques shown above may be applied to a control system for supplying signals to an audio transducer or haptic device.