1 What is the TWI Peripheral Library (PLIB) ?
The Two Wire Interface (TWI) bus, equivalent to Inter-Integrated Circuit (I2C) is a multi-host serial data communication bus useful for communicating with other peripherals or microcontroller devices. These peripheral devices may be serial EEPROMs, shift registers, display drivers, Analog-to-Digital (A/D) converters, Temperature and Humidity sensors, and so on.
The TWI interface supports the following operating modes:
- Host mode
- Client mode
The driver operation can be configured as:
- Polling
- Interrupt