Lcd_AVR_Atmel Basic library for 204 4bit LCD. This is basc libarary for 204 4 bit LCD made for my code. you can take reference of this and use it in ur case.