Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.02 KB

File metadata and controls

39 lines (29 loc) · 1.02 KB

S — Voltage Switch

A voltage-controlled switch changes between high and low resistance states based on a controlling voltage.

Syntax

S<name> <node1> <node2> <ctrl+> <ctrl-> <model_name> [ON|OFF] [M=<m>]
Parameter Description
node1, node2 Switch terminal nodes
ctrl+, ctrl- Controlling voltage nodes
model_name Name of a .MODEL VSWITCH(...) definition
ON / OFF Initial state
M=m Multiplier

Example

S1 OUT 0 CTRL 0 SW_MOD
.MODEL SW_MOD VSWITCH(VT=2.5 VH=0.5 RON=1 ROFF=1MEG)

Model Parameters

Parameter Description
VT Threshold voltage
VH Hysteresis voltage
RON On-state resistance
ROFF Off-state resistance

Behavior

  • When V(ctrl+, ctrl-) > VT + VH, the switch turns ON (resistance = RON).
  • When V(ctrl+, ctrl-) < VT - VH, the switch turns OFF (resistance = ROFF).
  • Between these thresholds, the switch maintains its current state (hysteresis).