input a cpu frequency and timer period
output: prescaler and CSBITS for avr mega