#include <avr/io.h>
#include <avr/interrupt.h>
#include<stdlib.h>
#include<compat/deprecated.h>
#include <util/delay.h>
#define datapin 0x01 // Value of data port when the data pin is high
#define dataport PINB // Enter the data port here
<--------Global Declarations-------------->
static unsigned int count=0;
static unsigned char data=0x00;