L292 SWITCH-MODE DRIVER FOR DC MOTORS ■ ■ ■ ■ ■ ■ DRIVING CAPABILITY : 2 A, 36 V, 30 KHz 2 LOGIC CHIP ENABLE EXTERNAL LOOP GAIN ADJUSTEMENT SINGLE POWER SUPPLY (18 TO 36 V) INPUT SIGNAL SYMMETRIC TO GROUND THERMAL PROTECTION MULTIWATT15 V DESCRIPTION The L292 is a monolithic LSI circuit in 15-lead Multiwatt ® package. It is intended for use, together with L290 and L291, as a complete 3-chip motor positioning system for applications such as carriage/daisy-wheel position control in type-writes. ORDERING NUMBER: L292 The L290/1/2 system can be directly controlled by a microprocessor. BLOCK DIAGRAM July 2003 1/13 L292 PIN CONNECTION (Top view) ABSOLUTE MAXIMUM RATINGS Symbol Parameter Value Unit Vs Power Supply 36 V Vi Input Voltage - 15 to + Vs V Vinhibit Inhibit Voltage 0 to Vs V Io Output Current 2.5 A Ptot Total Power Dissipation (Tcase = 75 °C) 25 W Tstg Storage and Junction Temperature - 40 to + 150 °C THERMAL DATA Symbol Rth-j-case Parameter Thermal resistance junction-case Max Value Unit 3 °C/W TRUTH TABLE Vinhibit 2/13 Pin 12 Pin 13 Output Stage Condition L L Disabled L H Normal Operation H L Disabled H H Disabled L292 ELECTRICAL CHARACTERISTCS Symbol Parameter Test Condition VS Supply Voltage Id Quiescent Drain Current VS = 20V (offset null) Vos Input Offset Voltage (pin 6) Io = 0 Vinh Inhibit Low Level (pin 12, 13) Ii Vi Typ. Max. 36 V 30 50 mA +350 mV 18 2 Inhibit High Level Iinh Min. 3.2 Unit V V Low Voltage Condition Vinh(L) = 0.4V -100 µA High Voltage Condition Vinh(H) = 3.2V 10 µA VI = -8.8V -1.8 mA VI = +8.8V 0.5 mA Input Current (pin 6) Input Voltage (pin 6) Rs1 = Rs2 = 0.2Ω Io = 2A Io = -2A 9.1 -9.1 V V Io Output Current VI = ±9.8V s1 = Rs2 = 0.2Ω VD Total Drop Out Voltage Including sensor resistor Io = 2A Io = 1A 5 3.5 V V Sensing Resistor Voltage Drop Tj = 150°C Io = 2A 0.44 V I ----oVi Transconductance Rs1 = Rs2 = 0.2Ω 235 mA/V fosc Frequency range (pin 10) VRS ±2 205 Rs1 = Rs2 = 0.42Ω A 220 120 1 mA/V 30 kHz SYSTEM DESCRIPTION The L290, L291 and L292 are intended to be used as a 3-chip microprocessor controlled positioning system. The device may be used separately - particularly the L292 motor driver - but since they will usually be used together, a description of a typical L290/1/2 system follows. At the time, the microprocessor orders a switch to the position mode, (strobe signal at pin 8 of L291) and within 3 to 4 ms the L292 drives the motor to a null position, where it is held by electronic "de-tenting". The mechanical/electrical interface consists of an Figure 1. System Block Diagram 3/13 L292 The system operates in two modes to achieve high speed, high-accurancy positioning. Speed commands for the system originate in the microprocessor. It is continuosly updated on the motor position by means of pulses from the L290 tachometer chip, whitch in tur gets its information from the optical encoder. From this basic input, the microprocessor computes a 5-bit control word that sets the system speed dependent on the distance to travel. When the motor is stopped and the microprocessor orders it to a new positio, the system operates initially in an open-loop configuration as there is no feedback from the tachometer generator. A maximum speed is reached, the tachometer chip output backs off the processor signal thus reducing accel-ering torque. The motor continues to run at rop speed but under closed-loop control. As the target position is approached, the microprocessor lowers the value of the speed-demand word; this reduces the voltage at the main summing point, in effect braking the motor. The braking is applied progressively until the motor is running at minimum speed. optical encoder which generates two sinusoidal signals 90° out of phase (leading according to the motor direction) and proportional in frequency to the speed of rotation. The optical encoder also provides an output at one position on the disk which is used to set the initial position. The opto encoder signals, FTA and FTB are filtered by the networks R2C2 and R3 C3 (referring to Fig.4) and are supplied to the FTA/FTB inputs on the L290. The main function on the L290 is to implement the following expression: dV AB FTA dV AA FTB Output signal (TACHO) = -------------- ⋅ --------------- – -------------- ⋅ --------------dt dt FTB FTA Output signal (TACHO) = dVAB · FTA - dVAA · FTBdt | FTA | dt | FTB | Thus the mean value of TACHO is proportional to the rotation speed and its polarity indicates the direction of rotation. The above function is performed by amplifying the input signals in A1 and A2 to obtain VAA and VAB (typ.7 Vp). From VAA and VAB the external differen-tiatior RC networks R 5 C6 and R4 C4 give the signals VMA and VMB which are fed to the multipliers. The second input to each multipler consists of the sign of the first input of the other multiplier before differentiation, these are obtained using the comparators Cs1 and C s2. The multiplier outputs, CSA and CSB, are summed by A3 to give the final output signal TACHO. The peak-topeak ripple signal of the TACHO can be found from the following expression: π Vripple p - p = --- ( 2 – 1 ) · Vthaco DC 4 The max value of TACHO is: π Vtacho max = --- 2 · Vthaco DC 4 Using the coparators C1 and C2 another two signals from VAA and VAB are derived - the logic signals STA and STB. This signals are used by the microprocessor to determine the position by counting the pulses. The L2910 internal reference voltage is also derived from VAA and VAB: Vref= | VAA | + | VAB | This reference is used by the D/A converter in the L291 to compensate for variations in input levels, temperature changes and ageing. The "one pulse per rotation" opto encoder output is connected to pin 12 of the L290 (FTF) where it is squared to give the STF logic output for the microprocessor. The TACHO signal and Vref are sent to the L291 via filter networks R8 C8 R9 and R6 C7 R7 respectively. 4/13 L292 Pin 12 of this chip is the main summing point of the system where TACHO and the D/A converter output are compared. The input to D/A converter consists of 5 bit word plus a sign bit supplied by the microprocessor. The sign bit represets the direction of motor rotation. The (analogue) output of the D/A conveter -DAC/OUT - is compared with the TACHO signal and the risulting error signal is amplified by the error amplifier, and subsequently appears on pin 1. The ERRV sognal (from pin 1 , L291) is fed to pin 6 of the final chip, the L292 H-bridge motor-driver. This input signals is bidirectional so it must be converted to a positive signal bacause the L292 uses a single supply voltage. This is accomplished by the first stage - the level shifter, which uses an internally generated 8 V reference. This same reference voltage supplies the triangle wave oscillator whose frequency is fixed by the external RC network (R20, C17 - pins 11 and 10) where: 1 (with R ≥ 8.2kΩ) 1f o sc = -----------2 RC The oscillator determines the switching frequency of the output stage and should be in the range 1 to 30 KHz. Motor current is regulated by an internal loop in the L292 which is performed by the resistors R18, R19 and the differential current sense amplifier, the output of which is filtered by an external RC network and fed back to the error amplifier. The choise of the external components in these RC network (pins 5, 7, 9) is determined by the motor type and the bandwidth requirements. The values shown in the diagram are for a 5Ω, 5 MH motor. (See L292 Transfer Function Calculation in Application Information). The error signal obtained by the addition of the input and the current feedback signals (pin 7) is used to pulse width modulate the oscillator signal by means of the comparator. The pulse width modulated signal controls the duty cycle of the Hbridge to give an output current corresponding to the L292 input signal. The interval between one side of the bridge switching off and the other switching on, t, is programmed by C17 in conjuction with an internal resistor Rt. This can be foud from: τ = Rτ · Cpin10. (C17 in the diagram) Since Rτ is approximately 1.5 KΩ and the recommended t to avoid simultaneous conduction is 2.5µs Cpin should be around 1.5 nF. 10 The current sense resistors R18 and R19 should be high precision types (maximum tolerance ± 2 %) and the recommended value is given by: Rmax· Io max ≤ 0.44V It is possible to synchronize two L292 ’s, if desired, using the network shown in fig. 2. Finally, two enable inputs are provited on the L292 (pins 12 and 13-active low and high respectively). Thus the output stage may be inhibited by taking pin 12 high or by taking pin 13 low. The output will also be inhibited if the supply voltage falls below 18V. The enable inputs were implemented in this way because they are intended to be driven directly by a microprocessor. Currently available microprocessors may generates spikes as high as 1.5V during powerup. These inputs may be used for a variety of applications such as motor inhibit during reset of the logical system and power-on reset (see fig. 3). 5/13 L292 Figure 2. Figure 3. Figure 4. Application Circuit. 6/13 L292 APPLICATION INFORMATION This section has been added in order to help the designer for the best choise of the values of external components. Figure 5. L292 Block Diagram. The schematic diagram used for the Laplace analysis of the system is shown in fig. 6. Figure 6. RS1 = RS2 = RS (sensing resistors) 1-----= 2.5 · 10-3 W (current sensing amplifier transconductance) R4 LM = Motor inductance, RM = Motor resistance, IM = Motor current 7/13 L292 IM (DC transfer function from the input of the comparator (VTH) to the motor current (IM)). G m o = ---------V TH s = 0 Neglecting the VCEsat of the bridge transistors and the VBE of the diodes: 1 G m o = -------RM 2V s ---------- where VR : VS = supply voltage VR = 8 V (reference voltage) (1) DC TRANSFER FUNCTION In order to be sure that the current loop is stable the following condition is imposed : LM 1 + sRC = 1 + s -------- (pole cancellation) RM LM from which RC = -------- LM RM (2) (Note that in practice R must greater than 5.6 KΩ) The transfer function is then, R 2 R4 IM ----- ( s ) = -------------VI R 1 R3 1 + sR F C F G mo ---------------------------------------------------------------------------------2 G m o R s + sR 4 C + s R F C F R 4 C (3) In DC condition, this is reduced to IM R 2 R4 1 0.44 ----- ( s ) = -------------- ⋅ ------- = ----------VI R 1 R3 Rs Rs A ---V (4) OPEN-LOOP GAIN AND STABILITY CRITERION For RC = LM / RM, the open loop gain is: Gm o Rs RF Rs 1 1 Aβ = --------------- ⋅ G m o ------- ---------------------------- = ------------------- ------------------------------------R 4 1 + sR F C F R 4 C s ( 1 + sR F C F ) sR F C In order to achieve good stability, the phase margin must be greater than 45° when | Aβ | = 1. 1 That means that, at fF = ----------------------- must be | Aβ | < 1 (see fig. 7), that is : 2 πR F C F G m o Rs R F C F 1 - = ------------------ --------------- < 1 Aβ f = ---------------------R4 C 2πR F C F 2 8/13 (5) L292 Figure 7. Open Loop Frequency Response CLOSED-LOOP SYSTEM STEP RESPONSE a) Small - signals analysis. The transfer function (3) can be written as follows: s 1 + -------------2 ξω IM o ----- ( s ) = 0.044 --------------- ------------------------------2 Rs VI 2ξs + s 1 + ---------------------2 ωo ωo (7) G m o Rs where wo = ---------------------------- is the cutoff frequency R4 C RF C F R4 C ξ = -------------------------------------- is the dumping factor 4 RF C F G m o Rs By choosing the ξ value, it is possible to determine the system response to an input step signal. Examples : 1) ξ = 1 from which t t – ------------------- 2 RF CF 0.044 t 1 + -----------------I M ( t ) = --------------- 1 – e - ⋅ V i RS 4R F C F (where Vi is the amplitude of the input step). 1 2) ξ = ------- from which 2 t – ------------------- 2 R F C F t 0.044 V I M ( t ) = --------------- 1 – cos ------------------- e i 2R F C F Rs 9/13 L292 Figure 8. Small Signal Step Response (normalized amplitude vs. t / RFCF). V7 = 200 mV/div. IM = 100 mA/div. t = 100 µs/div. with VI = 1.5 Vp. It is possible to verify that the L292 works in "closed-loop" conditions during the entire motor current risetime: the voltage at pin 7 inverting input of the error amplifier) is locked to the reference voltage VR, present at the non-inverting input of the same amplifier. The previous linear analysis is correct for this example. Descresing the ξ value, the rise-time of the current decreases. But for a good stability, from relationship 1 (6), the maximum value of ξ is: ξmin = -------------- (phase margin = 45°) 4 2 2 b) Large signal reponse The large step signal response is limited by slew-rate and inductive load. In this case, during the rise-time of the motor current, The L292 works is open-loop condition. CLOSED LOOP SYSTEM BANDWIDTH. A good choice for x is the value 1 / Ö2. In this case : IM 1 + sR F C F 0.044 ----- ( s ) = --------------- --------------------------------------------------------------------VI R s 1 + 2s R C + 2s 2 R 2 C 2 F F F F (8) The module of the transfer function is : 2 2 2 2 1 + ω RF CF IM 0.044 = --------------- -------------------------------------------------------------------------------------------------------------------------Rs 2 2 VI [ ( 1 + 2ωR F C F ) + 1 ] ⋅ [ ( 1 – 2 ωR F C F ) + 1 ] (9) IM 0.044 The cutoff frequency is derived by the expression (9) by putting ----= 0.707 · --------------- (-3 dB), from which: Rs VI 0.9 ω T = --------------RF C F 10/13 0.9 f T = ---------------------2πR F C F L292 Example : a) Data – Motors characteristics: LM = 5 mH RM = 5 W LM / RM = 1msec – Voltage and current characteristics: Vs = 20 V IM = 2 A VI = 9.1 V – Closed loop bandwidth : 3 kHz b) Calculation From relationship (4) : 0.044 R S = --------------- V I = 0.2Ω IM and from (1) : 2V S –1 - = 1Ω G m o = --------------RM VR RC = 1 msec [from expression (2) ] Assuming ξ = 1/ 2 ; from (7) follows : ξ 2 1 400 C = --- = -------------------------------2 4R F C F ⋅ 0.2 The cutoff frequency is : –3 ⋅ 10 - = 3 kHz f T = 143 ------------------------RF C F c) Summarising –3 – R C = 1.10 sec 1000 C – ------------------ = 1 RF C F – R F C F ≅ 47µs C = 47nF R = 22 K Ω For R F = 510Ω → C F = 92nF 11/13 L292 mm DIM. MIN. TYP. inch MAX. MIN. TYP. MAX. A 5 0.197 B 2.65 0.104 C 1.6 D 0.063 1 E 0.49 0.039 0.55 0.019 0.022 F 0.66 0.75 0.026 G 1.02 1.27 1.52 0.040 0.050 0.060 G1 17.53 17.78 18.03 0.690 0.700 0.710 H1 19.6 0.030 0.772 H2 20.2 0.795 L 21.9 22.2 22.5 0.862 0.874 0.886 L1 21.7 22.1 22.5 0.854 0.870 0.886 L2 17.65 18.1 0.695 L3 17.25 17.5 17.75 0.679 0.689 0.699 L4 10.3 10.7 10.9 0.406 0.421 0.429 0.713 L7 2.65 2.9 0.104 M 4.25 4.55 4.85 0.167 0.179 0.191 M1 4.63 5.08 5.53 0.182 0.200 0.218 0.114 S 1.9 2.6 0.075 S1 1.9 2.6 0.075 0.102 Dia1 3.65 3.85 0.144 0.152 12/13 OUTLINE AND MECHANICAL DATA 0.102 Multiwatt15 V L292 Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics. STMicroelectronics acknowledges the trademarks of all companies referred to in this document. The ST logo is a registered trademark of STMicroelectronics © 2003 STMicroelectronics - All Rights Reserved STMicroelectronics GROUP OF COMPANIES Australia - Brazil - Canada - China - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan -Malaysia - Malta - Morocco Singapore - Spain - Sweden - Switzerland - United Kingdom - United States. http://www.st.com 13/13