blob: c802468473b813cc4507cefb1ad872a77614b64a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//chapter-6,Example6_1,pg 169
n=8//8-bit resolution(conversion of 1 in 256)
Tr=10*10^-6//total trace time(256 conversions in 10*10^-6 s)
Nc=256//total conversions
S=(Nc/Tr)//speed of ADC
printf("speed of ADC\n")
printf("S=%.2f conversions/sec",S)
|