blob: 2cb877305464c0db2ffabbf2430d645fa203dea8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clear//
//Variables
rB1 = 4.0 //Resistance (in kilo-ohm)
rB2 = 2.5 //Resistance (in kilo-ohm)
VBB = 15.0 //Base voltage (in volts)
VD = 0.7 //Voltage (in volts)
//Calculation
n = rB1 / (rB1 + rB2) //Intrinsic stand-off ratio
VP = n * VBB + VD //Peak-point voltage (in volts)
//Result
printf("\n Intrinsic stand off ratio is %0.4f .\nPeak-point voltage is %0.f ",n,VP)
|