Hi all, Is there any way to define an array of pins in the Microchip C18 compiler? Something conceptually like: bit pins[3]; pins[0] = LATDbits.LATD0; pins[1] = LATDbits.LATD1; pins[2] = LATDbits.LATD2; for(counter = 0; counter < 3; counter++) { pins[counter] = 1; delay(1000); } Thanks, -n. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist