A phase detector is a circuit or instrument that detects the difference in phase between corresponding points on two signals. It is the main part of phase locked loop.