blob: cdfce25f9bd2cb4ce2e597e17730c3303dd4890b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//Example 12.11
clc;
clear;
//bit = input("Specify the converter bit length :")
//fre = input("specify the clock frequency in kHz :")
bit =8;
fre = 500
max_conv_time = 2^bit * (1/(fre*1000));
avg_conv_time = 0.5 *max_conv_time;
max_conv_rate = 1/max_conv_time;
disp("Maximum Conversion Time = ");
disp(max_conv_time);
disp("Average Conversion Time =");
disp(avg_conv_time);
disp("Maximum Conversion Rate =");
disp(max_conv_rate);
|