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
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: 15

Sajjadkhan

Full Member level 5
Joined
Sep 25, 2010
Messages
307
Helped
17
Reputation
34
Reaction score
16
Trophy points
1,298
Location
Rawalpindi,Pakistan
Activity points
4,199
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.
 

Shaheers

Member level 2
Joined
Mar 24, 2010
Messages
51
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Location
Islamabad,Pakistan
Activity points
1,613
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: 8

pcsandhya82

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 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?
 

Shaheers

Member level 2
Joined
Mar 24, 2010
Messages
51
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Location
Islamabad,Pakistan
Activity points
1,613
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.
 

pcsandhya82

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,

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

Top