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