Thread: 0 or 1?
View Single Post
  #7   Spotlight this post!  
Unread 14-02-2006, 16:39
aaeamdar's Avatar
aaeamdar aaeamdar is offline
Post-A-Holic
AKA: Paul Dennis
FRC #1719 (The Umbrella Corp)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Baltimore, MD
Posts: 231
aaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant future
Re: 0 or 1?

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
Code:
"hearing"
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