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
Thanks all ! If i understand _nop_() function is used just for I/O. But in the example below, which NOP are necessary. Just 1 (or 2) for changing the state of the port direction, or all ?
void SetP8(void) { P8=0xFF; _nop_();_nop_(); DP8=0xFF; _nop_();_nop_(); }