A MOS transistor is a circuit element that automatically controls the flow of current by comparing the difference of the gate voltage (G) and the supply voltage (S) VGS=VG−VS to a reference voltage in order to conduct it through the drain (D).
The following are two Metal-Oxide-Semiconductor Field-Effect Transistors (MOSFETs):
NMOS Transistor
The NMOS (N-Channel MOS) works by utilizing an n-channel semiconductor so that electrons directly conduct electricity through the supply-drain channel.
The PMOS (P-Channel MOS) works by utilizing a p-channel semiconductor so that electrons leave positive “holes” that could be considered positive charge carriers.
Using an NMOS and PMOS transistors we can make what is called a CMOS inverter. Essentially, the CMOS inverter outputs a logical ‘high’ (1) when the input is low, and a logical ‘low’ (0) when the input is high. We can see a circuit diagram of the CMOS inverter below:
Using an odd number of CMOS inverters connected in a feedback loop, we can make a circuit known as a ring oscillator. A ring oscillator of 3 inverters is shown below: