Datasheet
Datasheet
Digitally Programmable
Dual Full-Bridge MOSFET Driver
Typical Application
3985-DS
Digitally Programmable
A3985
Dual Full-Bridge MOSFET Driver
Description (continued) are protected from shoot-through by integrated crossover-control
control for a variety of step methods, from microstepping to full-step and programmable dead time.
drive. Load current in the external power MOSFET full-bridges is
In addition to crossover current control, internal circuit protection
set in 1.56% increments of the maximum value.
provides thermal shutdown with hysteresis and undervoltage lockout.
The above-supply voltage required for the high-side N-channel Special power-up sequencing is not required. This component is
MOSFETs is provided by a bootstrap capacitor. Efficiency is supplied in a 38-pin TSSOP (package LD) with 100% matte tin
enhanced by using synchronous rectification and the power FETs leadframe plating.
Selection Guide
Part Number Packing*
A3985SLD-T Tube, 50 pieces per tube
A3985SLDTR-T Tape and reel, 4000 pieces per reel
*Contact Allegro for additional packing options
+5 V VMOTOR
VDD VBB
VREG
Bandgap Regulator
CREG P
Phase 1A Bridge1
C1A
CBOOT1A
REF VREF
GH1A
High-Side
Drive RGH1A RGH1B
S1A
VREG
6-bit
GL1A
DAC Low-Side
Drive LSS1 RGL1A RGL1B
Programmable
PWM Timer SENSE1
SDO Blanking
Mixed Decay Phase 1B RSENSE1
P
Low-Side GL1B
Drive
S1B
Phase 1
Phase 1
SDI Control Logic High-Side GH1B
Drive CBOOT1B
C1B
VMOTOR
STR Serial Port Bridge2
Phase 2A C2A
CBOOT2A
GH2A
SCK Phase 2 High-Side
Phase 2 Drive RGH2A RGH2B
S2A
Control Logic
VREG
GL2A
Low-Side
Drive LSS2 RGL2A RGL2B
WC
Programmable
SENSE2
PWM Timer
Blanking RSENSE2
Phase 2B
Mixed Decay P
Low-Side GL2B
Drive
6-bit
DAC S2B
ENABLE
VREF GH2B
High-Side
Drive CBOOT2B
OSC Programmable Divider Protection
UVLO C2B
Oscillator TSD
GND
THERMAL CHARACTERISTICS
Characteristic Symbol Test Conditions* Value Units
4-layer PCB, based on JEDEC standard 47 ºC/W
Package Thermal Resistance RθJA
1-layer PCB with copper limited to solder pads 114 ºC/W
*Additional thermal information available on Allegro Web site.
WC
tSLWCH tSWCS tSWCH
STR
tSTLD tSCKH tSCKL tSTLG tSTRH
SCK
tSDIS tSDIH
Functional Description
Basic Operation To limit the voltage drop when the charge current is pro-
The A3985 is a highly-configurable dual full-bridge FET vided, this pin should be decoupled with a ceramic capaci-
driver with built-in digital current control. All features are tor, CREG, to ground. The value CREG should typically
accessed through a simple SPI (Serial Peripheral Interface) be 40 times the value of the bootstrap capacitor for PWM
compatible serial port, allowing multiple motors to be con- frequencies up to 14 kHz. Above 14 kHz, the minimum
trolled with as few as three wires. recommended value can be determined from the following
formula:
Because the full-bridge control circuits are independently
controlled, the A3985 can be used to drive 2-phase bipolar CREG > CBOOT × 3 × fPWM ,
stepper motors and 2-phase brushless dc (BLDC) motors. where CREG and CBOOT are in nF, and fPWM is the maximum
The current in each of the two external power full-bridges PWM frequency, in kHz. VREG is monitored, and if the volt-
(which are all N-channel MOSFETs) is regulated by a fixed
age becomes too low, the outputs will be disabled.
off-time PWM control circuit. The full-bridge current at each
step is set by the value of an external current sense resistor, REF The reference voltage, VREF, at this pin sets the
RSENSEX , in the ground connection to the bridge, a reference maximum (100%) peak current. The REF input is internally
voltage, VREF, and the output of the DAC controlled by the limited to 2 V when a 20 kΩ pull-up resistor is connected
serial data. between VREF and VDD. This allows the maximum refer-
The use of PWM with N-channel MOSFETs provides the ence voltage to be set without the need for an externally-
most cost-effective solution for a high efficiency motor drive. generated voltage. An external reference voltage below the
The A3985 provides all the necessary circuits to ensure maximum can also be input on this pin. The voltage at VREF
that the gate-source voltage of both high-side and low-side is divided by the range select ratio Gm to produce the DAC
external MOSFETs are above 10 V, and that there is no cross- reference voltage level.
conduction (shoot through) in the external bridge. Specific OSC The PWM timing is based on a master clock, typically
functions are described more fully in the following sections. running at 4 MHz. The master clock period is used to derive
Power Supplies the PWM off-time, dead time, and blanking time.
Two power connections are required. The motor power sup- The master clock frequency can be set by an internal oscil-
ply should be connected to VBB to provide the gate drive lator or by one of three division ratios of an external clock.
levels. Power for internal logic is provided by the VDD These four options are selected by bits D12 and D13 of the
input. Internal logic is designed to operate from 3 to 5.5 V, Control register word.
allowing the use of 3.3 or 5 V external logic interface cir-
When the A3985 is configured to use an external clock,
cuits.
this is input on the OSC pin and will usually provide more
GND The ground pin is a reference voltage for internal logic precision than using the internal oscillator. The three internal
and analog circuits. There is no large current flow through divider alternatives provide flexibility in setting the master
this pin. To avoid any noise from switching circuits, this clock frequency based on available external system clocks.
should have an independent trace to the supply ground star
If internal timing is selected, fOSC is configured by using
point.
an external resistor, ROSC, connected from the OSC pin to
VREG The voltage at this pin is generated by a low-drop-out GND. This sets the frequency (in MHz) to approximately:
linear regulator from the VBB supply. It is used to oper-
ate the low-side gate drive outputs, GLxx, and to provide fOSC ≈ 100 / (6 + 1.9 × ROSC) ,
the charging current for the bootstrap capacitors, CBOOTx. where ROSC, in kΩ, is typically between 50 kΩ and 10 kΩ.
SDI, SCK, STR, SDO These are the serial port interface is low. When the output swings high, the voltage on this ter-
pins. Data is clocked into SDI by a clock signal on SCK. minal rises with the output to provide the boosted gate volt-
The data is then latched by a signal on STR. If required, the age needed for the high-side N-channel power MOSFETs.
serial data out pin, SDO, can be used to read back the previ- The bootstrap capacitor should be ceramic and have a value
ously-latched serial data or to form a daisy chain for multiple of 10 to 20 times the total MOSFET gate capacitance.
controllers using a single STR connection. (For bit assign-
GH1A, GH1B, GH2A, and GH2B High-side gate drive
ment details, see the Bit Assignments table.) outputs for external N-channel MOSFETs. External series
WC This input provides a lockout capability for writing gate resistors can be used to control the slew rate seen at
to the Control register. When set to logic high, no changes the gate, thereby controlling the di/dt and dv/dt at the motor
can be made to the Control register through the serial port. terminals. GHxx = 1 (high) means that the upper half of the
When at logic low, the data on the serial port will update the driver is turned on and will source current to the gate of the
Control register (if selected by D0 = 1) while STR is high. high-side MOSFET in the external motor-driving bridge.
This provides a mechanism to avoid inadvertently changing GHxx = 0 (low) means that the lower half of the driver is
the Control register settings by erroneous or corrupt serial turned on and will sink current from the external MOSFET
data signals. gate circuit to the respective Sxx pin.
S1A, S1B, S2A, and S2B Directly connected to the
Gate Drive motor, these terminals sense the voltages switched across the
load and define the negative supply for the floating high-side
The A3985 is designed to drive external power N-chan-
drivers. The discharge current from the high-side MOSFET
nel MOSFETs. It supplies the transient currents necessary
gate capacitance flows through these connections which
to quickly charge and discharge the external FET gate
should have low impedance traces to the MOSFET bridge.
capacitance in order to reduce dissipation in the external
FET during switching. The charge and discharge rate can GL1A, GL1B, GL2A, and GL2B Low-side gate drive
be controlled using an external resistor, RGx, in series with outputs for external N-channel MOSFETs. External series
the connection to the gate of the FET. Cross-conduction is gate resistors (as close as possible to the MOSFET gate)
prevented by the gate drive circuits which introduce a dead can be used to reduce the slew rate seen at the gate, thereby
time, tDEAD , between switching one FET off and the comple- controlling the di/dt and dv/dt at the motor terminals.
mentary FET on. tDEAD is at least 2, 3, 4, or 6 periods of the GLxx = 1 (high) means that the upper half of the driver is
master clock, depending on the corresponding value set in turned on and will source current to the gate of the low-side
the Control register (Word 1: bits D1 and D2). tDEAD can be MOSFET in the external motor-driving bridge. GLxx = 0
up to 1 cycle longer than the programmed value, to allow (low) means that the lower half of the driver is turned on and
synchronization with the master clock. will sink current from the gate of the external MOSFET to
the LSSx pin.
ENABLE This input simply turns off all of the power MOS-
LSS1 and LSS2 Low-side return path for discharge of the
FETs. Set to logic high to disable outputs. When at logic low,
gate capacitors, connected to the common sources of the
the internal control enables the outputs as required. Inputs to
low-side external FETs through low-impedance traces.
the registers and the internal sequencing logic are all active
independent of the ENABLE input state.
Internal PWM Current Control
C1A, C1B, C2A, and C2B High-side connections for the Each full-bridge is independently controlled by a fixed off-
bootstrap capacitors, CBOOTx, and positive supply for high- time PWM current control circuit that limits the load current
side gate drivers. The bootstrap capacitors are charged to in the phase to a desired value, ITrip. Initially, a diagonal pair
approximately VREG when the associated output Sxx terminal of source and sink MOSFETs are enabled and current flows
through the motor winding and the current sense resistor, blanking function The blank timer is reset when PHASE is
RSENSEx. When the voltage across RSENSEx equals the changed.
DAC output voltage, the current sense comparator resets
The blank time can be set to 4, 6, 8, or 12 periods of the mas-
the PWM latch, which turns off the source MOSFET (slow
ter clock by programming the blank time bits in the Control
decay mode) or the sink and source MOSFETs (fast decay
register (Word1, Bits D1 and D2) using the serial port.
mode). The maximum value of current limiting is set by the
selection of RSENSE and the voltage at the REF input, with a Dead Time To prevent cross-conduction (shoot through)
transconductance function approximated by: in the power full-bridge, a dead time, tDEAD , is introduced
ITrip(max) = VREF / (Gm × RSENSE) , between switching one MOSFET off and switching the
complementary MOSFET on. The dead time, tDEAD, is
where Gm is the range factor defined by in the Data register nominally half of tBLANK , but may be up to 1 cycle longer to
(Word0: Bits D17 and D18).
synchronize with the master clock.
The DAC output reduces the VREF output to the current
sense comparator, VDAC, in precise steps: Mixed Decay Operation
VDAC = [(1 + DAC) × VREF] / 64 , Mixed decay is a technique that provides greater control
of phase currents while the current is decreasing. When a
where DAC is the decimal equivalent value of the Bridge stepper motor is driven at high speed, the back EMF from
DAC bits in the Data register (Word0: Bits D1 through D6 the motor will lag behind the driving current. If a passive
for Bridge 1, Bits 9 through 14 for Bridge 2). (Active codes current decay mode, such as slow decay, is used in the cur-
are represented by the values 1 through 63. Programming a rent control scheme, then the motor back EMF can cause the
DAC input code to 0 disables the corresponding bridge, and phase current to rise out of control. Mixed decay eliminates
results in minimum load current.) this effect by putting the full-bridge initially into fast decay,
The current trip level for each DAC value then becomes: and then switching to slow decay after some time. Because
fast decay is an active (driven) decay mode, this portion of
ITripDAC = VDAC / (Gm × RSENSE) . the current decay cycle will ensure that the current remains
in control. Using fast decay for the full current decay time
PWM Timer Function All bridge control timing is based (off-time, tOFF) would result in a large ripple current, but
on the master clock. The PWM timer is programmed via the switching to slow decay once the current is in control will
serial port to provide fixed off-time PWM signals to the con-
reduce the ripple current value. The portion of the off-time
trol block. The off-time, tOFF , is selected by programming
that the full-bridge has to remain in fast decay will depend
the Off-Time bits in the Control register (Word1, Bits D3
on the characteristics and the speed of the motor.
through D7) using the serial port. tOFF may be up to 1 cycle
longer than the programmed value, to synchronize with the When the phase current is rising, the motor back EMF does
master clock. not affect the current control, and slow decay may be used
to minimize the phase current ripple. The A3985 must be
Blanking When a source driver is turned on, a current
programmed to switch between slow decay, when the cur-
spike occurs due to the reverse-recovery currents of the
rent is rising, and mixed decay, when the current is falling.
clamp diodes and switching transients related to distributed
To simplify this programming sequence the decay mode is
capacitance in the load. To prevent false overcurrent detec-
included in the data word (Word0) with the phase current trip
tion due to this current spike, the output from the current
level and the phase current direction.
sense comparator is ignored (blanked) for a duration of time
called the blank time. The blank timer runs, when a source When mixed decay is used, the portion of the off-time that
power MOSFET is turned on, to provide the programmable the full-bridge remains in fast decay, tFD , is selected by pro-
gramming the Fast Decay Time bits in the Control register be used to connect several A3985s in a serial daisy chain.
(Word1, Bits D8 through D11). If tFD is set longer than tOFF , The programmable functions allow maximum flexibility in
the device effectively operates in full fast decay mode. configuring the PWM to the motor drive requirements. The
Selecting between slow decay and mixed decay is done by serial data is written as two 19-bit words: 18 bits of data plus
programming the Mode bits in the Data register (Word0, Bits 1 bit to select the destination register.
D8 and D16) using the serial port.
Serial Port Write Timing Operation The serial port tim-
ing requirements are specified in the electrical characteristics
Synchronous Rectification When a PWM off-cycle
table, and illustrated in the Serial Data Timing diagram.
is triggered, load current recirculates according to the decay
mode selected by the control logic. The synchronous rectifi- Data is received on the SDI pin and clocked through a shift
cation feature turns on the appropriate MOSFETs during the register on the rising edge of the clock signal received on the
current decay and effectively shorts out the body diodes with SCK pin. STR is normally held high, and is only brought low
the low RDS(ON) of the MOSFET. This lowers power dis- to initiate a write cycle. No data is clocked through the shift
sipation significantly and eliminates the need for additional
register when STR is high.
Schottky diodes.
The 18 data bits for a register are input MSB first, fol-
Synchronous rectification can be set to one of three distinct lowed by the register select bit, D0. After D0 is clocked
modes by programming the Synchronous Rectification bits into the shift register, STR goes high to latch the data into
in the Control register (Word1, Bits D14 through D15) using the selected register. When this occurs, the internal control
the serial port. The modes are: circuits immediately act on the new data.
• Active This mode prevents reversal of the load current by
The Control register can only be written if the WC pin is at
turning off synchronous rectification when a zero current
logic low. If WC is high and D0 = 1 (indicating the Control
level is detected. This prevents the motor winding from
conducting in the reverse direction. register), the data will be ignored on the rising edge of STR.
• Passive This mode allows reversal of current, but will The state of the WC pin does not affect writing to the Data
turn of the synchronous rectifier circuit if the load current register, and the pin can be tied to GND when Control regis-
inversion ramps up to the current limit, ITripDAC. ter protection is not required.
• Disabled During this mode, MOSFET switching does not
Note that the number of bits clocked through the shift reg-
occur during load recirculation. Usually, this setting would
ister is irrelevant and only the last 19 bits before STR goes
only be used with 4 additional external clamp diodes per
bridge. high will be latched. This allows several A3985 devices to be
daisy-chained and updated together with a single STR rising
Shutdown Operation In the event of an overtempera- edge.
ture fault, or an undervoltage fault on VREG, the gate drive
outputs are disabled until the fault condition is removed.
Data Register (Word 0) Bit Assignments
At power-up, and in the event of low voltage at VDD, the
under voltage lockout (UVLO) circuit disables the gate drive This section describes the function of the individual bit
outputs until the voltage at VDD reaches the minimum level. values in the Data register, one of the two registers accessed
Once VDD is above the minimum level, the data in the serial through the serial port. The assignments are summarized in
port is reset to all 0s, ensuring a safe power-up condition. the Bit Assignments table.
D0 – Register Select Indicates which register should
Serial Interface
receive the data. For the Data register, this is set to 0.
The A3985 is controlled by a 3-wire serial port using data,
clock and strobe inputs on the SDI, SCK and STR pins D1 through D6 – Bridge 1 Linear DAC These six bits
respectively. An additional serial data output on SDO can set the desired current level for Bridge 1. Setting all six bits
to 0 disables Bridge 1, with all drivers off (see Internal PWM Control Register (Word 1) Bit Assignments
Current Control, in the Functional Description section).
This section describes the function of the individual bit val-
D7 – Bridge 1 Phase Controls the direction of output cur- ues in the Control register, one of the two registers accessed
rent for Bridge (load) 1. through the serial port. The assignments are summarized in
D7 S1A S1B the Bit Assignments table.
0 L H Note that the Control register can only be updated when the
1 H L WC pin is logic low.
D8 – Bridge 1 Mode Determines whether slow decay is D0 – Register Select Indicates which register should
forced or mixed decay, according to Word 1 Bits D3 to D11, receive the data. For the Control register, this is set to 1.
is allowed.
D8 Mode
D1 and D2 – Blank Time These two bits set the value of
the scaling factor, α / fMCK, used for determining tBLANK for
0 Mixed-decay
the current-sense comparator. The factor for tDEAD also is set,
1 Slow-decay
because tDEAD = tBLANK / 2 .
D9 – D14 Bridge 2 Linear DAC These six bits set the
desired current level for Bridge 2. Setting all six bits to 0 D2 D1 tBLANK tDEAD
disables Bridge 2, with all drivers off (see Internal PWM (tBLANK/ 2)
Current Control, in the Functional Description section). 0 0 4 / fMCK 2 / fMCK
D15 – Bridge 2 Phase Controls the direction of output 0 1 6 / fMCK 3 / fMCK
current for Bridge (load) 2. 1 0 8 / fMCK 4 / fMCK
Note that, for tFD > tOFF , the device effectively operates in D14 and D15 – Synchronous Rectification Two bits
full fast-decay mode. are used to set the mode for sunchronous rectification. The
modes are described in the synchronous rectification section
D12 and D13 – Master Clock Control An internal
of the Functional Description section.
oscillator can be used for the timing functions, and if more
precise control is required, an external clock can be input to Synchronous
the OSC terminal (for configuration information, refer to the D15 D14
Rectification Mode
Functional Description section). To accommodate a wider
0 0 Disabled
range of external system clocks, an internal divider is pro-
vided to generate the desired master clock frequency, fMCK , 0 1 Disabled
according to the following table: 1 0 Active
1 1 Passive
D13 D12 Master Clock Source and fMCK
D16 and D17 – Reserved These bits are reserved for test-
0 0 Internal oscillator* ing and should be programmed to 0 during normal operation.
0 1 External clock rate D18 – Idle Mode The device can be placed in a low power
1 0 External clock rate / 2 mode by writing a 0 to D18. This disables the outputs and
1 1 External clock rate / 4 the device draws a lower load supply current. The undervolt-
age monitor circuit remains active. When leaving idle mode,
*4 MHz typical, configurable with external resistor, ROSC.
D18 should be set to 1 for 1 ms before attempting to enable
any output driver.
Applications Information
9.8 .386 8º
A
9.6 .378 0º
38 B
0.20 .008
0.09 .004
4.5 .177
4.3 .169
0.75 .030
0.45 .018
6.6 .260
6.2 .244
A 1 .039
REF
1 2
0.25 .010
0.27 .011
38X 0.50 .020 1.20 .047
0.17 .007
MAX
0.08 [.003] M C A B
0.15 .006
0.00 .000
1 2
The products described here are manufactured under one or more U.S. patents or U.S. patents pending.
Allegro MicroSystems, Inc. reserves the right to make, from time to time, such departures from the detail specifications as may be
required to permit improvements in the performance, reliability, or manufacturability of its products. Before placing an order, the user is
cautioned to verify that the information being relied upon is current.
Allegro products are not authorized for use as critical components in life-support devices or systems without express written approval.
The information included herein is believed to be accurate and reliable. However, Allegro MicroSystems, Inc. assumes no responsibility
for its use; nor for any infringement of patents or other rights of third parties which may result from its use.