i intend to use 1 MCU open-drain pin to drive 4 npn's as in the figure.
IoL of the pin is 10mA.
each npn needs to be injected 1mA into the base for saturation.
So, this is what i expect:
- when the NMOS of the port is off -> all the NPN are turned on and the leds will be lighted up.
- when the NMOS of the port is on -> all the NPN are off, and the leds are off.
instead of 560 Ohm resistor put pnp transistor with collector connected to npn's base resistors, base connected through resistor to open-drain mcu output
and emitter to Vcc
The 560ohm resistor will give a higher gate bias value. At 560ohms the gate bias is about 2.5 volts (asumeing 5volt VCC) at 1k ohms the gate bias is about 1.8 volts. I'm not sure how this effects the responce of the mosfet, but the closer to 'on' you can bias a mosfet without it actually turning on the better. Considering that lower resistance draws 8ma's which is pretty close to the 10ma limit of the pin it's probably the best value to use, unless the rise/fall time of the I/O pin is too high with the large current draw.
The "push-pull" output still will be comfortably drive these 4 transistors ..
Keep in mind, that common NPN transistors have β>>100, and that to drive, say, 10mA collector current of NPN transistor you need I(base) =Ic(ollector)/β = 10mA/100 = 100µA (or less, for β>100) ..
For 4 transistors, therefore, the driving current will be <400µA, so with 2mA Ioh of the micro's pin the driving capability is ≈20 of NPN transistors ..
In this case, if you don't want to invert the phase of the signal, add another NPN transistor, and connect its base directly to the microcontroller pin, collector to +5 and emitter (through resistos) to bases of these 4 transistors ..
Obviously, you can do it in one-hundred-and-one other ways ..
attached is the modified circuit according to your suggestion.
i'm not so clear about calculating:
- how the current flows in the npn connected to the MCU pin? how much current is pumped out from the mcu pin?
- the current flowing into the base of the other 4 NPN's? are they still (5-0.75)/3K9 for each NPN?