Mike Keitz wrote: >using a delay loop. Another time killer is to label one of the returns >in the program and call it; this takes 4 cycles with one instruction. I'm surprised nobody commented on this. Actually, you generally use two instructions in the format: call Dlay4 : Dlay4 return Now, you *could* use a "return" instruction at the end of some handy subroutine, *but*, that would prevent you from doing: : Dlay16 call Dlay8 Dlay8 call Dlay4 Dlay4 return Which is a really nifty (and neat-o) way of generating longer delays very simply and with few instructions (although very long delays are not possible because of the limitations of the PIC's Stack). myke "One must invoke enough raw truth to punch a hole in the world" - Darl Af