How frequencies are converted to prom bits