Hello,
I install a 32KHz crystal on EM430F6137RF900 board, and set it as the source of ACLK.
I test the output frequency from Port2-0. I find that the output signal is always come
from the internal RC oscillator and can not be get from XT1, even the XT1 is working well.
I guess there is a problem in the chip design. Who knows that how to get the XT1 output.
Following is the code for test. To change i=3, the output should be from XT1, but the
output frequency is not changed. In my test, the internal RC oscillator output is 34KHz.
Thanks.
Zhifen
//*****************************************************************************
// Main Routine
//*****************************************************************************
#include "cc430x613x.h"
void main( void )
{
unsigned int i = 1; // i can be set to 1 or 3.
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer to prevent time out reset
PMAPPWD = 0x02D52; // Get write-access to port mapping regs
P2MAP0 = PM_ACLK; // Map ACLK output to P2.0
PMAPPWD = 0; // Lock port mapping registers
P2DIR |= BIT0; // enable output
P2SEL |= BIT0; // ACK output. 32K
if(i == 3)
{
P5SEL = 0x03; // Port select XT1
UCSCTL6 = XT2OFF | XCAP_3;
do {
UCSCTL7 &= ~XT1LFOFFG; // Clear fault flags
} while (UCSCTL7 & XT1LFOFFG); // Test oscillator fault flag
}
while(i)
__no_operation();
}