Industrial-control applications often use PLCs (programmable-logic controllers) working at logic levels of 24V. That voltage creates a challenge to the safe use of a microcontroller. Such a design ...