| ||||||||
Technical Support Support Resources Product Information | C51: USING NOP IN CInformation in this article applies to:
QUESTIONWhat is the syntax for using an NOP instruction in C? ANSWERThe C51 Compiler comes with an intrinsic library function you may call to invoke the NOP instruction. The NOP instruction is inserted inline. For example:
#include <intrins.h>
void tst_nop (void) {
P1 = 0xFF;
_nop_ (); // delay
_nop_ ();
_nop_ ();
P1 = 0x00;
}
MORE INFORMATIONLast Reviewed: Thursday, September 22, 2005 | |||||||
| ||||||||