I got confused by this I guess.
If you only want to know ON/OFF duration of 18v signal, why not use the signal to control the base of a transistor that would send 5v to a PIC?What you see in that picture the output from a RS-232 IC
Then I would use interrupts on that pin and use a timer.
Robert
Bookmarks