In some applications, there is a need to quickly change the irregular input pulse to a fixed pulse. If the I/O port of MCU is used to detect the input pulse, then output a fixed pulse, the output pulse cannot be generated quickly, and if the input pulse is more frequent, it will occupy a large amount of CPU resources.