Go to Post Do what you do well and I'm sure there will be much hope in your future! - Collmandoman [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
  #2   Spotlight this post!  
Unread 26-01-2002, 13:55
Jan Olligs's Avatar
Jan Olligs Jan Olligs is offline
Registered User
#0448 (Crandroids)
 
Join Date: Jan 2002
Location: Bloomfield Hills, MI
Posts: 103
Jan Olligs is on a distinguished road
I am not the programmer on my team and I have never worked with BASIC stamps, just with Atmel AVRs, which are programmed in assembler, but most microcontrollers have a similar syntax, so here is my explanation:
On microcontrollers, most of the ports (except, for example, for the analog ones) can be either input or output. To tell the controller how you would like to access the port, whether as input or output, you have to define it in teh initialization statements. This can obviously be done by writing 'Output' followed by the port number. From there on, you cann access it by the internal aliases out[port number].
Take this as a temporay help, I bet that someone who knows the BASIC Stamp really well is going to post a reply sometime later this day.
Good luck!
__________________
I have great faith in fools - my friends call it self-confidence. --- Edgar Allen Poe
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How long does it take you to load the default code? vegasmcse Robotics Education and Curriculum 10 03-11-2003 21:41
robot goes haywire with the one joystick default code Miles Programming 7 24-01-2003 14:58
Default Robot Code lvhsrobotics Programming 2 10-01-2003 16:55
2003 PBasic default code from Innovation First ttedrow Programming 0 06-01-2003 11:18
default code archiver 2001 2 23-06-2002 22:53


All times are GMT -5. The time now is 23:35.

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