Hi all,
I am trying to run an MSP430F2122 with an 12 MHz crystal on XT1, but without success. The oscillation doesn't start.
Here is my code, it's like in the example:
WDTCTL = WDTPW + WDTHOLD; // Stop Watchdog Timer
BCSCTL1 |= XTS; // ACLK = LFXT1 = HF XTAL
BCSCTL3 |= LFXT1S1; // 3 – 16MHz crystal or resonator
do
{
IFG1 &= ~OFIFG; // Clear OSCFault flag
for (i = 0xFF; i > 0; i--); // Time for flag to set
}
while (IFG1 & OFIFG); // OSCFault flag still set?
BCSCTL2 |= SELM_3; // MCLK = LFXT1 (safe)
The oscillator flag OFIFG is always on.
The device is powered with 3,4V. I can see into the controller with the FETU430IF.
The capacitors next to the crystal are 15 pF. I tried with and without series resistors between 200R and 4k7, also in combination with a parallel resistor of 500k and 1Meg. The voltage at the XOUT pin rises at 0.8 V, not more. But the XT1 doesn't oscillate!
If I am working with the DCO, the controller works fine.
What can be the cause for XT1 not to run?
Thanks in advance for the help!
Hans