> i.e How can i calculate the nop delay if working with a 4MHz crystal. > I've seen many examples that calculate this delay in various ways but the > result is not the same. It takes 4 clock cycles to execute each simple instruction like a NOP. With a 4MHz clock you can run instructions at a 1MHz rate, which means the delay for an individual NOP is 1uS. ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@cognivis.com, http://www.cognivis.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics