Debounce a Potentiometer?

You measured 18 mHz?, the crystal runs @ 16 mHz?

Doc