Hi,
I design a lot of circuits that are powered from a DC supply, typically a 12V or 24V battery. They usually connect to the outside world via one or more flavours of low speed, wired serial connection, such as RS232, CAN, RS485 and the like.
Sometimes mistakes are made when installing products, which can result in the cable being mis-wired in arbitrary and creative ways. Most of these errors won't do any harm, as I/O devices tend to be quite robust and incapable of causing each other any damage, but the power supply is an obvious exception. Connect +24V to any kind of logic input and it probably won't react well.
Sometimes I use a combination of series resistors and a TVS diode, which works fine if the 'hazardous' voltage that might get applied isn't too high - but the power dissipation becomes unmanageable if a pin has to survive a higher voltage and/or have a low series resistance to the outside world for functional reasons.
Another option is a TVS diode plus a PTC thermistor. This is fine provided the device itself doesn't have to operate in a hot environment, but most of mine do.
This seems like a fairly common requirement which could no doubt be met by some clever little IC containing back-to-back series MOSFETs, current measuring, a latch, noise filter, time delay and some simple control logic. I'm sure I used to know of such a device, but that was a long time ago now and I can't even think what it might be called. "Electronic fuse", or "solid state fuse", or "<some other kind of> fuse", probably.
Does anyone have a favourite idiot-proofing chip that they'd care to recommend please? Anything that'll stop, say, an RS485 interface from being destroyed by a 24V battery would be ideal.