Introduction - If you have any usage issues, please Google them yourself
This is the frequency and phase detector (hardware using EPM240 sampling and counting, mega16 take the number and control), this is EPM240 procedures, using quartus programming consists mainly of two nearly 20-bit counter.