EmbeddedRelated.com
Forums

Re: Increase master clock of MSP430F5438

Started by shet...@yahoo.com March 1, 2012
Hello everyone,
i am using MSP430F5438 Controller for the project.

i want to calculate the time period of the external signal which is given to the input of the TIMER B0.can anyone help me.
can anyone please tel me the Frequency values of MCLK,ACLK,SMCLK when
32 KHz crystal is connected to the MSP430F5438 Controller.
please...

thank you.

Hi guys,
>
>I try to increase the master clock frequency of my msp430 without success. I have set level by level the Vcore as high as I can (~2V) with the function available in the data sheet:
>
>void SetVCoreUp (unsigned int level)
>{
>// Open PMM registers for write access
>PMMCTL0_H = 0xA5;
>// Set SVS/SVM high side new level
>SVSMHCTL = SVSHE + SVSHRVL0 * level + SVMHE + SVSMHRRL0 * level;
>// Set SVM low side to new level
>SVSMLCTL = SVSLE + SVMLE + SVSMLRRL0 * level;
>// Wait till SVM is settled
>while ((PMMIFG & SVSMLDLYIFG) == 0);
>// Clear already set flags
>PMMIFG &= ~(SVMLVLRIFG + SVMLIFG);
>// Set VCore to new level
>PMMCTL0_L = PMMCOREV0 * level;
>// Wait till new level reached
>if ((PMMIFG & SVMLIFG))
>while ((PMMIFG & SVMLVLRIFG) == 0);
>// Set SVS/SVM low side to new level
>SVSMLCTL = SVSLE + SVSLRVL0 * level + SVMLE + SVSMLRRL0 * level;
>// Lock PMM registers for write access
>PMMCTL0_H = 0x00;
>}
>
>I cannot get faster than 1MHz with the DCO.
>Is it possible to clock the msp faster without external clock, quartz, crystal?
>And I'm not able to use a 16MHz crystal which is connected to XIN/XOUT ports.
>Is the value of loads capacitors really important, the crystal recommend 18pF but I only found 22pF?
>
>Cheers
>
>Ju
>
>

Beginning Microcontrollers with the MSP430

Is it just me or is this external signal on TimerB a very common HW problem?

Jake

On 2/29/2012 11:28 PM, s...@yahoo.com wrote:
>
> Hello everyone,
>
> i am using MSP430F5438 Controller for the project.
>
> i want to calculate the time period of the external signal which is
> given to the input of the TIMER B0.can anyone help me.
> can anyone please tel me the Frequency values of MCLK,ACLK,SMCLK when
> 32 KHz crystal is connected to the MSP430F5438 Controller.
> please...
>
> thank you.
>
> Hi guys,
> >
> >I try to increase the master clock frequency of my msp430 without
> success. I have set level by level the Vcore as high as I can (~2V)
> with the function available in the data sheet:
> >
> >void SetVCoreUp (unsigned int level)
> >{
> >// Open PMM registers for write access
> >PMMCTL0_H = 0xA5;
> >// Set SVS/SVM high side new level
> >SVSMHCTL = SVSHE + SVSHRVL0 * level + SVMHE + SVSMHRRL0 * level;
> >// Set SVM low side to new level
> >SVSMLCTL = SVSLE + SVMLE + SVSMLRRL0 * level;
> >// Wait till SVM is settled
> >while ((PMMIFG & SVSMLDLYIFG) == 0);
> >// Clear already set flags
> >PMMIFG &= ~(SVMLVLRIFG + SVMLIFG);
> >// Set VCore to new level
> >PMMCTL0_L = PMMCOREV0 * level;
> >// Wait till new level reached
> >if ((PMMIFG & SVMLIFG))
> >while ((PMMIFG & SVMLVLRIFG) == 0);
> >// Set SVS/SVM low side to new level
> >SVSMLCTL = SVSLE + SVSLRVL0 * level + SVMLE + SVSMLRRL0 * level;
> >// Lock PMM registers for write access
> >PMMCTL0_H = 0x00;
> >}
> >
> >I cannot get faster than 1MHz with the DCO.
> >Is it possible to clock the msp faster without external clock,
> quartz, crystal?
> >And I'm not able to use a 16MHz crystal which is connected to
> XIN/XOUT ports.
> >Is the value of loads capacitors really important, the crystal
> recommend 18pF but I only found 22pF?
> >
> >Cheers
> >
> >Ju
> >
> >
> >
> >



Trying to measure the frequency of a signal, or duration of a pulse is a
very common issue here, that has been discussed many times, and a search
of the posts would yield plenty of information.

This poster isn't even asking that. He is probably a student looking for
answers to his homework for free, and doesn't appear to have made any
real effort himself. The phrasing of the question is totally dumb
showing that he either hasn't bothered to read the various appropriate
documents, or doesn't understand them. It is presented to us as if it is
a homework question.

The answer to his question is "it depends on how you configure them".
You can set the clock source for each internal clock to one of several
clock sources, and also vary the divider to each clock.

Al

On 2/03/2012 2:23 AM, Jake G. wrote:
> Is it just me or is this external signal on TimerB a very common HW problem?
>
> Jake
>
> On 2/29/2012 11:28 PM, s...@yahoo.com wrote:
>> Hello everyone,
>>
>> i am using MSP430F5438 Controller for the project.
>>
>> i want to calculate the time period of the external signal which is
>> given to the input of the TIMER B0.can anyone help me.
>> can anyone please tel me the Frequency values of MCLK,ACLK,SMCLK when
>> 32 KHz crystal is connected to the MSP430F5438 Controller.
>> please...
>>
>> thank you.
>>
>> Hi guys,
>>> I try to increase the master clock frequency of my msp430 without
>> success. I have set level by level the Vcore as high as I can (~2V)
>> with the function available in the data sheet:
>>> void SetVCoreUp (unsigned int level)
>>> {
>>> // Open PMM registers for write access
>>> PMMCTL0_H = 0xA5;
>>> // Set SVS/SVM high side new level
>>> SVSMHCTL = SVSHE + SVSHRVL0 * level + SVMHE + SVSMHRRL0 * level;
>>> // Set SVM low side to new level
>>> SVSMLCTL = SVSLE + SVMLE + SVSMLRRL0 * level;
>>> // Wait till SVM is settled
>>> while ((PMMIFG& SVSMLDLYIFG) == 0);
>>> // Clear already set flags
>>> PMMIFG&= ~(SVMLVLRIFG + SVMLIFG);
>>> // Set VCore to new level
>>> PMMCTL0_L = PMMCOREV0 * level;
>>> // Wait till new level reached
>>> if ((PMMIFG& SVMLIFG))
>>> while ((PMMIFG& SVMLVLRIFG) == 0);
>>> // Set SVS/SVM low side to new level
>>> SVSMLCTL = SVSLE + SVSLRVL0 * level + SVMLE + SVSMLRRL0 * level;
>>> // Lock PMM registers for write access
>>> PMMCTL0_H = 0x00;
>>> }
>>>
>>> I cannot get faster than 1MHz with the DCO.
>>> Is it possible to clock the msp faster without external clock,
>> quartz, crystal?
>>> And I'm not able to use a 16MHz crystal which is connected to
>> XIN/XOUT ports.
>>> Is the value of loads capacitors really important, the crystal
>> recommend 18pF but I only found 22pF?
>>> Cheers
>>>
>>> Ju
>>>
>>>
>>>
>>
>
>