11.1.1 Interfacing in I²C/TWI Mode
Twelve Flexible Serial Communication Controller (FLEXCOM) interfaces configurable in Two-Wire Interface (TWI) mode are available on the SAM9X75 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 with speeds of up to 400 Kbits/s in Fast mode and up to 3.4 Mbits/s in High-Speed Client mode only, based on a byte-oriented transfer format.
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.
Interface Instance | IO Set | Pin No. | PIO | Pin Name | Comment |
---|---|---|---|---|---|
FLEXCOM0 | 1 | 138 | PA30 | FLEXCOM0_IO0 | External pull-up needed in case the FLEXCOM interface is used as an I²C/TWI interface. |
136 | PA31 | FLEXCOM0_IO1 | |||
FLEXCOM1 | 1 | 139 | PA28 | FLEXCOM1_IO0 | |
141 | PA29 | FLEXCOM1_IO1 | |||
FLEXCOM2 | 1 | 165 | PA13 | FLEXCOM2_IO0 | |
164 | PA14 | FLEXCOM2_IO1 | |||
FLEXCOM3 | 1 | 66 | PC22 | FLEXCOM3_IO0 | |
51 | PC23 | FLEXCOM3_IO1 | |||
FLEXCOM4 | 1, 2 | 12 | PA10 | FLEXCOM4_IO0 | |
13 | PA9 | FLEXCOM4_IO1 | |||
FLEXCOM5 | 1, 2 | 160 | PA16 | FLEXCOM5_IO0 | |
162 | PA15 | FLEXCOM5_IO1 | |||
FLEXCOM6 | 1 | 158 | PA24 | FLEXCOM6_IO0 | No external pull-up needed. Already integrated in the SOM. |
157 | PA25 | FLEXCOM6_IO1 | |||
FLEXCOM7 | 1 | 59 | PC0 | FLEXCOM7_IO0 | External pull-up needed in case the FLEXCOM interface is used as an I²C/TWI interface. |
62 | PC1 | FLEXCOM7_IO1 | |||
FLEXCOM9 | 1 | 55 | PC8 | FLEXCOM9_IO0 | |
64 | PC9 | FLEXCOM9_IO1 | |||
FLEXCOM10 | 1 | 73 | PC16 | FLEXCOM10_IO0 | |
57 | PC17 | FLEXCOM10_IO1 | |||
FLEXCOM11 | 1 | 23 | PB15 | FLEXCOM11_IO0 | |
25 | PB16 | FLEXCOM11_IO1 | |||
FLEXCOM12 | 1 | 26 | PB17 | FLEXCOM12_IO0 | |
27 | PB18 | FLEXCOM12_IO1 |