#include <msp430g2553.h>
void main(void)
{
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
P1SEL = 0x00; //Disable external crystal
P1SEL2 = 0x00;
P1DIR = 0xFF; //P1 is output
P1OUT=0x00;
P2DIR &= ~(BIT0); //P2.0 are input
P2REN |= BIT0; //Enable internal resistor on P2.0
P2OUT |= BIT0...