#include<iom128.h>
#include<ina90.h>
void main(void)
{
unsigned char number = 0xFE;
DDRB=0xFF;
PORTB=0xFF;
DDRD&=0xFE;
PORTD=0X00;
do{
while(PIND & 0x01);
while(!(PIND & 0x01));
PORTB=number;
number=(number << 1) | 0x01;
if((number & 0xFF) == 0xFF)
number=0xFE;
}while(1);
}