diff options
Diffstat (limited to '3754/CH32')
-rw-r--r-- | 3754/CH32/EX32.12/32_12.sce | 19 | ||||
-rw-r--r-- | 3754/CH32/EX32.2/32_2.sce | 14 | ||||
-rw-r--r-- | 3754/CH32/EX32.3/32_3.sce | 17 | ||||
-rw-r--r-- | 3754/CH32/EX32.4/32_4.sce | 18 | ||||
-rw-r--r-- | 3754/CH32/EX32.8/32_8.sce | 14 | ||||
-rw-r--r-- | 3754/CH32/EX32.9/32_9.sce | 15 |
6 files changed, 97 insertions, 0 deletions
diff --git a/3754/CH32/EX32.12/32_12.sce b/3754/CH32/EX32.12/32_12.sce new file mode 100644 index 000000000..ef2594e91 --- /dev/null +++ b/3754/CH32/EX32.12/32_12.sce @@ -0,0 +1,19 @@ +clear//
+
+//Variables
+
+f = 50.0 * 10**3 //Frequency (in Hertz)
+duty_cycle = 0.6 //Duty cycle
+C = 0.0022 * 10**-6 //Capacitance (in Farad)
+
+//Calculation
+
+T = 1/f //Time period (in seconds)
+t1 = duty_cycle * T //time interval1 (in seconds)
+t2 = T - t1 //time interval2 (in seconds)
+R2 = t2 / (0.7 * C ) //Resistance (in ohm)
+R1 = t1 / (0.7 * C) - R2 //Resistance (in ohm)
+
+//Result
+
+printf("\n Time period is %0.3f ms.\nt1 is %0.3f ms.\nt2 is %0.3f ms.\nR2 is %0.2f kilo-ohm.\nR1 is %0.1f kilo-ohm.",T*10**3,t1*10**3,t2*10**3,R2*10**-3,R1*10**-3)
diff --git a/3754/CH32/EX32.2/32_2.sce b/3754/CH32/EX32.2/32_2.sce new file mode 100644 index 000000000..1276301aa --- /dev/null +++ b/3754/CH32/EX32.2/32_2.sce @@ -0,0 +1,14 @@ +clear//
+
+//Variables
+
+R1=20.0*10**3;R2=20.0*10**3;R=20.0*10**3;
+C1=100.0*10**-12;C2=100.0*10**-12;C=100.0*10**-12;
+
+//Calculation
+
+f = 1/(1.38 * R * C) //Frequency (in Hertz)
+
+//Result
+
+printf("\n Frequency of oscillation is %0.0f kHz.",f * 10**-3)
diff --git a/3754/CH32/EX32.3/32_3.sce b/3754/CH32/EX32.3/32_3.sce new file mode 100644 index 000000000..c54c2f673 --- /dev/null +++ b/3754/CH32/EX32.3/32_3.sce @@ -0,0 +1,17 @@ +clear//
+
+//Variables
+
+R1 = 2.0 * 10**3 //Resistance (in ohm)
+R2 = 20.0 * 10**3 //Resistance (in ohm)
+C1 = 0.01 * 10**-6 //Capacitance (in Farad)
+C2 = 0.05 * 10**-6 //Capacitance (in Farad)
+
+//Calculation
+
+T = 0.69*(R1*C1 + R2*C2) //Time periode of oscillation (in seconds)
+f = 1/T //Frequency of oscillation (in Hertz)
+
+//Result
+
+printf("\n Time period of oscillation is %0.1f ms.\nFrequency of oscillation is %0.2f kHz.",T*10**3,f*10**-3)
diff --git a/3754/CH32/EX32.4/32_4.sce b/3754/CH32/EX32.4/32_4.sce new file mode 100644 index 000000000..411fb0042 --- /dev/null +++ b/3754/CH32/EX32.4/32_4.sce @@ -0,0 +1,18 @@ +clear//
+
+//Variables
+
+T1 = 1.0 * 10**-6 //Pulse width (in seconds)
+f = 100.0 * 10**3 //Frequency (in Hertz)
+R1=10.0*10**3;R2=10.0*10**3;
+
+//Calculation
+
+T = 1/f //Time period of oscillation (in seconds)
+C1 = T1 / 0.69 / R1 //Capacitance (in Farad)
+T2 = T - T1 //Time period (in seconds)
+C2 = T2 / 0.69 / R2 //Capacitance (in Farad)
+
+//Result
+
+printf("\n Value of C1 capacitor is %0.0f pico-Farad.\nValue of C2 capacitor is %0.0f pico-Farad.",C1*10**12,C2*10**12)
diff --git a/3754/CH32/EX32.8/32_8.sce b/3754/CH32/EX32.8/32_8.sce new file mode 100644 index 000000000..ab0a54cc8 --- /dev/null +++ b/3754/CH32/EX32.8/32_8.sce @@ -0,0 +1,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)
diff --git a/3754/CH32/EX32.9/32_9.sce b/3754/CH32/EX32.9/32_9.sce new file mode 100644 index 000000000..5937b81f2 --- /dev/null +++ b/3754/CH32/EX32.9/32_9.sce @@ -0,0 +1,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)
|