Interfacing Liquid Crystal Display using ATmega 16
Hey there ! In this blog, we are going to start Interfacing LCD with Atmega16.
First of all, let's deal with LCD :-
LCDs (Liquid Crystal Displays) are used for displaying status or parameters in embedded systems.
LCD 16x2(For it is having 16 rows and 2 columns) is a 16 pin devices which has 8 data pins (D0-D7) and 3 control pins (RS, RW, EN). The remaining 5 pins are for supply and backlight for the LCD.
The control pins help us configure the LCD in command mode or data mode. They also help configure read mode or write mode and also when to read or write.
LCD 16x2 can be used in 4-bit mode or 8-bit mode depending on requirement of application. In order to use it we need to send certain commands to the LCD in command mode and once the LCD is configured according to our need, we can send the required data in data mode.
A 16*2 LCD somewhat look like:-
Basic functions required to interface an LCD with Atmega 16:-
Since LCD is connected to PORTA, so PORTA must be configured as INPUT.
For this, we write DDRA (Register associated with port A) =0
- lcd_gotoxy(a,b):- This function moves the LCD insert point to a specific character cell.
- lcd_puts() :-Display string without auto linefeed.
-
- Parameters
s string to be displayed
- Parameters
Could you send me google drive links of gate materials to my whatsapp:9154344837,gmail:pavankalyanpatel007@gmail.com
ReplyDelete