What is the right external crystal for MSP430F67751IPZR micro controller. Now using 32.678KHz 12PF micro crystal but not working. We tried to configure doesn't work. Please help me to get this right.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
What is the right external crystal for MSP430F67751IPZR micro controller. Now using 32.678KHz 12PF micro crystal but not working. We tried to configure doesn't work. Please help me to get this right.
Muthu,
then maybe your configuration of the clock is wrong. The crystal itself isn't the problem in most cases.
Post your initialization of the clock module. Please use the syntax highlighter in richt text formatting when inserting code.
Dennis
Btw.: The crystal's frequency is 32.768 kHz, not 32.678 kHz, but this might be just a typo.
Muthu,
Did you have a look at the code example for using the external crystal? It is
//****************************************************************************** // MSP430F67791 Demo - UCS, XT1 sources ACLK. Toggles P5.3 // // Description: This program demonstrates using XT1 to source ACLK // ACLK = LFXT1 = 32,768Hz // //* An external watch crystal between XIN & XOUT is required for ACLK *// // // MSP430F67791 // ----------------- // /|\| XIN|- // | | | 32kHz // --|RST XOUT|- // | | // | P1.2|--> ACLK = ~32kHz // | | // | P5.3|-->LED // // C. Fu // Texas Instruments Inc. // October 2012 // Built with CCS Version: 5.1.0 and IAR Embedded Workbench Version: 5.51 //****************************************************************************** #include <msp430.h> void main(void) { WDTCTL = WDT_ADLY_1000; // WDT 1000ms, ACLK, interval timer SFRIE1 |= WDTIE; // Enable WDT interrupt // Setup P5.3 output, P1.2 ACLK P5DIR |= BIT3; // Set P5.3 to output direction P5OUT &= ~BIT3; // Clear P5.3 P1DIR |= BIT2; // ACLK set out to pin P1SEL0 |= BIT2; // P1.2 for debugging purposes. // Setup LFXT1 UCSCTL6 &= ~(XT1OFF); // XT1 On UCSCTL6 |= XCAP_3; // Internal load cap // Loop until XT1, XT2 & DCO stabilizes // do // { // UCSCTL7 &= ~(XT2OFFG | XT1LFOFFG | DCOFFG); // // Clear XT2,XT1,DCO fault flags // SFRIFG1 &= ~OFIFG; // Clear fault flags // } while (SFRIFG1 & OFIFG); // Test oscillator fault flag UCSCTL6 &= ~(XT1DRIVE_3); // XT1 stable, reduce drive strength __bis_SR_register(LPM3_bits | GIE); // Enter LPM3 w/ interrupts __no_operation(); // For debugger } // Watchdog Timer interrupt service routine #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__) #pragma vector = WDT_VECTOR __interrupt void watchdog_timer(void) #elif defined(__GNUC__) void __attribute__ ((interrupt(WDT_VECTOR))) watchdog_timer (void) #else #error Compiler not supported! #endif { P5OUT ^= BIT3; // Toggle P5.3 using exclusive-OR }
This code is tested since it is from TI itself. The code examples can be found here:
Dennis
**Attention** This is a public forum