Now, let's learn about the logic circuit of a microcontroller.
The logic here means that the relation between the input and output of the digital signal handled by the electronic circuit is performed according to a certain theory. The electronic circuit that performs this is called the logic circuit.
Microcontrollers consist of extremely complex logic circuits. Every logic circuit consists of a combination of three types of the basic logic element.