Design of digital phase measuring instrument based on MCU and FPGA