Hello!
its my first time working with the msp430.
i started working on a project that uses the MSP430. an older man wrote the program for this project and i was asked to fix it.
he didn't know how to use timers so he did a very inefficient delay( a function with a "for" loop)
now i want to use a timer and an interrupt to make it more efficient.
but i dont want to change the original program too much(not yet at least) because it is very long and works.
so i need to have a function of a delay that activates the timer and then puts the cpu in LPM0 and wait for interrupt
but then i am unable to return to "main" to the spot where the delay was issued.
how can i do that?