I'm trying to add delay to my code. How can I achieve this? Are there any specific instructions or not?
This will depend on your project requirements, simple counting from 0 to N by means of for loop is okay but it will block the other task the time for the processor. You can also use the timers and wait until the timer interrupt is asserted.
Retrieving data ...