SLVSA74E May 2010 – September 2015 DRV8829
PRODUCTION DATA.
The DRV8829 is an integrated motor driver solution for bipolar stepper motors or single/dual brushed-DC motors. The device integrates an NMOS H-bridge and current regulation circuitry. The DRV8829 can be powered with a supply voltage from 8.2 to 45 V, and is capable of providing an output current up to 5-A peak or 3.5-A rms. Actual operable rms current will depend on ambient temperature, supply voltage, and PCP ground plane size.
A simple PH/EN interface allows easy interfacing to the controller circuit.
The current regulation is highly configurable, with several decay modes of operation. The decay mode can be selected as a fixed slow, mixed, or fast decay.
A current scalar feature allows the controller to scale the output current without needing to scale the analog reference voltage input VREF. The DAC is accessed using digital input pins. This allows the controller to save power by decreasing the current consumption when not required.
A low-power sleep mode is included which allows the system to save power when not driving the motor.
The DRV8829 contains one H-bridge motor driver with current-control PWM circuitry. Figure 3 shows a block diagram of the motor control circuitry. A bipolar stepper motor is shown, but the driver can also drive a DC motor.
There are multiple VM, ISEN, OUT, and VREF pins. All like-named pins must be connected together on the PCB.
After the current is enabled in the H-bridge, the voltage on the ISEN pin is ignored for a fixed period of time before enabling the current sense circuitry. This blanking time is fixed at 3.75 μs. The blanking time also sets the minimum on time of the PWM.
The nRESET pin, when driven active low, resets the internal logic. It also disables the H-bridge drivers. All inputs are ignored while nRESET is active.
Driving nSLEEP low will put the device into a low-power sleep state. In this state, the H-bridge is disabled, the gate drive charge pump is stopped, the V3P3OUT regulator is disabled, and all internal clocks are stopped. In this state all inputs are ignored until nSLEEP returns inactive high. When returning from sleep mode, some time (approximately 1 ms) needs to pass before the motor driver becomes fully operational. The nRESET and nSLEEP have internal pulldown resistors of approximately 100 kΩ. These signals need to be driven to logic high for device operation.
The DRV8829 is fully protected against undervoltage, overcurrent and overtemperature events.
An analog current limit circuit on each FET limits the current through the FET by removing the gate drive. If this analog current limit persists for longer than the OCP time, all FETs in the H-bridge will be disabled and the nFAULT pin will be driven low. The device will remain disabled until either nRESET pin is applied, or VM is removed and re-applied.
Overcurrent conditions on both high and low side devices; that is, a short to ground, supply, or across the motor winding will all result in an overcurrent shutdown. The overcurrent protection does not use the current sense circuitry used for PWM current control, and is independent of the ISENSE resistor value or VREF voltage.
If the die temperature exceeds safe limits, all FETs in the H-bridge will be disabled and the nFAULT pin will be driven low. Once the die temperature has fallen to a safe level operation will automatically resume.
If at any time the voltage on the VM pins falls below the undervoltage lockout threshold voltage, all circuitry in the device will be disabled and internal logic will be reset. Operation will resume when VM rises above the UVLO threshold.
The current through the motor winding is regulated by a fixed-frequency PWM current regulation, or current chopping. When the H-bridge is enabled, current rises through the winding at a rate dependent on the DC voltage and inductance of the winding. Once the current hits the current chopping threshold, the bridge disables the current until the beginning of the next PWM cycle.
For stepping motors, current regulation is normally used at all times, and can changing the current can be used to microstep the motor. For DC motors, current regulation is used to limit the start-up and stall current of the motor.
If the current regulation feature is not needed, it can be disabled by connecting the ISENSE pins directly to ground and the VREF pins to V3P3.
The PWM chopping current in each bridge is set by a comparator which compares the voltage across a current sense resistor connected to the ISEN pin, multiplied by a factor of 5, with a reference voltage. The reference voltage is input from the xVREF pins, and is scaled by a 5-bit DAC that allows current settings of zero to 100% in an approximately sinusoidal sequence.
The full-scale (100%) chopping current is calculated in Equation 1.
Example:
If a 0.25-Ω sense resistor is used and the VREFx pin is 2.5 V, the full-scale (100%) chopping current will be 2.5 V / (5 × 0.25 Ω) = 2 A.
Five input pins (I0 - I4) are used to scale the current in the bridge as a percentage of the full-scale current set by the VREF input pin and sense resistance. The I0 - I4 pins have internal pulldown resistors of approximately 100 kΩ. The function of the pins is shown in Table 1.
I[4..0] | RELATIVE CURRENT (% FULL-SCALE CHOPPING CURRENT) |
|
---|---|---|
0x00h | 0% (Bridge disabled) | |
0x01h | 5% | |
0x02h | 10% | |
0x03h | 15% | |
0x04h | 20% | |
0x05h | 24% | |
0x06h | 29% | |
0x07h | 34% | |
0x08h | 38% | |
0x09h | 43% | |
0x0Ah | 47% | |
0x0Bh | 51% | |
0x0Ch | 56% | |
0x0Dh | 60% | |
0x0Eh | 63% | |
0x0Fh | 67% | |
0x10h | 71% | |
0x11h | 74% | |
0x12h | 77% | |
0x13h | 80% | |
0x14h | 83% | |
0x15h | 86% | |
0x16h | 88% | |
0x17h | 90% | |
0x18h | 92% | |
0x19h | 94% | |
0x1Ah | 96% | |
0x1Bh | 97% | |
0x1Ch | 98% | |
0x1Dh | 99% | |
0x1Eh | 100% | |
0x1Fh | 100% |
The PHASE input pin controls the direction of current flow through the H-bridge. The ENBL input pin enables the H-bridge outputs when active high. Table 2 shows the logic.
ENBL | PHASE | OUT1 | OUT2 |
---|---|---|---|
0 | X | Z | Z |
1 | 1 | H | L |
1 | 0 | L | H |
The control inputs have internal pulldown resistors of approximately 100 kΩ.
During PWM current chopping, the H-bridge is enabled to drive current through the motor winding until the PWM current chopping threshold is reached. This is shown in Figure 4 as case 1. The current flow direction shown indicates the state when the PHASE pin is high.
Once the chopping current threshold is reached, the H-bridge can operate in two different states, fast decay or slow decay.
In fast decay mode, once the PWM chopping current level has been reached, the H-bridge reverses state to allow winding current to flow in a reverse direction. As the winding current approaches zero, the bridge is disabled to prevent any reverse current flow. Fast decay mode is shown in Figure 4 as case 2.
In slow decay mode, winding current is recirculated by enabling both of the low-side FETs in the bridge. This is shown in Figure 4 as case 3.
The DRV8829 supports fast decay, slow decay and a mixed decay mode. Slow, fast, or mixed decay mode is selected by the state of the DECAY pin - logic low selects slow decay, open selects mixed decay operation, and logic high sets fast decay mode. The DECAY pin has both an internal pullup resistor of approximately 130 kΩ and an internal pulldown resistor of approximately 80 kΩ. This sets the mixed decay mode if the pin is left open or undriven.
Mixed decay mode begins as fast decay, but at a fixed period of time (75% of the PWM cycle) switches to slow decay mode for the remainder of the fixed PWM period.