Hi,
I have the TI MSP430F5529-EXP board. I have the following program which toggles P1.0 @ 32KHz appx. -
int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1DIR |= BIT0; // Set P1.0 to output direction (LED1)
for (;;)
{
P1OUT ^= BIT0; // Toggle P1.0 using exclusive-OR
}
}
The board has the LFXTCLK clock xtal as 32.768KHz (which pbbly goes to the ACLK) and the XT2CLK clock xtal as 4MHz. I've tried some programs (changing the UCSCTL regs etc.) but all of them still toggle P1.0 @ 32KHz. I guess this is because the ACLK is still being sourced by LFXTCLK.
I wanted to know if there is any way in s/w of increasing the speed of ACLK from 32KHz to 4 or 8 MHz so that P1.0 toggles faster (and the entire program in general speeds up)? How do I change the source of ACLK or speed it up?
Also, since ACLK is connected to a 32KHz xtal, if I change the xtal to something like 25MHz, will it help in speeding up the ACLK frequency in general?
Thanks for your time and help,
Regards,
Zubin Kumar.