11.1.1 Interfacing in I²C/TWI Mode

Ten Flexible Serial Communication Controller (FLEXCOM) interfaces configurable in Two-Wire Interface (TWI) are available on the SAMA7D65 SOM Series.

The TWI can interconnect with external components on a unique two-wire bus, made up of one clock line and one data line.

The TWI supports the following modes/speeds:
  • Standard mode speed (100 kHz): Host, Multi-Host, Client
  • Fast mode speed (400 kHz): Host, Multi-Host, Client
  • Fast mode plus speed (1 MHz): Host, Multi-Host, Client
  • High-speed mode (1.7 MHz/3.4 MHz): Host, Client

It can be used with any Two-Wire Interface bus Serial EEPROM and I²C-compatible devices, such as a Real-Time Clock (RTC), a dot matrix/graphic LCD controller or a temperature sensor. The TWI is programmable as a host or a client with sequential or single-byte access. Multiple host capability is supported.

Table 11-1. I²C/TWI Interface Configurations
Interface InstanceIO SetPin No.PIOPin NameComment
FLEXCOM02179PC7FLEXCOM0_IO0(1)
182PC6FLEXCOM0_IO1
FLEXCOM11123PD7FLEXCOM1_IO0(1)
122PD6FLEXCOM1_IO1
FLEXCOM12210PC14FLEXCOM1_IO0(1)
208PC15FLEXCOM1_IO1
FLEXCOM13191PB28FLEXCOM1_IO0(1)
194PB29FLEXCOM1_IO1
FLEXCOM2115PE8FLEXCOM2_IO0(1)
16PE9FLEXCOM2_IO1
FLEXCOM2445PB15FLEXCOM2_IO0(1)
44PB14FLEXCOM2_IO1
FLEXCOM3238PA24FLEXCOM3_IO0(1)
39PA23FLEXCOM3_IO1
FLEXCOM33126PD1FLEXCOM3_IO0(1)
127PD2FLEXCOM3_IO1
FLEXCOM347PA14FLEXCOM3_IO0(1)
5PA15FLEXCOM3_IO1
FLEXCOM413PA18FLEXCOM4_IO0(1)
6PA17FLEXCOM4_IO1
FLEXCOM5180PD16FLEXCOM5_IO0(1)
79PD17FLEXCOM5_IO1
FLEXCOM5261PE3FLEXCOM5_IO0(1)
59PE2FLEXCOM5_IO1
FLEXCOM62141PB24FLEXCOM6_IO0(1)
143PB25FLEXCOM6_IO1
FLEXCOM6369PD24FLEXCOM6_IO0(1)
57PD25FLEXCOM6_IO1
FLEXCOM6473PD18FLEXCOM6_IO0(1)
74PD19FLEXCOM6_IO1
FLEXCOM7185PD8FLEXCOM7_IO0(1)
88PD9FLEXCOM7_IO1
FLEXCOM7258PD27FLEXCOM7_IO0(1)
67PD28FLEXCOM7_IO1
FLEXCOM73124PD5FLEXCOM7_IO0(1)
121PD4FLEXCOM7_IO1
FLEXCOM8295PC27FLEXCOM8_IO0(1)
96PC28FLEXCOM8_IO1
FLEXCOM83142PB26FLEXCOM8_IO0(1)
145PB27FLEXCOM8_IO1
FLEXCOM91204PC8FLEXCOM9_IO0(1)
202PC9FLEXCOM9_IO1
FLEXCOM92180PC3FLEXCOM9_IO0(1)
178PC4FLEXCOM9_IO1
Note:
  1. External pull-up needed in case the FLEXCOM interface is used as an I²C/TWI interface.