Special function number 1 calculates the time elapsed between the last up/down count pulse and a capture event. The time between the last pulse and the capture is expressed in milliseconds with an accuracy within + or – 1ms.
The time diagram below shows how special function number 1 operates.