#include <iom16v.h>
#include <macros.h>
#define uchar unsigned char
#define uint unsigned int
uchar table[10]={0x40,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
void delay(uint us)
{ uint j;
while(us--)
{
for(j=1142;j>0;j--);
}
}
void Init_io ( )
{
DDRA=0xff;
PORTA=0xff;
DDRB=0x00;
PINB=0xff;
DDRC=0xff;
PORTC=0xff;
DDRD=0xff;
PORTD=0x00;
}
void main( )
{
uchar load,i,j;
Init_io( );
PORTA=table[0];
PORTD=0x00;
for(i=0;i<50;i++)
delay(500);
while(1)
{