#include<iom128.h>
#include<ina90.h>
unsigned int data=0xFE;
void main(void)
{
DDRB=0xFF;
PORTB=0xFF;
DDRD_Bit0=0;
EIMSK |= 0x01;
EICRA |= 0x03;
EIFR |= 0x01;
__enable_interrupt();
while(1);
}
#pragma vector=INT0_vect
__interrupt void INT0_interrupt(void)
{
__disable_interrupt();
PORTB=data;
data--;
__enable_interrupt();
}