by Zener » Tue Aug 25, 2009 10:33 pm
That part of the schematic is hard to follow. You have to keep track of all the little flags such as VCC30, VIN, USBVCC and +5V
The way it works is:
The USBVCC supplies 5V. The FTDI chip makes 3.3V out of that (called VCC30 for some reason, I would think VCC33.....)
This VCC30 (3.3V) is put onto pin 2 of the LM358 (an op amp being used as a comparator there.) The VIN comes from external power to the jack, if any. It is divided in half by R10 and R11. So that means if it is above 6.6V at R10 then the output of the "comparator" (pin 1) will be high, and if below it will be low. The next stage of the op amp is set up as a buffer, or impedance buffer as I like to say sometimes. It just copies the voltage that goes into it. If the output of that is low then it turns on the P-channel fet T1 (usually transistors are named Q something, I guess not in Italy.)
So, if there is no external power to the jack (PWRIN) (no being less than about 7.1 V (6.6 + a diode drop)), then the fet is turned on and the USBVCC is passed along to the +5V line. If there is external power, the fet is turned off and IC4 takes over (voltage regulator).
Capisce?