Atmel Data Gateway Interface

The Embedded Debugger features an Atmel Data Gateway Interface (DGI) by using either a SPI or I²C port. The DGI can be used to send a variety of data from the SAM D20 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 D20 Function
PB31 SERCOM5 PAD[1] SPI SS (Slave select) (SAM D20 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 I²C
Pin on SAM D20 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 D20 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 D20 Function
PA27 GPIO0
PA28 GPIO1
PA20 GPIO2
PA21 GPIO3