ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
1.0 KiB

  1. 10 PRINT CHR$(11) : REM SCREEN CLEAR
  2. 20 DIM A(25),R(77)
  3. 30 PRINT "THIS PROGRAM IS DESIGNED TO SELECT THE"
  4. 40 PRINT "PROPER VALUES OF RESISTANCE AND CAPA-"
  5. 50 PRINT "CITANCE FOR THE PROPER OPERATION OF THE"
  6. 60 PRINT "567 TONE DECODER."
  7. 70 PRINT
  8. 80 PRINT "ENTER THE DESIRED FREQUENCY OF OPERATION"
  9. 90 INPUT F
  10. 100 PRINT CHR$(11)
  11. 110 PRINT
  12. 120 S=1
  13. 130 FOR I=1 TO 13
  14. 140 READ A(I)
  15. 150 NEXT I
  16. 160 PRINT
  17. 170 PRINT "THE FOLLOWING VALUES OF RESISTANCE"
  18. 180 PRINT "AND CAPACITANCE DETERMINE THE FRE-"
  19. 190 PRINT "QUENCY OF";F;"HZ"
  20. 200 A=1
  21. 210 FOR J=2 TO 7
  22. 220 FOR I=3 TO 13
  23. 230 R(A)=A(I)*10 ^ J
  24. 240 A=A+1
  25. 250 NEXT I
  26. 260 NEXT J
  27. 270 FOR A=1 TO 66
  28. 280 C=1/(R(A)*F)
  29. 290 IF C<10^(-9) THEN 390
  30. 300 FOR H=1 TO 9
  31. 310 D=C/10^(-H)
  32. 320 IF 1>D THEN 340
  33. 330 IF D<10 THEN 350
  34. 340 NEXT H
  35. 350 FOR I=1 TO 6
  36. 360 IF .95*A(I)>D THEN 380
  37. 370 IF D<1.05*A(I) THEN 410
  38. 380 NEXT I
  39. 390 NEXT A
  40. 400 GOTO 500
  41. 410 PRINT
  42. 420 PRINT
  43. 430 PRINT "SET";S;":"
  44. 440 PRINT "R1 =";R(A);"OHMS"
  45. 450 PRINT "C1 =";1E+06*C;"UF"
  46. 460 S=S+1
  47. 470 PRINT
  48. 480 GOTO 390
  49. 490 DATA 5.0,10.0,1.0,2.2,3.3,4.7,1.2,1.5,1.8,3.9,5.6,6.2,8.2
  50. 500 END