53. Design dual-range ammeter

Design a current measurement circuit with two selectable ranges:

  • LOW: 0–200 mA
  • HIGH: 0–2 A

Use the provided switch SW_RANGE to select the measurement range.

Design the circuit so that:

  • V_SENSE ≈ 200 mV at the maximum current of either range.
  • Only the selected shunt branch carries current.
  • Shunt power dissipation remains below 0.5 W.

Select resistors from:

0.1 Ω, 0.22 Ω, 0.47 Ω, 1 Ω, 2.2 Ω

Example test cases:

SW_RANGEI_TESTExpected V_SENSE
LOW (OFF)100 mA≈100 mV
LOW (OFF)200 mA196–204 mV
HIGH (ON)2 A196–204 mV