SLVSGV9 august 2023 DRV8213
PRODUCTION DATA
The DRV8213 integrates a hardware stall detection feature available in the RTE package variant. The principle of the stall detection scheme relies on the fact that motor current increases during stall conditions. The DRV8213 compares the voltage on the IPROPI pin to the voltage on the VREF pin (or 510 mV as applicable) to determine whether a stall condition has occurred. The following paragraphs describe how to configure the device pins for the desired stall detection response. For information on implementing stall detection in the DSG package variant, see Section 9.2.1.3.1.2.
The nSTALL output is pulled low when stall is detected. The nSTALL pin status is latched at power-up. It requires a pull-up resistor to VCC and pulls low when a stall condition occurs. This pin can be connected to the nFAULT pin so both pins share the same pullup resistor. Combining nFAULT and nSTALL signals reduces board area needed by external components and number of input pins on the controller to detect fault and stall conditions. By having separate pullup resistors for the nSTALL and nFAULT, the microcontroller can detect a device fault separate from a stall condtition using two input pins. Connecting nSTALL directly to GND disables stall detection. Table 8-5 summarizes the nSTALL pin settings.
nSTALL | Description |
---|---|
0 V | Stall detection disabled. Float TINRUSH. If IMODE = High-Z, current regulation will occur at all times when VIPROPI ≥ VVREF. |
Pull-up resistor to VCC | Stall detection enabled. Pin pulls low to indicate a stall. |
The IPROPI pin provides the current sense signal for the hardware stall detection feature. The VREF pin sets the ITRIP current level at which a stall condition is detected. For DSG package, or RTE package and SMODE = High-Z, VVREF is internally fixed at 510 mV. When VIPROPI ≥ VVREF, then IOUT ≥ ITRIP, and the device will detect a stall condition if the tINRUSH time has passed. The IPROPI and VREF pins are also responsible for current regulation, as described in Section 8.4.2.
The TINRUSH pin sets the amount of time that the stall detection scheme will ignore the inrush current during motor startup (tINRUSH). When the input pins transition from the state IN1 = IN2 = logic low to any other logic combination, the TINRUSH pin sources 10 μA of current into the capacitor (CINRUSH) connected from TINRUSH pin to ground. Once the voltage of the TINRUSH pin exceeds 1 V, the device discharges the capacitor in less than 100 μs. The capacitor charging time is internally multiplied by 65 to determine the tINRUSH time. After tINRUSH time expires, the DRV8213 indicates a stall condition the next time VIPROPI is greater than or equal to VVREF.
The following conditions cause the stall detection scheme to ignore the inrush current for tINRUSH time -
Power-up of the DRV8213
Recovering from faults
After device exits from sleep mode
After recovering from stall, as explained in Table 8-6
Use the following formula to select the CINRUSH capacitor -
tINRUSH = 6.5 x 106 x CINRUSH
The SMODE pin sets the device's response to a stall condition. The device decides that a stall condtion has occurred when VIPROPI is greater than or equal to VVREF and the tINRUSH time has elapsed. When SMODE = logic low, the outputs disable, and the nSTALL pin latches low. When SMODE = logic high, the nSTALL pin still latches low, but the outputs continue to drive current into the motor. When SMODE = Hi-z, the device uses internal VVREF (510 mV) for stall detection, the nSTALL pin still latches low, but the outputs continue to drive current into the motor. Table 8-6 summarizes the SMODE pin settings.
SMODE | Description | Recovery from Stall Condition |
---|---|---|
0 | Latched disable with indication: the OUTx pins disable and the nSTALL pin pulls low. | To recover from this condition, device needs to enter sleep mode. nSTALL will go high after IN1 and IN2 are both low for tSLEEP. After waking up from sleep mode, the stall detection scheme ignores the inrush current for tINRUSH time. |
1 | Indication only: the OUTx pins remain active and the nSTALL pin pulls low. | nSTALL goes high if stall condition is not observed and if IN1 and IN2 are both low for stall retry time (tSTALL_RETRY). After tINRUSH time, if motor current is still higher than ITRIP, nSTALL pin is pulled low again. |
Hi-z | Indication only: the OUTx pins remain active and the nSTALL pin pulls low. Device uses internal VVREF (510 mV) for stall detection. |
The stall retry time (tSTALL_RETRY) is implemented such that it is always lower than the autosleep turnoff time (tAUTOSLEEP).
The IMODE pin determines the behavior of current regulation in the motor driver. When IMODE is floating (IMODE = High-Z), the device only performs current regulation during the tINRUSH time. Table 8-4 summarizes the IMODE pin settings. For more details on current regulation, see Section 8.4.2.2.
The following diagrams show example timing diagrams for different configurations of the hardware stall detection feature.