By just changing bit TRISB,3 When TRISB,3 is 1 the output will be tristate (and can be read as an input if you want to). When TRISB,0 is 0 the output will be set to whatever is in the PORTB output register. Bob Ammerman RAm Systems ----- Original Message ----- From: "Micro Eng" To: Sent: Tuesday, August 27, 2002 12:59 PM Subject: [PIC]:tristating a port pin? > well...searching around, haven't found a way to actually tristate a port > pin? > > TRIS is the direction register...but how do you actually set PORTB,3 to be > tristated, then set for an output, and back and forth. > > _________________________________________________________________ > Join the world s largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > -- > 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.