CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

problem with LCD

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








problem with LCD
PostPosted: Wed Apr 23, 2008 3:28 pm     Reply with quote

Hi, I'm using TS1620B-7 2x16 LCD but it doesn't work on board. I'm using PIC16F877. I connected D0-E, D1-RS, D2-RW, D4-D7 -DB4-DB7, Vo and Vss 0V, Vdd 5V. It works on Proteus but doesnt work on board.Is there any extra connection for this LCD?
My codes are very simple:



Code:

#include <16F877A.H>
#fuses XT,NOWDT,NOPROTECT,BROWNOUT,PUT,NOLVP
#use delay (clock=4000000)
#include <lcd.c>

int a=5;

void main()
{
lcd_init();
while(1)
{
printf(lcd_putc,"\f %d",a);
delay_ms(500);
}
}


can u help me what is the problem?
meereck



Joined: 09 Nov 2006
Posts: 173

View user's profile Send private message

PostPosted: Wed Apr 23, 2008 4:05 pm     Reply with quote

try to connect D0-D3 of the LCD to the ground. Make sure that there is about 0.4V on Vo pin (contrast pin).
You can also try to use Flex driver by PCM Programmer - http://www.ccsinfo.com/forum/viewtopic.php?t=24661
foodwatch



Joined: 18 Apr 2006
Posts: 66

View user's profile Send private message Yahoo Messenger

PostPosted: Wed Apr 23, 2008 7:54 pm     Reply with quote

look at lcd.c and be sure the d port pins are set up correctly. Do you get square blocks when you first power up, but before the program hits lcdinit()
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group