Application of Intel 8254 in intelligent phase measuring instrument