[51] Problem regarding to initialize graphical display using 89c52

Status
Not open for further replies.

jigar@19021993

Newbie level 4
Joined
Oct 25, 2013
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
51
I m using 89c52 to operate graphical display(128x64).
i use keil for coding the IC.
here i post my program that is not running.
Can any one help me to find out that what is the problem??


program......>>>>>

#include<at89x52.h>
#define port P0

sbit LE=P3^7;
sbit EN=P3^6;
sbit RST=P2^0;

void delay(unsigned int j)
{
unsigned int i;
for(i=0;i<j;i++)
{
}
}

void main()
{
P0=0x00;
P3=0x00;
P2=0x00;

RST=0;
delay(1);
RST=1;

LE=0;
P2 = 0x3e | 1 << 0; EN = 1;delay(1);EN = 0; // initialise the GLCD | DATA appears

P2 = 0xb8 | 0x00; EN = 1;delay(1);EN = 0; // select the page (PAGE 0)

P2 = 0x40 | 0x00; EN = 1;delay(1);EN = 0; // select the column (COLUMN 0)
LE=1;
P2=0x05;// enble cs2,rs=1,r/w=0
EN = 1;delay(1);EN = 0;

P2 = 0xaa;EN = 1;delay(1);EN = 0; // load data in data register | give H-L to En
while(1);


}
 

I suggest you using **broken link removed**compiler for 8051. It have ready library for graphic lcd interface. It working properly and accurate.
 
hello


what is the display processor type
KS0108 or ST7920 ?
 

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…