L6258E is a dual full bridge for mot or control appl ications realized in BCD technology, with the capability
of driving both windings of a bipolar s tepper motor or
bidirectionally control two DC motors.
L6258E and a few external components form a com-
Figure 2. Block Diagram
INPUT
&
SENSE
AMP
INPUT
&
SENSE
AMP
EA_IN1EA_OUT1VCP2
THERMAL
EA_IN2EA_OUT2GND
PROT.
VDD(5V)
VCP1
VREF1
PH_1
VREF1
PH_2
TRI_CAP
C
FREF
I3_1
I2_1
I1_1
I0_1
I3_2
I2_2
I1_2
I0_2
C
CHARGE
PUMP
DAC
VR GEN
DAC
TRIANGLE
GENERATOR
P
VR (VDD/2)
TRI_0
TRI_180
gure 1. Package
PowerSO36
Table 1. Order Codes
Part NumberPackage
L6258E
PowerSO36
(Replaced by L6258EX)
plete control and drive circuit. It has high efficiency
phase shift chopping that allows a very low current
ripple at the lowest current contr ol lev els , and ma kes
this device ideal for steppers as well as for DC motors.The power stage is a dual DMOS full bridge capable of sustaining up to 40V, and includes the
diodes for current recirculation.The o utput current capability is 1.2A per winding in continuous mode, with
peak start-up current up to 1.5A. A thermal protectio n
circuitry disables the outputs if the chip temperature
exceeds the safe limits.
R
1M
1
C
C1
R
C1
TRI_0
+
C
TRI_180
C2
TRI_0
TRI_180
-
+
C
-
+
C
-
+
C
-
ERROR
V
R
AMP
+
-
ERROR
V
R
AMP
+
-
R
C2
C
R
1M
2
VS
POWER
BRIDGE
C
1
POWER
BRIDGE
2
BOOT
VBOOT
D96IN430D
OUT1A
OUT1B
SENSE1B
SENSE1A
DISABLE
VS
OUT2A
OUT2B
SENSE2B
SENSE2A
R
s
R
s
September 2004
Rev. 7
1/24
L6258E
Table 2. Absolute Maximum Ratings
SymbolParameterValueUnit
V
V
DD
V
ref1/Vref2
I
O
I
O
V
V
boot
V
boot
T
T
stg
in
Supply Voltage45V
s
Logic Supply Voltage7V
Reference Voltage2.5V
Output Current (peak)1.5A
Output Current (continuous)1.2A
Logic Input Voltage Range-0.3 to 7V
Bootstrap Supply60V
1, 36 PWR_GNDGround connection (1). They also conduct heat from die to printed circuit copper.
2, 17PH_1, PH_2These TTL compatible logic inputs set the direction of current flow through the load. A
3I
4I
1_1
0_1
5OUT1ABridge output connection (1)
6DISABLEDisables the bridges for additional safety during switching. When not connected the
7TRI_capTriangular wa v e gen er ati on ci rc uit ca pac ito r. The value of thi s ca paci tor def ine s th e ou tput
8V
(5V)Supply Voltage Input for logic circuitry
DD
9GNDPower Ground connection of the internal charge pump circuit
10V
11V
12V
13, 31V
CP1
CP2
BOOT
S
14OUT2ABridge output connection (2)
15I
16I
0_2
1_2
18, 19PWR_GNDGround connection. They also conduct heat from die to printed circuit copper
20, 35SENSE2,
SENSE1
21OUT2BBridge output connection and positive input of the tranconductance (2)
22I
23I
3_2
2_2
24EA_OUT_2Error amplifier output (2)
25EA_IN_2Negative input of error amplifier (2)
34OUT1BBridge output connection and positive input of the tranconductance (1)
Note: The number in parenthesis shows the relevant Power Bridge of the circuit. Pins 18, 19, 1 and 36 are connected together.
high level causes current to flow from OUTPUT A to OUTPUT B.
Logic input of the internal DAC (1). The output voltage of the DAC is a percentage of the
Vref voltage applied according to the thruth table of page 7
See pin 3
bridges are enabled
switching frequency
Charge pump oscillator output
Input for external charge pump capacitor
Overvoltage input for driving of the upper DMOS
Supply voltage input for output stage. They are shorted intern ally
Logic input of the internal DAC (2). The output voltage of the DAC is a percentage of the
VRef voltage applied accordin g to the tr uth table of page 7
See pin 15
Negative input of the transconductance input amplifier (2, 1)
See pin 15
See pin 15
Reference voltages for the internal DACs, determining the output current value. Output
REF1
current also depends on the logic inputs of the DAC and on the sensing resistor value
Note 1: This is true for all the logic inputs except the disable input.
(*) Chopping frequency is twice fosc value.
Logic Supply Voltage4.755.25V
DD
Storage VoltageVS = 12 to 40VVS+6VS+12V
Max Drop Across Sense Resistor1.25V
Power off ResetOff Threshold67.2V
Power off ResetOff Threshold3.34.1V
VS Quiescent CurrentBoth bridges ON, No Load15mA
VS Quiescent CurrentBoth bridges OFF7mA
VDD Operative Current15mA
DD
Shut Down Hysteresis25°C
SD-H
Thermal shutdown150°C
SD
Triangular Oscillator Frequency
osc
(*)CFREF
= 1nF12.51518.5KHz
Leakage CurrentOFF State500µA
On ResistanceON State0.60.75Ω
Flywheel diode VoltageIf =1.0A11.4V
V
f
lnput VoltageAll Inputs2V
in(H)
Input VoltageAll Inputs00.8V
in(L)
Input Current (Note 1)0 < Vin < 5V-150+10µA
I
in
Disable Pin Input Current-10+150µA
dis
Reference Voltageoperating02.5V
V
ref
Terminal Input CurrentV
ref
= 1.25-25µA
ref
PWM Loop Transfer Ratio2
DAC Full Scale PrecisionV
FS
Current Loop OffsetV
= 2.5V I0/I1/I2/I3 = L1.231.34V
ref
= 2.5V I0/I1/I2/I3 = H-30+30mV
ref
DAC Factor RatioNormalized @ Full scale Value-2+2%
lnput Common Mode Voltage
cm
-0.7VS+0.7V
Range
Input Biassense1/sense2-2000µA
inp
Open Loop Voltage Gain70dB
V
DD
V
5/24
L6258E
3FUNCTIONAL DESCRIPTION
The circuit is intended to drive both windings of a bipolar stepper motor or two DC motors.
The current control is generated through a switch mode regulation.
With this system the direct ion and the ampl itud e of the load current are depending on the r el ation of phas e and
duty cycle between the two outputs of the current control loop.
The L6258E power stage is composed by power DMOS in bridge confi guration as it is shown in figure 5, wher e
the bridge outputs OUT_A and OUT_B are driven to V
driven to ground with a low level at the same inputs .
The zero current condition is obtained by driving the two half bridge us ing si gnals I N_A and IN_B with the same
phase and 50% of duty cycle.
In this case the outputs of the two half bridges are continuously switched between power supply (V
ground, but keeping the differential voltage across the load equal to zero.
In figure 5A is shown the timing diagram of the two outputs and the load current for this working condition.
Following we consider positive the current flowing into the load with a direction from OUT_A to OUT_B, while
we consider negative the current flowing into load with a direction from OUT_B to OUT_A.
Now just increasing the duty cycle of the IN_A signal and decreasi ng the duty c ycle of IN_B s ignal we driv e pos-
itive current into the load.
In this way the two outputs are not in phase, and the current can flow into the load trough the diagonal bridge
formed by T1 and T4 when the output OUT_A is driven to V
there will be a current r eci rculati on into the higher side of the bri dge, th rough T1 an d T2, when both the outputs
are at Vs and a current recir culation int o the l ower si de of the br idge, through T3 and T4, when both the outputs
are connected to ground.
Since the voltage applied to the load for r ecirculation is low, the res ulting current discharge time cons tant is higher than the current charging time cons tant dur ing the per iod in whi ch th e cur rent fl ows i nto the l oad thr ough th e
diagonal bridge formed by T1 and T4. In this way the load current will be positive with an average amplitude
depending on the difference in duty cycle of the two driving signals.
In figure 5B is shown the timing diagram in the case of positive load current
On the contrary, if we want to drive negative curr ent into the load is necessary to decrease the du ty cycle of th e
IN_A signal and increase the duty cycle of the IN_B signal. In this way we obtain a phase shift between the two
outputs such to have current flowing into the diagonal bridge formed by T2 and T3 when the output OUT_A is
driven to ground and output OUT_B is driven to V s, while we wi ll hav e the sam e current recirculati on condit ions
of the previous case when both the outputs are driven to Vs or to ground.
So, in this case the load current will be negativ e with an average ampl itude always depending by th e difference
in duty cycle of the two driving signals.
In figure 5C is shown the timing diagram in the case of negative load current .
Figure 6 shows the device block diagram of the complete current control loop.
with an high level a t the inpu ts IN_A and IN_B whi le ar e
s
) and
s
and the output OUT_B is driven to ground, while
s
3.1 Reference Voltage
The voltage applied to VREF pi n i s t he r efer ence for the i nternal DAC and, together with the sen se res istor val ue, defines the maximum current into the motor winding according to the following relation:
V
1
-----
--------------
⋅==
FI
REF
R
S
where R
6/24
= sense resistor value
s
I
MAX
0.5 V
⋅
REF
-------------------------- -
R
S
Figure 5. Power Bridge Configuration
L6258E
V
S
OUTA
OUTB
Iload
OUTA
IN_AIN_B
0
T1
OUT_AOUT_B
T3
LOAD
T2
T4
Fig. 1A
OUTB
Iload
OUTA
OUTB
Iload
Fig. 1B
0
Fig. 1C
0
D97IN624
7/24
L6258E
Figure 6. Current Control Loop Block Diagram
VREF
PH
INPUT TRANSCONDUCTANCE
I0
I1
I2
I3
DAC
VDAC
AMPL.
ia
+
-
Gin=1/Ra
ERROR AMPL.
V
R
+
ic
Rc
Cc
ib
VSENSE
+
Gs=1/Rb
SENSE TRANSCONDUCTANCE
AMPL.
Tri_0
Tri_180
-
+
-
+
POWER AMPL.
VS
VS
OUTA
OUTB
D97IN625
LOAD
R
L
L
L
R
S
3.2 Input Logic (I
- I1 - I2 - I3)
0
The current level in the motor winding is selected according to this table:
Table 5.
I3I2I1I0
HHHHNo Current
HHHL9.5
HHLH19.1
HHLL28.6
HLHH38.1
HLHL47.6
HLLH55.6
HLLL63.5
The logic level applied to this input determines the direction of the current flowing in the winding of the motor.
High level on the phase input causes the motor current flowing from OUT_A to OUT_B through the load.
3.4 Triangular Generator
This circuit generates the two triangular waves TRI_0 and TRI_180 internally used to generate the duty cycle
variation of the signals driving the output stage in bridge configuration.
The frequency o f th e tri an gular wave defines the s wi tc hing frequency of the output, and can be ad justed by chang ing
the capacitor connected at TR1_CAP pin :
ref
K
--- -=
C
where : K = 1.5 x 10
F
-5
3.5 Charge Pump Circuit
To ensure the correct driving of t he high sid e drivers a vo ltage higher than Vs i s supplied on the V boot pin. This
boostrap voltage is not needed for the low side power DMOS transistors because their sources terminals are
grounded. To produce this voltage a char ge pump method is used. It is made by usi ng two ex ternal capacitors;
one connected to the internal oscillator (CP) and the other (Cboot) to storage the overvoltage needed for the
driving the gates of the high side DMOS. The value suggested for the capacitors are:
Table 6.
C
boot
C
P
Storage Capacitor100nF
PumpCapacitor10nF
3.6 Current Control LOOP
The current control loop is a transconductance amplifier working in PWM mode.
The motor current is a function of the programmed DAC voltage.
To keep under control the output current, the curr ent control modulates the duty c ycle of the two outputs OUT_A
and OUT_B, and a sensing resi stor Rs is c onnect ed in series with the motor win ding in or der to prod uce a vol t age feedback compared with the programmed voltage of the DAC .
The duty cycle modulation of the two outputs is generated comparing the voltage at the outputs of the error amplifier, with the two triangular wave references .
In order to drive the output bridge wi th the duty c ycle modula tion expla ined be fore, the signal s dri ving each output ( OUTA & OUTB ) are generated b y the use of the two comparators having as refer ence two triangul ar wave
signals Tri_0 and Tri_180 of the same amplitude, the same average value (in our case Vr), but with a 180° of
phase shift each other.
The two triangular wave references are respectively appli ed to the inverti ng input of the firs t comparator and to
the non inverting input of the second comparator .
The other two inputs of the comparators are connected together to the error amplifier output voltage resulting
by the difference between the programmed DAC. The reset of the comparison between the mentioned signals
is shown in fig. 7.
9/24
L6258E
Figure 7. Output comparator waveforms
Tri_0
Error Ampl.
Output
Tri_180
First Comp.
Output
Second Comp.
Output
In the case of V
equal to zero, the transconductance loop is balanced at the value of Vr, so the outputs of
DAC
the two comparators are signals having the same phase and 50% of duty cycle .
As we have already mentioned, in this situation, the two outputs OUT_A and OUT_B are simultaneously driven
from V
to ground ; and the differential voltage across the load in this case is zero and no current flows in the
s
motor winding.
With a positive differential voltage on V
(see Fig 6, the transconductance loop wil l be positively unbalanced
DAC
respected Vr.
In this case being the error amplifier output voltage greater than Vr, the output of the fi rst comparator is a square
wave with a duty cycle higher than 50%, while the output of the second comparator is a square wave wi th a duty
cycle lower than 50%.
The variation in duty cycle obtained at the outputs of the two comparators is the same, but one is positive and
the other is negative with respect to the 50% level.
The two driving signals, generated in this case, drive the two outputs in such a way to have switched current
flowing from OUT_A through the motor winding to OUT_B.
With a negative differential voltage V
, the transconductance loop will be negatively unbalanced respected Vr.
DAC
In this case the output of the first comparator is a square wave wi th a duty cycle lower than 50%, while the output
of the second comparator is a square wave with a duty cycle higher than 50%.
The variation in the duty cycle obtained at the outputs of the two comparators is always of the same.
The two driving signals, generated in this case, drive the the two outputs in order to have the switched current
flowing from OUT_B through the motor winding to OUT_A.
3.7 Current Control Loop Compensation
In order to have a flexible system able to drive motors with different electrical characteristics, the non inverting
input and the output of the error amplifier ( EA_OUT ) are available.
Connecting at these pins an external RC compensation network it is possible to adjust the gain and the bandwidth of the current control loop.
10/24
L6258E
4PWM CURRENT CONTROL LOOP
4.1 Open Loop Transfer Function Analysis
Block diagram : refer to Fig. 6.
Table 7. Application data:
VS = 24VGs transconductance gain = 1/Rb
LL = 12mHGin transconductance gain = 1/Ra
= 12ΩAmpl. of the Tria_0_180 ref. = 1.6V (peak to peak)
R
L
RS = 0.33ΩRa = 40KΩ
RC = to be calculatedRb = 20KΩ
= to be calculatedVr = Internal reference equal to VDD/2 (Typ. 2.5V)
C
C
these data refer to a typica l application , and will be used as an example duri ng the analysis of the stabili ty of the
current control loop.
The block diagram shows the schematics of the L6258E i nternal current control loop working in PWM mode; the
current into the load is a function of the input control voltage V
is given by the following formula:
, and the relation between the two variables
DAC
I
I
LOAD
· RS · GS = V
load
I
⋅⋅V
LOADRS
V
DAC
1
------ -
R
b
R
b
------------------
⋅0.5
RaRs⋅
DAC
DAC
· G
in
1
------ -
⋅=
R
V
-------------- -
R
a
DAC
S
A()⋅==
where:
V
G
G
R
DAC
in
s
s
is the control voltage defining the load current value
is the gain of the input transconductance amplifier ( 1/Ra )
is the gain of the sense transconductance amplifier ( 1/Rb )
is the resistor connected in series to the output to sense the load current
In this configuration the input voltage is compared with the feedback voltage coming from the sense resistor,
then the difference between this two signals is amplified by the error amplifier in order to have an error signal
controlling the duty cycle of the output stage keeping the load current under control.
It is clear that to have a good performance of the current contr ol loop, the error amplifier must h ave an high DC
gain and a large bandwidth .
Gain and bandwidth must be cho sen dependi ng on many par ameter s of the application, like the c har acteri sti cs
of the load, power supply etc..., and most important is the stability of the system that must always be guaranteed.
To have a very flexible system and to have the possibility to adapt the system to any application, the error amplifier must be compensated using an RC network connected between the output and the negative input of the
same.
For the evaluation of the stability of the system, we have to consider the open loop gain of the current control
loop:
11/24
L6258E
Aloop = ACerr · ACpw · ACload · ACsense
where AC... is the gain of the blocks that refers to the error, power and sense amplifier plus the attenuation of
the load block.
The same formula in dB can be written in this way:
Aloop
= ACerrdB + ACpwdB + ACloaddB + ACsense
dB
dB
So now we can start to analyse the dynam ic char ac teristi cs of each s ingl e bl ock , with par ticu lar attenti on to th e
error amplifier.
4.2 Power Amplifier
The power amplifier is not a linear amplifier, but is a circuit driving in PWM mode the output stage in full bridge
configuration.
The output duty cycle variation is given by the comparison between the voltage of the error amplifier and two
triangular wave references Tri_0 and Tri_180. Because all the current control loop is referred to the Vr reference, the result is that when the output voltage of the error amplifier is equal to the Vr voltage the two output
Out_A and Out_B have the same phase and duty cycle at 50%; increasing the output voltage of the error amplifier above the Vr voltage, the duty cycle of the Out_A increases and the duty cycle of the Out_B decreases
of the same percentage; on the contrary decreasing the voltage of the error amplifier below the Vr voltage, the
duty cycle of the Out_A decreases and the duty cycle of the Out_B increases of the same percentage.
The gain of this block i s defi ned by the ampl itude of the two triangular wave refer ences; more prec isely the gain
of the power amplifier block is a reversed proportion of the amplitude of the two references.
In fact a variation of the error amplifier output voltage produces a lar ger variation i n duty cycle of t he two outputs
Out_A and Out_B in case of low amplitude of the two triangular wave references.
The duty cycle has the max value of 100% when the input voltage is equal to the amplitude of the two triangular
references.
The transfer function of this bl ock consist in the relation between the output duty cycle and the amplitude of the
triangular references.
Moreover, having the two references Tri _0 and Tri _180 a triangular shape it is clear that the tran sfer function of
this block is a linear constant gain without poles and zeros.
4.3 Load Attenuation
The load block is composed by the equivalent ci rcuit of the motor winding (resistance and inductance) plus the
sense resistor.
We will considered the effect of the Bemf voltage of the motor in the next chapter.
The input of this block is the PWM voltage of the power am pl ifi er an d as outp ut we have the vol t age across th e
sense resistor produced by the current flowi ng into the motor winding. The relation between the two variable is :
V
out
12/24
V
sense
-------------------- -
RLRS+
R
⋅=
S
so the gain of this block is:
ACload
ACload
Aload
dB
where:
R
= equivalent resistance of the motor winding
L
R
= sense resistor
S
Because of the inductance of the motor L
L
V
sense
------------------
v
out
20
dB
0.33
20
------------------------
log⋅31.4dB–==
120.33+
log⋅=
R
S
-------------------- -==
RLRS+
R
S
-------------------- -
RLRS+
, the load has a pole at the frequency :
L6258E
1
-------------------------------- -=
-------------------- -
2π
⋅
RLRS+
1
⋅
12 10
------------------------
120.33+
L
L
3–
Fpole
Fpole
---------------------------------------- -163Hz==
⋅
6.28
Before analysing the error amplifier block and the sense transconductance block, we have to do this consideration :
Aloop
Ax|dB = ACpw|dB + ACload|
= AxdB + Bx
dB
dB
dB
and
Bx|
= ACerr|dB + ACsense|
dB
dB
this means that Ax|dB is the sum of the power amplifier and load blocks;
Ax|
= (29,5) + (-31.4) = -1.9dB
dB
The BODE analysis of the transfer function of Ax is:
Figure 8.
The Bode plot of the Ax|dB function shows a DC gain of -1.9dB and a pole at 163Hz.
It is clear now that (because of the negative gain of the Ax function), Bx function must have an high DC gain in
13/24
L6258E
order to increment the total open loop gain increasing the bandwidth too.
4.4 Error Amplifier and Sense Amplifier
As explained before the gain of these two blocks is :
Bx
= ACerrdB + ACsense
dB
Being the voltage across the sense resistor the input of the Bx block and the error amplifier voltage the output
of the same, the voltage gain is given by :
because ib = icwe have:
dB
ibVsense Gs⋅Vsense
Verr_out = -(ic · Zc) so ic = -(Verr_out · )
1
------- -
⋅==
Rb
1
------ -
Zc
1
Bx
------- -
Rb
Verr_out
------------------------–
Vsense
Vsense · = -(Verr_out · )
1
------ -
Zc
Zc
------- -–==
Rb
In the case of no external RC network is used to compensate the error amplifier, the typical open loop transfer
function of the error plus the sense amplifier is something with a gain around 80dB and a unity gain bandwidth
at 400kHz. In this case the situation of the total transfer function Aloop, given by the sum of the Ax
and Bx
dB
dB
is :
Figure 9.
The BODE diagram shows together the error amplifier open loop transfer function, the Ax function and the resultant total Aloop given by the following equation :
Aloop
= AxdB + Bx
dB
dB
The total Aloop has an high DC gain of 78.1dB with a bandwidth of 15KHz, but the problem in this case is the
stability of the system; in fact the total Aloop cross the zero dB axis with a slope of -40dB/decade.
Now it is necessary to compensate the error amplifier in order to obtain a total Aloop with an high DC gain and
a large bandwidth. Aloop must have enough phase margin to guarantee the stability of the system.
A method to reach the stability of the system, using the RC network showed in the block diagram, is to cancel
the load pole with the zero given by the compensation of the error amplifier.
14/24
L6258E
The transfer function of the Bx block with the compensation on the error amplifier is :
1
------------------------ -
Rc j
Bx
Zc
------- -–
Rb
In this case the Bx block has a DC gain equal to the open loop and equal to zero at a frequency given by the
following formula:
---------------------------------------- -–==
–
2π fCc⋅⋅
Rb
Fzero
1
-------------------------------=
2π Rc Cc⋅⋅
In order to cancel the pole of the load, the zero of the Bx block must be located at the same frequency of 163Hz;
so now we have to find a compromise between the resistor and the capacitor of the compensation network.
Considering that the resistor value defines the gain of the Bx block at the zero frequency, it is clear that this
parameter will influence the total bandwidth of the system because, annulling the load pole with the error amplifier zero, the slope of the total transfer function is -20dB/decade.
So the resistor value must be chosen in order to have an error amplifier gain enough to guarantee a desired
total bandwidth .
In our example we fix at 35dB the gain of the Bx block at zero frequency, so from the formula:
Rc
------- -
log⋅=
Rb
where: Rb = 20k
Ω
we have: Rc = 1.1M
Bx_gain
@ zero freq.
20
Ω
Therefore we have the zero with a 163Hz the capacitor value :
Now we have to analyse how the new Aloop transfer function with a compensati on network on the error amplifier
is.
The following bode diagram shows :
– the Ax function showing the position of the load pole
– the open loop transfer function of the Bx block
– the transfer function of the Bx with the RC compensation network on the error amplifier
– the total Aloop transfer function that is the sum of the Ax function plus the transfer function of the com-
pensated Bx block.
15/24
L6258E
Figure 10.
We can see that the effect of the load pole is cancelled by the zero of the Bx block ; the total Aloop cross a the
0dB axis with a slope of -20dB/decade, having in this way a stable system with an high gain at low frequency
and a bandwidth of around 8KHz.
To increase the bandwidth of the system, we should increase the gain of the Bx block, keeping the zero in the
same position. In this way the result is a shift of the total Aloop transfer function up to a greater value.
4.5 Effect of the Bemf of the stepper motor on the current control loop stability
In order to evaluate what is the effect of the Bemf voltage of the s tepper motor we have to look at the load block :
Figure 11.
OUT+
Bemf
R
L
L
L
R
S
OUT-
to Sense
Amplifier
The schematic now shows the equivalent circuit of the stepper motor including a sine wave voltage generator
of the Bemf. The Bemf voltage of the motor is not constant, its value changes depending on the speed of the
motor.
Increasing the motor speed the Bemf voltage increases :
Bemf = Kt ·
ω
where:
Kt is the motor constant
ω
is the motor speed in radiant per second
16/24
L6258E
The formula defining the gain of the load considering the Bemf of the stepper motor becomes:
we can see that the Bem f i nflu ences o nly the gain of the load block and does not intr oduce any other additi onal
pole or zero, so from the stability point of view the effect of the Bemf of the motor is not critical because the
phase margin remains the same.
Practically the only effect of the Bemf is to limit the gain of the total Aloop with a consequent variation of the
bandwidth of the system.
5APPLICATION INFORMATION
A typical application circuit is shown in Fig.12.
Note: For avoid current spikes on falling edge of DISABLE a "DC feedback" would be added to the ERROR
Amplifier. (R1-R2 on Fig. 12).
5.1 Interference
Due to the fact that the circuit operates with switch mode current regulation, to reduce the effect of the wiring
inductance a good capacitor (100nF) c an be plac ed on the board near the package, between the power supply
line (pin 13,31) and the power ground (pin 1,36,18,19) to absorb the small amount of inductive energy.
It should be noted that this capacitor is usually required in addition to an electrolytic capacitor, that has poor
performance at the high frequencies, always located near the package, between power supply voltage (pin
13,31) and power ground (pin 1,36,18,19), just to have a current recircu lation path during the fast curren t decay
or during the phase change.
The range value of this capacitor is between few
µ
F and 100µF, and it must be chosen depending on application
parameters like the motor inductance and load current amplitude.
A decoupling capacitor of 100nF is suggested also between the logic supply and ground.
The EA_IN1 and EA_IN2 pins carry out high impedance lines and care must be taken to avoid coupled noise
on this signals. The suggestion is to put the components c onnected to this pins close to the L6258E, to surround
them with ground tracks and to keep as far as possible fast switching outputs of the devi ce. Remember als o an
1 Mohm resistor between EA_INx and EA_OUTx to avoid out put current spi ke during supply startup/shutdo wn.
A non inductive resistor is the best way to implement the sens ing. Whether this is not possi ble, some metal f ilm
resistor of the same value can be paralleled.
The two inputs for the sensing of the winding motor current (SENSE_A & SENSE_B) should be connected directly on the sensing resis tor Rs terminals , and the pa th lead between the Rs and the two sens ing inputs shoul d
be as short as possible.
17/24
L6258E
Figure 12. Typical Application Circuit.
VS
10nF
100nF
1nF
VCP1
VCP2
VBOOT
TRI_CAP
I0_1
I1_1
I2_1
I3_1
PH2
I0_2
I1_2
I2_2
I3_2
DISABLE
VS
EA_IN1
10
11
12
13,31
7
2
4
3
32
33
17
15
16
23
22
6
OUT2B
SENSE2
OUT2A
SENSE1
OUT1B
OUT1APH1
GND
PWR_GND
V
DD
SIG_GND
VREF1
VREF2
0.33
0.33
D97IN626E
M
VDD(5V)
VREF
STEPPER
MOTOR
12mH 10Ω
21
20
14
35
34
L6258
SOP36
E
5
9
PACKAGE
1,36
18,19
8
27
28
26
29
EA_OUT1
1M
820pF
30
EA_IN2
25
EA_OUT2
1M
R2 1MR1 1M
24
820pF
5.2 Motor Selection
Some stepper motor have such high core losses that they are not suitable for switch mode current regulation. Furthermore, some stepper motors are not designed for continuous operating at maximum current. Since the circuit
can drive a c onstant current t hrough th e motor, i ts temperat ure might exceed, both at lo w and high speed ope ration.
5.3 Unused Inputs
Unused inputs should be connected to the proper voltage levels in order to get the highest noise immunity.
5.4 Notes on PCB Design
We recommend to observe the foll owing lay out rule s to avoi d application problem s with gr ound and anoma lous
recirculation current.
The by-pass capacitors for the power and logic supply must be kept as near as possible to the IC.
It's important to separate on the PCB board the logic and power grounds and the internal charge pump circuit
ground avoiding that ground traces of the logic signals cross the ground traces of the power signals.
Because the IC uses the board as a heat sink, the di ssipating c opper area must be sized in accordance with th e
required value of R
thj-amb
.
18/24
L6258E
6OPERATION MODE TIME DIAGRAMS
Figure 13. Full step operation mode timing diagram (Phase - DAC input and Motor Current)
Position
Phase
1
Phase
2
DAC 1
Inputs
DAC 2
Inputs
Motor drive
Current 1
Motor drive
Current 2
I0_1
I1_1
I2_1
I3_1
I0_2
I1_2
I2_2
I3_2
5V
0
5V
0
5V
0
5V
0
5V
0
5V
0
5V
0
5V
0
5V
0
0
0
0
023103210
Ph2
95.2%
19.1%
95.2%
19.1%
D97IN629A
FULL Step Vector
Ph1
1
Ph1
0
Ph2
32
I3I2I1I0
Current level
% of I
MAX
0000100
000198.4
001095.2
001192.1
010088.9
010182.5
011077.8
011171.4
100063.5
100155.6
101047.6
101138.1
110028.6
110119.1
11109.5
1111 No Current
19/24
L6258E
Figure 14. Half step operation mode timing diagram (Phase - DAC input and Motor Current)
67451320
I0_1
I1_1
I2_1
I3_1
I0_2
I1_2
I2_2
I3_2
5V
0
5V
0
5V
0
5V
0
5V
0
5V
0
5V
0
5V
0
5V
0
5V
0
100%
71.4%
0
-71.4%
-100%
100%
71.4%
0
-71.4%
-100%
Ph2
D97IN627C
Half Step Vector
Ph1
2
of I
1
7
MAX
3
4
5
6
Ph1
I3I2I1I0
0000100
000198.4
001095.2
001192.1
010088.9
010182.5
011077.8
011171.4
100063.5
100155.6
101047.6
101138.1
110028.6
110119.1
11109.5
1111 No Current
Current level%
0
Phase 1
Phase 2
DAC 1
Inputs
DAC 2
Inputs
Motor drive
Current 1
Motor drive
Current 2
Ph2
20/24
L6258E
Figure 15. 4 bit microstep operation mode timing diagram (Phase - DAC input and Motor Current)
Note: “D a nd E 1” do not include mold flash or protusions.
- Mold flash or protusions sh al l not exceed 0.15mm (0.006”)
- Critical dimensions are "a3", "E" and "G " .
OUTLINE AND
MECHANICAL DA T A
PowerSO36
E2
NN
DETAIL A
118
h x 45
A
e3
H
D
1936
b
0.12 AB
a2
A
e
M
E1
DETAIL B
lead
a3
B
Gage Plane
PSO36MEC
BOTTOM VIEW
DETAIL B
0.35
S
L
DETAIL A
a1
E
slug
D1
SEATING PLANE
(COPLANARITY)
c
E3
- C -
GC
0096119 B
22/24
Table 8. Revision History
DateRevi sio nDescription of Chan g es
January 20045First Issue in EDOCS DMS
L6258E
May 20046Restyling of the graphic form, changed all V
delete TSD parameter in the Electrical characteristic on the page 5/24.
NOT FOR NEW DESIGN, it has been replaced by equivalent L6258EX.
September 20047Changed on the page 5 the f
18.5kHz
parameter max. value from 17.5 to
osc
with VDD;
CC
23/24
L6258E
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 infri ngement of patents or other rights of third parties which may result from its use. No licens e is granted
by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject
to change without no tice. 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.
The ST logo is a registered trademark of STMicroelectronics.
All other names are the property of their respective owners