Integrated stepper motor driver for bipolar stepper motors
with microstepping and programmable current profile
Features
■ Two full bridges for max. 1.3 A load
(R
■ 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
■ Programmable slew rate for EMC and power
dissipation optimization
■ Programmable Fast-, Slow-, Mixed- and Auto-
Decay Mode
■ Full-scale current programmable with 3 bit
resolution
■ Programmable stall detection
■ Step clock input for reduced µController
requirements
■ Very low current consumption in standby mode
I
S
■ All outputs short circuit protected with
openload, overload current, temperature
warning and thermal shutdown
■ The PWM signal of the internal PWM controller
is available as digital output.
■
All parameters are guaranteed for 3 V < Vcc <
5.3 V
Applications
Stepper motor driver for bipolar stepper motors in
automotive applications like light levelling,
Bending light and Throttle control.
Table 1.Device summary
= 500 mΩ)
DSON
< 3 µA, typ. Tj ≤ 85 °C
and for 7 V < Vs < 20 V
L9942
PowerSSO24
Description
The L9942 is an integrated stepper motor driver
for bipolar stepper motors with microstepping and
programmable current profile look-up-table to
allow a flexible adaptation of the stepper motor
characteristics and intended operating conditions.
It is possible to use different current profiles
depending on target criteria: audible noise,
vibrations, rotation speed or torque. The decay
mode used in PWM-current control circuit can be
programmed to slow-, fast-, mixed-and autodecay. In autodecay mode device will use slow
decay mode if the current for the next step will
increase and the fast decay or mixed decay mode
if the current will decrease. The programmable
stall detection is useful in case of head lamp
leveling and bending light application, by
preventing to run the motor too long time in stall
for position alignment. If a stall is detected, the
alignment process is closed and the noise is
minimized.
Note: value of capacitor has
to be choosen carefully to
limit the VS voltage below
absolute maximum ratings i n
case of an unexpected
freewheeling condition (e.g.
TSD, POR)
Stepper
Motor
Figure 2.Pin connection (top view)
PGND 1
QA1
2
VS
3
CLK
4
DI
5
CSN
6
DO
7
PWM
8
STEP 9
VS 10
QB1 11
PGND 12
All pins with the same name must be externally connected!
All pins PGND are internally connected to the heat slug.
Power SSO24
Exposed
Pad
GND
PGND24
QA223
22
VS
EN21
RREF20
VCC19
TEST18
GND
17
CP16
VS15
QB214
PGND13
6/40Doc ID 11778 Rev 6
L9942Block diagram and pin information
Table 2.Pin description
Pin Symbol Function
1, 12, 13,
24
3, 10, 15,
22
2, 23
11, 14
PGND
VS
QA1,QA
2
QB1,QB
2
4 CLK
5 DI
6 CSN
7 DO
8 PWM
9 STEP
Power ground: All pins PGND are internally connected to the heat slug.
Important: All pins of PGND must be externally connected!
Power supply voltage (external reverse protection required): For EMI
reason a ceramic capacitor as close as possible to PGND is recommended.
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
a power DMOS transistor. Each driver has an internal reverse diode (bulkdrain-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
a power DMOS transistor. Each driver has an internal reverse diode (bulkdrain-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
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
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
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
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
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
register 0. Rising edge starts new PWM cycle to drive motor in next
position.
16 CP
17 GND
18 TEST
19 VCC
Charge Pump Output: A ceramic capacitor (e.g.100 nF) to VS can be
connected to this pin to buffer the charge-pump voltage.
Ground: Reference potential besides power ground e.g. for reference
resistor RREF. From this pin exist a resistive path via substrate to PGND.
Test in put The TEST input has a pull-down current. Pin used for production
test only. In the application it must be connected to GND.
Logic supply voltage: For this input a ceramic capacitor as close as
possible to GND is recommended.
Doc ID 11778 Rev 67/40
Block diagram and pin informationL9942
Table 2.Pin description (continued)
Pin Symbol Function
Reference Resistor The reference resistor is used to generate a
temperature stable reference current used for current control and internal
20 RREF
21 EN
oscillator. At this output a voltage of about 1.28V is present. The resistor
should be chosen that a current of about 200uA will flow through the
resistor.
Enable input: The input requires CMOS logic levels. The EN input has a
pull-down resistor. In standby-mode outputs will be switched off and all
registers will be cleared. If EN is set to a logic high level then the device will
enter the active mode.
8/40Doc ID 11778 Rev 6
L9942Device description
2 Device description
2.1 Dual power supply: VS and VCC
The power supply voltage VS supplies the half bridges. An internal charge-pump is used to
drive the highside switches. The logic supply voltage V
part and the SPI of the device. Due to the independent logic supply voltage the control and
status information will not be lost, if there are temporary spikes or glitches on the power
supply voltage. In case of power-on (V
typical) the circuit is initialized by an internally generated power-on-reset (POR). If the
voltage V
are switched to tristate (high impedance) and the internal registers are cleared.
decreases under the minimum threshold (V
CC
2.2 Standby mode
The EN input has a pull-down resistor. The device is in standby mode if EN input isn't set to
a logic high level. All latched data will be cleared and the inputs and outputs are switched to
high impedance. In the standby mode the current at VS (VCC) is less than 3 µA (1 µA) for
CSN = high (DO in tristate). If EN is set to a logic high level then the device will enter the
active mode. In the active mode the charge pump and the supervisor functions are
activated.
increases from undervoltage to V
CC
(stabilized) is used for the logic
CC
= 2.60 V,
POR ON
POR OFF
= 2.3 V, typical), the outputs
2.3 Diagnostic functions
All diagnostic functions (overload/-current, open load, power supply over-/undervoltage,
temperature warning and thermal shutdown) are internally filtered (t
the condition has to be valid for a minimum time before the corresponding status bit in the
status registers will be set. The filters are used to improve the noise immunity of the device.
Open load and temperature warning function are intended for information purpose and will
not change the state of the bridge drivers. On contrary, the overload/-current and thermal
shutdown condition will disable the corresponding driver (overload/-current) or all drivers
(thermal shutdown), respectively. The microcontroller has to clear the status bit to reactivate
the bridge driver.
2.4 Overvoltage and undervoltage detection
If the power supply voltage Vs rises above the overvoltage threshold V
21 V), an overvoltage condition is detected. Programmable by SPI (OVW) the outputs are
switched to high impedance state (default after reset) or the overvoltage bit is set without
switching the outputs to high impedance. When the voltage Vs drops below the undervoltage threshold V
operation of the power devices without sufficient gate driving voltage (increased power
dissipation). Error condition is latched and the microcontroller needs to clear the status bits
to reactivate the drivers.
SUV OFF
, the outputs are switched to high impedance state to avoid the
= 32 µs, typical) and
GL
SOV OFF
(typical
Doc ID 11778 Rev 69/40
Device descriptionL9942
2.5 Temperature warning and thermal shutdown
If junction temperature rises above T
detectable via the SPI. If junction temperature increases above the second threshold T
the thermal shutdown bit will be set and power DMOS transistors of all output stages are
switched off to protect the device. In order to reactivate the output stages the junction
temperature must decrease below Tj SD -Tj SD HYS and the thermal shutdown bit has to be
cleared by the microcontroller.
a temperature warning flag is set which is
j TW
2.6 Inductive loads
Each half bridge is built by an internally connected highside and a low-side power DMOS
transistor. Due to the built-in reverse diodes of the output transistors, inductive loads can be
driven without external free-wheeling diodes. In order to reduce the power dissipation during
free-wheeling condition the PWM controller will switch-on the output transistor parallel to the
freewheeling diode (synchronous rectification).
2.7 Cross-current protection
The four half-brides of the device are cross-current protected by an internal delay time
depending on the programmed slew rate. If one driver (LS or HS) is turned-off then
activation of the other driver of the same half bridge will be automatically delayed by the
cross-current protection time.
j SD
,
2.8 PWM current regulation
An internal current monitor output of each high-side and low-side transistor sources a
current image which has a fixed ratio of the instantaneous load current. This current images
are compared with the current limit in PWM control. Range of limit can reach from
programmed full scale value (register1 DAC Scale) down belonging LSB value of 5 bit DAC
(register1 DAC Phase x). The data of the two 5 bit DACs comes form set up in 9 current
profiles (register2 to 6). If signal changes to logic high at pin STEP then 2 current profiles
are moved in register1 for DAC Phase A and B. Number of profile depends on phase
counter reading and direction bit in register0 (Figure 7). The bridges are switched on until
the load current sensed at HS switch exceeds the limit. Load current comparator signal is
used to detect open load or overcurrent condition also.
2.9 Decay modes
During off-time the device will use one of several decay modes programmable by SPI
(Figure 4 top). In slow decay mode HS switches are activated after cross current protection
time for synchronous rectification to reduce the power dissipation (Figure 4 detail A). In fast
decay opposite half bridge will switched on after cross current protection time, that is same
like change in the direction. For mixed decay the duration of fast decay period before slow
decay can be set to a fixed time (Figure 4 detail B continuous line) or is triggered by underrun of the load current limit (Figure 4 detail B dashed line), that can be detected at LS
switch. The special mode where the actual phase counter value is taken into account to
select the decay mode is called auto decay (e.g. in Figure 3 Micro Stepping DIR=1). If the
absolute value of the current limit is higher as during step before then PWM control uses
10/40Doc ID 11778 Rev 6
L9942Device 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.
2.10 Overcurrent detection
The overcurrent detection circuit monitors the load current in each activated output stage. In
HS stage it is in function after detection of current limit during PWM cycle and in LS stage it
works permanently. If the load current exceeds the overcurrent detection threshold for at
least t
= 4 µs, the overcurrent flag is set and the corresponding driver is switched off to
ISC
reduce the power dissipation and to protect the integrated circuit. Error condition is latched
and the microcontroller needs to clear the status bits to reactivate the drivers.
2.11 Open load detection
The open load detection monitors the activity time of the PWM controller and is available for
each phase. If the limit of load current is below around 100mA then open load condition is
detectable. Open load bit for a bridge is set in the register6 if this low current limit can't
reached after at least 15 consecutive PWM cycles.
Table 3.Truth table
DC2DC1DC0I4I3I2I1I0max. IOL
0000xxxx46mA
0010xxxx68mA
01000xxx52mA
01100xxx81mA
100000xx53mA
101000xx78mA
1100000137mA
1110000144mA
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.
2.12 Stepping modes
One full revolution can consist of four full steps, eight half steps, sixteen mini steps or 32
microsteps.
Mode is set up in register 0 and it defines increment size of phase counter. Phase counter
value defines address of corresponding current profile. Stepping modes with typical profile
values can see in Figure 3 (e.g. also so called 'Two Phase On' shown in dashed line).