![Atmel SAM L22 Xplained Pro User Manual Download Page 27](http://html1.mh-extra.com/html/atmel/sam-l22-xplained-pro/sam-l22-xplained-pro_user-manual_3003484027.webp)
SAM L22 pin
Tamper name
Shared functionality
PB00
IN[0]
PB01
OUT
PB02
IN[1]
4.4.
Embedded Debugger Implementation
SAM L22 Xplained Pro contain an Embedded Debugger (EDBG) that can be used to program and debug
the ATSAML22N18A using Serial Wire Debug (SWD). The Embedded Debugger also include a Virtual
Com port interface over UART, an Atmel Data Gateway Interface over SPI, and I
2
C and it includes four of
the SAM L22 GPIOs. The kit also includes an XAM extension processor to the Embedded Debugger for
on-board current measurement. Atmel Studio can be used as a front end for the Embedded Debugger.
4.4.1.
Serial Wire Debug
The Serial Wire Debug (SWD) use two pins to communicate with the target. For further information on
how to use the programming and debugging capabilities of the EDBG, see
on page
8.
Table 4-19. SWD Connections
SAM L22 pin
Function
Shared functionality
PA30
SWD clock
PA31
SWD data
4.4.2.
Virtual COM Port
The Embedded Debugger acts as a Virtual Com Port gateway by using one of the ATSAML22N18A
UARTs. For further information on how to use the Virtual COM port, see
on page 8.
Table 4-20. Virtual COM Port Connections
SAM L22 pin
Function
Shared functionality
PC24
SERCOM4 PAD[2] UART TXD (SAM
L22 TX line)
-
PC25
SERCOM4 PAD[3] UART RXD (SAM
L22 RX line)
-
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 SAM L22 Xplained Pro [USER GUIDE]
Atmel-42474B-SAM-L22-Xplained-Pro_User Guide-12/2015
27