Other Parts Discussed in Thread: MSP430WARE
I am trying to get the 5342 to work at 8 MHz using XT2 on an eval board. I ahve added load capacitors as suggested and get an oscillation of about 1V at the crystal. BUT the part clocks using an internal clock (I think) that is much slower. The code taht I have written is below. I am an analog engineer so NOT a micro expert therfore I may have done something obvious to others.
Code:
P5SEL |= 0x0C; // set for XT2, P5 bits 2 & 3
UCSCTL4 = SELA__XT2CLK | SELS__XT2CLK | SELM__XT2CLK; // XT2 for all
UCSCTL5 = DIVM_0 | DIVS_0 | DIVA_0 | DIVPA_0; // divide all by 1
UCSCTL6 &= ~XT2OFF; // turn XT" on
UCSCTL6 |= XT2DRIVE_1; // drive level
UCSCTL6 |= XT1OFF_L; // turn off XT1
UCSCTL6 &= ~XT2BYPASS; // turn off bypass