Hi to all engineers, I am worked on simple c code to test pointer I am not sure why it doesn't work // pointer test void pointer_test(void){ unsigned char c; unsigned char index; unsigned char const PATTERN[]={1,2,4,8,16,32,64,128}; index=0; for(c=8;c!=0;c--) { PORTB=PATTERN[index]; index++; } } I am sure if this is how I suppose to use pointer In hi-tech. any help will appreciate Andre -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads