LCD and Keyboard Interfacing
LCD and Keyboard Interfacing
INTERFACING (1)
LCD INTERFACING
Why LCD is widespread used?
• 1. The declining prices of LCDs.
• 2. The ability to display numbers, characters, and graphics. This is in
contrast to LEDs, which are limited to numbers and a few characters.
• 3. Incorporation of a refreshing controller into the LCD, thereby
relieving the CPU of the task of refreshing the LCD. In contrast, the
LED must be refreshed by the CPU (or in some other way) to keep
displaying the data.
• 4. Ease of programming for characters and graphics
LCD pin descriptions
Pin Positions for Various LCDs from Optrex
Hitachi HD44780 controller or compatible
LCD pin descriptions
• The Program 12-3 shows how to use the MOVC instruction to send
data and commands to an LCD. Error !!
• The MOVC instruction is used to get the massage to be displayed on
the LCD from the code memory ONLY.
• C version of LCD programming
Examples 12-1 and 12-2
CGROM - Character Generator ROM
5x8 -5x10
Creating custom character
• For more information:
https://www.8051projects.net/lcd-interfacing/
https://www.circuitstoday.com/interfacing-16x2-lcd-with-8051
https
://microcontrollerslab.com/interfacing-lcd-8051-mirocontroller-code/
https://www.electronicshub.org/interfacing-16x2-lcd-8051/