|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
|
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 |