$ 0 0 Take a look at the DCO oscillator peripheral of the MSP430. If has all you need and so much more. And cheaply.