C program for AVR micro interface