my problem is that i want to run ACLK and SMCLK both on controller MSP430F2616 but i am not able to run it
i give all setting for that
WDTCTL = WDTPW | WDTHOLD;
_BIS_SR(OSCOFF);
BCSCTL1 |= 0x00;
BCSCTL1 |= LFXT1S_0 + XTS ;
BCSCTL1 &= ~(XT2OFF);
// BCSCTL2 |= SELM_2 + SELS + DIVS_0;
BCSCTL3 |= XT2S_2 + XCAP_1 + LFXT1OF ;
do
{
IFG1 &= ~OFIFG; // Clear OSCFault flag
for (i = 0x0FF; i > 0; i--); // Time for flag to set
}
while ((IFG1 & OFIFG)); // OSCFault flag still set?
BCSCTL2 |= SELM_2 + SELS + DIVS_2 + DIVM_0 ;
using this i got the MCLK and SMCLK but using crystal 5Mhz i want to generate the ACLK
but its not coming properly its varying not coming constant
also i set the all PORT direction and all those thing plz help me