An apparatus includes an oscillator, a counter for counting pulses, and a
latch for latching a count from the counter in response to changes in a
logic level of an output of the oscillator. The apparatus can further
include an edge detector for producing a latching signal in response to
changes in the logic level of the output of the oscillator.