Other Parts Discussed in Thread: MSP-TS430RGC64C, MSP-FET
MSP430 Team,
A weird problem. I am using F5249 device in the MSP-TS430RGC64C board and having trouble setting up the clocks. I am using driverlib to set MCLK to 25 MHz, and ACLK=REFO=32768 Hz. Here is my code:
I am also measuring MCLK on a scope. The problem is the code is only working correctly if I set a breakpoint at the __no_operation() (and then continue execution). With or without the breakpoint, ACLK_value and MCLK_value are correct (ACLK_value=32768, MCLK_value=24969216). But, without the breakpoint, the scope shows MCLK of about 8.1 MHz. With the breakpoint the scope shows MCLK of 25 MHz.
Any idea what is going on here? I've been debugging this for a while, but can't find the problem.
Thanks and regards,
David