The operation of logic circuits is based on principles established by a British mathematician George Boole in the middle of the 19th century, even before the first bulb was invented. Originally, the main idea was to express logical forms through algebraic functions. It soon had lead to a real product which, much later, evaluated in what today is known as AND, OR and NOT logic circuits. The principle of their operation is known as Boolean algebra.
The principle of operation is the same even when the gate has more than two inputs: a logic one (1) will appear on its output only when all inputs are driven high (1). Any other combination of input voltages will result in a logic zero (0) on its output. When used in the program, the logic AND is performed by a program instruction to be discussed later. Just remember that logic AND in the program refers to the corresponding bits of tworegisters.
incf SUM), the microcontroller will do the following:
incf’ instruction for increment is to be performed).