Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

how to display character on graphic lcd t6993 using C

Status
Not open for further replies.

esconele

New Member
hello,
i'm using at89c55 for interfacing graphical lcd t6993 i want to display a single character on lcd using 'C' anyone have idea about this pls help me i've written code like this
code:
//*****************************************************************************************************************************************
//LCD t6963 INTERFACING WITH AT89C55WD
//*****************************************************************************************************************************************
#include "reg51.h"
sbit LRST = P3^6; //LCD RESET
sbit P3_0= P3^0; //LCD C/D
sbit P3_2= P3^2; //LCD WR
sbit P3_3= P3^3; //CHIP ENABLE
sbit P3_1=P3^1; //LCD RD
// P1 DATA PORT


main()
{
int m,*dptr,R6;

RS0 =0;
RS1 =0;
LRST=0;
DELAYP5SEC();
LRST = 1;

LCD_INIT()

//I want to display character 's' on graphical lcd
//how to display it.
S:DB 0FFH,0F0H
DB 0FFH,0F0H
DB 0F0H,00H
DB 0F0H,00H
DB 0FFH,0F0H
DB 0FFH,0F0H
DB 00H,0F0H
DB 00H,0F0H
DB 0FFH,0F0H
DB 0FFH,0F0H



}

LAT1()
{
int i;
for(i=0;i<=4;i++)
{
;
}
}


void LCD_INIT()
{
DATA1 =0x00;
DATA2=0x00;
DATA1_WRITE();
ACC=0x040;
LAT1();
P1=ACC;

LAT1();
CMD_WRITE();
DATA1=0x1E;
DATA2 =0x00;
DATA1_WRITE();
ACC= DATA1;
LAT1();
P1=ACC;

LAT1();
CMD_WRITE();
DATA1=0x00;
DATA2=0x03;
DATA1_WRITE();
ACC=DATA2;
LAT1();
P1=ACC;

LAT1();
CMD_WRITE();
DATA1=0x01E;
DATA2=0x00;
DATA1_WRITE();
ACC=0x043;
LAT1();
P1=ACC;

LAT1();
CMD_WRITE();
DATA1=0x00;
DATA2=0x14;
DATA1_WRITE();
ACC=0x22;
LAT1();
P1=ACC;

LAT1();
CMD_WRITE();
CLRTEXT();
CLRGRAP();
P1=ACC;

LAT1();
CMD_WRITE();
ACC=0x88;
LAT1();
P1=ACC;

LAT1();
CMD_WRITE();
}





void CMD_WRITE()
{
P3_0=1;
P3_2=0;
P3_3=0;
P3_3=1;
P3_2=1;
}
void DATA_WRITE()
{
P3_0=0;
P3_2=0;
P3_3=0;
P3_3=1;
P3_2=1;
}
void DATA1_WRITE()
{
ACC=DATA1;
LAT1();
P1,ACC;
P1=ACC;
LAT1();
DATA_WRITE();
ACC=DATA2;
LAT1();
P1=ACC;
P1=ACC;
LAT1();
DATA_WRITE();
}

void LCD_DATA()
{ ACC=*VAL64H;
LAT1();
P1=ACC;
P1=ACC;
LAT1();
DATA_WRITE();
ACC=0XC0;
LAT1();
P1=ACC;
P1=ACC;
LAT1();
CMD_WRITE();
}
 
Several examples out there for PIC's. You should be able to port to the Atmel without too much trouble. I Google'd 'lcd pic t6963'. Check here about 2/3rds down the page for t6963 examples:

**broken link removed**

Found this after Googling 'lcd atmel t6963':

**broken link removed**

Does that help?
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top