summaryrefslogtreecommitdiff
path: root/3754/CH32/EX32.8/32_8.sce
blob: ab0a54cc8078df8ab618e507288de9d72ff6f330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear//

//Variables

R1 = 2.2 * 10**3                     //Resistance (in ohm)
C1 = 0.01 * 10**-6                   //Capacitance (in Farad)

//Calculation

tp = 1.1 * R1 * C1                   //Pulse width (in seconds)

//Result

printf("\n The pulse width is  %0.3f  micro-second.",tp * 10**6)