The length of the NOP is the same as the length of an instruction (it actually is an instruction that does nothing), which is one clock cycle, so it depends on the speed of the oscillator timing the pic. The instruction cycle time can be calculated using the formula: instruction cycle = oscillator period * 4 Where the oscillator period is the reciprocal of the frequency or: period = 1 / oscillator frequency (measured in Hz) A delay can be made by a loop that loops a certain number of times. Also you can use GOTO $ +1 as a delay. It is twice as long as a NOP because GOTOs take two instruction cycles to execute. All it means is go to the next instruction. Hope this helped. -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Tal Bejerano - AMC Sent: Friday, July 19, 2002 6:16 PM To: PICLIST@MITVMA.MIT.EDU Subject: [PIC]: NOP Delay Hi 2 All A friend (really new to pics) ask me about the NOP delay He look at some samples at piclist archive and found that in one sample nop gives 0.122msec he's question is: what cause the delay time? Regards Tal Bejerano AMC - ISRAEL -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body