4.5.2
Virtual COM Port
The Embedded Debugger acts as a Virtual Com Port gateway by using one of the ATSAMC21N18A
UARTs. For further information on how to use the Virtual COM port, see
Table 4-30. Virtual COM Port Connections
SAMC21N pin
Function
Shared functionality
PB10
SERCOM4 PAD[2] UART TXD (SAMC21N TX line)
-
PB11
SERCOM4 PAD[3] UART RXD (SAMC21N RX line)
-
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
Table 4-31. 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)
PC14
SERCOM7 PAD[2] SPI MOSI
(Master Out, Slave In)
PC11
SERCOM7 PAD[3] SPI SCK
(Clock Out)
Table 4-32. DGI Interface Connections when using I²C
SAMC21N pin
Function
Shared functionality
PA16
SERCOM1 PAD[0] I
2
C SDA (Data
line)
,
PA17
SERCOM1 PAD[1] I
2
C SCL (Clock
line)
,
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
Table 4-33. GPIO Lines Connected to the EDBG
SAMC21N pin
Function
Shared functionality
PB12
DGI_GPIO0 or TC4/WO[0] or X[12]/Y[28]
PA22
DGI_GPIO1 or TCC1/WO[0] or X[10]/Y[26]
SAMC21N Xplained Pro
©
2017 Microchip Technology Inc.
User Guide
DS70005318A-page 29