Abstract:A project to realize the encoding and decoding of pulse number, pulse width and pulse spacing in the pulse distance measuring system is put forward by use of software programming. By taking the encoding and decoding of three pulses for example, the concrete realizing process is expounded, and the characteristics of the encoding and decoding by software realization are analyzed.