what is the difference between voltage comparator and zero crossing detector?
Zero crossing detector is a voltage comparator that changes the o/p between +Vsat & –Vsat when the i/p crosses zero reference voltage. In simple words, the comparator is a basic operational amplifier used to compare two voltages simultaneously and changes the o/p according to the comparison.