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.
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) |
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.