Hello everyone !!
I am a beginner in MSP430. I am using _delay_cycles to stop the code at a particular time. Its really a bad practice.
The code I use is something like this
for(i=0;i<65000;i++){} //This delay is equal to 1 sec for my MSP
So, can anyone help me in this by giving a sample of code explaining how the same can be done using counters and interrupts.
Thanks in advance....!!!