Op-amp in my circuit is accepting differential sinusoidal signal, that swings around 0 V with 1 Vpp. It is configured as a comparator - swings to upper rail when the signal is positive and swing to lower rail when negative, effectively converting sine to square. Square wave pulses are then counted by uC.
However, differential output from my incremental rotary encoder swings around 2.5V.
What is a good way to solve this problem? Note that there is one unused channel in an op-amp, but I am not sure if it can help. Thank you