56. Industrial input interface

An industrial signal FIELD_IN operates at 24 V but may reach 30 V or be reversed to −12 V.

Design an interface for a controller input rated for 0–3.3 V, using resistors, one 1 µF capacitor, and one diode.

  • At FIELD_IN = 24 V, SENSE_IN must remain between 2.4 V and 3.2 V.
  • At 30 V, SENSE_IN ≤ 3.3 V.
  • A short 1 ms HIGH pulse must keep SENSE_IN ≤ 0.8 V.
  • A continuous 24 V input must raise SENSE_IN ≥ 2.4 V within 35 ms.
  • At −12 V, SENSE_IN must remain approximately 0 V.

Example test cases:

FIELD_IN / ConditionRequired SENSE_IN
24 V, 1 ms HIGH pulse≤0.8 V
24 V, continuous for 35 ms2.4–3.2 V
30 V, settled≤3.3 V
−12 V, settled−0.05 to +0.05 V