Hi everybody I'm facing a little problem with a MSP430F449: I want to use the XT2 clock with 8MHz crystal as MCLK. I am checking the MCLK via P1.1 and it does not change, when the following procedure is executed : FLL_CTL1&=~0x20; // turn on XT2 oscillator while (FLL_CTL0&0x08); // wait for XT2 to stabilise FLL_CTL1|=0x10; // select XT2 as MCLK P1SEL=0x22; // output MCLK and ACLK P1DIR=0x22; // set pin for output direction What am I missing ? Christian
XT2 clock
Started by ●July 8, 2003
Reply by ●July 8, 20032003-07-08
Hi again
please ignore my posting.
I got it running now. Found an answer in an old message in the list!
Sorry
Christian
On Tue, 2003-07-08 at 15:23, Christian Epp wrote:
> Hi everybody
>
> I'm facing a little problem with a MSP430F449:
> I want to use the XT2 clock with 8MHz crystal as MCLK.
> I am checking the MCLK via P1.1 and it does not change, when the
> following procedure is executed :
>
> FLL_CTL1&=~0x20; // turn on XT2 oscillator
> while (FLL_CTL0&0x08); // wait for XT2 to stabilise
> FLL_CTL1|=0x10; // select XT2 as MCLK
>
> P1SEL=0x22; // output MCLK and ACLK
> P1DIR=0x22; // set pin for output direction
>
> What am I missing ?
>
> Christian
>
>
>
>
> .
>
>
>
> ">http://docs.yahoo.com/info/terms/
>
>
>
--
Christian Epp
Dipl.Ing.(FH)
R&D Beluk GmbH
Taubenstrasse 1
86956 Schongau
+49-(0)8861-2332-40
Reply by ●July 8, 20032003-07-08
Christian Epp wrote:
> Hi everybody
>
> I'm facing a little problem with a MSP430F449:
> I want to use the XT2 clock with 8MHz crystal as MCLK.
> I am checking the MCLK via P1.1 and it does not change, when the
> following procedure is executed :
>
> FLL_CTL1&=~0x20; // turn on XT2 oscillator
> while (FLL_CTL0&0x08); // wait for XT2 to stabilise
> FLL_CTL1|=0x10; // select XT2 as MCLK
>
> P1SEL=0x22; // output MCLK and ACLK
> P1DIR=0x22; // set pin for output direction
>
> What am I missing ?
>
> Christian
Relating this to assembler (my low level language of choice), you
haven't cleared the clock fault flag.
Al