SLAAE33 September   2021 DAC43204 , DAC43401 , DAC43701 , DAC43701-Q1 , DAC53204 , DAC53401 , DAC53701 , DAC53701-Q1 , LM555 , LMC555 , NA555 , NE555 , SA555 , SE555 , TLC555

 

  1.   Trademarks
  2. 1Introduction
  3. 2Functional Overview of 555 Timers vs. Smart DACs
  4. 3Pulse Generator with Variable Frequency and Variable Duty Cycle
  5. 4Analog Input to PWM Output
  6. 5General Purpose Input (GPI) to PWM Output
  7. 6Comparator with Hysteresis
  8. 7Trade-offs and Conclusions

Comparator with Hysteresis

The designer can use the 555 timer without an external timing element to create a comparator with input hysteresis. In the configuration shown in Figure 6-1, the internal resistor divider presents thresholds of ⅔ × VDD for the high comparator and ⅓ × VDD for the low comparator. When an input voltage is applied to the connected TRIG and THRESH pins, the circuit functions as a comparator with input hysteresis. The high threshold for a positive-transitioning input signal is ⅔ × VDD and the low threshold for a negative-transitioning input signal is ⅓ × VDD. Upon transitioning beyond either threshold, the internal flip-flop latches the output state and will not clear unless the input signal transitions beyond the other threshold or if RESET is toggled. Due to the fixed configuration of the 555 timer, the comparator circuit functions with inverse polarity as seen in the simulation in Figure 6-2.

Figure 6-1 555 Timer Configured for a Comparator with Hysteresis

The main limitation of this circuit is that the designer cannot independently adjust the high and low threshold levels, as they are fixed by the internal resistor divider. Note that there is some flexibility to be had with the use of the CONT pin, as any impedance on this node will adjust the high and low thresholds and can be calculated using simple resistor divider math. Connecting a resistor from the CONT pin to ground will lower both the high and low thresholds, whereas connecting a resistor from the CONT pin to VDD will increase both the high and low thresholds. The designer can also apply a voltage directly to the CONT pin to adjust the threshold voltages. In all cases, it is not possible to independently adjust one threshold without impacting the other.

The TINA-TI simulation results presented in Figure 6-2 displays the output for a 1-kHz input sine wave with an amplitude of 4.5 Vpp and a DC offset of 2.5 V.

TRIG/THRESH = 4.5-Vpp 1-kHz sine wave with a 2.5-V DC offset
Figure 6-2 TINA-TI Simulation Results for a Comparator with Hysteresis Using a 555 Timer

Smart DACs can be configured to act as a comparator with hysteresis with two independent threshold voltages. The input voltage applied to the DAC53701 feedback pin is compared against the threshold voltage set in the DAC. The GPI pin on the DAC53701 can be programmed to switch between two threshold voltages. If the output of the DAC is connected to the GPI pin, the DAC will switch threshold voltages when the output changes due to the voltage on VFB, creating the hysteresis. These two threshold voltages are programmed into the margin-high and margin-low registers, and the GPI is enabled for margin-high, margin-low function. An RC filter can be added to the GPI feedback as seen in Figure 6-3 to provide a small delay to avoid any instability on the GPI pin due to noise.

Figure 6-3 Smart DAC Configured for a Comparator with Hysteresis

Figure 6-4 shows a simulation of the DAC53701 output responding to the sine wave applied to the feedback pin and the 3-V and 1-V threshold values.

VIN = 4-Vpp 1-kHz sine wave with a 2-V DC offset
Figure 6-4 TINA-TI Simulation Results for a Comparator with Hysteresis Using a DAC53701

The smart DAC presents a superior solution when used as a comparator with hysteresis by offering independently configurable thresholds, whereas the 555 timer is limited in threshold configurability by its fixed internal resistor dividers.