Why all Digital Electronics Circuits use DC and Not AC?

The question will be little confusing.
But the answer is simple.

AC Vs DC




In Digital Electronics, Gates are the basic Elements.
Actually this Gates are made up of Transistors.

NAND gate using Transistors


Transistors are working as a Switch in Digital Electronics.

Transistor as a Switch


ie, When control signal is present, Transistor is ON, otherwise Transistor is OFF.

Now, What is this Control Signal?

That is the Signal Applied to the Base of the Transistor.

The Switch must be ON till the control signal is present and the Switch must be OFF till the control signal is absent. 

Switch with Control Terminal



Now consider applying AC signal as the control signal to the Base of the Transistor.

The AC signal will vary from Positive peak to Negative peak going through the 0V.

So how can we keep the Transistor ON and OFF as per our requirement?
It is not possible.

Now consider DC. It is Direct current and it is constant in value.
So if we apply DC to the Base of the Transistor as a control signal, we can keep the Transistor ON of OFF as per our wish.

That is In digital Electronics, We need only HIGH signal and LOW signal, not the intermediate values. 
Hence we cannot use AC in Digital.

Now consider Transistor working as an AMPLIFIER.
Here also, the transistor is working in DC (Power supply of the Transistor is DC), but the input is an AC signal.

Transistor as an Amplifier

Thus Amplification of AC signal is just an application of the Transistor and that doesn't mean that the Transistor is working in AC.

Why cant we power the Transistor with AC?
We can apply AC as a Power supply to the Transistor.
But the transistor will not give the desired operation.

Biasing of Transistor (a) NPN  (b) PNP


Because, for acting as a Switch or Amplifier, the transistor should be biased.
In order to keep the transistor in constant Biasing conditions, we need Constant current. ie DC.

If we apply AC as a power supply to the transistor, the Biasing conditions of the Transistor will be varying in each cycle of the AC signal.

Hence the transistor will not work properly.
This is the reason why we convert the AC signals into DC using Rectifiers in the Power supply section of the Electronic Devices.

(We can apply the same principle to MOSFET also.
MOSFET are used as switches in Digital Electronics as Switches.
Working principle of MOSFET is same as that of the Transistor.
However, MOSFET is a Voltage controlled Device, but Transistor is a Current controlled Device.)