Kyle, Your program should probably look like this: main () { // ... configure your hardware here while (1) { // loop forever // check status of input // some logic if (counter > 50) { // this is logic example P1OUT |= PIN1; } } } You probably do not need interrupt, just run that while loop forever and keep checking the logic.
↧