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
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 onestone●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
Signal Processing Engineer Seeking a DSP Engineer to tackle complex technical challenges. Requires expertise in DSP algorithms, EW, anti-jam, and datalink vulnerability. Qualifications: Bachelor's degree, Secret Clearance, and proficiency in waveform modulation, LPD waveforms, signal detection, MATLAB, algorithm development, RF, data links, and EW systems. The position is on-site in Huntsville, AL and can support candidates at 3+ or 10+ years of experience.