Other Parts Discussed in Thread: MSP430F2491
Hi Folks,
Here's what I'm trying to achieve:
Have my MSP430F2491 start-up with the 16MHZ DCO as the source for MCLK and SMCLK.
Do all the system initialisations and some work. Once there is no more work to be done switch the MCLK source to ACLK and enter LPM3
Every timer tick, check if one of the software timers has lapsed. If so then return the MCLK source to be the 16MHz DCO and return to active mode, otherwise just return to LPM3.
So far, what I have managed to do is:
Start-up in 16MHz DCO. Set-up ACLK be the source for my timer tick (so I know ACLK is always running).
I successfully enter LPM3 and process the interrupt as it happens.
However, when I monitor the MCLK on an output pin I never see it switch to th 32.768kHz ACLK. It's at the 16MHz when the timer tick happens and stopped when in LPM3.
Because the DCO is still running my current consumption is still in the 2mA range when Ideally it should be in the 200-300uA range.
Has anyone got some working sample code that does something like what I'm trying to do?