PRINT "A program for interdigital filter design" PRINT "Author Prof.C.J.Kikkert Amiga version Oct 1988" PRINT "Based on Dishal M. IEEE MTT 13 no 5 Sep 65" pi=3.141592654# : pi2=pi/2! c=3E+11 Flog10=LOG(10) start: INPUT" Centre frequency in MHz =";fc INPUT" Bandwidth in MHz =";bw w=bw/fc IF w>.1 THEN PRINT "Warning Dishal's equations are only accurate for narrow bandwidths" PRINT "the bandwidth selected is too big to give accurate results" PRINT "To go back to the start of the program enter a negative number of resonators" END IF fc=fc*1000000! :bw=bw*1000000! resonlength=c/(fc*4!) :resonlp=.9*resonlength :cavhgt=resonlength PRINT USING " Ideal resonator length = ######.# mm";resonlength PRINT USING "Suggested resonator length = ######.# mm";resonlp PRINT USING "Suggested Cavity height = ######.# mm";cavhgt INPUT" Number of resonators =";nres IF nres < 0 THEN start nres1=nres+1 nres2=nres-1 enttype: PRINT "Do you wish to use 1 Normalised Low Pass Filter tables" PRINT " 2 K and Q tables" INPUT " Enter selection";selec IF selec=1 THEN lowpass IF selec=2 THEN kandq PRINT "Incorrect selection" : GOTO enttype lowpass: PRINT "Enter normalised components for equilalent low pass filter from" PRINT "filter tables, Zverev pp312-340 or Matthaei Young & Jones Ch4" FOR i=1 TO nres1/2 il=2*i-1 :ilm=nres1-il PRINT USING "C## or g## =";il;ilm; INPUT z(il) il=il+1 IF il