Hi,
I have a 16Mhz crystal on XT2IN and XT2OUT . I see 16MHz on the scope so I know the oscillator is working. If I run a simple counting timing loop and toggle a pin, I see no change in the CPU speed from the default clock cycle. I imagine it's a register setup issue. Please help.
Thanks
My setup code for switching MCLK to XT2 is;
P7SEL |= 0x0C; // set XT2in out as osc mode bits 2,3
P7DIR |=0x08; //bit 3 out
P7DIR &=0xFB; //bit 2 in
UCSCTL6 &=0xFEFF; //XT2 on
UCSCTL4 |=0x0005; //101b = XT2 16Mhz MCLK source