Rapid Code Generator support forum User Cp  |  Register  |  Members  |  Search  |  Help
    |- Rapid Code Generator general > Rapid Code Generator general area Post New Topic   Post A Reply
What is a sign byte? printer friendly version
next oldest post
Author Messages
Admin
Board Owner

Gender: Male
Location: SWEDEN
Registered: Oct 2009
Status: Offline
Posts: 11

Click here to see the profile for Admin Visit http://www.rcg.swcab.nu Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Wednesday, October 21, 2009 @ 22:22:01  

When designing a system one of the greatest most problematic things yo get rely easy is how to handle conditional comparisons and how to connect them to actions. The traditional ways are one reason to the fact that not all can actually handle a programming language.

In this software I wanted to create something simpler to understand.

Here an idea of sign bytes awakened and in my mind they are super simple to understand.

Start with a BYTE and set that to a value of $00 = 0 or $FF = 255 that means TRUE or FALSE.

Why is 0 = TRUE, the answer is easy, I wanted this system to direct correspond to the functionality of a button.
Normally you have a resistor from VCC connected to resistor number 2 down to GROUND. then you place a switch between ground and the mid point of this connection. When you press the switch you will create a very distinct "0" and since you are pressing the button this is a TRUE situation. The FALSE situation is when you release the button and your controller will report a "1" on the port pin, it is false, you are not pressing the button any longer.

With this as a base I thought that it was a simple and logic system to setup and a sign byte can handle as many or as few instances of control as needed without caring of where in order it will happen..

Post New Topic   Post A Reply Jump to:
Contact Us | Software Crew AB | Privacy Policy All times are GMT +2 Hours.
Welcome to Our Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any administrator or moderator
Who Can Post Replies? Any administrator or moderator
Who Can Edit Posts? Any original author
Here you can read more about how to use the Rapid Code Generator and it's functions
Currently Active Users: 4
There are currently 0 members and 4 guests on the boards. | Most users ever online was 7 on 12-17-2009 03:47:53
Search This Forum
Search Keywords: Search From:
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios