Introduction - If you have any usage issues, please Google them yourself
Sampling two analog sinusoidal signals, write them to the memory by DMA controller. The sampling period is controlled by the EPWM module. Calculate the phase difference by FFT method.