Hey people I wonder if there is a method of initializing portb for all output on a 16c84 that will not set the port pins however briefly ? Some pins ok but all pins simultaneously no.My reason for asking is I am using 7 bits of port b to control an lcd display 4-bit data then rs rw e the bit 0 pin is for output as well (optocoupler) and I am having a lot of trouble from the hd44780 controller not acting like it is supposed to not even the simplest routine gives the expected response and I have been carefull to keep the rw bit low as I intend to write to the lcd and not read yet so my routines do not shift the trisb register after initialization "as yet". During initialization the portb pins all go high for two clock cycles.I thought maybe that could be the reason for my difficulty with the lcd. Thanks for your time Tony M.