blob: f0c14b2e026d7d0480cfb59e2814ec02b30daee9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//Example 2.2
clear;
clc;
sen=0.1*10^9;//sensitivity in V/A
R=1*10^6;//Assumption
//sen=k*R ->k=sen/R
k=sen/R;
R1=1*10^3;//Assumption
//k=1+(R2/R1)+(R2/R) ->R2=(k-1)/((1/R1)+(1/R))
R2num=k-1;
R2den=((1/R1)+(1/R));
R2=R2num/R2den;
printf("Designed High Sensitivity I-V Converter :");
printf("\nR=%.f Mohms",(R*10^(-6)));
printf("\nR1=%.f kohms",R1*10^(-3));
printf("\nR2=%.f kohms",R2*10^(-3))
|