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.

[SOLVED] 4line LCD with pic18f14k50_

Status
Not open for further replies.

pcsandhya82

Member level 3
Member level 3
Joined
Jul 31, 2010
Messages
58
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Bangalore
Activity points
1,732
Hi,

I ve attached the project and ISIS schematic. LCD gets initialised, but it does not show characters. I m not able to debug it.. could someone please help?
 

Attachments

  • LCD_18f14k50.rar
    26.7 KB · Views: 101

Download the datasheet of this exact controller of the LCD. There you will find the correct sequence of commands to initialize LCD.
2nd do check that you have to wait for some milliseconds for the power buildup for lcd.
 

I seen the only problem is that
ANSEL=0; // Set output as Digital
u may add the line in ur code to set port as digital
however check the attachment, that hav solved the problem, [mikroC C program + Proteus sch]
 

Attachments

  • LCD_18f14k50.rar
    48.1 KB · Views: 80

hi, i tried ANSEL=0. no better. guess the issue might be initialisation of LCD. i m not able to access your function definitions. could you please put them into the source file?
 

Well i have no idea about mplab I am working with MikroC C language compiler, but check the following mplab c18 Libraries file and Example #3.2.2 on page#85
MPLAB_C18_Libraries

if not works

before initialization the LCD
use
ADC_0ANA ; //for set all outputs as digital
or use

void CloseADC( void ); //for Disable the A/D converter.
 
hi,

It was a problem withinitialisation sequence.. thanks for all the help :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top