7.11.44 Tri-state Functions for PortD

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

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
          
Access  
Reset  
Bit 76543210 
 TRISDxTRISDxTRISDxTRISDxTRISDxTRISDxTRISDxTRISDx 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 0,1,2,3,4,5,6,7 – TRISDx (x = 0 to 7; x = 0 for bit0 mapped to PD0, … x = 7 for bit7 mapped to PD7) Tri-state pins for PortD

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