Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/27/09 19:53
Read: times


 
#162934 - JHD 162a Connections
hi,
I have interfaced JHD162A to P89c61X2bn as follows,

LCDPin;8051 LCD
_________________________________
1 Gnd <--> Vss
2 Vcc <--> Vcc

3 Vcc--10kohm--Vee--1kohm--Gnd

4 P3.7 <--> RS
5 P3.6 <--> RW
6 P2.6 <--> EN
7-14 Port0 <--> DB0-DB7

15&16 no connection
___________________________________

but I am not getting the output. I am pretty sure that the program is working and it is correct. I have doubt regarding the connection of Vee. schematics in the data sheet show that the Vee pin is grounded via resister 'RLCD'. No value of RLCD or about the Vee is specified anywhere in the data sheet.
secondly, I am also sending the program. Please give me relevant suggestion.

#include<REG51.h>
#define output P2
sbit EN=P2^6;
sbit RS=P3^7;
sbit RW=P3^6;

void lcd_write(void);
void delay(void);

void main(void)
{

//lcd initialisation

	//lcd function set 2 line, 8 bit 5x10
	RS=0;
	output=0x3c;
	lcd_write();

	//display on , cursor underline, blink
	RS=0;
	output=0x0f;
	lcd_write();

	//charcter entry. increment display shift
	RS=0;
	output=0x06;
	lcd_write();

	//clear lcd
	RS=0;
	output=0x01;
	lcd_write();

	while(1)
	{

   	//set display address
	RS=0;
	output=0x87;
	lcd_write();
        
        //send text at that point
                output='A';
		RS=1;
		lcd_write();
	}
}

//delay 250 milli secondss appx.
void delay()
{
unsigned char a3,b1;
for(a3=0;a3<200;a3++)
	for(b1=0;b1<200;b1++);
return;
}

//lcd_write
void lcd_write()
{
EN=1;
EN=0;
delay();
delay();
return;
}
 


thank you.

List of 6 messages in thread
TopicAuthorDate
JHD 162a Connections            01/01/70 00:00      
   backlight led            01/01/70 00:00      
   pullups on p0?            01/01/70 00:00      
      yeah erik there were pull ups on P0            01/01/70 00:00      
   TIMING?            01/01/70 00:00      
      I am getting the output.            01/01/70 00:00      

Back to Subject List