Tool/software: TI C/C++ Compiler
Hi everyone,
Clock I need is ACLK with 32768-Hz and the 135-MHz(or the maximum frequency I can set with this chip) with SMCLK and MCLK.
ACLK has finished setting as the 32768-Hz but I have a trouble with SMCLK and MCLK.
But the most important of all, it is shown that the chip can only operate with the maximum frequency 20-Mhz.
And the question is that, can I really make the frequency up to 135-MHz?
What is the meanings in the 5.16 and 5.19 in the datasheet of this chip?
Crystal of XT2 and the capacitance I use are 24-MHz and 15 pf.
I have check on the sample code which named msp430f6xx_UCS08, 07, 04 and 03, and make a change.
Do I have any registers that is miss setting or error setting?
Now, the MCLK output is 4.9-MHz, and the code for register setting is below,
while(BAKCTL & LOCKBAK)//Unlock XT1 pins for operation
BAKCTL &= ~(LOCKBAK);
UCSCTL6 &= ~(XT2OFF + XT1OFF);//Enable XT1 and XT2
UCSCTL6 |= XT2DRIVE_3 + XCAP_3;//XT2 Drive Level mode:3, Internal load cap
UCSCTL4 = SELA__XT1CLK + SELS__DCOCLK + SELM__DCOCLK;//ACLK=XT1,SMCLK=DCO,MCLK=DCO
UCSCTL3 = SELREF__XT2CLK ;//FLLREF=XT2
UCSCTL2 |= FLLD__32;
do
{
UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + DCOFFG);//Clear XT2,XT1,DCO fault flags
SFRIFG1 &= ~OFIFG;//Clear fault flags
}while(SFRIFG1&OFIFG);