Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

ABS07 Crystal - MSP430F5328

$
0
0

Good afternoon.

I am unable to get the above external 32kHz crystal (Abracon part) to work with the XT1 on the 5328.  I have configured P2.2 as the SMCLK for verification and am monitoring with a scope.  I have hung 24pF off of each side of the crystal to ground on the board layout.  Using eqn 3 in SLAA322B and recognizing that clearing the XCAP bits gives me an extra 2pF I believe my effective load capacitance is around 13pF (datasheets says 12.5pF).  My code settings are (see below):  If I change UCS4 to 0x0444, I get my smclk out on pin 28 (~8mhz).  Can someone give me an indication as to what I might be doing wrong.

UCSCTL3 = 0x0020;

UCSCTL4 = 0x0404;                       

__bis_SR_register(SCG0);

  UCSCTL0 = 0x0000;                        

  UCSCTL1 = DCORSEL_5;                     

  UCSCTL2 = FLLD_1 + 244;                  

  UCSCTL6 = 0xC1C1;

  __bic_SR_register(SCG0);                 

__delay_cycles(375000);

do

  {

    UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + DCOFFG);

    SFRIFG1 &= ~OFIFG;                     

  } while (SFRIFG1&OFIFG);                  

 


Viewing all articles
Browse latest Browse all 262198

Trending Articles