Calculate prescaler from system core clock freq.