Professional Documents
Culture Documents
Aim:
Theory:
A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. In
this LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers.
2. Data Register - stores the data to be displayed on the LCD. The data is the ASCII
value of the character to be displayed on the LCD.
3. To send any of the commands to the LCD
- Then send a high – to – low pulse to the E pin to enable the internal latch of the LCD.
Block Diagram
Program:
ORG 0000H
MOV A, #38h
ACALL CMNWRT
ACALL DELAY
MOV A, #0Eh
ACALL CMNWRT
ACALL DELAY
MOV A, #1h
ACALL CMNWRT
ACALL DELAY
MOV A, #80h
ACALL CMNWRT
ACALL DELAY
MOV A, ’V’
ACALL DATWRT
ACALL DELAY
MOV A, ’I’
ACALL DATWRT
ACALL DELAY
MOV A, ’T’
ACALL DATWRT
ACALL DELAY
L: SJMP L
CLR P 0.2
CLR P 0.1
SETB P0.0
CLR P0.0
RET
SETB P 0.2
CLR P 0.1
SETB P0.0
CLR P0.0
RET
L: DJNZ R2, L
DJNZ R1, L1
DJNZ R0, L2
RET
END
RESULT: