cancel
Showing results for 
Search instead for 
Did you mean: 

_nop_()

jm
Associate II
Posted on December 23, 2005 at 12:44

_nop_()

3 REPLIES 3
jm
Associate II
Posted on December 20, 2005 at 13:02

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

jm
Associate II
Posted on December 21, 2005 at 10:27

Thanks

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

jm
Associate II
Posted on December 23, 2005 at 12:44

Thanks again !!!!