Go to Post Now that the robot is shipped, maybe I can get to bed before the alarm clock goes off =] - DarMagi [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
  #1   Spotlight this post!  
Unread 18-01-2007, 13:14
rfolea's Avatar
rfolea rfolea is offline
Registered User
AKA: Rick Folea
no team (Forsyth Alliance)
Team Role: Mentor
 
Join Date: May 2005
Rookie Year: 2005
Location: US
Posts: 210
rfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant futurerfolea has a brilliant future
Simple Digital io

I see in the default code, in the User Initialization function, that digital_io_17 is set up as an unused output.

It is then set to 0.

I added a couple lines to set it to 1 then to 0 then to 1 then to 0:

rc_digout_17 = 0;
rc_digout_17 = 1;
rc_digout_17 = 0;
rc_digout_17 = 1;
rc_digout_17 = 0;

No other changes have been made to the 2007 default code.
I compiled, and downloaded to the rc.

I connected a Logic analyzer and expected to see the digital line toggle a few times at startup.

Instead it simply takes on the value of the last stament I entered (a '0' in this example).

Doesn't rc_digout_17 directly drive the io pin?

What am I missing here ...
 


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
Simple design Mike Norton Robot Showcase 3 16-01-2007 11:58
2 simple questions RDD Rules/Strategy 4 10-01-2007 16:41
Digital Caliper as a Digital Readout on Small Mill sanddrag Technical Discussion 9 13-10-2005 22:51
simple mistakes birdman Rules/Strategy 8 10-04-2005 23:32
Simple website questionnaire jonathan lall Website Design/Showcase 28 30-07-2003 23:42


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

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