Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need Help doing C Language Programming for PIC18F4520 MPLAB lCD 3

Status
Not open for further replies.
Code:
#pragma config OSC = HS     //Use external oscillator
But I thought that we had established that the external oscillator does not work on your board. ...or have you repaired the fault?

Code:
#pragma config DEBUG = OFF  //Turn off debug mode
You should not set DEBUG to OFF, or to ON. Delete this line completely. MPLAB IDE will set or clear the debug bit according to whether you chose "Release" or "Debug" option when you compile.

I see you are using XLCD functions to drive your LCD. I hated these routines so much that I ended up re-writing the LCD code to be simpler.
I cannot see where PORTD.7 is set high to turn on the LCD power. I wonder if this is messing things up?

I cannot get your code to compile, but I suspect that my set-up is wrong. I have made little use of MPLAB for the last few years, so I may be of limited further help to you.
 
Last edited:

The Crystal got burned when i did some soldering now currently its ok .. i wrote a program to display voltage.. now the following attached program can work but do you know how to write a similiar program to display temperature readings..
 

Attachments

  • LCD_test.rar
    57.1 KB · Views: 46

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top