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
So, NOP are necessary just after changing the state of one port pin direction of a port, or also after changing the value of the port pin ? which NOP are necessary in the example below. Just 1 (or 2) after changing the direction, or all ?
Code:
P8=0xFF; _nop_();_nop_(); DP8=0xFF; _nop_();_nop_(); Regards JM