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
®
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
UPDI
PF6
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
PC0
PC1
4.4.3
Data Gateway Interface
The Embedded Debugger features a Data Gateway Interface (DGI) by using either an SPI or I
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
Studio Data Visualizer
Table 4-12. DGI Interface Connections when using SPI
ATmega4809 Pin
PF3
PA4
PA5
PA6
Table 4-13. DGI Interface Connections when using I
ATmega4809 Pin
PC2
©
2020 Microchip Technology Inc.
2
C, and it includes four of the ATmega4809 GPIOs. Microchip Studio
Function
UPDI programming/debugging
RESET
Function
USART1 TxD (ATmega4809 TX line)
USART1 RxD (ATmega4809 RX line)
and the
EDBG User
Function
GPIO SPI SS (Client select) (ATmega4809 is
Host)
SPI0 MOSI (Host Out, Client In)
SPI0 MISO (Host In, Client Out)
SPI0 SCK (Clock Out)
Function
TWI0 SDA
ATmega4809 Xplained Pro
3.1 Embedded
Debugger.
Shared Functionality
DEBUG
SW1, EXT1,
3.1 Embedded
Debugger.
Guide.
Shared Functionality
—
EXT1, EXT2, EXT3,
EXT1, EXT2, EXT3,
EXT1, EXT2, EXT3,
2
C
Shared Functionality
EXT1, EXT2, EXT3,
CryptoAuthentication
User Guide
Hardware User Guide
DEBUG
Shared Functionality
EXT2
EXT2
2
C. The DGI can be
™
mikroBUS
™
mikroBUS
™
mikroBUS
™
mikroBUS
,
™
footprint
DS50002716C-page 18
Need help?
Do you have a question about the ATmega4809 Xplained Pro and is the answer not in the manual?