summaryrefslogtreecommitdiff
path: root/1184/CH7/EX7.2/Ex7_2.sce
blob: 2ac2d8b63d1b103a5b5df21352b03789596b95b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 7-2, Page no - 222

clear 
clc

N = 14
discrete_levels = 2^N
num_vltg_inc =2^N-1
resolution = 12/discrete_levels 

printf('The numbedr of discrete levels that are represented \n using N number of bits are %d',discrete_levels)
printf('\n the number odf voltage increments required to divide \n the voltage range are %d',num_vltg_inc)
printf('\n Resolution of the digitization %.1f microvolt',resolution*10^6)