IEEE 1284 parallel port and Propeller: Any past experiences?
AndrejaKo
Posts: 24
I'm thinking of using a Propeller to drive a IEEE 1284 which I'll use to drive a printer and a simple robot (not at the same time).
I'm interested in any past experiences with Propeller and parallel ports and if there are any special considerations that need to be addressed.
I'm already aware that I'll need to do voltage translation and I know what type of signals I'll need to send. I'll be using relatively short cables of less than 1 meter in length, so there shouldn't be much interference during transmission and I'll be using low data rates (I'm still not sure how low), so I don't expect much data loss.
Is there anything else?
I'm interested in any past experiences with Propeller and parallel ports and if there are any special considerations that need to be addressed.
I'm already aware that I'll need to do voltage translation and I know what type of signals I'll need to send. I'll be using relatively short cables of less than 1 meter in length, so there shouldn't be much interference during transmission and I'll be using low data rates (I'm still not sure how low), so I don't expect much data loss.
Is there anything else?
Comments
http://en.wikipedia.org/wiki/IEEE_1284
I suppose that if you build a single purpose device, it will be much easier to code.
For inputs to the propeller, use a 2k7 resistor in series and that will drop 5V to 3V.
For outputs, any octal buffer chip powered by 5V, eg HC or HCT series and that steps 3V to 5V.
So hardware will be simple.
For software, you could write some simple spin routines - eg "ToggleStrobe()" which toggles the strobe line. That is one that would be very useful. And "OutputByte" to put a byte on the data lines.
Maybe add a delay in "ToggleStrobe" as it might be a bit fast in pasm for old printers. But it probably will be ok in Spin.
Has anyone made any progress on using the Propeller to send data to a parallel port or possibly a USB port, through some other hardware?