blob: 08a156646a27d617bc47802ee10e2fc436c261d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clear//
//Variables
ACL = 150.0 //Closed loop voltage gain
Vin = 200.0 * 10**-3 //Input a.c. voltage (in volts)
V = 12.0 //Voltage (in volts)
//Calculation
Vout = ACL * Vin //Output voltage (in volts)
Vpkplus = V -2.0 //maximum positive peak voltage (in volts)
Vpkneg = -V + 2.0 //maximum negative peagk voltage (in volts)
//Result
printf("\n The maximum possible output value could be between %0.3f V and %0.3f V.",Vpkplus,Vpkneg)
|