Passive input filter with clamping for shunt measurements
09632111 ยท 2017-04-25
Assignee
Inventors
Cpc classification
G01R1/203
PHYSICS
G01R19/2503
PHYSICS
International classification
G01R1/20
PHYSICS
Abstract
A method and an apparatus for a shunt measurement are provided. In one embodiment a measurement unit includes an input for a source device, the source device configured to provide a first analog voltage level to be measured in a first operating mode of the source device and a second analog voltage level to be measured in a second operating mode of the source device, a control input configured to detect the operating mode of the source device and an input stage configured to minimize a reaction time of the measurement unit after a change of the operating mode of the source device.
Claims
1. A measurement unit comprising: an input for a source device, the source device configured to provide a first analog voltage level to be measured in a first operating mode of the source device and a second analog voltage level to be measured in a second operating mode of the source device; a control input configured to detect an operating mode of the source device; and an input stage configured to minimize a reaction time of the measurement unit after a change of the operating mode of the source device, wherein the input stage comprises a shunt resistor.
2. The measurement unit according to claim 1, further comprising means to change at least one parameter of the input stage according to the operating mode of the source device.
3. The measurement unit according to claim 2, wherein the input stage contains a clamping structure for its input voltage that can be configured according to the operating mode of the source device.
4. The measurement unit according to claim 3, wherein the clamping structure further comprises a high voltage protection device and a PMOS and NMOS cascode.
5. The measurement unit according to claim 2, wherein the input stage contains a filter structure for its input voltage that can be configured according to the operating mode of the source device.
6. The measurement unit according to claim 2, wherein the at least one parameter of the input stage is configured for different operating modes of the source device.
7. The measurement unit according to claim 6, wherein the at least one parameter is configured to be changed dynamically.
8. The measurement unit according to claim 1, wherein the control input is configured to be connected to at least one control signal for a power switch, and wherein a logic state of a power switch control signal defines at least one parameter of the input stage.
9. The measurement unit according to claim 1, wherein the input stage comprises an analog-to digital converter (ADC), and wherein the ADC is configured to convert at least one analog voltage level delivered by the source device.
10. The measurement unit according to claim 9, further comprising means to change the parameters of the input stage at least partly based on a previous conversion result of the ADC.
11. The measurement unit according to claim 1, wherein the input stage further comprises a buffer.
12. A method of configuring parameters of an input structure of a measurement unit, the method comprising: receiving a control signal defining an operating mode of a source device; and configuring at least one parameter of the input structure according to the control signal, wherein the input structure comprises a shunt resistor.
13. The method according to claim 12, further comprising measuring an input signal of the measurement unit via an analog-to-digital converter.
14. The method according to claim 13, further comprising configuring the at least one parameter of the input structure according to a previous conversion result of the analog-to-digital converter.
15. The method according to claim 12, further comprising providing an integrated filter coupled between an ADC and a voltage to be measured.
16. The method according to claim 12, further comprising providing a clamping structure coupled between an integrated filter and a voltage to be measured.
17. The measurement unit according to claim 1, wherein the operating mode depends on a load condition of an electric motor.
18. The measurement unit according to claim 1, wherein the ADC is connected to the shunt resistor without a presence of a preamplifier.
19. The method according to claim 12, wherein the operating mode depends on a load condition of an electric motor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The accompanying drawings are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and together with the description serve to explain the principles. Other embodiments of the invention and many of the intended advantages of the embodiments of the invention will be readily appreciated as they become better understood by reference to the following detailed description.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
(12) In the following detailed description, reference is made to the accompanying drawings, which form a part hereof, and in which is shown by way of illustration specific embodiments in which the invention may be practiced. It is to be understood that other embodiments may be utilized and structural or other changes may be made without departing from the scope of the invention. Therefore, the following detailed description is not to be taken in a limiting sense, and the scope of the embodiments of the invention is defined by the appended claims.
(13)
(14)
(15) In another embodiment, the buffer 206 may be removed as long as a non-complete settling at the ADC input is tolerated. The passive clamping circuit 204 enables clamping of the signal delivered to the anti-aliasing filter 210, 212. In yet another embodiment, an active input buffer may be used instead of the clamping circuit 204. The clamping circuit 204 and the buffer 206 may be coupled to the negative node of the shunt 202. A small current in the shunt node 202 should pose no problem for the system 200, but the coupling of the integrated shunt circuit 200 to the shunt 202 will create some resistance causing an offset. This offset may be cancelled by calibration.
(16)
(17) In
(18) In an embodiment, the input stage comprises an ADC with a simple circuit for the clamping circuit and the buffer. Referring now to
(19)
(20) Depending on the operating mode of the source device or on the change (from an old operating mode to a new operating mode), parameters of the input stage can be adapted, such as the clamping levels (e.g., via modification of the reference voltages Vpos or Vneg) or the input filter characteristics (e.g., the order of the filter or the filter time constant, e.g., as defined by Rfilter and Cfilter).
(21) In one embodiment, the reference voltages can be adapted by a DAC mechanism (digital to analog converter) that is controlled according to the operating mode of the source device. The values of Rfilter or Cfilter may also be adapted by switching more or less R elements or C elements in parallel.
(22)
(23) The current through the common shunt can be used to determine the phase currents if the shunt voltage measurement takes place exactly when the related PWM pattern is applied to the bridge. The phase currents can only be exactly measured if the ADC measurements are synchronized to the PWM patterns for the switches.
(24) Thus, the following PWM patterns can be applied:
(25) TLA, TLB, TLC closed: no current measurement (free-wheeling)
(26) TLA, TLB, THC closed: Is=Ic
(27) TLA, THB, TLC closed: Is=Ib
(28) TLA, THB, THC closed: Is=Ia
(29) THA, TLB, TLC closed: Is=Ia
(30) THA, TLB, THC closed: Is=Ib
(31) THA, THB, TLC closed: Is=Ic
(32) THA, THB, THC close: no current measurement (free-wheeling)
(33) While a pattern leading to free-wheeling is applied to the bridge, no additional energy is transferred to the motor, whereas during the other PWM patterns, additional energy can be delivered to the motor.
(34) In one embodiment, the switching pattern needed to determine a phase current is only applied for a very short time. This happens regularly depending on the rotor position or especially in the case of a low load at the motor, when patterns leading to the free-wheeling of the bridge are applied during a long interval of each PWM period.
(35) Each PWM pattern can be interpreted as an independent operating mode of the shunt device because the value and the meaning of the shunt voltage may change from one PWM pattern applied to the bridge to the next PWM pattern.
(36) Depending on the load condition of the motor and the load applied to the motor, the same PWM pattern can lead to different shunt voltages. For example, in the case of a high load on the motor, the phase current amplitudes are much higher compared to the amplitudes for the same PWM pattern with a low load on the motor.
(37) Thus, the threshold for an adjustable clamping circuit or slope limitation circuit at the input of the ADC should be set depending on the PWM applied pattern and the load condition on the motor.
(38) The reaction time of the ADC or a comparator device (not shown) is defined by the settling time of the input structure. The higher the allowed overshoot of the voltage due to a change in the operating mode, the longer the settling time can be before the desired accuracy of the signal is reached.
(39) In state-of-the-art circuits, a maximum value is taken that can occur during operation of the motor under all load conditions. This maximum value (e.g., used as a threshold value for the clamping element) would limit input signal overshoot due to commutation of the load current from one PWM pattern to the other. If the same maximum value is always applied, this may lead to a settling time longer than needed for smaller current values. For low load conditions, commutation noise and gate driver currents are more important than settled load current values. Although only a short time interval for measurement is available, a long settling time would be required if a fixed high threshold is applied.
(40) Thus, an adjustable threshold for the clamping circuit in accordance with embodiments of the invention minimizes the overshoot and, as a consequence, also the settling time. This allows the system to be used for smaller load currents, and ADC measurement can happen more quickly after a change in the operating mode of the shunt device.
(41)
(42) In one embodiment, the adjustable clamping circuit 700 or slope limitation threshold can be controlled depending on the load current of the expected measurement current for the next control pattern.
(43) In another embodiment, the system controller 764 configures the threshold value depending on the load current. For higher load currents, a higher threshold can be applied, whereas for lower currents, a lower threshold can be set. Thus, embodiments of the invention advantageously reduce the settling time for the ADC input state for lower phase currents.
(44) In yet another embodiment, the switching pattern itself delivers the information about the threshold to be applied. The motor position and as a consequence, the phase currents change much more slowly than a PWM period, a threshold value based on the actually measured phase current during the similar switching pattern of the last PWM period(s) can be automatically applied. As a result, the threshold and the settling time after the commutation follow the shape of the phase currents. Variations due to load changes and reference values for the control loop may be respected also when elaborating the thresholds. For example, a threshold can be set to 150% of the latest measured current with the same switching pattern (effected by scaling unit 766). Thus, if the ADC with the adjustable clamping or slope limitation stage has the information about the switching patterns (e.g., they are integrated in the same device), measurement results can be stored depending on the switching patterns. This embodiment also eases the CPU treatment of the measured phase currents because the results are already sorted in an appropriate way (e.g., the CPU can read phase current Ia in a register corresponding to the previous Ia).
(45) In another embodiment, the length of the adjustable clamping or slope limitation interval may be configured after a change in the switching patterns to allow a faster reaction to short circuit conditions. In such cases, the threshold should not be applied during the duration of a switching pattern, but only after a change in the switching pattern. Additionally, the ADC intrinsic filter mechanism (e.g., if a SigmaDelta data stream is generated) can be reset after a change in the switching pattern. This reduces the time until a new valid conversion result is available.
(46) In yet another embodiment, a control unit controlling the operating mode of the source device (e.g., a PWM unit) can be implemented on the same device as the input stage of the measurement unit and can directly influence it. In another embodiment, this unit can be connected via control lines to the input stage. In both cases, the control unit can indicate a change in the operating mode of the source device before the change becomes effective. This control signal, provided in advance, can lead to a change in the parameters of the input structure ahead-of-time to minimize the reaction time. Especially for very short measurement windows, this method could be used.
(47) In another embodiment, the control unit can indicate time windows just before or just after a change in the operating mode of the source device to blank reactions of the input stage or to force internal values to defined levels. This ensures a defined starting behavior of the input stage in the case of a change in operating mode.
(48)
(49) A method 1000 for configuring parameters of an input structure of a shunt measurement unit comprises the steps of receiving 1004 a control signal defining the operating mode of a source device and configuring 1006 at least a part of the parameters of the input structure according to the control signal. In one embodiment, the method further comprises the step of configuring 1008 at least a part of the parameters of the input stage according to a previous conversion result of the analog-to-digital converter. In another embodiment, the method may further comprise the steps of providing 1010 a clamping circuit coupled between the ADC and the voltage to be measured, providing 1012 an integrated filter coupled between the clamping circuit and the ADC, and providing 1014 a buffer circuit coupled between the integrated filter and the ADC. Finally, embodiments of the invention comprise the step of measuring 1016 the input signal of the measurement unit via the ADC.
(50) Although specific embodiments have been illustrated and described herein, it will be appreciated by those of ordinary skill in the art that a variety of alternate and/or equivalent implementations may be substituted for the specific embodiments shown and described without departing from the scope of the embodiments of the invention. This application is intended to cover any adaptations or variations of the specific embodiments discussed herein.