Method of operating a controller, corresponding circuit and device
10848062 ยท 2020-11-24
Assignee
Inventors
- Vanni Poletto (Milan, IT)
- Diego Alagna (Milan, IT)
- Nicola ERRICO (Rho, IT)
- Marco Cignoli (Pavia, IT)
- Gian Battista De Agostini (Bariano, IT)
Cpc classification
H02M3/158
ELECTRICITY
H02M3/1555
ELECTRICITY
International classification
Abstract
A PWM signal generator to provide a supply current to an electrical load generates PWM signals at a first frequency, the PWM signals having a duty cycle. Operating the generator involves receiving a set point signal indicative of a target average value for the supply current, sensing a sensing signal indicative of a current actual value of the supply current, performing a closed-loop control of the supply current targeting the target value for the supply current via a controller such as a PID Controller which controls the duty cycle of the PWM signals generated by the PWM signal generator as a function of the offset of the sensing signal with respect to the set point signal.
Claims
1. A method of controlling a PWM signal generator configured to provide a supply current to an electrical load, the PWM signal generator generating PWM signals at a first frequency, the PWM signals having a duty cycle, the method comprising: receiving a set point signal indicative of a target value for said supply current; sensing a sensing signal indicative of a current value for said supply current; and performing a closed-loop control of said supply current targeting said target value for said supply current via a controller controlling the duty cycle of the PWM signals generated by the PWM signal generator as a function of an offset of the sensing signal with respect to the set point signal.
2. The method of claim 1, comprising forwarding the sensing signal to said controller in the absence of averaging processing applied to said sensing signal.
3. The method of claim 1, comprising generating a discrete-time version of the sensing signal and controlling the duty cycle of the PWM signals generated by the PWM signal generator as a function of the offset of said discrete-time version of the sensing signal with respect to the set point signal.
4. The method of claim 1, wherein the controller comprises at least one signal processing branch operating on discrete-time signals at a second frequency, wherein the method comprises selecting said second frequency as a multiple of said first frequency.
5. The method of claim 4, comprising selecting said second frequency at least one order of magnitude and preferably about three orders of magnitude higher than said first frequency.
6. The method of claim 4, wherein the controller comprises a PID controller including an integral branch and a derivative branch operating on discrete-time signals.
7. The method of claim 1, wherein the controller is a digital controller and the method comprises forwarding to said controller said sensing signal in digital form.
8. A circuit, comprising: a PWM signal generator configured to provide a supply current to an electrical load, the PWM signal generator generating PWM signals with a first frequency, the PWM signals having a duty cycle; a controller configured to receive an offset signal indicative of the offset of a sensing signal indicative of a current value for said supply current with respect to a set point signal indicative of a target value for said supply current; and the controller configured to perform a closed-loop control of said supply current targeting said target value for said supply current by controlling the duty cycle of the PWM signals generated by the PWM signal generator as a function of said offset signal.
9. The circuit of claim 8, further comprising an electrical load coupled to said PWM signal generator to receive said supply current.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) One or more embodiments will now be described, by way of example only, with reference to the annexed figures wherein:
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
(7) In the ensuing description, one or more specific details are illustrated, aimed at providing an in-depth understanding of examples of embodiments of this description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials, etc. In other cases, known structures, materials, or operations are not illustrated or described in detail so that certain aspects of embodiments will not be obscured.
(8) Reference to an embodiment or one embodiment in the framework of the present description is intended to indicate that a particular configuration, structure, or characteristic described in relation to the embodiment is comprised in at least one embodiment. Hence, phrases such as in an embodiment or in one embodiment that may be present in one or more points of the present description do not necessarily refer to one and the same embodiment. Moreover, particular conformations, structures, or characteristics may be combined in any adequate way in one or more embodiments.
(9) The references used herein are provided merely for convenience and hence do not define the extent of protection or the scope of the embodiments.
(10) In
(11) A solenoid (for use, e.g. in a braking or transmission system in a vehicle, not visible in the figures as a whole) may be exemplary of such a load L, which may be represented as the series connection of an inductor Ls and a resistor Rs.
(12) It will be otherwise appreciated that reference to a load L comprising a solenoid and/or to a possible application in the automotive field is merely for exemplary purposes and is not to be construed, even indirectly, in a limiting sense of the embodiments.
(13) In an arrangement as exemplified herein, the load L is driven via a power driver circuit D receiving a supply voltage VS.
(14) As exemplified in
(15) As exemplified in
(16) In arrangements as exemplified in
(17) As exemplified in
(18) a proportional branch 141 with an associated (proportional) gain K.sub.P,
(19) an integral branch 142, with an associated (integral) gain K.sub.3 and including an integrator circuit block 142A, and
(20) a derivative branch 143, with an associated (derivative) gain K.sub.D and including a derivative circuit block 143A.
(21) The outputs from the branches 141, 142 and 143 are summed at a summation node 144 and applied as a control signal PID to one input of the PWM signal generator 12.
(22) Again in a manner known to those of skill in the art the PWM signal generator 12 may essentially comprise a comparator circuit whose other input is supplied with a ramp signal Ramp by a ramp generator 16 which generates a triangular (saw-tooth) signal with a period T.sub.PWM. The period of the ramp signal defines the period of the PWM signal generated by the generator 12 with a frequency f.sub.PWM (f.sub.PWM=1/T.sub.PWM).
(23) Reference 18 indicates a summation node which receives at a first input (with a first sign, for instance positive) a set point signal SP indicative of a desired (average) value for the current through the load L.
(24) Reference 20 denotes a sensing arrangement which may include a current sense amplifier (CSA) 20a coupled to the output from the driver D. The sensing arrangement 20 may thus be sensitive to the value of the current through the load L, that is, I.sub.S (
(25) As exemplified in
(26) An essentially similar arrangement can be adopted in the solution exemplified in
(27) In arrangements as exemplified in
(28) For instance, as exemplified in
(29) As exemplified in
(30) The signal PID from the controller 14 is applied to the (first) input of the comparator 12 to vary the duty cycle of the PWM signal from the PWM generator 12 so that the value of the duty cycle is controlled in a closed loop arrangement using the set point signal SP as a target so that the (average) value of the load current (I.sub.S or I.sub.LOAD) can be set to a desired value as expressed by the signal SP (from a respective source such as a system microcontroller, not visible in the figures).
(31)
(32) an analogue portion 10A (right side of the figures) which facilitates generating a signal (I.sub.X, for instance) indicative of the current I.sub.S, I.sub.LOAD through the load L,
(33) a digital portion (left side of the figures) where such a signal indicative of the current in the load, converted to digital in 20b, is supplied to the averaging circuit 22 and then forwarded as a feedback signal towards the summation node 18 and the (e.g., PID) controller 14 with the associated PWM signal generator.
(34) The feedback loop thus provided facilitates closed-loop control of the load current I.sub.S, I.sub.LOAD with a target given by the set point value SP.
(35) It will be otherwise appreciated that arrangements as exemplified in
(36) In arrangements as exemplified in
(37) In arrangements as exemplified in
(38) Stated otherwise, in arrangements as exemplified in
(39) It is noted that computation of the average value in the circuit block 22 (in the integrator 22a of
(40) It is observed that such a delay or latency may penalize the response speed of the control-loop.
(41) Correspondingly low values for the coefficients K.sub.P, K.sub.1 and K.sub.D are thus adopted in the controller 14 in order to facilitate frequency stability. For instance, it is observed that selecting for the coefficients K.sub.P, K.sub.1, K.sub.D values which facilitate keeping overshoot (undershoot) under 10% with respect to a typical specification value may result in a delay of 15 mS in the response to a (positive or negative) step in the set point SP before the controlled entity (that is the average value of the current through the load) returns within a range of e.g., 1% of the desired value.
(42) Similarly one may observe that in an arrangement as exemplified in
(43) In one or more embodiments, those issues may be addressed by resorting to an arrangement as exemplified in
(44) In
(45) This applies, for instance (but not exclusively) to operation of the PWM signal generator 12 and control of the duty cycle of the PWM signal from the signal generator as a function of the signal PID from the controller 14.
(46) Also, as exemplified in
(47) In one or more embodiments as exemplified in
(48) For the sake of completeness,
(49) Still in connection with the representation of
(50) In brief, in an arrangement as exemplified in
(51) The values indicated (which, of course, are in no way mandatory) are exemplary of a possible selection of a frequency f.sub.CK which is significantly higher than the frequency f.sub.PWM. For instance, as exemplified herein, the frequency f.sub.CK can be selected at a value which is at least one order and optionally (about) three orders of magnitude higher than the frequency f.sub.PWM (that is f.sub.CK/f.sub.PWM=103).
(52) This may be regarded as a sort of oversampling applied to the internal signals, the input signal and the output signal of the PID control arrangement so that these signals may vary (extensively) within each period T.sub.PWM of the PWM signal.
(53) Removing the averaging arrangement 22 (22a, 22b) from the control loop (by possibly locating it outside the control loop as exemplified in
(54) This facilitates selecting for the coefficients K.sub.P, K.sub.1 and K.sub.D fairly high values without detriment to frequency stability. This in turn facilitates a faster response to transients in the set point signal (SP) and improved rejection to undesired variations in the supply signal (VS).
(55) For instance, in one or more embodiments as exemplified herein, selecting for the coefficients K.sub.P, K.sub.1, K.sub.D values which facilitate keeping overshoot (undershoot) under 10% with respect to a typical specification value, may result in a delay of 4 mS in the response to a (positive or negative) step in the set point SP before the controlled entity (that is the average value of the current through the load) returns within a range of e.g., 1% of the desired value. This response to an input step is approximately three times faster than the corresponding performance observed in an arrangement as shown in
(56) Similarly, one may observe that in one or more embodiments as exemplified in
(57) Possible performance of embodiments are exemplified herein is presented in
(58) a possible time behavior of a load current I.sub.LOAD (
(59) a corresponding behavior of the PID current from the controller 14 and the ramp signal R.sub.amp to the PWM generator 12 (
(60) a possible time behavior of a load current I.sub.S (
(61) One or more embodiments as exemplified in
(62) As exemplified herein, a method of controlling a PWM signal generator (e.g., 12) configured (see, e.g., the power driver D) to provide a supply current (e.g., I.sub.S in
(63) receiving a set point signal (e.g., SP) indicative of a target (e.g., average) value for said supply current;
(64) sensing (e.g., 20; 20a, 20b) a sensing signal (e.g., I.sub.X) indicative of a current (actual) value for said supply current;
(65) performing a closed-loop control of said supply current targeting (that is, having as a target) said target value for said supply current via a controller (e.g., 14, for instance a PID controller such as 141, 142, 143) controlling (e.g., via the signal indicated as PID) the duty cycle of the PWM signals generated by the PWM signal generator as a function of the offset (e.g., as calculated at the node 18) of the sensing signal with respect to the set point signal.
(66) As exemplified herein, the sensing signal may be forwarded to said controller in the absence of averaging processing applied to said sensing signal. As shown in
(67) As exemplified herein, a discrete-time version of the sensing signal may be produced (e.g., as a digitally converted version produced in the ADC 20b) and the duty cycle of the PWM signals generated by the PWM signal generator controlled as a function of the offset (e.g., as calculated at 18) of said discrete-time version of the sensing signal with respect to the set point signal.
(68) As exemplified herein, the controller circuit may comprise at least one signal processing branch (e.g., the branches 142, 143) operating on discrete-time signals at a second frequency (e.g., f.sub.CLK), wherein the method comprises selecting said second frequency as a multiple of said first frequency.
(69) As exemplified herein, said second frequency may be selected at least one order of magnitude (that is, 10 times) and optionally about three orders of magnitude (that is, 103 times) higher than said first frequency.
(70) As exemplified herein, the controller may comprise a PID controller including an integral branch (e.g., 142; K.sub.1, 142a) and a derivative branch (e.g., 143; K.sub.D, 143a) operating on discrete-time (e.g., digitally converted) signals.
(71) As exemplified herein, the controller may be a digital controller and the method may comprise forwarding (e.g., via the node 18) to said controller said sensing signal in digital form (e.g., as converted at 20b).
(72) As exemplified herein, a circuit may comprise:
(73) a PWM signal generator configured to provide a supply current to an electrical load, the PWM signal generator generating PWM signals with a first frequency, the PWM signals having a duty cycle;
(74) a controller configured to receive an offset signal indicative of the offset of a sensing signal indicative of a current (actual) value for said supply current with respect to a set point signal indicative of a target (e.g., average) value for said supply current;
(75) the controller configured to perform a closed-loop control of said supply current targeting said target value for said supply current by controlling the duty cycle of the PWM signals generated by the PWM signal generator as a function of said offset signal with the method As exemplified herein.
(76) As exemplified herein, a device may comprise:
(77) a circuit as exemplified herein; and
(78) an electrical load (e.g., L) coupled to said PWM signal generator to receive said supply current.
(79) Without prejudice to the underlying principles, the details and embodiments may vary, even significantly, with respect to what has been described by way of example only without departing from the extent of protection.
(80) The extent of protection is determined by the annexed claims.