Data Gateway Interface

The Embedded Debugger features a Data Gateway Interface (DGI) by using either an SPI or I2C. 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 Data Visualizer and the EDBG User Guide.

Table 1. DGI Interface Connections when using SPI
ATmega4809 Pin Function Shared Functionality
PF3 GPIO SPI SS (Slave select) (ATmega4809 is Master) -
PA4 SPI0 MOSI (Master Out, Slave In) EXT1, EXT2, EXT3, mikroBUS™
PA5 SPI0 MISO (Master In, Slave Out) EXT1, EXT2, EXT3, mikroBUS™
PA6 SPI0 SCK (Clock Out) EXT1, EXT2, EXT3, mikroBUS™
Table 2. DGI Interface Connections when using I2C
ATmega4809 Pin Function Shared Functionality
PC2 TWI0 SDA EXT1, EXT2, EXT3, mikroBUS™, CryptoAuthentication™ footprint
PC3 TWI0 SCL EXT1, EXT2, EXT3, mikroBUS™, CryptoAuthentication™ footprint

Four GPIO lines are connected to the Embedded Debugger. The EDBG can monitor these lines and time stamp pin value changes, which make it possible to accurately time-stamp events in the ATmega4809 application code. For further information on how to configure and use the GPIO monitoring features, see Data Visualizer and the EDBG User Guide.

Table 3. GPIO Lines Connected to the EDBG
ATmega4809 Pin Function Shared Functionality
PB2 GPIO0 EXT2, SW0
PB3 GPIO1 EXT2
PB4 GPIO2 EXT2
PB5 GPIO3 EXT2, LED0