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

Forum Post: RE: timer problem in restarting

$
0
0
The last two lines in your main loop: (a) Start the timer (MC_2), then (b) stop it (TACTL=MC_0). Timer_on doesn't start the timer, but waits, expecting it to be running, but it isn't running since you just stopped it. Did you intend those last two lines in the loop (initialize(); TACTL=MC_0;) to be in the opposite order? Or did you mean for Timer_on to start the timer (MC_2)? (At first glance, the latter might work out better.)

Viewing all articles
Browse latest Browse all 62309

Trending Articles



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