Quantcast
Viewing all articles
Browse latest Browse all 63733

Forum Post: Trouble getting my MSP430F2617 to work with an external 16 MHz oscillator

I'm still having trouble getting my MSP430F2617 to work with an external 16 MHz oscillator. Thanks for the earlier comments. The MSP430F261x and 241x data sheet(SLAS541K) indicate the ability to use an external oscillator. Does anyone have sample code The processor is an 80 pin MSP430F2617 The following is sample code that produces 16MHz on SMCLK (pin49) and 112KHz on MCLK (pin48) int main(void) { static int i, j, k, n, dac; WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer // set master clock to external 16.000 MHz oscillator P8DIR = 0x00; // P8.7 is the 16.00 MHz osc input P8SEL |= 0x80; // ditto BCSCTL1 = 0xc0; // XT2 is used for MCLK BCSCTL3 = 0xf0; for ( i = 0; i < 5000; i++ ); // short delay BCSCTL2 = 0x88; // use XT2 clock ...... }

Viewing all articles
Browse latest Browse all 63733

Trending Articles