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 ATSAMC21N18A to the host PC. For further information on how to use the DGI interface, see Data Visualizer and the EDBG User Guide.

Table 4-31. DGI Interface Connections when using SPI
SAMC21N pinFunctionShared functionality
PC09SERCOM7 PAD[1] SPI SS (Slave select) (SAMC21N is Master)-
PC12SERCOM7 PAD[0] SPI MISO (Master In, Slave Out)EXT3, Shield, and Shield(2)
PC14SERCOM7 PAD[2] SPI MOSI (Master Out, Slave In)EXT3, Shield, and Shield(2)
PC11SERCOM7 PAD[3] SPI SCK (Clock Out) EXT3, Shield, and Shield(2)
Table 4-32. DGI Interface Connections when using I²C
SAMC21N pinFunctionShared functionality
PA16SERCOM1 PAD[0] I2C SDA (Data line)EXT2, EXT3, Shield, and Crypto Device
PA17SERCOM1 PAD[1] I2C SCL (Clock line)EXT2, EXT3, Shield, and Crypto Device

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

Table 4-33. GPIO Lines Connected to the EDBG
SAMC21N pinFunctionShared functionality
PB12DGI_GPIO0 or TC4/WO[0] or X[12]/Y[28]EXT1
PA22DGI_GPIO1 or TCC1/WO[0] or X[10]/Y[26]EXT1
PC24DGI_GPIO2EXT2
PA28DGI_GPIO3 or EXTINT[8]EXT3