They're all of exactly the same length, so they're all of exactly the right frequency, and you produce the data that you need, and when it's loading it again, it's counted so they can knows exactly how many edges have been found in a particular point in time, they have to turn things like interrupts off.