16×2 LCD display not working propery.. | Microcontroller › AVR › 16×2 LCD display not working propery.. This topic has 9 replies, 7 voices, and was last updated 10 years, 11 months ago by Jay. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts May 26, 2012 at 3:25 pm #1817 samynathanParticipant i am using this code in atmega16…. lcd is not displaying anything… someone plz help me. portb is control port portd is data port enable—pb2 rw—pb1 r/s—pb0 #include<avr/io.h> #include<util/delay.h> void main() { DDRD=0xFF; DDRB=0x07; { { PORTD=0x38; PORTB=0b00000100; _delay_ms(10000); PORTB=0b00000000; _delay_ms(10000); } { PORTD=0x01; PORTB=0b00000100; _delay_ms(10000); PORTB=0b00000000; _delay_ms(10000); } { PORTD=0x0E; PORTB=0b00000100; _delay_ms(10000); PORTB=0b00000000; _delay_ms(10000); } { PORTD=0x80; PORTB=0b00000100; _delay_ms(10000); PORTB=0b00000000; _delay_ms(10000); } } unsigned char *str=”ENGINEERS GARAGE”; int i=0; while(str!=’