#include void main(void) { unsigned char mydata[100]; unsigned char x, z = 0xFF; TRISB = 0; for(x=0;x<100;x++) { mydata[x] = z; PORTB = z; z--; } }