Hi, I have just taken a project already started on the ST10F168. My problem is to understand when I am obliged to use the _nop_() function. Because in my project, it's using in abundance...Is it really necessary ?? When you set a port or a state(input/output), do you put a _nop_() (or 2) after ?? In general, when the use of this function is necessary ?? Thanks in advance Regards JM
The only time I use them is when enabling/disabling interrupts to make sure the pipeline is flushed out before ending an atomic sequence. See this thread for more info. http://www.keil.com/forum/docs/thread1226.asp