Use one or two transistors to switch an LED from PIC

ioledtransistors

I'm fairly new to electronics – I've had a reasonable amount of success with getting PCBs made using Eagle, but it was mostly wiring together breakouts and fairly simple stuff. I've spend the last two days learning about mosfets, resistors and transistors though, and one part of an existing circuit I'm using has me confused.

The LED being driven is a 5mm white 20mA. The existing schematic is here:

existing schematic

The PIC that is feeding "Torch" has an absolute maximum rating of 0.025A @ 3.3V [CORRECTED – previously stated 0.25A] on an IO pin (PIC16F1513). I don't understand why this simpler layout (on the right) wasn't used instead:
enter image description here

(picture taken from here: http://forum.allaboutcircuits.com/attachments/transistor-and-led-png.39778)

The question is: does the first circuit with two transistors have some advantage over the circuit with one transistor, given that the control is from a PIC?

[EDIT 2] The PIC datasheet is here: http://ww1.microchip.com/downloads/en/DeviceDoc/40001452D.pdf

Best Answer

Does the first circuit with two transistors have some advantage over the circuit with one transistor, given that the control is from a PIC?

If Vin was 12V, the PNP would conduct it to TORCH, destroying any 5V logic connected there. Adding the NPN allows an MCU, running at any voltage, to control the PNP, running at any other (usually much higher) voltage.

Conceptual schematic - additional, application-specific, bias resistors are required in most cases:

schematic

simulate this circuit – Schematic created using CircuitLab

(HIGH-SIDE, MCU-FRIENDLY) = (HIGH-SIDE) + (LOW-SIDE, MCU-FRIENDLY)