Connect with me on Linkedin

Friday, 4 December 2015

16*2 LCD interface with Atmega8 AVR

bbd
the whole aim is to interface a 16*2 lcd module with avr atmega8 microcontroller the fig. shows pin diagram of lcd module and the simulation as to which pin will be connected with atmega8 
after you connect the LCD with the atmega8 as accordingly shown in the picture bun the following program in the IC using a program burner

#include<avr/io.h>
#include"lcd118010.h"

int main(void)
{
unsigned char x; //variable declaration
char str1[]="ELECTRICAL &";
char str2[]="ELECTRONICS";
lcd_init();
lcd_string(str1);
lcd_cmd(0xc0);                     //Command to move cursor to second line
lcd_string(str2);
}

No comments:

Post a Comment

Featured post

Iron Man Infra Red palm Cannon

simple Atmega8 kit a buzzer and an infra red sensor and blue LED C Program #include<avr/io.h>         //This is...