The invention discloses a stepping temperature compensation method of a crystal oscillator. The method adopts the closed-loop feedback compensation architecture, and comprises the following steps: firstly determining the binary coding B0i corresponding to a target frequency f0, and storing in a single chip microcomputer; when the temperature change is existent, sending a signal with a mode frequency of f(T) to an A/D converter to convert into the corresponding binary coding B1i, and inputting to the single chip microcomputer to compare with the binary coding B0i of the target frequency f0, setting the threshold range deltaB in the single chip microcomputer, comparing the B0i with the B1i, judging whether a comparison result B0i-B1i is in the threshold range; if the B0i-B1i is not in the threshold range, compensating by using the stepping binary coding B2i, and then sending into the single chip microcomputer to compare with the B0i after the compensation, cyclically compensating in this way until the comparison result B0i-B1i is in the threshold range, thereby finally realizing the temperature compensation. Compared with the existing temperature compensate crystal oscillator, the method disclosed by the invention is free from using a temperature sensor, a temperature hysteresis problem caused by asynchronous wafer temperature change of the temperature sensor and the crystal resonator in the existing TCXO is overcome.