Nicholas wrote : > Is it called timer sub-routine in C language? It is a > sub-routine in the C-lauguage. I don't know how to > write in C language. What about "Chapter 5. Sample Application" in the "MPLAB. C18 C COMPILER USER S GUIDE" ?? And have you thought of just writing a short ASM code to do this ? Jan-Erik. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads