Espozo wrote:Also, what's the difference between a P Channel and an N Channel Mosfet? I see that both only have 3 prongs instead of 4, so I'm guessing it's how the 4 prongs are grouped to make 3.
Let's try explaining how an n-type MOSFET works...
First: MOSFET stands for Metal-Oxide-Semiconductor Field Effect Transistor.
Metal-Oxide-Semiconductor because it's made by making a sandwich of metal (or almost-metal) on top of an insulating layer of oxide on top of the underlying semiconductor. This layer of oxide between two conductive layers makes a capacitor.
Field Effect because it uses electric fields to allow current to flow.
A positive voltage on the gate (a lack of electrons) attracts extra electrons to the other side of the capacitor (in the semiconductor)
These extra electrons don't have a dedicated place in the silicon crystal lattice, so they move particularly easily. They cause the normally not-conductive semiconductor to become conductive.
If there is a voltage difference between the "drain" and "source", these extra electrons will allow current to flow.
In fact, one can (although to a limit) allow even more current to flow by attracting more electrons with a higher voltage difference.
So, p-type and n-type MOSFETs behave differently. You can sort of think of them as opposites; unlike the n-type MOSFET which works on electrons, the p-type MOSFET works on "un-electrons", or what solid-state engineers refer to as an "
electron hole". Because it's an "un-electron", rather than a positive voltage on the gate to attract electrons, you apply a negative voltage on the gate to attract holes. Or to repel electrons, whatever. Either way, because there's places for electrons to jump between, it's more conductive than without the field there.
Most modern ICs use CMOS: C for complimentary, meaning both n-type and p-type. A CMOS inverter looks like
Code: Select all
positive supply
|
+-o|[--- positive supply
| |
input --+ +-- output
| |
+--|[--- negative supply
|
negative supply
(This is only one of a myriad number of different symbols for a p-MOSFET, but it's the one that fits being used in ASCII art best)
To enumerate what's happening again:
- A high voltage on the input causes the bottom n-MOSFET to conduct, and (because there's no difference in voltage relative to the body) causes the top p-MOSFET to NOT conduct, pulling the output low.
- A low voltage on the input causes the bottom n-MOSFET to not conduct, and, because the gate is lower than the body, causes the top p-MOSFET to conduct, pulling the output high.