Hello, i'm using a 16F877 PIC. I've written a small program in C. It is divided in 8 states, and each has it's own delay. I'm using delay_ms() to specify the delay. I wanted to define lets say a=100, b=359, c=7890, so in the program i can write delay_ms(a), delay_ms(b),delay_ms(c) etc, instead of writing tha actual number in seconds. I tried defining: long int a = 100(didint work), and later saw in the manual that delay_ms() is expecting a number in milliseconds. Is there a simple way to get aroound it ? Thanks _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads