blob: e19ac822bf486282ed03417b2ebc97c556b6f397 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//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)
|