//chapter-7,Example7_5,pg 497 n=8//8-bit counter N2=64//output digital count theta=%pi*(N2/(2^n-1))//phase difference printf("measured phase difference\n") printf("theta=%.6f radian",theta)