Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Herve's Bar & Grill (compsci.ca) [the only spam topic]
Index -> Off Topic
Goto page Previous  1, 2, 3, ... 10, 11, 12  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
jonos




PostPosted: Thu Apr 15, 2004 6:23 pm   Post subject: (No subject)

If you post it in here then I will help, I am no longer a slave to Holtsoft.
Sponsor
Sponsor
Sponsor
sponsor
Paul




PostPosted: Thu Apr 15, 2004 7:42 pm   Post subject: (No subject)

Ok, does anyone know how to make output on a LED using parallel ports and a breadboard? using turing.
This is an comp engineering question, since my friend doesn't wanna post it herself, I'll post it for her.
I dunno what info is important, but please post all the steps?
I'll give 20 bits to whoever does, and if it works.
and if this doesn't have to be done in turing (aka, a ezier way, tell me pls)
prolly needs parallelput.
tell me everything, cause I don't know what is useful.
jonos




PostPosted: Thu Apr 15, 2004 8:52 pm   Post subject: (No subject)

Okay, you have to use parallelput().

What you have to do is find which LED corresponds to the number you put in. You should know binary for this. I will try to write up a table or something:

To "access" pin 1:
parallelput(1)
To "access" pin 2:
parallelput(2)
To "access" pin 3:
parallelput(4)
To "access" pin 4:
parallelput(8)
To "access" pin 5:
parallelput(16)
To "access" pin 6:
parallelput(32)
To "access" pin 7:
parellelput(64)
To "access" pin 8:
parallelput(128)

and so on (my table follows):
PIN: 1 2 3 4 5 6 7 8
NUM: 1 2 4 8 16 32 64 128

If you want to access multiple pins you just add the numbers together that access the pins you want to access.
So if you want to access pins 1, 3, 5 then you would just add the numbers that are under the PIN numbers that you want to access (or turn on the LEDs). So it would be:
1 + 4 + 16 = 21
parallelput(21)

And that's it, I hope I'm right I haven't done that for a long time and even when I did it I didn't really understand it too much. You can always use QBasic if you want.
Paul




PostPosted: Sat Apr 17, 2004 1:05 pm   Post subject: (No subject)

ok, problem solved.
naoki




PostPosted: Sat Apr 17, 2004 3:05 pm   Post subject: (No subject)

Man, that girl friend of yours is way farther than my engineering class. My teacher is still making us build gates and emulation outta the breadboard, and we haven't even finished "reviewing Turing" or learning how to convert between bases (a thick and boring duotang full of work awaits me)

this topic has just become handy Razz
Paul




PostPosted: Sat Apr 17, 2004 4:03 pm   Post subject: (No subject)

well u seen, in our comp enginnering classes turing is not required, but "reccommended", and I have absolutely no idea how ppl would get that done without knowing a single bit of programming.
Cervantes




PostPosted: Sun Apr 18, 2004 7:19 pm   Post subject: (No subject)

I'd just like to point out that Naoki's avatar is 677KB, and that it takes me approximately 6-7 minutes to download.
End Communcation.
jonos




PostPosted: Sun Apr 18, 2004 7:26 pm   Post subject: (No subject)

Haha, slow dial-up sucks.

My Comp. Eng. class was just like Paul's, I'm glad that I had Comp. Sci. the same semester as Comp. Eng. because it made the final project really damn easy. In Comp. Eng., you practically would have had to learn the same amount of Turing that you learn all year in Comp. Sci. in 2 weeks of Comp. Eng. I laughed at people at the time because they got around 70 percent on the FP and I got around 99 percent thanks to knowing Turing.
Sponsor
Sponsor
Sponsor
sponsor
Amailer




PostPosted: Sun Apr 18, 2004 7:31 pm   Post subject: (No subject)

6 - 7!! omg it doesn't even seem that i have downloaded the thing..it's already there.
BTW i got my own radio station *with i think crappy songs but oh well*
Maverick




PostPosted: Sun Apr 18, 2004 9:16 pm   Post subject: (No subject)

Mehg its only bad the first time. Youy download it once and its there for good.
Amailer




PostPosted: Sun Apr 18, 2004 9:20 pm   Post subject: (No subject)

anyone got good anime and want to setup a server to play it online??????
Maverick




PostPosted: Sun Apr 18, 2004 9:24 pm   Post subject: (No subject)

anime wat? playing wat?
Amailer




PostPosted: Sun Apr 18, 2004 9:33 pm   Post subject: (No subject)

Any good anime
GTO
INUYASHA
EVA or w/e
i wanna watch
Paul




PostPosted: Sun Apr 18, 2004 9:39 pm   Post subject: (No subject)

you can DL some naruto episodes, since they're the most widely available for DL at highspeeds. Woot! Naruto 79 is finally DLed.
Amailer




PostPosted: Sun Apr 18, 2004 9:39 pm   Post subject: (No subject)

I don't like that kinda anime :S where the hell is dan. his suppose to setup a server
Display posts from previous:   
   Index -> Off Topic
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 12  [ 167 Posts ]
Goto page Previous  1, 2, 3, ... 10, 11, 12  Next
Jump to:   


Style:  
Search: