Switched clock to internal oscillator