![]()
SIMPLIS Parts
|
The Comparator with Analog Inputs and Digital Outputs models a generic comparator with hysteresis. The output of the comparator is treated as a digital signal for the SIMPLIS event-driven simulator only if the output is connected to SIMPLIS digital devices. If the comparator output is connected to analog devices, the output voltage levels and output resistance are defined by the Output High Voltage, Output Low Voltage, and the Output Resistance parameters.
There is a finite resistance from each comparator input to the comparator ground pin. If you have an application where you require the comparator to have a true infinite input impedance, you can use a voltage-controlled voltage source (VCVS) to buffer each input pin. Similarly, the outputs of the comparator have a finite output resistance with a minimum value of 1mΩ. If you require a resistance of less than 1mΩ, you can add a VCVS to the output of the comparator. The circuit example below demonstrates this technique.
The Hysteresis parameter may never be zero. The minimum parameter value allowed is 1pV. For most applications, this is sufficiently small to be insignificant.
In this Topic Hide
Model Name: |
Comparator with Analog Inputs and Digital Outputs |
|
Simulator: |
|
This device is compatible with the SIMPLIS simulator. |
Parts Selector |
Digital Functions | Gates |
|
Symbol Library: |
None - the symbol is automatically generated when placed or edited. |
|
Model File: |
SIMPLIS_DIGI1.lb |
|
Subcircuit Name: |
SIMPLIS_DIGI1_COMP_Y |
|
Symbol: |
|
|
Multiple Selections: |
Multiple comparators can be selected and edited at the same time. |
To configure the comparator with analog inputs and digital outputs, follow these steps:
Label | Parameter Description | |||||||
Propagation Delay |
Delay from when an input pin goes active until the output changes |
|||||||
Hysteresis |
|
The Hysteresis (H) of the comparator. To determine the low-to-high threshold (TH) and the high-to-low threshold (TL), substitute Hysteresis (H) in each of the following formulas, where INN is the negative input pin voltage. The comparator output voltage will change state when INP, the positive input pin voltage, reaches TL or TH :
|
||||||
Input Resistance |
Input resistance of each input pin |
|||||||
Output Resistance |
|
|||||||
Output High Voltage |
|
|||||||
Output Low Voltage |
|
|||||||
Initial Condition |
Initial condition of the comparator's non-inverted output at time=0 |
The test circuit used to generate the waveform examples in the next section can be downloaded here: simplis_018_comparator_example.sxsch.
The waveforms below were taken from a comparator with a 1V Hysteresis parameter, and a slow triangle wave ramp applied to the input. The comparator output switches from low to high when the ramp reaches 3V and from high to low when the ramp reaches 2V.
The subcircuit parameters, parameter names, data types, ranges, units, and descriptions are in the following table. The parameter names can be used to directly generate netlist entries for the device. For example, the netlist entry for a comparator with analog inputs and digital outputs would be as follows:
X$U1 7 9 0 6 8 SIMPLIS_DIGI1_COMP_Y vars: IC=0 RIN=10Meg ROUT=10 HYSTWD=1 VOL=0 VOH=5 DELAY=2p
Parameter Name | Label | Data Type | Range | Units | Parameter Description | ||||||
HYSTWD |
Hysteresis |
V |
The Hysteresis (H) of the comparator. To determine the low-to-high threshold (TH) and the high-to-low threshold (TL), substitute Hysteresis (H) in each of the following formulas, where INN is the negative input pin voltage. The comparator output voltage will change state when INP, the positive input pin voltage, reaches TL or TH :
|
||||||||
IC |
Initial Condition |
LIST |
0, |
Initial condition of the comparator's non-inverted output at time=0 |
|||||||
RIN |
Input Resistance |
min: 100 |
Ω |
Input resistance of each input pin |
|||||||
VOH |
Output High Voltage |
V |
|
||||||||
VOL |
Output Low Voltage |
V |
|
||||||||
ROUT |
Output Resistance |
min: 1m |
Ω |
|
|||||||
DELAY |
Propagation Delay |
1f to 1024 |
s |
Delay from when an input pin goes active until the output changes |
© 2015 simplistechnologies.com | All Rights Reserved