Re: USB printer cable for data I/O



matteo.brusa@xxxxxxxxx wrote:

Hi,
i'd like to use a USB printer cable to control some switches for home
automation.
How can i control the value of every data line of the parallel
interface?
Since i'm not on a PC architecture, direct output to the port is not
possible.
Any idea?

MatB

You cannot rely on controlling the pins in the same way as
you can with a standard parallel port.

However, the simplest parallel printers simply use a strobe
signal to latch the 8 data bits internally.

You can duplicate that circuit with a 74LS374 octal d-flipflop
IC. You tie the /strobe line to the clock input.

If the printer driver expects to be interrupt driven, you may
have to also generate an Ack signal to make it work.

You then just send a byte to the printer which is held on the
output lines of the 74LS374 until you send the next one.

Regards,

Iwo

.



Relevant Pages

  • Re: USB printer cable for data I/O
    ... How can i control the value of every data line of the parallel ... Since i'm not on a PC architecture, direct output to the port is not ...
    (comp.os.linux.hardware)
  • Re: Implementing a Macro Language
    ... Examples include the macro systems in Word and other ... the ones I thought that looked easy do not use automation. ... List control? ... which is an abstract automation interface. ...
    (microsoft.public.vc.mfc)
  • Re: Spammers Jump on Latest MS Hole
    ... control what is and what is not run in the "background"? ... bug that allows data sent in the probe to overwrite part of the OS ... the door" means the computer program has to know when the doorbell ... automation, but maybe you or others could explain it better. ...
    (comp.dcom.telecom)
  • RE: Required Word 2007 UI Automation code (.NET code)
    ... To achieve this I am using UI Automation Framework provided by .NET. ... Type, Control UI Pattern. ... // as InvokePattern; ...
    (microsoft.public.office.developer.automation)
  • Re: home automation
    ... One is occupancy sensors to control lighting. ... house where the lights would turn on and off as you walked around. ... now technology worthy of Home Depot. ... It's still not home automation. ...
    (sci.electronics.design)