return16;}}//*********************************uintGet_Number_T0(ucharFrequency){uinth;doublel;l=(double)Frequency;l=Control_Phase*0.5/l;l=l/0.000055;h=l;if(l-h>+0.5)h=h+1;returnh;}//*********************************uintGet_Number_T1(ucharFrequency){uinth;doublef;f=(double)Frequency;f=0.5/f;f=f/0.0002;武汉理工大学《单片机原理与应用》课程设计说明书10h=f;if(f-h>=0.5)h=h+1;returnh;}//********************************T0voidTimer0_Interrupt()interrupt1{Counter_T0++;if(Counter_T0>Number_T0){Counter_T0=0;if(Flag==0)WaveB=WaveA;elseWaveB=~WaveA;ET0=0;TR0=0;}}//********************************T1voidTimer1_Interrupt()interrupt3{Counter_T1++;if(Counter_T1>Number_T1){Counter_T1=0;WaveA=~WaveA;ET0=1;TR0=1;}}//********************************voidIncrease_Frequency(){if(Frequency<=256-10)Frequency=Frequency+10;elseFrequency=255;