Wednesday, April 25, 2012

Circuit to understand the working of a xnor gate

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

The xnor gate is high only when all of its inputs are the same which is just the negation of an xor gate. Here is the modified program to implement an xnor gate, which is just adding a negation to the if condition in the program for xor gate.



Note: The truth table and animation of xnor gate can be found in the post "Animation of a xnor gate"

Now the led3 should turn on only when both the inputs are high and should remain off when he inputs differ.

No comments:

Post a Comment

Follow by Email