add oscillator calibration code to run at 8MHz