I'm using MPLAB with the HI-TECH C light compiler. The chip is a 16F688.
I'm trying to build a frequency meter. The code that controls the lcd screen works fine when all the code is in one file. If I copy/paste all the lcd code from my main .c to another .c and link it, it does not work. It will compile with no errors but the device fails to communicate with the lcd even though its the same exact code.
Am I missing something? I took all the functions and definitions, put them in a separate .c file and tried to link it, #include "lcd.c" No errors, but it doesn't work.
I'm trying to build a frequency meter. The code that controls the lcd screen works fine when all the code is in one file. If I copy/paste all the lcd code from my main .c to another .c and link it, it does not work. It will compile with no errors but the device fails to communicate with the lcd even though its the same exact code.
Am I missing something? I took all the functions and definitions, put them in a separate .c file and tried to link it, #include "lcd.c" No errors, but it doesn't work.