Quote Originally Posted by Peter1960 View Post
Say you want PortB.0 as Input and Rest as Outputs
Assuming you set
TRISB = &10000000 ' . . . .
Switch 'er around Peter
TRISB = %00000001 sets PortB.0 as input