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.
You can download the sample code at https://www.nuvoton.com/resource-download.jsp?tp_GUID=EC012024061709165785