Display Your Name in 2X16 LCD Screen Using ATmega 8

post footer border
This Project focuses on how we can write our name in a LCD Screen using ATmega8 .

LCD (Liquid Crystal Display) screen  is an electronic display module and find a wide range of applications.

A 16X2 LCD display is very basic module and is very commonly used in various devices and circuits. These modules are preferred over seven segments and other multi segment LEDs.

A 16X2 LCD means it can dislay 16 characters per line and there are 2 such lines. In this LCD each charater is displayed in 5X7 pixel matrix.

This LCD has two registers, namely , Command and Data.

The command register stores the command instructions given to the LCD. a command is an instruction given to LCD to do a predefined task like initializing it, clearing its screen, setting the cursor position, controlling display etc.

The data register stores the data to be dislayed on the LCD. The data is the ASCII value of the character to be displayed on the LCD.


CODE:


#define F_CPU 1000000UL // defines the clock speed
#include <avr/io.h> // includes input/output header file     
#include <util/delay.h> // includes delay header file   
#include"lcd.h" //include lcd.h 
#include"lcd.c" //include lcd.c



//**********This program will print your name on 2X16 character LCD Display*********// 

/*PIN connections of 2X16 character LCD display to Atmega8 Port B

RS---->> PORTD_0 (Port B, 0th pin)
RW---->> PORTD_1 (Port B, 1st pin)
E---->> PORTD_2 (Port B, 2nd pin)
DATA0---->> PORTD_4 (Port B, 4th pin)
DATA1---->> PORTD_5 (Port B, 5th pin)
DATA2---->> PORTD_6 (Port B, 6th pin)
DATA3---->> PORTD_7 (Port B, 7th pin)
*/


int main (void)
{
lcd_init(LCD_DISP_ON);
lcd_puts("Embedded \n MI");
}

Download The Full Project File Here:
Display_your_name_in_2x16_LCD.rar
Display_your_name_in_2x16_LCD.rar

Project file includes .hex , c source, aps, aws etc.

This Project is more suitable for the Engineering (EE,ECE,EEE,EIE) , diploma student or interested people.



Recent Posts

AD Setting