HI,
I found this code for LED blinking test, i want to know what does asm("nop"); mean here??
I found this code for LED blinking test, i want to know what does asm("nop"); mean here??
Rich (BB code):
#include <pic.h> // pic specific identifiers
__CONFIG(0x3D18); // Config bits
void main(void) // program entry
{
CMCON = 0x7; // Comparitors off
TRISA = 0x0; // Both ports
TRISB = 0x0; // as outputs
while(1) // Loop forever
{
PORTB = 0xff; // All on!!
PORTA = 0xff;
asm("nop"); // We can call asm for
asm("nop"); // precise timming
PORTB = 0x0; // All off!
PORTA = 0x0;
}
} // End!!