Jump to content

Search the Community

Showing results for tags 'mps430'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 3 results

  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 :-)
  2. cde

    Motion Sensing Pantry Light

    A small project. G2211 PIR Sensor 5630 LED strips On/Off button Button Doubles as Test Mode Board half way done. Using a Reg104 DPAK (I'll stick to a TO-220 next time) as the regulator, and MMBT3904 sot-23 transistors on a board of my own design. The base resistors should be on the back, but I didn't have the right value 0805/1206 resistors at the time. Quite proud of my clean, flush mount, perfect fit for the button, led, and sensor. Two tricks. One, I used two pins to provide high to low, and low to high interrupts, instead of swapping the interrupt in code, since I won't always know it's state. It is much simpler like this for me. Two, the status led is only 0.66 mA. 600 microamps. Look how visible it is. Keep that in mind when building your own projects. One issue. I have the PIR sensor directly powered by the 3.2V regulator I am using, bypassing the HT7133 on it. As such the PIR sensor triggers when the leds turn off, likely due to noise/ripple experienced. Next time I'll just power the sensor from the 12V with it's regulator, or I could change the sensor to non-retriggerable mode, or wire the enable pin to the msp430. I just coded a delay that ignores the trigger. The timing of the lights is long enough that it shouldn't be an issue in normal use. main.c common.h
  3. chicken

    OV7670-FIFO + MSP430 Launchpad

    I just came across this well-documented project that connects the MSP430 G-series launchpad with an OV7670 camera module: http://www.rpg.fi/desaster/blog/2012/10/20/ov7670-fifo-msp430-launchpad It uses the MSP430G2452 and implements: - I2C to talk to the camera - 8bit parallel interface to read image from camera - soft UART to transfer image data to the PC (at 115200 baud)