The nop's are there to allow the BCF to take effect before the BSF;- if you do successive bit operations on a port pin *WITHOUT* at least 1 nop period between them the results will be *INTERESTING* 3 nop's though are overkill, so I suppose they are there for a specific delay interval in this code, but note that 1 nop is included after the BSF too, for port pin settling. There are better ways of obtaining delays and toggling port pins - in particular you call specific delay routines and you toggle a bit in an ordinary, RAM register (PIC file) then copy the *WHOLE* register to the port. This allows greater I/O control, code portability and code readability as you re-use your trusted code in different PICs. Bye. -----Original Message----- From: rad0 [mailto:rden25@MINDSPRING.COM] Sent: Tuesday, 28 August 2001 16:20 To: PICLIST@MITVMA.MIT.EDU Subject: [pic]: what does this mean BCF PORTC, 4 NOP NOP NOP BSF PORTC, 4 NOP THIS is clearing port c then setting port c pin 4, correct? and are the nop 's in there to give an amount of time to this pulse? if so, how long is a nop, ??? thanks.... -- 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