So I am new to the MSP430 (I have the launchpad with the MSP430G2553 chip)
Im also pretty new to electronics and computer architecture/digital logic.
Anyways i have an LED (and resistor connected to 1.5 Port Pin
my code is here:
#include <msp430.h>
void main (void){
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
P1DIR &= 0x00; // reseting the P1DIR register
P1OUT &= 0x00; // reseting the P1OUT register
P1DIR = 0x20; // Set pins with LEDs to output , 0b00010001
P1OUT = 0x20; // LED1 on (1.5) (Active High)
for (;;) { // Loop forever ...
} // ... doing nothing
}
However I notice if I press the RESET button on the launchpad, it just blinks the LED? any ideas?
(Also side question....is there a better way to 'turn off' the launchpad? Theirs no option in windows 10 to disconnect it (Im connected via usb)? I stop debugging but have just pulled out the USB cable? Not sure if theirs a better way.