LC meter coding problem

Thread Starter

khatus

Joined Jul 2, 2018
115
Hello,guys I have a code for LC meter using nokia 3310 display and PIC16F876A microcontroller. Which is written by some other person.The code is packed by winrar. When i extract the .rar file i have noticed that inside the folder there are three .c files and as well as three corresponding .h file. The three header files are
1. "display.h" Which probably displays various values and to adjust screen.
2. "lcd3310.h" which is for activate the lcd module
3. "main.h" the main program.


Now inside the main program the above 3 header file is mentioned.Like below


My question is how does the program works?? and which file should be uploaded in to the micro controller??

This time i wanted to use 0.96? OLED I2C Display Module.And I have a code for this.

But as per my knowledge the entire code should be inside just one .C file not like 3 mentioned above.
My question is
1. What will be the difference if i use 3 separate code instead of just one main program Which consist of three part ?
2. If i write 3 individual code mentioned above then How can i join them and compiled them in to above??

Please give a detailed advise as i am a programming beginner.
 

blue_coder

Joined May 7, 2016
37
Hello Khatus,
Could you post a link to wherever you got files from? They look remarkably like files for Arduino, but bearing in mind you mention the PIC16F876A I think Xavier must be on to the correct answer, that's a common chip for the Microchip Dev kits, which usually use MPLAB. The answer to your question is very different depending which IDE the files are for.
 

Thread Starter

khatus

Joined Jul 2, 2018
115
I got this files from http://projectproto.blogspot.com/2009/09/lc-meter-pic16f876a-n3310lcd.html

I am using mikro c pro software for programming. I have to change the program to mikroC from mplab. But till now i have never used multiple c files to to make one big program? I don't know what it's called?is this modular programming?? I wanted to about the programming structure ?? Do anyone have any link about this type of programming???And does Mikroc support multiple source files per project???
 
Top