James, Regarding PORT E, make sure you go into ADCON1 (IIRC) and change the pin configuration to digital I/O. They power up an analog input for the AD Converter. Regarding PORTD, if PORTE is setup wrong, PORTD will won't react correctly I think. Hope this helps you out. Regards, Jim > 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. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.