+ Reply to Thread
Results 1 to 2 of 2

Thread: how to display character on graphic lcd t6993 using C

  1. #1
    esconele Newbie
    Join Date
    Jan 2006
    Location
    mumbai
    Posts
    43

    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();
    }


  2. #2
    keithK Newbie
    Join Date
    Aug 2006
    Location
    Plano, TX
    Posts
    9

    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 07:36 AM.

+ Reply to Thread

Similar Threads

  1. microchip application A590 /display is ok now
    By prosound90 in forum Micro Controllers
    Replies: 20
    Latest: 18th November 2006, 09:44 PM
  2. graphic display
    By tylerdurden in forum Micro Controllers
    Replies: 8
    Latest: 23rd October 2003, 02:37 AM
  3. Display Special Character
    By mikemikemike in forum Electronic Projects Design/Ideas/Reviews
    Replies: 1
    Latest: 14th August 2003, 07:30 AM
  4. Character map using 7x5 dot matrix display.
    By st1v3n in forum General Electronics Chat
    Replies: 2
    Latest: 31st July 2003, 10:15 AM
  5. Industrial LCD graphic display pinout
    By l4322 in forum General Electronics Chat
    Replies: 0
    Latest: 21st June 2003, 12:37 PM

Tags for this Thread