Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 4th October 2006, 10:30 AM   #1
Default how to display character on graphic lcd t6993 using C

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.
SB 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();
}
esconele is offline  
Old 5th October 2006, 08:31 AM   #2
Default

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:

http://www.picant.com/c2c/examples.html

Found this after Googling 'lcd atmel t6963':

http://seasight.dforge.cse.ucsc.edu/...ega128/avrlib/

Does that help?

Last edited by keithK; 5th October 2006 at 08:36 AM.
keithK is offline  
Reply

Tags
character, display, graphic, lcd, t6993

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
microchip application A590 /display is ok now prosound90 Micro Controllers 20 18th November 2006 10:44 PM
graphic display tylerdurden Micro Controllers 8 23rd October 2003 03:37 AM
Display Special Character mikemikemike Electronic Projects Design/Ideas/Reviews 1 14th August 2003 08:30 AM
Character map using 7x5 dot matrix display. st1v3n General Electronics Chat 2 31st July 2003 11:15 AM
Industrial LCD graphic display pinout l4322 General Electronics Chat 0 21st June 2003 01:37 PM



All times are GMT. The time now is 02:38 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker