Part Number: MSP430F5419A
I have been trying unsuccessfully to setup the UCS to provide clocks from the XT! 12MHz crystal. The crystal is oscillating at the correct frequency and the levels seem to match other designs which don't seem to have a problem. The output clocks seem to be somehow always related to the DCO/FLL settings (anywhere from 2-18 MHz depending on setup) and not controlled by my initialization. I have set the VCORE voltage leve to 2 at power up then do an chip initialization/setup. The XT1HFOFFG and XT1HFOFFG flags set at power on but I reset them after initialization and they stay reset. The DCOFFG always remains set. What is wrong with my setup?? Below are the values of all the UCS registers after initialization which provides me a clock (jittery) of about 17.7Mhz.
UCSCTL0 0x1F00 UCS Control Register 0 [Memory Mapped]
DCO4 1 DCO TAP Bit : 4
DCO3 1 DCO TAP Bit : 3
DCO2 1 DCO TAP Bit : 2
DCO1 1 DCO TAP Bit : 1
DCO0 1 DCO TAP Bit : 0
MOD4 0 Modulation Bit Counter Bit : 4
MOD3 0 Modulation Bit Counter Bit : 3
MOD2 0 Modulation Bit Counter Bit : 2
MOD1 0 Modulation Bit Counter Bit : 1
MOD0 0 Modulation Bit Counter Bit : 0
UCSCTL1 0x0050 UCS Control Register 1 [Memory Mapped]
DCORSEL 101 - DCORSEL_5 DCO Freq. Range Select Bit : 0
DISMOD 0 Disable Modulation
UCSCTL2 0x101F UCS Control Register 2 [Memory Mapped]
FLLD 001 - FLLD_1 Loop Divider Bit : 0
FLLN9 0 FLL Multipier Bit : 9
FLLN8 0 FLL Multipier Bit : 8
FLLN7 0 FLL Multipier Bit : 7
FLLN6 0 FLL Multipier Bit : 6
FLLN5 0 FLL Multipier Bit : 5
FLLN4 1 FLL Multipier Bit : 4
FLLN3 1 FLL Multipier Bit : 3
FLLN2 1 FLL Multipier Bit : 2
FLLN1 1 FLL Multipier Bit : 1
FLLN0 1 FLL Multipier Bit : 0
UCSCTL3 0x0000 UCS Control Register 3 [Memory Mapped]
SELREF 000 - SELREF_0 FLL Reference Clock Select Bit : 0
FLLREFDIV 000 - FLLREFDIV_0 Reference Divider Bit : 0
UCSCTL4 0x0000 UCS Control Register 4 [Memory Mapped]
SELA 000 - SELA_0 ACLK Source Select Bit: 0
SELS 000 - SELS_0 SMCLK Source Select Bit: 0
SELM 000 - SELM_0 MCLK Source Select Bit: 0
UCSCTL5 0x0000 UCS Control Register 5 [Memory Mapped]
DIVPA 000 - DIVPA_0 ACLK from Pin Divider Bit: 0
DIVA 000 - DIVA_0 ACLK Divider Bit: 0
DIVS 000 - DIVS_0 SMCLK Divider Bit: 0
DIVM 000 - DIVM_0 MCLK Divider Bit: 0
UCSCTL6 0x016C UCS Control Register 6 [Memory Mapped]
XT2DRIVE 00 - XT2DRIVE_0 XT2 Drive Level mode Bit 0
XT2BYPASS 0 XT2 bypass mode : 0: internal 1:sourced from external pin
XT2OFF 1 High Frequency Oscillator 2 (XT2) disable
XT1DRIVE 01 - XT1DRIVE_1 XT1 Drive Level mode Bit 0
XTS 1 1: Selects high-freq. oscillator
XT1BYPASS 0 XT1 bypass mode : 0: internal 1:sourced from external pin
XCAP 11 - XCAP_3 XIN/XOUT Cap Bit: 0
SMCLKOFF 0 SMCLK Off
XT1OFF 0 High Frequency Oscillator 1 (XT1) disable
UCSCTL7 0x0301 UCS Control Register 7 [Memory Mapped]
XT2OFFG 0 High Frequency Oscillator 2 Fault Flag
XT1HFOFFG 0 XT1 High Frequency Oscillator 1 Fault Flag
XT1LFOFFG 0 XT1 Low Frequency Oscillator Fault Flag
DCOFFG 1 DCO Fault Flag
UCSCTL8 0x0707 UCS Control Register 8 [Memory Mapped]
MODOSCREQEN 0 MODOSC Clock Request Enable
SMCLKREQEN 1 SMCLK Clock Request Enable
MCLKREQEN 1 MCLK Clock Request Enable
ACLKREQEN 1 ACLK Clock Request Enable