John Doe wrote: > what I am looking for is a piece of code to make a delay that can > be specified in milliseconds. I fomeone can do this in the parallax > instruction set it would be great. My 16c84 will be running off a > colorburst crystal. Sigh... Ok, here's the code: ; WAIT SOME NUMBER OF MILLISECONDS (MORE OR LESS) ON A 14-BIT ; PIC RUNNING AT 3.579545 MHZ. ; ; ENTER WITH THE NUMBER OF MILLISECONDS IN W. MSTIMER EQU [any general-purpose file register] WAITMS: MOVWF MSTIMER WAITMS1: MOVLW 223 WAITMS2: ADDLW -1 SKPZ GOTO WAITMS2 DECFSZ MSTIMER GOTO WAITMS1 RETURN Sorry, but I don't use the Parallax instruction set... Maybe Andy Kunz will translate it for you. -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === === Did the information in this post help you? Consider === contributing to the PICLIST Fund. Details are at: === http://www.geocities.com/SiliconValley/2499/fund.html