Ex-or gate
Tony11
Posts: 41
How do I go about program A EX-OR GATE? With two input's and one output. I know how to do an And GATE.
EX-OR GATE
S.......S.......output
L.......L.......L
L.......H......H
L.......H......H
H.......L......L
S=Switch or input
L=Off
H=On
Here I code for And Gate
EX-OR GATE
S.......S.......output
L.......L.......L
L.......H......H
L.......H......H
H.......L......L
S=Switch or input
L=Off
H=On
Here I code for And Gate
if ina[noparse][[/noparse]25] and ina[noparse][[/noparse]24]
Comments
This is how it actually works:
A XOR B = (!A & OR (!B & A)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
Post Edited (Leon) : 4/22/2010 10:18:35 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pullmoll's Propeller Projects
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
Thank You people for your help.