Jump to content
43oh

MSP430g2553 1mhz or 16mhz? how to set it?


Recommended Posts

Can you elaborate a bit on your experiences with LPM3 in Energia? I am mulling over some ideas to contribute to the Energia core to properly support LPM3 but I'm curious what kind of things already work.

 

Sent from my Galaxy Note II with Tapatalk

I'm away from my dev machine for a while so don't have access to the code, but from memory the mods were:

In the interrupt dispatcher I put a call to clear the LPM4 flags of the SR register, this means the processor always returns from interrupts at full power, so that in your loop() you can do a bit of processing before going back to LPM.

 

I also made mods to the WDT timer to run it from the crystal, since it runs in LPM3. This means it wakes 512 times per second, so not as low powered as I would like, but it means millis() is still reasonably accurate.

 

At the moment I copy different versions of the core files depending on what I want - one of these days I'll tinker with setting up different profiles, but its low on my agenda.

 

 

Sent from my iPhone using Tapatalk

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...