> How about this: an 
> external box connected to an AC outlet, inside an optocoupler with
> schmitt-trigger(sp?) and a connector for a serial cable? Connect to a
spare
> serial port on your PC, you could get a nice TTL signal on one of the
> readable pins on the port.

That's a nice idea. Give it an IEC plug and socket and it would go
between the PC and the AC outlet. In fact it is so simple that it might
fit into an IEC plug or socket housing, but those things are a tight fit
already. If you could get away without a schmitt-trigger you wouldn't
need a power supply for it. Having two opto-isolators each sensitive to
a different half-phase would mean you could do the debounce in software:
On CTS irq: disable CTS irq, enable DSR irq
On DSR irq: disable DSR irq, enable CTS irq

It also gives you a 100Hz clock.

--
Richard Urwin, Private
"No 9000 series computer has ever made a mitsake or corrubiteddatatato."


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to