#include //standard AVR header #define F_CPU 16000000UL // THE CPU FREQUENCY #include //delay header #define LCD_DPRT PORTD //LCD DATA PORT #define LCD_DDDR DDRD //LCD DATA DDR #define LCD_DPIN PIND //LCD DATA PIN #define LCD_CPRT PORTB //LCD COMMANDS PORT #define LCD_CDDR DDRB //LCD COMMANDS DDR #define LCD_CPIN PINB //LCD COMMANDS PIN #define LCD_RS 0 //LCD RS #define LCD_EN 1 //LCD EN void lcd_putValue(unsigned char val){ LCD_DPRT &= 0x0F; LCD_DPRT |= (val&0xF0); //send cmnd to data port LCD_CPRT |= (1<