#include <msp430.h>
/*
* main.c
*/
void main(void)
{
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
P8DIR = BIT2 + BIT1;
P1OUT = BIT7;
P1REN |= BIT7;
P1IE |= BIT7;
P1IES |= BIT7;
P1IFG &= ~BIT7;
_BIS_SR(LPM4_bits + GIE);
}
#pragma vector=PORT1_VECTOR
__interrupt void Port_1(void)
{
P8OUT ^= BIT2 + BIT1;
P1IFG &= ~BIT7;
}
|