Quote Originally Posted by Archangel View Post
Intel Hex file is the format which you load into the programmer and gets sent to your pic.
You write your code in P basic and compile it, the compiler translates it into assembly language, then the assembler translates it into Intel hex, which your programmer loads into the PIC.

Where did I get it ? I wrote it last night before bed, I used your LCD defines according to the way your schematic is showing the wiring. It is written for a PIC16F876A operating at 20 mhz, since I could not find any data about a 16F786A I assumed you simply transposed the numbers.

What does it do ?
It simply sends some text to each of 4 lines available to a 4 line LCD
It does not scroll, it puts the text in the same place each time it cycles.

How to use my hex file . . . select all of it by mouse clicking and dragging across it, click copy and then paste into notepad. Save the file with the suffix .hex and the name of your choice, load that into your programmer, I hope it works as I had no time or chip to test it.
I would offer the source code but it would have no value, as it is written in PBasic Pro, and P Basic does not support LCDOUT command (Or so I have been led to believe).

EDIT: And you may already know all I have posted, but the next person coming in and seeing this may not.
Oh, thank you very much! Makes more sense now. Seems like i can test my LCD with this code. I'll try it as soon as i can and i'll get back with the results.

And yes, it is PIC16F876A (i accidently wrote it wrong in my first post) and my crystal is 20Mhz. Btw, mentioning the oscillator (crystal), i heard it can cause some trouble when used on a breadboard (because of all that additional capacitance), so i'll need to test it as well. Without the external oscillator working as it should, the pic won't work and this could be a possible source of my problem too.