#include<iom128.h>
#include<ina90.h>
void m_delay(unsigned int m)
{
unsigned int i,j;
__disable_interrupt();
for(i=0; i<m; i++)
for(j=0; j<2650; j++);
__enable_interrupt();
}
void main(void)
{
unsigned char number=0xFE;
DDRB=0xFF;
PORTB=0xFF;
do{
PORTB=number;
number= (number << 1) | 0x01;
if((number & 0xFF) == 0xFF)
number=0xFE;
m_delay(500);
}while(1);
}