Integrated Stepper Motor Driver For Bipolar Stepper Motors With Microstepping and Programmable Current Profile
Integrated Stepper Motor Driver For Bipolar Stepper Motors With Microstepping and Programmable Current Profile
Integrated Stepper Motor Driver For Bipolar Stepper Motors With Microstepping and Programmable Current Profile
Features
■ Two full bridges for max. 1.3 A load
(RDSON = 500 m)
■ Programmable current waveform with look-up
table: 9 entries with 5 bit resolution
■ Current regulation by integrated PWM
controller and internal current sensing
■ Programmable stepping mode: full, half, mini
and microstepping PowerSSO24
■ Programmable slew rate for EMC and power
dissipation optimization
■ Programmable Fast-, Slow-, Mixed- and Auto-
Decay Mode
■ Full-scale current programmable with 3 bit
Description
resolution The L9942 is an integrated stepper motor driver
■ Programmable stall detection for bipolar stepper motors with microstepping and
■ Step clock input for reduced µController programmable current profile look-up-table to
requirements allow a flexible adaptation of the stepper motor
characteristics and intended operating conditions.
■ Very low current consumption in standby mode
It is possible to use different current profiles
IS < 3 µA, typ. Tj 85 °C
depending on target criteria: audible noise,
■ All outputs short circuit protected with vibrations, rotation speed or torque. The decay
openload, overload current, temperature mode used in PWM-current control circuit can be
warning and thermal shutdown programmed to slow-, fast-, mixed-and auto-
■ The PWM signal of the internal PWM controller decay. In autodecay mode device will use slow
is available as digital output. decay mode if the current for the next step will
■ All parameters are guaranteed for 3 V < Vcc < increase and the fast decay or mixed decay mode
5.3 V and for 7 V < Vs < 20 V if the current will decrease. The programmable
stall detection is useful in case of head lamp
leveling and bending light application, by
Applications preventing to run the motor too long time in stall
Stepper motor driver for bipolar stepper motors in for position alignment. If a stall is detected, the
automotive applications like light levelling, alignment process is closed and the noise is
Bending light and Throttle control. minimized.
Contents
2 Device description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.1 Dual power supply: VS and VCC ..........................................9
2.2 Standby mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3 Diagnostic functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.4 Overvoltage and undervoltage detection . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.5 Temperature warning and thermal shutdown . . . . . . . . . . . . . . . . . . . . . . 10
2.6 Inductive loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.7 Cross-current protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.8 PWM current regulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.9 Decay modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.10 Overcurrent detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.11 Open load detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.12 Stepping modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.13 Decay modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3 Electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.1 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2 ESD protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.3 Thermal data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.4 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.4.1 Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.4.2 Over- and undervoltage detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.4.3 Reference current output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.4.4 Charge pump output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.4.5 Outputs: Qxn (x = A; B n = 1; 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.4.6 PWM control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
7 Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
7.1 Stall detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
7.2 Step clock input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
7.3 Load current control and detection of overcurrent (shortages at outputs) 33
8 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
9 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
List of tables
List of figures
VBAT
ReversePolarityProtection
VCC Note: value of capacitor has
CP VS to be choosen carefully to
limit the VS voltage below
Oscillator Charge absolute maximum ratings in
Pump
QA1 case of an unexpected
STEP Diagnostic
freewheeling condition (e.g.
TSD, POR)
Gate-Driver
EN &
DO
Stepper
⇓
Motor
DI
QB1
CLK Gate-Driver
&
PWM-Controller
CSN Diagnostic
QB2
Biasing U/I-
Converter
GND RREF
GNDP
GND
PGND 1 24 PGND
Power SSO24
QA1 2 23 QA2
VS 3 22 VS
CLK 4 21 EN
DI 5 20 RREF
19 VCC
CSN 6 Exposed
DO 7 Pad 18 TEST
PWM 8 17 GND
STEP 9 16 CP
VS 10 15 VS
QB1 11 14 QB2
PGND 12 13 PGND
1, 12, 13, Power ground: All pins PGND are internally connected to the heat slug.
PGND
24 Important: All pins of PGND must be externally connected!
Power supply voltage (external reverse protection required): For EMI
3, 10, 15,
VS reason a ceramic capacitor as close as possible to PGND is recommended.
22
Important: All pins of VS must be externally connected!
Fullbridge-outputs An: The output is built by a high-side and a low-side
switch, which are internally connected. The output stage of both switches is
QA1,QA
2, 23 a power DMOS transistor. Each driver has an internal reverse diode (bulk-
2
drain-diode: highside driver from output to VS, low-side driver from PGND to
output). This output is overcurrent protected.
Fullbridge-outputs Bn: The output is built by a highside and a low-side
switch, which are internally connected. The output stage of both switches is
QB1,QB
11, 14 a power DMOS transistor. Each driver has an internal reverse diode (bulk-
2
drain-diode: highside driver from output to VS, low-side driver from PGND to
output). This output is overcurrent protected.
SPI clock input: The input requires CMOS logic levels. The CLK input has
4 CLK
a pull-down current. It controls the internal shift register of the SPI.
Serial data input: The input requires CMOS logic levels. The DI input has a
pull-down current. It receives serial data from the microcontroller. The data
5 DI
is a 16bit control word and the most significant bit (MSB, bit 0) is transferred
first.
Chip Select Not input The input requires CMOS logic levels. The CSN
6 CSN input has a pull-up current. The serial data transfer between device and
micro controller is enabled by pulling the input CSN to low level.
SPI data output: The diagnosis data is available via the SPI and it is a
7 DO tristate-output. The output is CMOS compatible will remain highly resistive,
if the chip is not selected by the input CSN (CSN = high)
PWM output This CMOS compatible output reflects the current duty cycle
of the internal PWM controller of bridge A. It is an high resistance output
8 PWM
until VCC has reached minimum voltage ore can switched off via the SPI
command.
Step clock input: The input requires CMOS logic levels. The STEP input
has a pull-down current. It is clock of up and down counter of control
9 STEP
register 0. Rising edge starts new PWM cycle to drive motor in next
position.
Charge Pump Output: A ceramic capacitor (e.g.100 nF) to VS can be
16 CP
connected to this pin to buffer the charge-pump voltage.
Ground: Reference potential besides power ground e.g. for reference
17 GND
resistor RREF. From this pin exist a resistive path via substrate to PGND.
Test input The TEST input has a pull-down current. Pin used for production
18 TEST
test only. In the application it must be connected to GND.
Logic supply voltage: For this input a ceramic capacitor as close as
19 VCC
possible to GND is recommended.
2 Device description
slow decay mode always. Otherwise one of the fast decay modes is automatic selected for a
quick decrease of the load current and so it obtains new lower target value.
0 0 0 0 x x x x 46mA
0 0 1 0 x x x x 68mA
0 1 0 0 0 x x x 52mA
0 1 1 0 0 x x x 81mA
1 0 0 0 0 0 x x 53mA
1 0 1 0 0 0 x x 78mA
1 1 0 0 0 0 0 1 37mA
1 1 1 0 0 0 0 1 44mA
Truth table shows possible profiles for active open load detection. Maximum threshold IOL is
shown in left column if x bits are 1 (see also Figure 7). Lowest possible limit is e.g. 3.1 mA
for DC2=DC1=DC0=0 and it is set only I0=1.
Current Driver B
Current Driver B
8 0 8 0 Address of Current 8 0 8 0
Profile Entry
0 4 8 4 0 4 8 4 Address of Current 0 4 8 4 0 4 8 4
Profile Entry
0 2 4 6 8 6 4 2 0 2 4 6 8 6 4 2 Adress of Current 0 2 4 6 8 6 4 2 0 2 4 6 8 6 4 2
Profile Entry
Micro Stepping Mode: DIR=0 (e.g auto decay) Micro Stepping Mode: DIR=1 (e.g. auto decay)
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Phase Counter 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
VS VS
on on
A on
VS VS VS
B
on on on on
on on
Time
Internal PWM_CLK
HS VS
Fast decay is caused by OFF OFF
Detail B: register0
MIXED DECAY DM2 DM1 DM0 MODE CURVE
X 0 1 T MD1
X 1 0 T MD2
X 1 1 T mc
Load Load
Current TFT Current
TCC TCC SLOW DECAY TCC SLOW DECAY
Step after current
Limit FAST with delay
undershoot DECAY
LS
FAST
DECAY T MDx= TMD1
> TCC
Tmc T mc = T FT + 2TCC T MDx
or T MD2
Time Time
TFT Filter time for purpose of delay when decay mode has to change after limit under-run
TMD When limit is reached so fast decay duration time is set by DM1 DM2 register0
3 Electrical specifications
Temperature warning
TjTW ON threshold junction Tj increasing - - 150 °C
temperature
Temperature warning
TjTW OFF threshold junction - 130 - - °C
temperature
Thermal shutdown threshold
TjSD ON - - - 170 °C
junction temperature
Thermal shutdown threshold
TjSD OFF - 150 - - °C
junction temperature
TjSD HYS Thermal shutdown hysteresis - - 5 - K
Note:
1s 1 signal layer
2s2p 2 signal layers 2 internal planes
3.4.1 Supply
Table 8. Supply
Symbol Parameter Test condition Min. Typ. Max. Unit
Figure 6. VS monitoring
Register 7 Register 7
UV OV
1 1
0 0
VS VS
VSUV OFF VSUV ON VSOV ON VSOV OFF
The device works properly without the external resistor at pin REF. In this case it doesn't
have to fulfill all specified parameters.
VS=7 V 11 - 20 V
ICP= -100 A, all
VCP Charge pump output voltage VS=13.5 V switches off at 20 - 35 V
Qxn
VS=20 V 30 - 40 V
Note: Current profile has to pre set with I4 I3 I2 I1 I0 = 11111 and load to register 1.
Output current limit IQxnLIM is product of full scale current |IQxnFS_ | (bits DC2 DC1 DC0) and
value of DAC Phase A/B (bits I4 I3 I2 I1 I0) in register1.
Values of DAC Phase A and B can read out and depends on set up done before:
1. direction DIR, stepping mode ST1 ST0 and phase counter P4 P3 P2 P1 P0 in register 0 and
2. value of corresponding current profile (for address of current profile entry see also
Figure 3).
UP/Down Register 0
Count by PhaseCounter Decay Mode Slew Rate StepMode
1,2,4,8 P4 P3 P2 P1 P0 DM2 DM1 DM0 SR1 SR0 ST1 ST0 DIR
STEP
0 0 0
0 1 2 3 0 1 2 3 0 1 2 3
A2 A1 A0
MUX MUX MUX
A3 A2 A1 A0 Address Calculation
Phase A Phase B
A3=0 A3=1 A3=0 A3=1
Adr A[3..0] Adr neg(A[3..0]) Adr neg(A[3..0]) Adr A[3..0]
Current-Profile Table
stored in register2, ...6 5
9
5 Register 1
I4 I3 I2 I1 I0 Profile 8 DAC Scale DAC Phase B DAC Phase A
Tcc (1) Cross current protection time Blank Bits: SR1 SR0= 0 1 - 1 - µs
TB (1) time of comparator Bits: SR1 SR0= 1 0 - 2 - µs
Bits: SR1 SR0= 1 1 - 4 - µs
Bits: SR1 SR0= 0 0 - 13 - V/µs
Slew rate (dV/dt 30 % - 70 %) @HS Bits: SR1 SR0= 0 1 - 13 - V/µs
VSR switches on resistive load of 10 ,
VS = 13.5 V Bits: SR1 SR0= 1 0 - 6 - V/µs
Bits: SR1 SR0= 1 1 - 6 - V/µs
1. This parameter is guaranteed by design.
Time base is an internal trimmed oscillator of typical 2MHz and it has an accuracy of ±6 %.
T CC TB
Time
TINT _2MHz
Pin PWM
(for bridge A)
Note: Due to this safety functionality a daisy chaining of SPI is not possible. Instead, a parallel
operation of the SPI bus by controlling the CSN signal of the connected ICs is
recommended.
DO
CLK D
D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 A0 A1 A2
CSN CLK_ADR D A0 A1 A2
SPI-
INT_2MHz Controll
SEL_ERROR
POR SPI2REG
Read-Only
PWM RREF Openload Current Profile 8
Register 6 CLR6 SST FT Freq ST Error Phase Phase I4 I3 I2 I1 I0
B A
Read-Only
Temperature VS Monitor Overcurrent
Register 7 CLR7
TSD TW OV(W) UV HSB2 HSB1 LSB2 LSB1 HSA2 HSA1 LSA2 LSA1
5.1 Register 0
Table 14. Register 0
Phase counter Decay mode Slew rate Step mode DIR
Bit
12 11 10 9 8 7 6 5 4 3 2 1 0
Access rw rw rw rw rw rw rw rw rw rw rw rw rw
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0
Name P4 P3 P2 P1 P0 DM2 DM1 DM0 SR1 SR0 ST1 ST0 DIR
DIR This bit controls direction of motor movement. DIR=1 clockwise DIR=0 counter clockwise.
ST1 ST0 This bits controls step mode of motor movement (Figure 3).
00 Micro-stepping
01 Mini-stepping
10 Half-stepping
11 Full-stepping
SR1 SR0 This bit controls slew rate of bridge switches. See also parameter Table 13
DM2 DM1 DM0 This bits controls decay mode of output current (Figure 3).
000 Slow decay
001 Mixed decay, fast decay until TMD > 4 µs
010 Mixed decay, fast decay until TMD > 8 µs
011 Mixed decay, fast decay until current undershoot Tmc =TFT +TCC
100 Auto decay, fast decay without delay time
101 Auto decay, fast decay until TMD > 4 µs Auto decay uses mixed decay automatically
110 Auto decay, fast decay until TMD > 8 µs to reduce current for next step if required
(see Figure 3 down right).
Auto decay, fast decay until current
111
undershoot Tmc
P4 P3 P2 P1 P0 This bits control position of motor, e.g. 00000 step angle is 0°, 01111 step angle is 180 °.
5.2 Register 1
Table 15. Register 1
DAC scale DAC phase B DAC phase A
Bit
12 11 10 9 8 7 6 5 4 3 2 1 0
Access rw rw rw r r r r r r r r r r
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0
Name DC2 DC1 DC0 BI4 BI3 BI2 BI1 BI0 AI4 AI3 AI2 AI1 AI0
5.3 Register 2
Table 16. Register 2
Current profile 1 OV Test only Current profile 0
Bit
12 11 10 9 8 7 6 5 4 3 2 1 0
Access rw rw rw rw rw rw rw rw rw rw rw rw rw
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0
Name I4 I3 I2 I1 I0 OVW T1 T0 I4 I3 I2 I1 I0
I4 I3 I2 I1 I0 These bits are loaded in register1 DAC Phase A or B if needed. See also parameter Table 12
T1 T0 Should be programmed to 0. -
In case of an overvoltage event (V-SOV OFF) the outputs are
OVW = 0 switched to high impedance state and the Vs Monitor bit OV is -
set.
In case of an overvoltage event (V-SOV OFF) the Vs Monitor bit
OVW = 1 -
OV is set. The status of the outputs are unchanged.
5.4 Register 3
Table 17. Register 3
Current profile 3 PWM counter PWM Current profile 2
Bit
12 11 10 9 8 7 6 5 4 3 2 1 0
Access rw rw rw rw rw rw rw rw rw rw rw rw rw
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0
Name I4 I3 I2 I1 I0 D1 D0 NPW M I4 I3 I2 I1 I0
I4 I3 I2 I1 I0 These bits are loaded in register1 DAC Phase A or B if needed. See also parameter Table 12
These bits are for threshold value in counter of active time during
D1 D0 -
signal PWM.
Access rw rw rw rw rw rw rw rw rw rw rw rw rw
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0
Name I4 I3 I2 I1 I0 D4(7) D3(6) D2(5) I4 I3 I2 I1 I0
5.6 Register 6
Table 19. Register 6
ST REF
CLR Filter Freq. ST Open load Current profile 8
(PWM) ERR
Bit 12 11 10 9 8 7 6 5 4 3 2 1 0
Access rw rw rw rw r r r r rw rw rw rw rw
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0
PWM RREF Phase Phase
Name CLR6 SST FT ST I4 I3 I2 I1 I0
Freq. Error B A
I4 I3 I2 I1 I0 These bits are loaded in register1 DAC Phase A or B if needed See also parameter Table 12
Phase B Phase A These bits indicate open load at bridges
RREF Error This bit indicates if reference current is OK (150 µA <IREF < 250 µA), then is RERR=0.
ST This bit indicates stall detection.
PWM Freq. This bit sets frequency of PWM cycle. FRE=1 frequency 20 kHz, FRE=0 frequency 30 kHz
FT This bit sets filter time in glitch filter. FT=0 TF =1.5 µs, FT=1 TF = 2.5 µs
SST This bit specifies output PWM to reflect same logical level like bit ST.
CLR6 This bit resets all read only bits to 0 in register 6.
5.7 Register 7
Table 20. Register 7
CLR Temperature VS monitor Overcurrent
Bit 12 11 10 9 8 7 6 5 4 3 2 1 0
Access rw r r r r r r r r r r r r
Reset 0 0 0 0 0 0 0 0 0 0 0 0 0
Name CLR7 TSD TW OV(W) UV HSB2 HSB1 LSB2 LSB1 HSA2 HSA1 LSA2 LSA1
VS = 7 to 20 V, VCC = 3.0 to 5.3 V, EN=VCC, Tj = -40 to 150 °C, IREF = -200 A, unless
otherwise specified. The voltages are referred to GND and currents are assumed positive,
when the current flows into the pin.
6.2 DI timing
Table 22. DI timing (see Figure 11 and Figure 13) (1)
Symbol Parameter Test condition Min. Typ. Max. Unit
VDOoutL
Output low level VCC = 5 V, ID = 2 mA - 0.2 0.4 V
VPWMoutL
VDOoutH VCC - VCC -
output high level VCC = 5 V, ID = -2 mA - V
VPWMoutH 0.4 0.2
VCSN = VCC,
IDOoutLK Tristate leakage current -10 - 10 µA
0 V < VDO < VCC
Register3bit5=1 (NPWM)
IPWMoutLK Tristate leakage current -10 - 10 µA
0 V < VPWM < VCC
VCSN = VCC,
Cout (1) Tristate input capacitance - 10 15 pF
0 V < VCC < 5.3 V
Transfer of SPI-command to
tCSN_HI,min(1) CSN high time, active mode 2 - - µs
Input Register
1. Parameter guaranteed by design.
CLK 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1
time
DI: data will be accepted on the rising edge of CLK signal
actual data new data
DI A2 A1 A0 D12D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 A2 A1
time
DO: data will change on the falling edge of CLK signal
status information
DO D12D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
time
CSN low to high: actual data is fault bit
fault bit transfered to registers
Control and Status Register old data actual data
time
0.8 VCC
CSN t CLK
0.2 VCC
t set CSN t CLKH t
set CLK
0.8 VCC
CLK
0.2 VCC
t set DI t hold DI t CL KL
0.8 VCC
DI Valid Valid
0.2 VCC
Figure 12. SPI - DO valid data delay time and valid time
tf in t r in
0.8 VCC
CLK 0.5 VCC
0.2 VCC
t r DO
DO 0.8 VCC
(low to high)
0.2 VCC
td DO t f DO
DO 0.8 VCC
(high to low)
0.2 VCC
tf in tr in
0 .8 V C C
C S N 50%
0 .2 V C C
D O 50%
p u ll - u p lo a d to V C C
C L = 10 0 pF ten t d is
D O tri L D O L tri
D O 50%
p u ll- d o w n lo a d t o G N D
C L = 10 0 pF
ten D O tri H t d is D O H tri
CSN high to low and CLK stays low: status information of data bit 0 (fault condition) is transferred to D0
CSN
time
CLK
time
DI
time
DI: data is not accepted
D0
D0 0
time
D0: status information of data bit 0 (fault condition) will stay as long as CSN is low
7 Appendix
bridge and current comparator has as new reference the overcurrent limit. A shortage to
ground can be detected, but not between the outputs.
Is it recommended to use the different fast decay modes too, especially in period if the load
current has to reduce from step to step. The duration of fast decay can set by fixed time ore
that it depends on the comparator signal utilizing the second current mirror at LS switch.
There can be monitored the undershoot of bridge current during OFF state.
Fast decay can be seen as switching the bridge in opposite direction, if it is compared to ON
state before. The load current control at HS switch is not used, but the comparator is still
active. The reference value is changed to overcurrent limit and a shortage to ground or now
between the outputs too will result in a signal. The internal filter time of at least 4 us will
inhibit the signal in many applications. Then you can use the mode “auto decay without any
delay time“ (On Section 5.1 mode 100). On page 12 you can find in the lower part of
Figure 3 the phase counter values, when fast decay as only part of mixed decay is used and
the shortages can be detected during a longer time. After this it is signalized in register 7 as
overcurrent in HS switch (e.g. in Figure 17 HSA1).
Stall Stall
Threshold Threshold
PWM activ PWM activ
counter counter
No
Stall Signal
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Phase Counter 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
STEP Signal
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Phase Counter 0 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
STEP Signal
1
Counter value changes after an signal at STEP to next one
depending on selected stepping mode described in figure 3
UP/Down Register 0 (e.g. during micro stepping to value 2) .
Count by PhaseCounter 1 Decay Mode Slew Rate StepMode DIR
0 0 0 0 1 DM2 DM1 DM0 SR1 SR0 0 0
1,2,4,8 0
STEP
0 0 0
0 1 2 3 0 1 2 3 0 1 2 3
A2 A1 A0
MUX MUX MUX
Address Calculation A3 A2 A1 A0
Phase A Phase B
Adr
A3=0
A[3..0] Adr
A3=1
neg(A[3..0]) Adr
A3=0
neg(A[3..0])
A3=1
Adr A[3..0]
PWM Control With HS Current Monitoring
Overcurrent Detection At LS Switch
Current-Profile Table
stored in register2, ...6
9
5
1 1 1 1 1 Profile 8
5 Phase Counter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
1 1 1 1 0 Profile 7
Current Driver A
5
1 1 1 0 1 Profile 6
5 Adress of Current 0 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1
1 1 0 1 0 Profile 5 Profile Entry
Phase A
5
1 0 1 1 0 Profile 4
5
1 0 0 0 1 Profile 3
5
0 1 1 0 0 Profile 2 Current Driver B
Adress of Current 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7
5 Profile Entry
0 0 1 1 0 Profile 1 Phase B
5
0 0 0 0 0 Profile 0 STEP Signal
Register 1
HS Current
DAC Scale DAC Phase B DAC Phase A Monitoring
0 0 0
DI 1 1 1 1 0 0 0 1 1 0 (Load control)
95 mA 100mA * 30/31 = 91.9mA 100mA * 6/31 = 18.4mA LIMIT HSA1 - HS1 on
IQA1LIM
+
2mA 1000 QA1
I LIMIT B I LIMIT A
5 bit DAC 5 bit DAC
Phase B Phase A
2mA -
I REF I MAX
DAC +
REF -
Full Scale
200 uA
- IA
-
+ +
2mA QB1
-
LS Current
2mA -
Monitoring OC LSB1
-
+ LS1 on +
2mA QA2
(Overcurrentl) -
IB 2mA
- -
+ OC LSA2
LS2 on
+
-
-
LIMIT HSB2 -
IQA2LIM
HS2on -
+
LS Current
+
HS Current 2mA 1000 QB2 Monitoring
-
Monitoring (Overcurrent)
2mA
(Load control) -
+
-
-
+
1
Counter value changes after an signal at STEP to next one
depending on selected stepping mode described in figure 1.2
UP/Down Register 0 (e.g. during micro stepping to value 2) .
PhaseCounter 1 Decay Mode Slew Rate StepMode DIR
Count by
1,2,4,8 0 0 0 0 1 DM2 DM1 DM0 SR1 SR0 0 0
0
STEP
0 0 0
Auto Decay
0 1 2 3 0 1 2 3 0 1 2 3
A2 A1 A0
MUX MUX MUX Mixed Decay
Fast and Slow
Address Calculation A3 A2 A1 A0 Slow Decay Decay
Phase A Phase B
A3=0 A3=1 A3=0 A3=1
Adr A[3..0] Adr neg(A[3..0]) Adr neg(A[3..0]) Adr A[3..0]
Current-Profile Table
stored in register2, ...6
9
5
1 1 1 1 1 Profile 8
5 Phase Counter 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
1 1 1 1 0 Profile 7
Current Driver A
5
1 1 1 0 1 Profile 6
5 Adress of Current 0 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1
1 1 0 1 0 Profile 5 Profile Entry
Phase A
5
1 0 1 1 0 Profile 4
5
1 0 0 0 1 Profile 3
5
0 1 1 0 0 Profile 2 Current Driver B
Adress of Current 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7
5 Profile Entry
0 0 1 1 0 Profile 1 Phase B
5
0 0 0 0 0 Profile 0 STEP Signal
Register 1
HS Current
DAC Scale DAC Phase B DAC Phase A Monitoring
0 0 0
DI 1 1 1 1 0 0 0 1 1 0 (Overcurrent)
95 mA 95mA * 30/31 = 91.9mA 100mA * 6/31 = 18.4mA OC HSA1 - HS1 on
+
(Overcurrent) 2mA -
OC HSB1 - HS2 on
+
+
2mA QA2
-
Fast IB 2mA
- -
+ Decay +
-
-
HS Current
- - Monitoring
+
+
QB2 (Overcurrent)
LS Current 2mA
-
LIMIT LSB2 -
+
8 Package information
7412818 I
9 Revision history
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN: (A) SAFETY CRITICAL APPLICATIONS SUCH AS LIFE
SUPPORTING, ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS; (B)
AERONAUTIC APPLICATIONS; (C) AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS, AND/OR (D) AEROSPACE APPLICATIONS
OR ENVIRONMENTS. WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE, THE PURCHASER SHALL USE PRODUCTS AT
PURCHASER’S SOLE RISK, EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE, UNLESS A PRODUCT IS
EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR “AUTOMOTIVE, AUTOMOTIVE SAFETY OR MEDICAL” INDUSTRY
DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS. PRODUCTS FORMALLY ESCC, QML OR JAN QUALIFIED ARE
DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.