
UT5 - 11
210 INPUT "R3 in OHMS = "; R
220 PRINT "Required capacitance in ufd. = "; T/(1.1*.000001*C)
230 PRINT
240 GOTO 10
300 INPUT "Desired TIME in seconds = "; T
310 INPUT "Value of C1 in microfarads = "; C
320 PRINT "Required value of R3 in ohms = "; T/(1.1*.000001*C)
330 PRINT
340 GOTO 10
Similarly, the oscillator frequency in astable mode can be found by formula, also worked easily as a Basic computer
program:
Frequency (Hz) = 1.44/((R3 + R4) X C1 in farads)
Either section of the program may be re-organized as you like, rendered in scientific notation, or otherwise improved.
410 PRINT "FIND FOR FREQUENCY [F], MICROFARADS [C] OR OHMS [R]?"
420 INPUT "ENTER SELECTION: "; Y$
430 IF Y$ = "F" THEN 460
440 IF Y$ = "C" THEN 510
450 IF Y$ = "R" THEN 560
470 INPUT "R3 in ohms = ";R
480 PRINT "FREQUENCY (in Hz>) ="; 1.44/((R+2000)*C*.000001)
490 PRINT
Kommentare zu diesen Handbüchern