4.4.3 Atmel Data Gateway Interface

The Embedded Debugger features an Atmel Data Gateway Interface (DGI) by using either a SPI or I²C. The DGI can be used to send a variety of data from the ATSAML22N18A 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-21. DGI Interface Connections when using SPI
SAM L22 pinFunctionShared functionality
PB25SERCOM5 PAD[1] SPI SS (Slave select) (SAM L22 is Master)-
PB24SERCOM5 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-22. DGI Interface Connections when using I²C
SAM L22 pinFunctionShared functionality
PB30SERCOM5 PAD[0] SDA (Data line)EXT1, EXT2, EXT3, Shield, and Crypto
PB31SERCOM5 PAD[1] SCL (Clock line)EXT1, EXT2, EXT3, Shield, and Crypto

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 L22 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-23. GPIO Lines Connected to the EDBG
SAM L22 pinFunctionShared functionality
PB04GPIO0SLCD, EXT2, and XAM
PB05GPIO1SLCD, EXT2, and XAM
PC00GPIO2Shield and EXT2
PC01GPIO3User SW0, Shield, and EXT2