Simple Solution Provides PWM Signal Fault Protection

April 9, 2009
This idea was created to solve a design problem we faced a few months ago. The circuit we were working on was used to steer an H-bridge that was controlled by a TMS320F2810 digital signal processor (DSP). During the final phase of the design,

This idea was created to solve a design problem we faced a few months ago. The circuit we were working on was used to steer an H-bridge that was controlled by a TMS320F2810 digital signal processor (DSP).

During the final phase of the design, we discovered by chance that everything worked fine when the circuit was initially powered. However, if it was powered off for 5 to 15 seconds and then powered on again, the circuit started draining a lot of current through the H-bridge/load. This destabilized the power supply, and the DSP was kept in reset.

After some hardware and software debugging, we found that the problem was a steady high level on the pulse-width modulation (PWM) control lines when the TMS320F2810 was held in reset (power up). This DSP has internal pull-ups (20 to 80 k?) enabled on the uninitialized PWM outputs in order to maintain the pins at a known, defined level. Because the DSP-PWM pins are current limited to ±4 mA, they were interfaced to a MOSFET driver (LM5104) through a bootstrap capacitor to drive the H-bridge (Fig. 1).

This type of driver works very well, but the bootstrap capacitor should not be discharged completely (as in the case of a steady high level in pin 6). Although the MOSFET driver has an internal pull-down resistor attached to pin 6, its value is around 200 k?, which is much higher than the DSP pull-up. Because of that, the input level is held high when the system is in reset.

An additional pull-down resistor on pin 6 would have solved the problem, but at the cost of a higher current drain (the resistor value must be lower than the DSP pull-up) and longer low-to-high transitions. But the proposed solution (Fig. 2) guarantees that the output is high only for a defined period (depending on the values of RX, RPD, and CX) without affecting the PWM signal and with only a small increase in the power drain.

In this solution, CX defines the maximum high period and RX limits the transient current when the PWM signal is switching. RX and CX are determined by:

where:

VDSP is the DSP I/O supply,

IIO-LIM is the current limit for a DSP I/O pin,

TMAX is the maximum allowed pin 6 high time,

VTH is the threshold voltage of pin 6, and

RT = RPU + RX + RPD.

Assuming that CX is initially discharged and pin 6 is high, CX will be progressively charged through RPU, RX, and RPD. If PWM1 toggles to low in a time shorter than TMAX, CX will discharge fast through RX and D1 and the cycle starts again. But if PWM1 stays high longer than TMAX, the voltage on pin 6 will go under VTH and the LM5104 will switch the output to low.

Because of component tolerances, the calculation of TMAX is approximate. In practice, that poses no problem since controlled system evolution is far slower than the PWM control signal. One final tip: To limit the circuit EMI and prevent latch-up, the value of RX should be higher than that calculated by the formula.

Sponsored Recommendations

TTI Transportation Resource Center

April 8, 2024
From sensors to vehicle electrification, from design to production, on-board and off-board a TTI Transportation Specialist will help you keep moving into the future. TTI has been...

Cornell Dubilier: Push EV Charging to Higher Productivity and Lower Recharge Times

April 8, 2024
Optimized for high efficiency power inverter/converter level 3 EV charging systems, CDE capacitors offer high capacitance values, low inductance (< 5 nH), high ripple current ...

TTI Hybrid & Electric Vehicles Line Card

April 8, 2024
Components for Infrastructure, Connectivity and On-board Systems TTI stocks the premier electrical components that hybrid and electric vehicle manufacturers and suppliers need...

Bourns: Automotive-Grade Components for the Rough Road Ahead

April 8, 2024
The electronics needed for transportation today is getting increasingly more demanding and sophisticated, requiring not only high quality components but those that interface well...

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!