theenes
Junior Member level 2

i'm interfacing LCD HD44780 with PIC16F877..
4 bit data transfer..when doin LCD Initialisation..i dont understand the need of Lcdcmdout Routine:
; Lcdcmdout Routine
LC02: MOVWF R4L
BCF 0x06,3
BCF 0x06,0
MOVLW 0x0F
ANDWF 0x06,F
MOVF R4L,W
ANDLW 0xF0
IORWF 0x06,F
BSF 0x06,2
NOP
BCF 0x06,2
SWAPF R4L,F
MOVLW 0x0F
ANDWF 0x06,F
MOVF R4L,W
ANDLW 0xF0
IORWF 0x06,F
BSF 0x06,2
NOP
BCF 0x06,2
MOVLW 0xD0
MOVWF R4L
MOVLW 0x07
MOVWF R4H
CALL Y001
RETURN
can anyone..explain me wats the function of the coding and how it works..
..i'm attaching the full coding..besides tht,can u explain to me bout ;Waitms Routine.
4 bit data transfer..when doin LCD Initialisation..i dont understand the need of Lcdcmdout Routine:
; Lcdcmdout Routine
LC02: MOVWF R4L
BCF 0x06,3
BCF 0x06,0
MOVLW 0x0F
ANDWF 0x06,F
MOVF R4L,W
ANDLW 0xF0
IORWF 0x06,F
BSF 0x06,2
NOP
BCF 0x06,2
SWAPF R4L,F
MOVLW 0x0F
ANDWF 0x06,F
MOVF R4L,W
ANDLW 0xF0
IORWF 0x06,F
BSF 0x06,2
NOP
BCF 0x06,2
MOVLW 0xD0
MOVWF R4L
MOVLW 0x07
MOVWF R4H
CALL Y001
RETURN
can anyone..explain me wats the function of the coding and how it works..
..i'm attaching the full coding..besides tht,can u explain to me bout ;Waitms Routine.