Hello,
I am driving a brushed DC motor, 24V 0.5A in an actuator with a L298P.
For the second time I have caused the magic smoke to escape from the L298P.
The first time I am pretty sure the cause was that I reversed the direction bit without taking enable low, probably causing a short between the 2 power transistors of the bridge. I just had a small resistive load during that test.
The second time, I made sure to disallow direction changing while enable is on, and added 20 millisecond delay after lowering enable before flipping the direction bit... and yet I obtained a nice big spark and fumes, and the results are shown on the attached picture. L298P blown up with visible hole in the casing...

My current impression is that probably the motor was still spinning due to inertia while I did the direction flipping after 20 milliseconds and putting enable on after 10 more milliseconds.
Any other ideas of probable/possible causes ?
Thanks and kind regards,
Christian