Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

MSP430 toggle switch

$
0
0

I've connected a bluetooth module to my MSP430, and i'm trying to toggle an LED on and off once it receives a single. At the moment I can get the LED to come on through P1.3 however I can not get it to turn off again.

Any help will be greatly appreciated.

This is the code i'm using;

P1SEL &= ~0x08; // Select Port 1 P1.3 (push button)

P1IE |= 0x08; // Port 1 Interrupt Enable P1.3 (push button)
__enable_interrupt(); // Enable interrupts

__bis_SR_register(GIE); // interrupts enabled\


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>