Automotive Stepper Driver
A4992
13
Allegro MicroSystems, LLC
115 Northeast Cutoff
Worcester, Massachusetts 01615-0036 U.S.A.
1.508.853.5000; www.allegromicro.com
Each line of the phase current table has a 6-bit value, per phase,
to set the DAC level for each phase plus an additional bit, per
phase, to determine the current direction in each phase. The step
angle number sets the electrical angle of the stepper motor in
sixteenth microsteps, approximately equivalent to electrical steps
of 5.625°.
On first power-up or after a power-on reset, the step angle
number is set to 8, equivalent to the electrical 45° position. This
position is referred to as the home position. The maximum cur-
rent in each phase, ISMAX , is defined by the sense resistor and the
voltage at the REF pin, as described in the Phase Current Control
section, above. The phase currents for each entry in the phase
current table are expressed as a percentage of this maximum
phase current.
A pulse on the STEP input automatically increments the step
angle number when DIR is high and decrements the step angle
number when DIR is low. The magnitude of the resulting change
in angle is determined by the selected microstep mode. When
step and direction control mode is programmed, the microstep
mode is determined solely by the state of the MS input at power-
up or after a power-on reset. Half step is selected if MS is low,
and quarter step is selected if MS is high. When serial mode is
programmed, this allocation and three other pairs of step modes
are available, allowing full and eighth steps on STEP input (refer
to the Serial Interface section, below).
The serial interface can also be used to control the stepper motor
directly. This facility enables full control of the stepper motor
at any microstep resolution up to 1/16 microstep, plus the abil-
ity to change microstep resolution during operation, from one
microstep to the next. When using the serial interface to control
the stepper motor a step change value (6-bit) is input through the
serial interface to increment or decrement the step angle number.
The step change value is a two’s complement (2’s C) number,
where a positive value increments the step angle number and
a negative value decrements the step angle number. A single
step change in the step angle number is equivalent to a single
1/16 microstep. Therefore, for correct motor movement, the step
change value should be restricted to no greater than 16 steps posi-
tive or negative.
In both control input modes, the resulting step angle number is
used to determine the phase current value and current direction
for each phase based on the phase current table. The decay mode
is determined by the position in the phase current table and the
intended direction of rotation of the motor.
Diagnostics
The A4992 integrates several diagnostic features to protect the
driver and load, from both fault conditions and extreme operat-
ing environments. Some of these features automatically disable
the current drive to protect the outputs and the load. Others only
provide an indication of the likely fault status (see table 1).
A single open-drain diagnostic output pin, DIAG, provides mul-
tiple diagnostic signals. At power-up or after a power-on reset,
the DIAG pin outputs a simple Fault flag, which is low if a fault
is present. This Fault flag remains low while the fault is present
or if one of the latched faults (short circuit or serial write ) has
been detected.
In addition to the Fault flag, which signals all faults, the DIAG
output can be programmed through the serial interface to provide
four specific diagnostic signals:
• Stall signal, which goes low only when a stall is detected.
• Open load signal, which goes low only when an open load is
detected.
• Temperature signal, which goes low only when the chip tem-
perature rises above either the Hot Temperature Warning or the
Overtemperature thresholds.
• Supply voltage signal, which goes low only when:
▫ VBB goes above the VBB overvoltage threshold,
▫ VBB goes below the VBB undervoltage threshold, or
▫ VREG goes below the VREG undervoltage threshold.
Table 1. Fault Table
Diagnostic Action Latched
VBB Overvoltage Disable outputs, set Fault flag No
VBB Undervoltage Set Fault flag No
VREG Undervoltage Disable outputs, set Fault flag No
Power-On Reset Power-down, full reset No
Temperature Warning Set Fault flag No
Overtemperature Disable outputs, set Fault flag No
Bridge Short Disable outputs, set Fault flag Yes
Bridge Open Set Fault flag No
Stall Detect Set Fault flag No
Serial Write Fault Set Fault flag Yes