rs\n");printf("3.Digitallow-passFilter\n");printf("4.DigitalFilterwithfastresponse\n");printf("Pleasechooseafuction(1~4):");scanf("%d",&fction);}while((fction<1)||(fction>4));switch(fction){case1:data_n=hdpj(data,1024);break;case2:data_n=jqpj(data,1024);break;case3:data_n=szdt(data,1024);break;case4:data_n=ksxy(data,1024);break;}display(data_handled,data_n);closegraph();}voidinterruptmyint8(void){intdbyte;doubletemp,value1,value2;;outportb(0x280,0x00);do;while(!(inportb(0x285)&0x80));ad.adlh.low8=inportb(0x281);ad.adlh.high8=inportb(0x282);dbyte=ad.ad12.low12;temp=(dbyte-2047)*10/4096;data[data_num]=temp;if((data_num>0)&(fction>3)){value1=((float)data[data_num-1]-2047)*10/4096;value2=((float)data[data_num]-2047)*10/4096;data1[data_num]=(value2-value1)/0.12;}data_num++;outportb(0x20,0x20);}