Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: How to Proper Call an Interrupt within a Function

$
0
0
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.

Viewing all articles
Browse latest Browse all 62309

Trending Articles



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