Clock and data recovery (CDR) systems for aligning a local clock signal to an incoming data signal to extract correct timing information from the incoming data signal are provided. A phase detector receives the local clock signal and the incoming data signal and generates an output phase error signal to indicate whether the local clock signal is leading or lagging the incoming data signal. The phase detector includes a bang-bang phase detector and a phase difference controller. The output phase error signal is suitable for aligning the local clock signal to the incoming data signal.