4.5.3 Atmel Data Gateway Interface

The Embedded Debugger features an Atmel Data Gateway Interface (DGI) by using either an SPI or I²C. The DGI can be used to send a variety of data from the ATSAMC21J18A to the host PC. For further information on how to use the DGI interface, see Atmel Data Visualizer and the EDBG User Guide.

Table 4-29. DGI Interface Connections when using SPI
SAM C21 pinFunctionShared functionality
PB23GPIO/SPI SS (Slave select) (SAM C21 is Master)-
PB02SERCOM5 PAD[0] SPI MISO (Master In, Slave Out)EXT2, EXT3, Shield, and Shield(2)
PB00SERCOM5 PAD[2] SPI MOSI (Master Out, Slave In)EXT2, EXT3, Shield, and Shield(2)
PB01SERCOM5 PAD[3] SPI SCK (Clock Out)EXT2, EXT3, Shield, and Shield(2)
Table 4-30. DGI Interface Connections when using I²C
SAM C21 pinFunctionShared functionality
PA12SERCOM2 PAD[0] SDA (Data line)EXT1, EXT2, EXT3, Shield, and Crypto Footprints
PA13SERCOM2 PAD[1] SCL (Clock line)EXT1, EXT2, EXT3, Shield, and Crypto Footprints

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 C21 application code. For further information on how to configure and use the GPIO monitoring features, see Atmel Data Visualizer and the EDBG User Guide.

Table 4-31. GPIO Lines Connected to the EDBG
SAM C21 pinFunctionShared functionality
PB12GPIO0Shield and EXT1
PB16GPIO1EXT2
PB17GPIO2EXT2
PA28GPIO3User Button and EXT3