http://img703.imageshack.us/i/xoru.jpg/This tip shows the use of the comparator to
implement an XOR gate and its complement the
XNOR gate.
The operation is best described in three
sections:
1. Both A and B inputs are low
With both inputs low, the inverting input
is held at .7V and the non-inverting is held
at ground. This combination results in a low
output.
2. Both A and B inputs are high
With both inputs high, the inverting input is
pulled up to VDD and the non-inverting input
is equal to 2/3 VDD (the average of VDD inputs
and GND). This combination also results in a
low output.
3. Input A or B is high
With one input high and one low, The
inverting input is held at .7V and the
non-inverting input is equal to 1/3 VDD (the
average of a VDD input and GND). This
combination results in a high output.
P.S.
Taken from TIPS ‘N TRICKS from microchip. Sa tingin ko pwede ma configure na comparator ang 741.. Pero baka may i-modify pa. Good luck po.
