Other Parts Discussed in Thread: MSP430F5529
Hi,
This is regarding the MSP430F5529 DCO clock settings,
I am trying to set the DCO around 7.3MHz, with the below settings on MSP430F5529 TI target board.
With "DCORSEL_6;" the code always stops at the fault flag loop
with DCOFFG always ON. But with "DCORSEL_5;" the code works fine without any fault flag.
-------------------------------------------------------
UCSCTL3 = 0; // FLL Reference Clock = XT1
__bis_SR_register(SCG0);
UCSCTL0 = 0;
UCSCTL1 = DCORSEL_6;
UCSCTL2 = FLLD_0 + 449;
UCSCTL3 = SELREF__XT1CLK + FLLREFDIV_1;
__bic_SR_register(SCG0);
__delay_cycles(250000);
do
{
UCSCTL7 &= ~(XT2OFFG + XT1LFOFFG + DCOFFG);
// Clear XT2,XT1,DCO fault flags
SFRIFG1 &= ~OFIFG; // Clear fault flags
}while (SFRIFG1&OFIFG); // Test oscillator fault flag
--------------------------------------------------------
As per the datasheet I think we can use both DCORSEL_6 and DCORSEL_5 settings
but don't understand why do we ge Fault flag (DCOFFG) with DCORSEL_6?
Please let me know which is the appropriate setting.
Best Regards
Kummi
