Go to Post Perfection is less about effort or skill than it is about having a clear and limited goals. - SoftwareBug2.0 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi