Introduction - If you have any usage issues, please Google them yourself
This the phase difference calculation method based on digital phase detector DPD.
It uses Hilbert transform to shift one signal the other by 90 degree. Then by some manipulation, extract the phase difference between two signals.