LCD Graphic 128x64

Discussion in 'Programmer's Corner' started by rakanety, Mar 21, 2011.

  1. rakanety

    Thread Starter New Member

    Mar 21, 2011
    1
    0
    Dear friends,
    I would like to know the problem of my program with AT89c52 with lcd graphic 128x64?I'm currently i'm using protes 7.1 sp4(you can see diagram picture @picture1(http://www.4shared.com/photo/NtYeM_OX/capture_proteus_lcd128x64.html)

    Problem : see at picture2(http://www.4shared.com/photo/ZnErIgSG/simulation_eror_proteus_lcd128.html) and have trouble "PARAMETER <INVERT> not defined in INVERT of U1 and

    listing program :
    ;inisialisasi LCD
    DaTA_LCD equ p2

    ENABLE BIT P0.7
    DI BIT P0.5

    CS1 BIT P0.6
    CS2 BIT P0.4

    RES BIT P0.3
    RW BIT P0.2

    LCD1: CLR CS2
    SETB CS1
    CLR DI
    CLR RW
    SETB ENABLE
    MOV DATA_LCD,#3FH
    CLR ENABLE
    CALL CEK_LCD
    RET

    LCD2: CLR CS1
    SETB CS2
    CLR DI
    CLR RW
    SETB ENABLE
    MOV DATA_LCD,#3FH
    CLR ENABLE
    CALL CEK_LCD
    RET

    SET_COLUMN0:
    CLR DI
    CLR RW
    MOV DATA_LCD,#01000000B
    SETB ENABLE
    CLR ENABLE
    CALL CEK_LCD
    RET

    SET_PAGE0:
    CLR DI
    CLR RW
    MOV DATA_LCD,#10111000B
    SETB ENABLE
    CLR ENABLE
    CALL CEK_LCD
    RET

    TULIS: SETB DI
    CLR RW
    SETB ENABLE
    CLR ENABLE
    RET

    CEK_LCD:
    CLR ENABLE
    CLR DI
    SETB RW
    SETB ENABLE
    JB P2.7,CEK_LCD
    CLR ENABLE
    RET

    RESET:
    CLR ENABLE
    CLR RES
    SETB RES
    RET

    STATUS_WRITE:
    CLR ENABLE
    SETB DI
    CLR RW
    SETB ENABLE
    CLR ENABLE
    RET

    STATUS_READ:
    CLR ENABLE
    CLR DI
    SETB RW
    SETB ENABLE
    CLR ENABLE
    RET

    STATUS_LINE:
    CALL INIT
    SETB ENABLE
    MOV DATA_LCD,#11000000B
    CLR ENABLE
    RET


    Please help....
     
Loading...