# MCU Output Driver Verification

I am creating a circuit in which a MCU (STM32) must drive 12VDC outputs, and wanted to make sure there wasn't anything missing in my driver circuit for the outputs.

-R1 is the inrush current limiting resistor
-R2 is the pull-down resister to keep the mosfet gate low if the MCU pin floats,
-D1 is the flyback diode, for protection against inductive loads, which will be a use case.


PS: I forgot to change the diode in the circuit, the actual part number is GSD2004W

simulate this circuit – Schematic created using CircuitLab

The load will be connected to the 12V power line and the ground will be switched via the out pin.

The expected load will be practically anything as long as it is 12V and less than 250mA. But there will definitely be relay coils, indicator lights, and solid state relays attached to the output.

If there is anything I am missing that would be necessary or even a good idea or small improvement to include? I just don't want to spin a board with this and find out something wasn't working as intended, so some assurance would be nice.

• How would the output go high? Or is it a sort of "only pull down output"? – Vladimir Cravero Aug 11 '14 at 15:16
• Wouldn't it be easier to use a ULN'? – Ignacio Vazquez-Abrams Aug 11 '14 at 15:16
• What is the expected load? A relay coil? – Spehro Pefhany Aug 11 '14 at 15:16
• Ah right, forgot to mention that, this is a low side driver so whatever the device may which is getting switched will be powered off of the 12V line and then this will be connected to the ground. – Nick Aug 11 '14 at 15:19
• The expected load could be a relay coil, a solid state relay, a small motor, indicator lamp, or small resistive load. – Nick Aug 11 '14 at 15:21

I suggest using something like an AO3418, which is inexpensive and guaranteed to have less than 85m$\Omega$ Rds(on) with 2.5V drive (at Tj=25°C). That would allow you to safely drive at least 1A with 3.3V drive over a reasonable temperature range, and it will have very low 'on' drop- typically something like 10mV when driving 200mA.