4.4.3 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 Studio Data Visualizer and the EDBG User Guide.

Table 4-12. DGI Interface Connections when using SPI
ATmega4809 PinFunctionShared Functionality
PF3GPIO SPI SS (Client select) (ATmega4809 is Host)
PA4SPI0 MOSI (Host Out, Client In)EXT1, EXT2, EXT3, mikroBUS
PA5SPI0 MISO (Host In, Client Out)EXT1, EXT2, EXT3, mikroBUS
PA6SPI0 SCK (Clock Out)EXT1, EXT2, EXT3, mikroBUS
Table 4-13. DGI Interface Connections when using I2C
ATmega4809 PinFunctionShared Functionality
PC2TWI0 SDAEXT1, EXT2, EXT3, mikroBUS, CryptoAuthentication footprint
PC3TWI0 SCLEXT1, 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 timestamp events in the ATmega4809 application code. For further information on how to configure and use the GPIO monitoring features, see Studio Data Visualizer and the EDBG User Guide.

Table 4-14. GPIO Lines Connected to the EDBG
ATmega4809 PinFunctionShared Functionality
PB2GPIO0EXT2, SW0
PB3GPIO1EXT2
PB4GPIO2EXT2
PB5GPIO3EXT2, LED0