Applying the condition of electromagnetic wave restricted in horizontal direction,the conditions that each mode should satisfy are concluded from the one-dimensional rectangle doping photonic crystal. The dependences of defect modes on the mode quantum number and doping thickness are obtained for TE wave and TM wave. These results can be used to design multi-channel filter with frequency tuning.