Tuesday, April 24, 2012

Circuit to understand working of an "or" gate

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

Here is the modified program:



The only change is in the "if" condition where the inputs are being "ored" in this program.

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

Now the led3 should turn on, when either of the switches, switch1 or switch2 are turned on and also when both the switches are turned on.

No comments:

Post a Comment

Follow by Email