unsigned int i;unsigned char p;p = 1;P0 = p;for (i = 0, i < 10000; i++){ p <<= 1; if (p == 0) p = 1; P0 = p;}