Microprocessor
Microprocessor
GUIDED BY
Dr. P. K. Parlewar
LCD Display : • LCD (Liquid Crystal Display) is a flat-panel
display technology commonly used in
embedded systems.
• It operates by manipulating liquid crystal
molecules using electric fields to control the
passage of light.
• LCDs are widely used due to their low power
consumption and high readability.
Types Of LCDs :
• Character LCDs: • Graphical LCDs: • Segmented LCDs:
Displays only text Capable of displaying Used in digital watches and
characters (e.g., 16x2, images, graphs, and calculators, displaying predefined
20x4 LCDs). custom patterns. numbers and symbols.
GUIDED BY
Dr. P. K. Parlewar
8085 Microprocessor :
8-bit microprocessor, 5V power supply,
16-bit address bus (64KB memory).
Operates at 3 MHz, 40-pin DIP
Architecture
• Registers: Accumulator (A),
general-purpose (B, C, D, E, H, L),
PC, SP
• ALU: Performs arithmetic/logic
operations
• Control Unit: Decodes
instructions
Key Pins
• Control: RD, WR, ALE, IO/M
• Interrupts: TRAP, RST7.5, INTR
GUIDED BY
Dr. P. K. Parlewar
Interfacing :
GUIDED BY
Dr. P. K. Parlewar
Code :
HLT ; Stop execution
MVI A, 38H ; Initialize LCD in 8-bit mode ; Subroutine to send command to LCD
CALL CMD_WR CMD_WR:
MVI A, 0CH ; Display ON, Cursor OFF MOV C, A ; Store command in register C
CALL CMD_WR CALL DELAY ; Call delay for timing
MVI A, M06H ; Auto Increment Cursor MOV A, C ; Retrieve command from register C
CALL CWR OUT 80H ; Send command to LCD (Port A of 8255)
MVI A, 'H' ; Load ASCII character 'H' RET ; Return from subroutine
CALL DATA_WR ; Subroutine to send data to LCD
MVI A, 'E' ; Load ASCII character 'E' DATA_WR:
CALL DATA_WR MOV C, A ; Store data in register C
MVI A, 'L' ; Load ASCII character 'L' CALL DELAY ; Call delay for timing
CALL DATA_WR MOV A, C ; Retrieve data from register C
MVI A, 'L' ; Load ASCII character 'L' OUT 81H ; Send data to LCD (Port B of 8255)
CALL DATA_WR RET ; Return from subroutine
MVI A, 'O' ; Load ASCII character 'O' ; Delay subroutine for timing
CALL DATA_WR DELAY:
D_WR NOP ; No operation (2 machine cycles)
MVI A, 01H ; Clear Display NOP ; No operation (2 machine cycles)
CALL CMD_ RET ; Return from subroutine GUIDED BY
Dr. P. K. Parlewar
Applications :
GUIDED BY
Dr. P. K. Parlewar
THANK YOU
GUIDED BY
Dr. P. K. Parlewar