Hello all, I'm making progress but I have gotten stuck at this point. Could I=20 please get some help? This compiles but when I try to call the delay=20 function I get error codes that I am re-declaring the delay function. I=20 can't figure out why. I have tried different names such as 'delay1 and=20 delay11'. I still receive the same error message. Could someone please=20 take a look and see what I am doing wrong? I am using 8.9x but I didn't=20 have to make any modifications to another program that I compiled under=20 version X. Thanks, rich! #include /*Richard R. pope 08-02-13 */ #pragma config FOSC =3D XT, WDTE =3D OFF, PWRTE =3D ON, MCLRE =3D OFF \ CP =3D OFF, CPD =3D OFF, BOREN =3D OFF, IESO =3D OFF, FCMEN =3D OF= F main() { PORTA =3D 0; // Turn porta off TRISA =3D 255; // Set Porta as all inputs PORTC =3D 2; // Set RC1 to RC5 high TRISC =3D 193; // Start with DP1 on, the rest of portc is=20 inputs CMCON0 =3D 7; // Turn off Comparators ANSEL =3D 16; // Set RC0/AN4 as analog // Define commands int Reset =3D 34; int Gate =3D 18; while (1 =3D=3D 1) // Loop forever { TRISC =3D Reset; // Clear the Display TRISC =3D Gate; // Start counting Notice that these function calls are commented out!!!!!!!!!!!!! //delay(1); // Count the frequency for one second =3D H= Z //delay(15); // Display the frequency for 15 seconds } } // End NewControlCode.c void delay(int time) { int x; for(x=3D0; x <=3D time * 10; x++); return; } --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .