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 1. DGI Interface Connections when using SPI
Pin on SAM D21 Function
PB31 SERCOM5 PAD[1] SPI SS (Slave select) (SAM D21 is Master)
PB16 SERCOM5 PAD[0] SPI MISO (Master In, Slave Out)
PB22 SERCOM5 PAD[2] SPI MOSI (Master Out, Slave in)
PB23 SERCOM5 PAD[3] SPI SCK (Clock Out)
Table 2. DGI Interface Connections when using I2C
Pin on SAM D21 Function
PA08 SERCOM2 PAD[0] SDA (Data line)
PA09 SERCOM2 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 3. GPIO Lines Connected to the EDBG
Pin on SAM D21 Function
PA27 GPIO0
PA28 GPIO1
PA20 GPIO2
PA21 GPIO3