lcd display in ccs compiler

Status
Not open for further replies.

icrekha

Newbie level 4
Joined
Feb 1, 2008
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Erode
Activity points
1,323
hi everybody!
i am using pic 16f877a 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()
{
icd _init ();
printf(lcd_putc, " NORMAL");
}
PIN CONNECTIONS:
B4----- B7 = DATA LINES
B1 = enable
B2 = cs
B3 = RS.
B3 =
 

Hi!
Which version of CCSC are you using. In the lateset versions the lcd port defaults to PORTD of pic microcontroller. In order to use PORTB you will have to uncomment a line in the lcd.c file.

// Un-comment the following define to use port B
#define use_portb_lcd TRUE

I hope this solves the problem.
Regards.
 

hi icrekha

before sending a string to lcd,you have to set the address(where the string is displayed)
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…