Part Number: MSP430FR6989
Hi,
I want to drive the high frequency part of the chip with an external square wave generator at 8MHz. External crystal for LFXT is connected. The Version before with an external LFXT and the internal DCO worked.
The 8MHz signal looks like this:

Now the initialization:
- PJSEL1 &= ~(BIT4 + BIT5 + BIT6);
PJSEL0 |= BIT4 + BIT5 + BIT6; - Than is the LF crystal initialized, which worked before
-
CSCTL4_bitfield.HFXTOFF_bit = 1;
CSCTL4_bitfield.HFXTBYPASS_bit = 1; // enable bypass
CSCTL4_bitfield.HFXTDRIVE_bits = 0; // low drive mode
CSCTL4_bitfield.HFFREQ_bits = 1; // 4 to 8MHz
CSCTL5_bitfield.ENSTFCNT2_bit = 1;
SFRIEx_bitfield.OFIE_bit = 0;
CSCTL4_bitfield.HFXTOFF_bit = 0;do
{
CSCTL5_bitfield.HFXTOFFG_bit = 0;
SFRIFGx_bitfield.OFIFG_bit = 0;if (exitCount >= CLOCKGENERAL_HFXT_ERROR_COUNT)
{
CSCTL4_bitfield.HFXTOFF_bit = 1;
return clockGeneral_status_error;
}
exitCount++;} while (SFRIFGx_bitfield.OFIFG_bit);
- Than set CDCTL2_bitfield.SELM = 5; // HFXT
- Than set CDCTL2_bitfield.SELS = 5; // HFXT
system runs but not really correctly