On Sun, 2 Feb 1997, Simon C Sirin wrote: > Someone told me I had to use TRIS op-code, > but the data book from Microchip says: > > "Note: To maintain upward compatibility with > future PIC16CXX products, do not use > this instruction." Hi Simon, Besides this note, my databook also reads: "TRIS Load TRIS Register Description: The instruction is supported for code compatibility with the PIC 16C5X prod- ucts. Since TRIS registers are read- able and writable, the user can directly address them." So you still have to set the TRISB register (0x86h) to enable port B. Here's another quote from the book: "A `1' on any bit in the TRISB register puts the corresponding output driver in a high impedance mode. A `0' on any bit in the TRISB register puts the contents of the output latch on the selected pin(s)." BTW: Initialization condition of TRISB register is all ones. Luck, Joost