Skip to main content
jm_it
Associate III
December 23, 2005
Question

_nop_()

  • December 23, 2005
  • 3 replies
  • 1049 views
Posted on December 23, 2005 at 12:44

_nop_()

This topic has been closed for replies.

3 replies

jm_it
jm_itAuthor
Associate III
December 20, 2005
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_it
jm_itAuthor
Associate III
December 21, 2005
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_it
jm_itAuthor
Associate III
December 23, 2005
Posted on December 23, 2005 at 12:44

Thanks again !!!!