Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

need help with graphics lcd

Status
Not open for further replies.

hermione

Newbie level 2
Joined
Apr 3, 2009
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
can anybody plz help me .. i want to display values of voltage of variable resistor which is connected to adc 0809 on a graphics lcd..
graphics lcd - 240x128 with t6963c controller
microcontroller used - atmel 89c51
i am programming in assembly language..need some help with the programming
 

i think you should to be more specific in defining your project.
What is the problem? ADC? or LCD?i would like to suggest you C Programming Language for complex project.It's quite hard to manage assembly language for large project if you aren't used to it.
 

Dear hermione

I Have Code for the Graphical Display with driver supported T6963C. Please Say me in detail what is the Problem ur facing now. SO that i can help u in the same way
 

Prabakaran said:
I Have Code for the Graphical Display with driver supported T6963C. Please Say me in detail what is the Problem ur facing now. SO that i can help u in the same way

the problem is that nothing comes up on the lcd..and i think its because of some problem with the code..i think i'm not initialising it correctly..
plz.. plz send the code if u have it ..
 

Dear Hermione

void LCD_Cmd(U08 cmd)
{
U08 dummy;
PRT7DR |= 0x08;//CD - High //Both port Should be kept Strong Mode
PRT6DR = cmd;
dummy = 36;
PRT7DR &= 0xFE;// WR - Low
PRT7DR |= 0x01;// WR - High
PRT7DR |= 0x02;//RD - High
PRT7DR &= 0xFB;// CE - Low
}

void LCD_Data(U08 dat)
{
U08 dummy;
PRT7DR &= 0xF7;//CD - low //Both port Should be kept Strong Mode
PRT6DR = dat;
dummy = 63;
PRT7DR &=0xFE;// WR - Low
PRT7DR |=0x01;// WR - High
PRT7DR &=0xFB;// CE - Low
}

void LCD_Init(void)
{

PRT7DR &=0xEF;// RST - Low //Both port Should be kept Strong Mode
delay1(50);
PRT7DR |= 0x10;// RST - High
delay1(50);
PRT7DR &=0xFB;//CE - Low
delay1(50);
PRT7DR |= 0x02;//RD - High
delay1(50);
PRT7DR |=0x01;// WR - High
delay1(50);
PRT7DR |=0x08;// CD - High
PRT7DR &=0xBF;// FS - Low

LCD_Data(GLCD_GRAPHIC_HOME & 0xFF);
LCD_Data(GLCD_GRAPHIC_HOME >>0x08);
LCD_Cmd(T6963_SET_GRAPHIC_HOME_ADDRESS);

LCD_Data(GLCD_GRAPHIC_AREA & 0xFF);
LCD_Data(GLCD_GRAPHIC_AREA >>0x08);
LCD_Cmd(T6963_SET_GRAPHIC_AREA);

LCD_Data(GLCD_TEXT_AREA & 0xFF);
LCD_Data(GLCD_TEXT_HOME >> 0x08);
LCD_Cmd(T6963_SET_TEXT_HOME_ADDRESS);

LCD_Data(GLCD_TEXT_AREA & 0xFF);
LCD_Data(GLCD_TEXT_AREA >> 0x08);
LCD_Cmd(T6963_SET_TEXT_AREA);

LCD_Data(0);
LCD_Data(0x00);
LCD_Cmd(T6963_SET_OFFSET_REGISTER);
LCD_Cmd( T6963_DISPLAY_MODE | T6963_GRAPHIC_DISPLAY_ON );
LCD_Cmd(T6963_MODE_SET |1);


}

void GLCD_SetAddressPointer(U16 address)
{
LCD_Data(address & 0xFF);
LCD_Data(address >> 8);
LCD_Cmd(T6963_SET_ADDRESS_POINTER);
}

void GLCD_ClearCG(void)
{
U16 i;

GLCD_SetAddressPointer(GLCD_EXTERNAL_CG_HOME);
for(i = 0; i < 1920; i++)
{
GLCD_WriteDisplayData(0x00);
LCD_Cmd(T6963_DATA_WRITE_AND_INCREMENT);
}
}

void GLCD_WriteDisplayData(U08 x)
{
LCD_Data(x);
LCD_Cmd(T6963_DATA_WRITE_AND_INCREMENT);
}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top