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

Username:   Password: 
 RegisterRegister   
 sending asci codes over paralel port
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
lufthansa747




PostPosted: Wed Jun 02, 2010 8:25 pm   Post subject: sending asci codes over paralel port

What is the problem you are having?
i am trying to control a led system that is controlled by a decoder chip. the decoder chip reads in an asci code and controls lights based on the asci code. i wanted to know if it was possible to send an asci character over only one parallel port pin

Please specify what version of Turing you are using
4.1.1
Sponsor
Sponsor
Sponsor
sponsor
chrisbrown




PostPosted: Wed Jun 02, 2010 8:43 pm   Post subject: RE:sending asci codes over paralel port

Not without a microprocessor or an unrealistic amount of circuitry on the other end. You're describing the function of a serial port, which is a fair bit more involved.
DemonWasp




PostPosted: Wed Jun 02, 2010 9:19 pm   Post subject: RE:sending asci codes over paralel port

Yes, it's possible to send a single ASCII character (or, more generally, one byte) over a single pin. You have to send it one bit at a time to be reconstructed by the attached device.

This is nontrivial, and I strongly suggest that you just use 7 pins - you only need 7 because generic ASCII only uses the first 128 values available.
lufthansa747




PostPosted: Wed Jun 02, 2010 9:56 pm   Post subject: RE:sending asci codes over paralel port

i know i can use just seven but the problem is i want to use the other pins for other output. so i guess it is too hard to only use one pin because i am trying to control one digital number. like the ones in digital clocks
Insectoid




PostPosted: Wed Jun 02, 2010 10:00 pm   Post subject: RE:sending asci codes over paralel port

Well, if that number is just a one or zero you're golden! XD.

You can drastically increase the output combinations via clever use of transistors and diodes and whatnot. If you're using the holtsoft CE book there should be a diagram of a piano circuit that does this. It can be a pain to get working though.
lufthansa747




PostPosted: Wed Jun 02, 2010 10:03 pm   Post subject: RE:sending asci codes over paralel port

i am not using any book do you know what that kind of curcit would be called because i will google it?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: