Re: send more than 8 bits with parallel port
- From: "Bob" <nimby1_notspamm_@xxxxxxxxxxxxx>
- Date: Tue, 21 Feb 2006 03:31:00 GMT
<jccorreu@xxxxxxxxx> wrote in message
news:1140487986.895227.274830@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
We're using a parallel port for motion control. We're building the
hardware logic for the device we're going to control, and want to be
able to send a packet containing 2 bytes of information, and let the
circuit we build translate it and drive our device.
I know that parallel port was designed with a standard for printers,
using a 1 byte data regisiter. What I want to know is how to hack it
so that I can use more than pins 2-9 to output data from our computer.
The control register has pins 1, 14, 16, 17. I take it that i can set
whatever I want to these (TTL), and on the device end, translate it
however I choose. So i need 4 more pins from something.
I know that pins 18-25 are ground. I think that makes them out of the
question, though if anyone knows how I could use some of them to
transmit data I'd be interested.
The info i have on status register says its read only, and that data
written there is ignored. What ignores it, the computer or the
printer? Is there a way to get around it?
thanks
James
One issue is that you need to indicate, to the receiving hardware, where the
first part of the word is. If you truly have only eight bits at-a-time, you
can dedicate one of the bits as the start-of-frame indicator, and use the
other seven as the data path. If you use this technique, then it's probably
simplest to send four data bits per transfer, and do four transfers to get
each sixteen bit word.
If it turns out that you can find an extra bit, then it can be become your
start-of-frame indicator.
A CPLD would be an ideal candidate for the receiving hardware (and they're
cheap). You just need to learn and little HDL (either VHDL or Verilog).
Remember, all sorts of data paths use only one bit at-a-time to send all
kinds of data types (widths), so having eight bits is a real luxury.
Bob
.
- References:
- send more than 8 bits with parallel port
- From: jccorreu@xxxxxxxxx
- send more than 8 bits with parallel port
- Prev by Date: Re: Solder tack time?
- Next by Date: Open Source Thermostat and more (Schematics)
- Previous by thread: Re: send more than 8 bits with parallel port
- Next by thread: Re: send more than 8 bits with parallel port
- Index(es):
Relevant Pages
|