View previous topic :: View next topic |
Author |
Message |
Guest
|
problem with LCD |
Posted: Wed Apr 23, 2008 3:28 pm |
|
|
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
|
|
|
foodwatch
Joined: 18 Apr 2006 Posts: 66
|
|
Posted: Wed Apr 23, 2008 7:54 pm |
|
|
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() |
|
|
|
|
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
|