I want to configure the DCO & MOD to a designed MCLK in the condition that FLL is closed, but don't know how to configure it manually. e.g. set the MCLK = default fDCO = 2.097152 MHz. I know that the DCO is not accurate but that is not my concern.
When opening the FLL, I get the value in 2.097152 MHz: UCSCTL0 = 0x14B8 (DCO=0x14, MOD=0x17 ) ,and it works well configured the same register manually while close FLL, but how they get it? anyone knows the calculation formula?
1> register configuration:
UCSCTL0 = 0x14B8;
UCSCTL1 = DCORSEL_2;
2>DCORSEL(DCO range):
min max
DCORSELx = 0, DCOx = 0, MODx = 0 0.07 - 0.20M
DCORSELx = 0, DCOx = 31, MODx = 0 0.70 - 1.70
DCORSELx = 1, DCOx = 0, MODx = 0 0.15 - 0.38
DCORSELx = 1, DCOx = 31, MODx = 0 1.47 - 3.45
DCORSELx = 2, DCOx = 0, MODx = 0 0.32 - 0.75
DCORSELx = 2, DCOx = 31, MODx = 0 3.17 - 7.38
DCORSELx = 3, DCOx = 0, MODx = 0 0.64 - 1.51
DCORSELx = 3, DCOx = 31, MODx = 0 6.07 - 14.0