Hi, I recently downloaded source code in C for frequency meter using pic16f628a.
But when compiling it in MPLAb v8.60 & HITECH C compiler, it shows no. of errors & warnings. Please anyone correct the C code. I'm new in pic project.
The reason for the numerous errors is due part by the fact the C file was written for the HITECH PIC compiler, however the delay.c file was not included. So you'll have to write your own delay routines.The MPLAB requires a different header file, something like:
By the way including another 'c' file is bad form, you should always write a header file with the function prototypes and include that instead. MPLAB also uses a different CONFIG macro.
If you desire to compile the code in MPLAB or HITECH you'll need to make some changes. I'll download the zip file and make the correction for MPLAB later tonight or tomorrow, as soon as I have the time.