Wednesday, April 25, 2012

Circuit to understand working of a "nand" gate

The same circuit that was built in the post "Circuit to understand working of and gate"can be made to work as a nand gate too, just by modifying the program.

The nand gate is negation of the and gate, hence we just need to add a negation to the "if" condition in the previous program of and gate. Here is the modified program:

Note: The truth table and animation of nand gate can be found in the post "NAND gate animation"

Now the led3 should turn off only when both the inputs are high and should remain on in all other conditions.

No comments:

Post a Comment

Follow by Email