TRIS Register Setting

The stand-alone I2C module requires the Tristate (TRIS) bits controlling the I/O direction of each I2C pin to be initialized clear (TRISxy = 0). The MSSP module required the TRIS bit for each pin to be initialized set (TRISxy = 1). In both cases, the module will take control of the TRIS settings after initialization and once the module is enabled.