#include unsigned char tab[6] = {0x00,0x00,0xff,0x81,0x42,0x3c,0x00,0x00} void main(){ unsigned char i,k; while(1){ P0 = 0xfe; P1 = tab[1]; for (k=0;k<6,k++){ P1 = tab[k]; for (i=0,i<50,i++); P0 = P0<<1|0x01; } } }