LCD INTERFACING WITH ATmega16 by RAJ PRAJAPATI
THIS IS THE CODE WRITTEN BY ME FOR THE 8 BIT MODE FOR LCD INTERFACING...
/*HEADER FILE TO USE LCD IN 8 BIT MODE
PORTA FOR DATA PINS
OF LCD
PA0=DB0
PA1=DB1
PA2=DB2
PA3=DB3
PA4=DB4
PA5=DB5
PA6=DB6
PA7=DB7
PORTB
PB0=RS
PB1=RW
PB2=RN
DESIGNED BY:- RAJ PRAJAPATI (NAGPUR INSTITUTE
OF TECHNOLOGY, NAGPUR)
*/
/*---------------------------------------------------------------------------------------------------*/
//HEADER
FILES
#include<avr/io.h>
#include<util/delay.h>
#include<stdlib.h>
/*----------------MACROS--------------------*/
#define rs 0
#define rw 1
#define en 2