Quote:
|
Originally Posted by Alan Anderson
Never say "always".
What you're describing is called positive logic and is how most digital circuits work, including most of the Robot Controller. However, negative logic exists as well. RS-232 serial communication uses negative logic, with a positive voltage being logic 0 and a negative voltage being a logic 1.
|
It's CMOS (Complimentary MOS) versus MOS (metal oxide semi-conductor for those interested). They are two different methods of constructing gates. But I wont bore you young folk with that.
What you're probably really interested in is this: when that switch is not pressed, what is the RC hearing? When it IS pressed, what is the RC hearing? I use the word
figuratively.
This is most easily tested through the use of the wonderful and beautiful Ms. Printf (I'm in a valentiny mood here). Also, use #defines to good advantage so that you don't have to change a bunch of stuff!
Self-discovery for the win!
Best of luck,
Paul Dennis