Hello, I've never used anything other than a 16F84 so I am confused about tri-stating anything above port B. I am trying to set the input/output status on ports C, D, and E of a 16F877 but am having problems. I tried both the TRIS command and flipping banks and setting the respective tristate register, but when I build the project I get an error when I tristate portd and porte. Error[126] C:\PICPRO~1\TRANSM~1\XMTR.ASM 50 : Argument out of range (0008 not between 0005 and 0007) I get this error on both ports. I'm sure it has something to do with the fact that the 16F877 multiplexes ports D and E with other functions? Grateful for any help, James Burkart grafxjkb@pacbell.net -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.