When run though, the frequency of the output on P1.0 is 32.9 KHz
The signal on P1.1 has a frequency of 75.2 KHz.
The XT1LFOFFG bit of USCTL7 is set indicating that an XT1 fault condition
exists. What is wrong with this code?
#include "io430.h"
int main (void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1DIR = P4DIR = 0xFF; // Set all ports to output
P2DIR = 1;
P5DIR = 0x3F;
P6DIR = 0xF;
P1OUT = P2OUT = P4OUT = P3OUT = P6OUT = 0;
P5DIR &= ~BIT4; // XIN an input
P5SEL |= BIT4|BIT5; // Enable XT1
UCSCTL6 &= ~XT1OFF_L; // XT1 on
P1SEL |= BIT0; // Enable ACLK output on P1.0
while (1)
P1OUT ^= BIT1;
}