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.

serial lcd - need serious help

Status
Not open for further replies.

ethak

Newbie level 1
Joined
Feb 15, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
philippines
Activity points
1,290
serial lcd need help

im using the new version of ccs c compiler.
i am using pic 16f84a for my project. i am using 2*16 type of LCD DISPLAY.
I have written the pgm for that. but i didnt get any any display in my LCD. can anyone plz check the codings??\
#include<LCD.c>
vod main()
{
set_tris_b(0x00);
set_tris_a(0x1f);
icd _init ();
lcd_putc("Hello");
}
PIN CONNECTIONS:
B4----- B7 = DATA LINES
B1 = enable
B2 = cs
B3 = RS.

can anyone help me i need this asap..tnx
 

Re: serial lcd need help

Try this one

Code:
#include "string.h"
char hello[]="Hello";
#include "lcd.c"

void main()
{
 set_tris_b(0x00); 
 set_tris_a(0x1f); 
 initLCD();
 
 while(1)
 {
  printstringXY_LCD(hello,1,0); 
 }  
}
 

If your code correct then problem may be with lcd display connect CONTRAST pin of LCD to GND
 

lcd _init (); not icd _init ();
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top