The more dense the sampling point, the smaller the signal distortion. The output time interval of the two sampling point is controlled by the timer and counter, so the frequency of the whole signal can be controlled by controlling the initial value of the different counting.