void
main()
{
unsigned
char
i=1;
ADDR3 = 1;
ENLED = 0;
ADDR2 = 1;
ADDR1 = 1;
ADDR0 = 0;
while
(1)
{
switch
(i)
{
case
1: P0 = 0xFE;
break
;
case
2: P0 = 0xFD;
break
;
case
3: P0 = 0xFB;
break
;
case
4: P0 = 0xF7;
break
;
case
5: P0 = 0xEF;
break
;
case
6: P0 = 0xDF;
break
;
case
7: P0 = 0xBF;
break
;
case
8: P0 = 0x7F; i=0;
break
;
}
i++;
delay_ms(100);
}
}