← Aayan Siddiqui

CMOS Analog Switch & Test Plan

March 2025 · ELECENG 2EI4 Electronic Devices & Circuits · Individual project

I built two voltage-controlled analog switches from CD4007 CMOS transistors. Then I wrote a test plan to measure how far each one is from an ideal switch.

CD4007CN chip on a breadboard wired to Analog Discovery 3 leads
Switch 1 on a breadboard: a CD4007CN wired to the Analog Discovery 3.
3.026 kΩon-resistance
329 MΩoff-resistance
9.1 nAoff-state leakage
−0.3 to 5.3 Vallowed signal range

The two switches

I designed both in LTspice first, then built them with a 470 kΩ load, a 3 V input and a 5 V supply.

LTspice schematic of the transmission gate and inverter
LTspice schematic of Switch 1, with the transmission gate (blue) and the inverter that drives it (purple).

Test plan

The plan covered four ways a real switch differs from an ideal one:

Analog Discovery 3 scope showing control at 5.004 V and output at 2.996 V
The output (blue) follows the 3 V input whenever the switch is on. Cursors read 5.004 V on the control line and 2.996 V on the output.

Results

The report also compared the trade-offs of the two designs: complexity, pin-voltage limits, and part cost of about $0.40–0.90 per CD4007.