ILIMIT - Current limiter (Single-Ended IO)

Old Content - visit altium.com/documentation

Model Kind

General

Model Sub-Kind

Generic Editor

SPICE Prefix

A

Model Name

ILIMIT

SPICE Netlist Template Format

@DESIGNATOR %1 %2 %3 %4 @"DESIGNATOR"ILIMIT
.MODEL @"DESIGNATOR"ILIMIT ilimit (?in_offset|in_offset=@in_offset| ?gain|gain=@gain| ?r_out_source|r_out_source=@r_out_source| ?r_out_sink|r_out_sink=@r_out_sink| i_limit_source=@i_limit_source i_limit_sink=@i_limit_sink ?v_pwr_range|v_pwr_range=@v_pwr_range| ?i_source_range|i_source_range=@i_source_range| ?i_sink_range|i_sink_range=@i_sink_range| ?r_out_domain|r_out_domain=@r_out_domain|)

Parameters (definable at component level)

The following component-level parameters are definable for this model type and are listed on the Parameters tab of the Sim Model dialog. To access this dialog, simply double-click on the entry for the simulation model link in the Models region of the Component Properties dialog.

In_Offset

input offset (Default = 0).

Gain

gain (Default = 1).

R_Out_Source

sourcing resistance. The value entered must lie in the range 1.0e-9 to 1.0e9 (Default = 1).

R_Out_Sink

sinking resistance. The value entered must lie in the range 1.0e-9 to 1.0e9 (Default = 1).

I_Limit_Source

current sourcing limit. The value entered must be no lower than 1.0e-12.

I_Limit_Sink

current sinking limit. The value entered must be no lower than 1.0e-12.

V_Pwr_Range

upper and lower power supply smoothing range. The value entered must be no lower than 1.0e-15 (Default = 1.0e-6).

I_Source_Range

sourcing current smoothing range. The value entered must be no lower than 1.0e-15 (Default = 1.0e-9).

I_Sink_Range

sinking current smoothing range. The value entered must be no lower than 1.0e-15 (Default = 1.0e-9).

R_Out_Domain

internal/external voltage delta smoothing range. The value entered must be no lower than 1.0e-15 (Default = 1.0e-9).

Notes

This function models the operation of an operational amplifier or comparator, at the highest level. All of the device pins act as inputs, with three of the four - pos-pwr, neg-pwr and out - also capable of acting as outputs.

The device takes a single-ended voltage input and applies offset and gain, as determined by the values assigned to the In_Offset and Gain parameters. An equivalent internal voltage (VEq) is derived from the result, which is subsequently limited by the range defined by the voltages applied to the pos_pwr and neg_pwr pins. If VEq is greater than the subsequent voltage that appears on the out pin of the device, a sourcing current flows from the out pin. If the value for VEq is less than that seen on the out pin, a sinking current flows into the out pin.

If a sourcing current results, the value of the current will be controlled by a sourcing resistance, as defined by the R_Out_Source parameter. The sourcing current is limited to a maximum value defined by the I_Limit_Source parameter. The output current in this case will be reflected in the current through the pos_pwr pin of the device.

If a sinking current results, the value of the current will be controlled by a sinking resistance, as defined by the R_Out_Sink parameter. The sinking current is limited to a maximum value defined by the I_Limit_Sink parameter. (This models the limiting behavior found in the output stages of most operational amplifiers). The output current in this case will be reflected in the current through the neg_pwr pin of the device.

The V_Pwr_Range parameter is used to define the voltage level below Vpos_pwr and above Vneg_pwr , beyond which smoothing will be applied to the derived internal voltage signal, VEq.

The I_Source_Range parameter is used to define the current level below I_Limit_Source, beyond which smoothing is applied. This value also determines the current increment above Iout = 0, at which the current through the pos_pwr pin begins to transition to zero.

The I_Sink_Range parameter is used to define the current level below I_Limit_Sink, beyond which smoothing is applied. This value also determines the current increment below Iout = 0, at which the current through the neg_pwr pin begins to transition to zero.

The R_Out_Domain parameter is used to specify the incremental value above and below (VEq - Vout ) = 0, at which Rout will be set to R_Out_Source or R_Out_Sink respectively. Rout will be interpolated smoothly between R_Out_Source and R_Out_Sink under the following condition:

-R_Out_Domain < (VEq - Vout ) > R_Out_Domain

Examples

Consider the current limiter in the above image, with the following characteristics:

  • Pin1 (in) is connected to net In
  • Pin2 (pos_pwr) is connected to net 5V
  • Pin3 (neg_pwr) is connected to net -5V
  • Pin4 (out) is connected to net Out
  • Designator is U1
  • Gain = 2
  • I_Limit_Source = 10mA
  • I_Limit_Sink = 10mA
  • All other model parameters are left at their inherent default values

The entry in the SPICE netlist would be:

*Schematic Netlist:
AU1 IN 5V -5V OUT AU1ILIMIT
.MODEL AU1ILIMIT ilimit ( gain=2   i_limit_source=10M i_limit_sink=10m    )

The effect of the function can be seen in the resultant waveforms obtained by running a transient analysis of the circuit. 

In this example, the following analysis parameters on the Transient/Fourier Analysis page of the Analyses Setup dialog have been used:

  • Transient Start Time - set to 0.000
  • Transient Stop Time - set to 100.0u
  • Transient Step Time - set to 20.00n
  • Transient Max Step Time - set to 20.00n
You are reporting an issue with the following selected text and/or image within the active document: