4.3.3 Atmel Data Gateway Interface

The Embedded Debugger features an Atmel Data Gateway Interface (DGI) by using either a SPI or I2C port. The DGI can be used to send a variety of data from the SAM D21 to the host PC. For further information on how to use the DGI interface see Embedded Debugger.

Table 4-11. DGI Interface Connections when using SPI
Pin on SAM D21Function
PB31SERCOM5 PAD[1] SPI SS (Slave select) (SAM D21 is Master)
PB16SERCOM5 PAD[0] SPI MISO (Master In, Slave Out)
PB22SERCOM5 PAD[2] SPI MOSI (Master Out, Slave in)
PB23SERCOM5 PAD[3] SPI SCK (Clock Out)
Table 4-12. DGI Interface Connections when using I2C
Pin on SAM D21Function
PA08SERCOM2 PAD[0] SDA (Data line)
PA09SERCOM2 PAD[1] SCL (Clock line)

Four GPIO lines are connected to the Embedded Debugger. The EDBG can monitor these lines and time stamp pin value changes. This makes it possible to accurately time stamp events in the SAM D21 application code. For further information on how to configure and use the GPIO monitoring features see Embedded Debugger.

Table 4-13. GPIO Lines Connected to the EDBG
Pin on SAM D21Function
PA27GPIO0
PA28GPIO1
PA20GPIO2
PA21GPIO3