Nick, Wouldn't this fall into the "STRUCTURE" data type in C? You can define a STRUCTURE of bit fields or pins. Regards, Jim -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of James Nick Sears Sent: Tuesday, May 01, 2007 2:20 PM To: Microcontroller discussion list - Public. Subject: [PIC] C18 Array of pins 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 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist