4.6.6 Connecting to the I²C Interface
Four different FLEXCOM interfaces, with seven possible configurations (configured in TWI mode), and one pure TWI Interface are available on the ATSAMA5D27-WLSOM1 module.
The Flexible Serial Communication Controller (FLEXCOM) offers several serial communication protocols that are managed by the three submodules USART, SPI, and TWI.
The Two-wire Interface (TWI) interconnects components on a unique two-wire bus, made up of one clock line and one data line with speeds of up to 400 kbit/s in Fast mode and up to 3.4 Mbit/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), Dot Matrix/Graphic LCD Controller and 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 # | PIO | Pin Name | Comment |
---|---|---|---|---|---|
TWI1 | 3 | 120 | PD19 | TWD1 | No need of external pull-up.
Already integrated in ATSAMA5D27-WLSOM1 module |
TWI1 | 3 | 122 | PD20 | TWCK1 | |
FLEXCOM0 | 1 | 28 | PB28 | FLEXCOM0_IO0 | Need external pull-up in case
the FLEXCOM interface is used as an I²C/TWI interface. |
FLEXCOM0 | 1 | 27 | PB29 | FLEXCOM0_IO1 | |
FLEXCOM2 | 1 | 171 | PA6 | FLEXCOM2_IO0 | |
FLEXCOM2 | 1 | 173 | PA7 | FLEXCOM2_IO1 | |
FLEXCOM2 | 2 | 127 | PD26 | FLEXCOM2_IO0 | |
FLEXCOM2 | 2 | 123 | PD27 | FLEXCOM2_IO1 | |
FLEXCOM3 | 1 | 22 | PA15 | FLEXCOM3_IO0 | |
FLEXCOM3 | 1 | 175 | PA13 | FLEXCOM3_IO1 | |
FLEXCOM3 | 2 | 58 | PC20 | FLEXCOM3_IO0 | |
FLEXCOM3 | 2 | 63 | PC21 | FLEXCOM3_IO1 | |
FLEXCOM4 | 1 | 39 | PC28 | FLEXCOM4_IO0 | |
FLEXCOM4 | 1 | 38 | PC29 | FLEXCOM4_IO1 | |
FLEXCOM4 | 2 | 119 | PD12 | FLEXCOM4_IO0 | |
FLEXCOM4 | 2 | 116 | PD13 | FLEXCOM4_IO1 |