Hello,
Sorry for my poor English.
I am evaluating MSP430F6736. I would like DCO to run at the following setting.
- fFLLREFCLK = fXT1CLK = 32768Hz
- D(UCSCTL2.FLLD) = 16
- N(UCSCTL2.FLLN) = 571
- n(UCSCTL3.FLLREFDIV) = 12
- fDCOCLK = D * (N + 1) * fFLLREFCLK / n = 24.991MHz
- MCLK = DCOCLK
According to a TI's sample code (MSP430F673X_UCS_4.asm), empty loop to waste
MCLK cyeles of the following expression is required (after DCO parameters are initialized
and FLL is enabled by clearing SR.SCG0) in order to wait DCO settling.
- n * 32 * 32 * (fMCLK / fFLLREFCLK ) = 9371648 (MCLK cycles)
But in practice, it seems that this empty loop takes too long time.
About 8 seconds on CCS4 debugger.
How can I shorten the time ?
Regards,