Jump to content

Search the Community

Showing results for tags 'low power modes'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 1 result

  1. I was wondering if anyone might be able to give me direction on how to use the LPM's? I have seen a bunch of stuff like this: //****************************************************************************** // MSP430G2xxx Demo - Software Port Interrupt Service on P1.3 from LPM4 // // Description: A hi/low transition on P1.3 will trigger P1_ISR which, // toggles P1.0. Normal mode is LPM3 ~ 0.1uA. LPM4 current can be measured // with the LED removed, all unused P1.x/P2.x configured as output or inputs // pulled high or low, and ensure the P1.3 interrupt input does not float. // ACLK = n/a, MCLK = SMCLK = default DCO // // MSP430F20xx // ----------------- // /|\| XIN|- // | | | // --|RST XOUT|- // /|\ | | // --o--|P1.3 P1.0|-->LED // \|/ // // M.Buccini / L. Westlund // Texas Instruments, Inc // October 2005 // Built with CCE Version: 4 //****************************************************************************** #include <msp430g2231.h> void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer P1DIR |= 0x01; // Set P1.0 to output direction P1IE |= BIT3; // P1.3 interrupt enabled P1IES |= BIT3; // P1.3 Hi/lo edge P1IFG &= ~BIT3; // P1.3 IFG cleared _BIS_SR(LPM4_bits + GIE); // Enter LPM4 w/interrupt } // Port 1 interrupt service routine #pragma vector=PORT1_VECTOR __interrupt void Port_1(void) { P1OUT ^= 0x01; // P1.0 = toggle P1IES ^= BIT3; P1IFG &= ~BIT3; // P1.3 IFG cleared } Not really too tough to follow considering it has been commented every step of the way. I guess my question is: Is there already some functionality that I am not aware of within Energia to utilize the LPM's? Is there a library available to allow people using Energia to use the various LPM's available? Regardless of the answers to those two questions...if I wanted to take the above code, and use it in Energia would that be possible? I assume there is some sort of syntax for allowing a code block like the one above to pass information to the C code or am I way off here? As usual, I come with more questions than answers :-)
×
×
  • Create New...