blob: 5937b81f294150f7458dfa5367203a8614e99d91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear//
//Variables
C = 1000.0 * 10**-12 //Capacitance (in Farad)
tp = 10.0 * 10**-6 //Pulse width (in seconds)
T = 60.0 * 10**-6 //time period (in seconds)
//Calculation
R1 = tp / (1.1 * C) //Resistance (in ohm)
//Result
printf("\n Resistance required is %0.2f kilo-ohm.",R1 * 10**-3)
|