This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Nokia 3310 LCD info

I would like to interface an AT89C52 directly to a Nokia 3310 LCD screen.Has anyone written any drivers for this screen.Thx

Parents
  • here is the source code i wrote
    its for the 3310 lcd the driver is by philips pcd8544 48*84 . can download the data sheet
    here is the code that i wrote can anyone correct me if i am wrong

    i use p3.0 as transfer data and p3.1 as clock

    FUNCTION EQU 00100001B
    FUNCTIONN EQU 10010000B
    FUNCTIONNN EQU 00100000B
    FUNCTIONNNN EQU 00001100B

    ORG 0000H
    JNB T1,$ ;SET TO JUMP IF BUTTON NOT
    ; ACTIVATE
    MOV SCON, #00010010b ;set the scon

    CLR P3.5 ;THIS PORT AS D/C
    MOV A,#FUNCTION
    CALL DISPLAY
    MOV A,#FUNCTIONN
    CALL DISPLAY
    MOV A,#FUNCTIONNN
    CALL DISPLAY
    MOV A,#FUNCTIONNNN
    CALL DISPLAY

    SETB P3.5
    MOV A,#00011111B
    CALL DISPLAY

    DISPLAY:
    JNB TI,DISPLAY ;FOR INTERUPT SCON
    CLR TI
    CLR P3.6 ;THIS IS SCE
    MOV SBUF,A
    RET

    END


    PS: i connected to 5v source (max for the lcd) and vdd to a capasitor 10uF

    can't get anything on the display

Reply
  • here is the source code i wrote
    its for the 3310 lcd the driver is by philips pcd8544 48*84 . can download the data sheet
    here is the code that i wrote can anyone correct me if i am wrong

    i use p3.0 as transfer data and p3.1 as clock

    FUNCTION EQU 00100001B
    FUNCTIONN EQU 10010000B
    FUNCTIONNN EQU 00100000B
    FUNCTIONNNN EQU 00001100B

    ORG 0000H
    JNB T1,$ ;SET TO JUMP IF BUTTON NOT
    ; ACTIVATE
    MOV SCON, #00010010b ;set the scon

    CLR P3.5 ;THIS PORT AS D/C
    MOV A,#FUNCTION
    CALL DISPLAY
    MOV A,#FUNCTIONN
    CALL DISPLAY
    MOV A,#FUNCTIONNN
    CALL DISPLAY
    MOV A,#FUNCTIONNNN
    CALL DISPLAY

    SETB P3.5
    MOV A,#00011111B
    CALL DISPLAY

    DISPLAY:
    JNB TI,DISPLAY ;FOR INTERUPT SCON
    CLR TI
    CLR P3.6 ;THIS IS SCE
    MOV SBUF,A
    RET

    END


    PS: i connected to 5v source (max for the lcd) and vdd to a capasitor 10uF

    can't get anything on the display

Children