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 1. DGI Interface Connections when using SPI
SAMC21N pin Function Shared functionality
PC09 SERCOM7 PAD[1] SPI SS (Slave select) (SAMC21N is Master) -
PC12 SERCOM7 PAD[0] SPI MISO (Master In, Slave Out) EXT3, Shield, and Shield(2)
PC14 SERCOM7 PAD[2] SPI MOSI (Master Out, Slave In) EXT3, Shield, and Shield(2)
PC11 SERCOM7 PAD[3] SPI SCK (Clock Out) EXT3, Shield, and Shield(2)
Table 2. DGI Interface Connections when using I²C
SAMC21N pin Function Shared functionality
PA16 SERCOM1 PAD[0] I2C SDA (Data line) EXT2, EXT3, Shield, and Crypto Device
PA17 SERCOM1 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 3. GPIO Lines Connected to the EDBG
SAMC21N pin Function Shared functionality
PB12 DGI_GPIO0 or TC4/WO[0] or X[12]/Y[28] EXT1
PA22 DGI_GPIO1 or TCC1/WO[0] or X[10]/Y[26] EXT1
PC24 DGI_GPIO2 EXT2
PA28 DGI_GPIO3 or EXTINT[8] EXT3