im a sophomore electrical engineering student and i need some help in
understanding the concept of the comparator and the schmitt trigger. could
anyone please explain its working briefly...
---
A comparator is like a box with two inputs and an output switch which
can be either only on or off:
+-----+
+IN>----|+ |
| OUT|---->OUT
-IN>----|- |
+-----+
Its job is to make the output turn off when +IN is more positive than
-IN and turn on when -IN is more positive than +in.
Usually, the output switch is a transistor with its emitter connected
to ground, and when +IN is more positive than -IN the transistor is
turned off and its collector will be floating, but when -IN is more
positive than +IN the transistor will be turned on and the collector
will be connected to ground through the emitter:
Vcc
|
|
+-----+----+
| |
+IN>----|+\ C------->OUT
| >--B |
-IN>----|-/ E |
| | |
+-------|--+
|
|
GND
By connecting a resistor to the output of the comparator and making
+IN more positive than -IN, like this:
Vcc
|
+--------+ +V
| | |
| | [R2]
| +-----+----+ |
| | | |
+IN>-+--|+\ C--|---+---->OUT (+V)
| >--B |
-IN>-+--|-/ E |
| | | |
| +-------+--+
| |
+----------+
|
GND
The transistor will be turned off and OUT will be pulled up to +V
through R2.
However, by making -IN more positive than +IN, like this:
Vcc
|
+--------+ +V
| | |
| | [R2]
| +-----+----+ |
| | | |
+IN>--+-|--|+\ C--|---+---->OUT (GND)
| | | >--B |
-IN>--|-+--|-/ E |
| | | |
| +-------+--+
| |
+------------+
|
GND
The transistor will be turned on and the output will be pulled down to
ground through the collector-to-emitter junction of the transistor.
Notice that by using this convention, when +IN is more positive
(higher) than -IN the output will be high, (at +V) and when +IN is
less positive (lower) than -IN the output will be low (at GND)
That's how a comparator works. Hysteresis tomorrow...