SAM D21 SERCOM I²C Slave Overview

The SAM D21 family of devices include up to six instances of the SERCOM serial communication interface peripheral, which among other things, can be configured to be an I²C interface.

A SERCOM instance can be configured to be either an I²C master or an I²C slave. Both master and slave have an interface containing a shift register, a transmit buffer and a receive buffer. In addition, the I²C master uses the SERCOM baud-rate generator, while the I²C slave uses the SERCOM address match logic. This peripheral is compatible with SMBus and PMBus.

This page focuses on the slave mode of the SERCOM I²C peripheral. Some of the key features of the slave mode I²C operation are:

  • Operation in sleep modes
  • Wake on address match
  • 16-byte FIFO available and accessible with DMA
  • 2 or 4-wire Modes available
  • 7 or 10-bit address match in hardware for:
    • Unique address (or general call address)
    • Address range
    • Two unique addresses
samd21-i2c-block-diagram.png


The I²C slave is byte-oriented and interrupt-based. The number of interrupts generated is kept at a minimum by the automatic handling of most events. There are two main strategies for handling I²C interrupts. Additionally, the peripheral offers a Smart Mode, which allows for more automation of the operation without user interaction.

basic-i2c-transaction-diagram.png

 Learn More

 
SERCOM I²C Slave Configuration
Learn more >
 
SERCOM I²C Slave Example Project
Learn more >
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.