Hi there,
I have a hard time getting the MSP430G2553 DCO clock to work. Here is what my initialization code looks like:
if (CALBC1_8MHZ ==0xFF || CALDCO_8MHZ == 0xFF)
{
while(1); // If cal constants erased, trap CPU!!
}
__delay_cycles(10000);
/* DCO 13, 3 = 7.8 Mhz */
BCSCTL1 &= ~BIT1;
BCSCTL1 |= BIT3 + BIT2 + BIT0;
DCOCTL &= ~BIT7;
DCOCTL |= BIT6 + BIT5;
BCSCTL2 = 0;
BCSCTL3 = 0;
Instead of 7.8 Mhz (as written in datasheet), I'm getting approximately 1 Mhz. Of course, I also tried the precalibrated settings of DCO, but with no success. Have any of you come across something like this?