6.11.16 Tri-state Functions for PortB

The TRISB register configures the data direction flow through port I/O pins.
Name: TRISB
Offset: 0x110
Reset: 0x0
Property: -

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
   TRISBxTRISBxTRISBxTRISBxTRISBxTRISBx 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 76543210 
 TRISBxTRISBxTRISBxTRISBxTRISBxTRISBxTRISBxTRISBx 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 0,1,2,3,4,5,6,7,8,9,10,11,12,13 – TRISBx (x = 0 to 13; x = 0 for bit0 mapped to PB0, … x = 13 for bit13 mapped to PB13) Tri-state pins for PortB

The tri-state data direction bit configures the selected I/O pin of Port B as an input or output.
ValueDescription
1 Configures the I/O as input
0 Configures the I/O as output