4.4
Embedded Debugger Implementation
ATmega4809 Xplained Pro contains an Embedded Debugger (EDBG) that can be used to program and debug the
ATmega4809 using the UPDI interface. The Embedded Debugger also includes a Virtual Com port interface over
UART, a Data Gateway Interface over SPI, and I
2
C, and it includes four of the ATmega4809 GPIOs. Microchip Studio
and MPLAB
®
X can be used as a front end for the Embedded Debugger.
4.4.1
UPDI
The UPDI interface uses one pin to communicate with the target. For further information on how to use the
programming and debugging capabilities of the EDBG, see
.
Table 4-10. UPDI Connections
ATmega4809 Pin
Function
Shared Functionality
UPDI
UPDI programming/debugging
PF6
RESET
,
Info:
PF6 (RESET) is usually not used by the EDBG as the ATmega4809 can be reset through the UPDI
interface.
4.4.2
Virtual COM Port
The Embedded Debugger acts as a Virtual Com Port gateway by using one of the ATmega4809 UARTs. For further
information on how to use the Virtual COM port, see
Table 4-11. Virtual COM Port Connections
ATmega4809 Pin
Function
Shared Functionality
PC0
USART1 TxD (ATmega4809 TX line)
PC1
USART1 RxD (ATmega4809 RX line)
4.4.3
Data Gateway Interface
The Embedded Debugger features a Data Gateway Interface (DGI) by using either an SPI or I
2
C. The DGI can be
used to send a variety of data from the ATmega4809 to the host PC. For further information on how to use the DGI
interface, see
and the
.
Table 4-12. DGI Interface Connections when using SPI
ATmega4809 Pin
Function
Shared Functionality
PF3
GPIO SPI SS (Client select) (ATmega4809 is
Host)
—
PA4
SPI0 MOSI (Host Out, Client In)
,
PA5
SPI0 MISO (Host In, Client Out)
,
PA6
SPI0 SCK (Clock Out)
,
Table 4-13. DGI Interface Connections when using I
2
C
ATmega4809 Pin
Function
Shared Functionality
PC2
TWI0 SDA
,
ATmega4809 Xplained Pro
Hardware User Guide
©
2020 Microchip Technology Inc.
User Guide
DS50002716C-page 18