I have a circuit running at 24VDC (alarm system & magnalock door lock). What is the simplest proper method to interface 24V lines with a PIC? Now I'm not talking about powering the PIC, but simply using 24V signals as inputs to detect switches and power to various devices. Will just a resistor suffice? I really don't want to use relays, and a dozen diodes in series per signal isn't exactly elegant.
Dan East
Dan East