Datasheet
MAX965–MAX970
Single/Dual/Quad, Micropower,
Ultra-Low-Voltage, Rail-to-Rail I/O Comparators
______________________________________________________________________________________ 11
3) Calculate R1: R1 = (R3 + R4) x (V
HB
/ V
CC
). Putting
in the values for this example, R1 = (2.2MΩ + 10kΩ)
x (50mV / 5.0V) = 22.1kΩ.
4) Choose the trip point for V
IN
rising. This is the
threshold voltage where the comparator output tran-
sitions from low to high as V
IN
rises above the trip
point. For this example, choose 3.0V.
5) Calculate R2 as follows:
where V
THR
is the rising-voltage trip threshold.
Choose a standard value of 15kΩ.
6) Verify trip voltages and hysteresis as follows:
where V
THR
is the rising-voltage trip point, and V
THF
is the falling-voltage trip point.
Circuit Layout and Bypassing
Power-supply bypass capacitors are not needed if sup-
ply impedance is low, but 100nF bypass capacitors
should be used when supply impedance is high or
when supply leads are long. Minimize signal lead
lengths to reduce stray capacitance between the input
and output that might cause instability.
IR Receiver
Figure 5 shows an application using the MAX965 as an
infrared receiver. The infrared photodiode creates a
current relative to the amount of infrared light present.
This current creates a voltage across R1. When this
voltage level crosses the reference voltage applied to
the inverting input, the output transitions. Optional R3
provides additional hysteresis for noise immunity.
2-Cell to TTL Logic-Level Shifter
Figure 6 shows an application using the MAX965
to convert a 2-cell voltage-level signal into a TTL-
compatible signal. The supply voltage for the compara-
tor comes from the 2-cell supply. The output is pulled
up to a 5V supply.
Vrig
VVxRx
RR R R
V falling
VV
RxV
RR
Hysteresis V V
IN
THR REF
IN
THF THR
CC
THR THF
sin :
:
=++
+
⎛
⎝
⎜
⎞
⎠
⎟
= −
+
⎛
⎝
⎜
⎞
⎠
⎟
= −
1
1
1
1
2
1
34
1
34
R
V
VxR RRR
R
V
xk k M k
k
THR
REF
2
1
1
1
1
1
34
2
1
30
12 22
1
22
1
22 10
14 76
=
⎛
⎝
⎜
⎞
⎠
⎟
−−
+
=
⎛
⎝
⎜
⎞
⎠
⎟
−−
+
=
.
.
.
.
ΩΩ ΩΩ
Ω
GND
V
CC
V
CC
V
CC
V
CC
0.1µF
OUT
R3
R
D
R
PULLUP
REF
MAX965
HYST
Figure 5. IR Receiver
GND
V
CC
+5V
2 CELLS
0.1µF
OUT
INPUT
REF
MAX965
HYST
Figure 6. 2-Cell to TTL Logic-Level Translator