David, 18F don't have banks (yay !!!), so BANKSEL is not needed Each pin has a PORT register, intended for inputs, and a LAT for outputs. Writing to PORT should do what you want, although not all PORTx are bi-directional. Some are input only so it's better to use LAT for outputs That aside, have you set the pins as digital ? I'm not familiar with that particular 18F but at least some need ADCON1 bits set to make the default analogue pin digital. Others are controlled with ANSEL/ANSELH Have you selected an oscillator configuration and is the chip running ? What do you have in the CONFIG statements ? /MCLR ? Do you have the datasheet ? http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=3Den026337 http://ww1.microchip.com/downloads/en/DeviceDoc/41303G.pdf Joe * * ********** Quality PIC programmers http://www.embedinc.com/products/index.htm --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .