ive decided to code my own delay routines with HI-TECH PICC for P16F877A micro. (although picc compiler itself has samples delay routines they arent so accurate). Before starting coding i have looked the other compilers delay library capabilities. First of all the CCS and MikroC compilers have built-in delay routines and it seems that they aren't so accurate. They have us, ms, s, cyclic based routines. So i passed them at the first stage. So i changed my attention to the MPLAB-C18 compiler. Whereas its PIC18 family compiler it has the delay routines what i'm looking for. The routines are cycle based and the codes are all open for the routines. I started to examine the sources but i realized that they are all ASM based and mostly benefitted of PIC18 ASM. I dont have much experience with PIC18 assembly so it will be hard for me to adopt them for PIC16 family. Are there any other open-source cycle based delay implementations which will facilitate my coding works? -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist