Jon Baker wrote: > > If I ran the following pseudo-code: > > TRISB = 0 > PORTB = 0xAA > > TRISB = 255 > TEMP = PORTB > > TRISB = 0 > > After to port is set back to output what will be the state of the pins? > Does the contents of the output driver get destroyed when changing TRIS, or when performing a read operation on the port? I'm hoping that my original value ( AA ) is presented on the pins when I switch back to output mode. It should still be 0xAA because you did nothing to change the PORTB output value. -- Best regards Tony mICros http://www.bubblesoftonline.com mailto:sales@bubblesoftonline.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu