Source: https://ww1.microchip.com/downloads/en//softwarelibrary/dspic33c_i2c_softwarelibrary/dspic33c_i2c_sw_library.pdf