2164-models.lib 332 B

123456789101112
  1. .subckt SII2161_ideal iin vc iout
  2. *V1 iin 0 0
  3. R1 iin 0 1p
  4. R2 vc 0 10k
  5. * Create output current based on the input current and the control voltage
  6. B1 iout 0 I=limit(-I(R1), -1m, 1m)*2**(-5.0505*V(vc))
  7. * Limit output voltage with a specialized diode
  8. D1 iout 0 clamp_diode
  9. .model clamp_diode D(Ron=10 Roff=1Meg Vfwd=.1 Vrev=.1)
  10. .ends