4.4.3 Atmel Data Gateway Interface

The Embedded Debugger features an Atmel Data Gateway Interface (DGI) by using either an SPI or I²C port. The DGI can be used to send a variety of data from the SAM R21 to the host PC.

Table 4-13. DGI Interface Connections When Using SPI
Pin on SAM R21Function
PA27GPIO SPI SS (Slave select) (SAM R21 is Master)
PB02SERCOM5 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-14. DGI Interface Connections When Using I²C
Pin on SAM R21Function
PA16SERCOM1 PAD[0] I²C SDA (Data line)
PA17SERCOM1 PAD[1] I²C 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 R21 application code.

Table 4-15. GPIO Lines Connected to the EDBG
Pin on SAM R21Function
PA08GPIO0
PA09GPIO1
PA12GPIO2
PA14GPIO3