EmbeddedRelated.com
Forums

Unstable Clock

Started by "paddu.koti" July 3, 2008
Hi,

I am using the below code to test the SMCLK clock in MSP430F413,but
when I checked it in the oscilloscope the SMCLK seems to be unstable,
it flactuates between 1.9MHz and 1.24Mhz.
How do I get a stable clock frequency?
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
SCFI0 |= FN_2; // Set DCO operating range
FLL_CTL0 |= XCAP14PF; // Set load capacitance for xtal
SCFQCTL = 36; // (36+1) x 32768 = 1.212Mhz
P1DIR = 0x22; // P1.1,5 to output direction
P1SEL = 0x22; // P1.1,5 to output MCLK & ACLK

(I am using D413 exp board mabe by Softbaugh)

Thankyou in advance.....

Beginning Microcontrollers with the MSP430

Hi,
Ihave checked ACLK and it was stable(32.76Khz).
thankyou...
----- Original Message ----
From: old_cow_yellow
To: m...
Sent: Thursday, July 3, 2008 2:46:32 PM
Subject: [msp430] Re: Unstable Clock
Is ACLK stable? If not, DCO cannot be stable.

--- In msp430@yahoogroups. com, "paddu.koti" wrote:
>
> Hi,
>
> I am using the below code to test the SMCLK clock in MSP430F413,but
> when I checked it in the oscilloscope the SMCLK seems to be unstable,
> it flactuates between 1.9MHz and 1..24Mhz.
> How do I get a stable clock frequency?
>
>
> WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
> SCFI0 |= FN_2; // Set DCO operating range
> FLL_CTL0 |= XCAP14PF; // Set load capacitance for xtal
> SCFQCTL = 36; // (36+1) x 32768 = 1.212Mhz
> P1DIR = 0x22; // P1.1,5 to output direction
> P1SEL = 0x22; // P1.1,5 to output MCLK & ACLK
>
> (I am using D413 exp board mabe by Softbaugh)
>
> Thankyou in advance.....
>





Is ACLK stable? If not, DCO cannot be stable.

--- In m..., "paddu.koti" wrote:
>
> Hi,
>
> I am using the below code to test the SMCLK clock in MSP430F413,but
> when I checked it in the oscilloscope the SMCLK seems to be unstable,
> it flactuates between 1.9MHz and 1.24Mhz.
> How do I get a stable clock frequency?
> WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
> SCFI0 |= FN_2; // Set DCO operating range
> FLL_CTL0 |= XCAP14PF; // Set load capacitance for xtal
> SCFQCTL = 36; // (36+1) x 32768 = 1.212Mhz
> P1DIR = 0x22; // P1.1,5 to output direction
> P1SEL = 0x22; // P1.1,5 to output MCLK & ACLK
>
> (I am using D413 exp board mabe by Softbaugh)
>
> Thankyou in advance.....
>