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.
ATmega4809 Pin | Function | Shared Functionality |
---|---|---|
PF3 | GPIO SPI SS (Client select) (ATmega4809 is Host) | — |
PA4 | SPI0 MOSI (Host Out, Client In) | EXT1, EXT2, EXT3, mikroBUS™ |
PA5 | SPI0 MISO (Host In, Client Out) | EXT1, EXT2, EXT3, mikroBUS™ |
PA6 | SPI0 SCK (Clock Out) | EXT1, EXT2, EXT3, mikroBUS™ |
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 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.