Current-Controlled Switch
Current-controlled switch with hysteresis
Libraries:
Simscape /
Electrical /
Additional Components /
SPICE Passives
Description
The Current-Controlled Switch block represents the electrical characteristics of a switch whose state is controlled by the current through the input ports (the controlling current).
This block models either a variable-resistance or a short-transition switch. For a
variable-resistance switch, set the Switch model parameter to
Smooth transition between Ion and Ioff
. For a
short-transition switch, set Switch model to Abrupt
transition after delay
.
Short-transition Switch
In a short-transition switch, the transition between the off and on states is instantaneous:
When the controlling current is greater than or equal to the sum of the Threshold current, IT and Hysteresis current, IH parameter values, the switch is closed and has a resistance equal to the On resistance, RON parameter value.
When the controlling current is less than the Threshold current, IT parameter value minus the Hysteresis current, IH parameter value, the switch is open and has a resistance equal to the Off resistance, ROFF parameter value.
When the controlling current is greater than or less than the Threshold current, IT parameter value by an amount less than or equal to the Hysteresis current, IH parameter value, the current is in the crossover region and the state of the switch remains unchanged.
Note
If the Hysteresis current, IH parameter value is less
than 0
, the block models a variable-resistance switch
independently of the value you set for the Switch model
parameter.
Variable-resistance Switch
In a variable-resistance switch, the transition between the off and on states is exponential:
When the Control current for on state, ION is greater than the Control current for off state, IOFF:
If the controlling current is greater than the Control current for on state, ION parameter value, the switch is closed and has a resistance equal to the On resistance, RON parameter value.
If the controlling current is less than the Control current for off state, IOFF parameter value, the switch is open and has a resistance equal to the Off resistance, ROFF parameter value.
If the controlling current is greater than the Control current for off state, IOFF parameter value or less than the Control current for on state, ION parameter value, the resistance is defined by:
where:
Rs is the switch resistance.
is the log-mean of resistor values.
is the log-ratio of resistor values.
Ic is the controlling current.
is the mean of the control currents.
is the difference between the control currents.
When the Control current for on state, ION is less than the Control current for off state, IOFF:
If the controlling current is less than the Control current for on state, ION parameter value, the switch is closed and has a resistance equal to the On resistance, RON parameter value.
If the controlling current is greater than the Control current for off state, IOFF parameter value, the switch is open and has a resistance equal to the Off resistance, ROFF parameter value.
If the controlling current is less than the Control current for off state, IOFF parameter value or greater than the Control current for on state, ION parameter value, the resistance is defined by:
Assumptions and Limitations
The block output resistance model is discontinuous during switching. The discontinuity might cause numerical issues. Try the following actions to resolve the issues:
Set the On resistance, RON and Off resistance, ROFF parameter values to keep RON divided by ROFF as large as possible, and more than
1e+12
.Increase the Hysteresis current, IH parameter value to reduce switch chatter.
If a variable-step solver is employed, decrease the Max step size parameter value (in the Configuration Parameters block dialog box).
Note
This increases the simulation time.
Ports
Conserving
Parameters
Extended Capabilities
Version History
Introduced in R2009a