4.3.3 Atmel Data Gateway Interface

The Embedded Debugger features an Atmel Data Gateway Interface (DGI) by using either an SPI or I²C. The DGI can be used to send a variety of data from the ATmega324PB to the host PC. For further information on how to use the DGI interface, see Atmel Data Visualizer and the EDBG User Guide.

Table 4-15. DGI Interface Connections When Using SPI
ATmega324PB pinFunctionShared functionality
PA7GPIO/SPI SS (Slave select) (ATmega324PB is Master)EXT4.8 via J201
PB6SPI MISO (Master In, Slave Out)EXT1/EXT3/EXT4
PB5SPI MOSI (Master Out, Slave in)EXT1/EXT3/EXT4
PB7SPI SCK (Clock Out)EXT1/EXT3/EXT4
Table 4-16. DGI Interface Connections When Using I²C
ATmega324PB pinFunctionShared functionality
PE5SDA (Data line)EXT1/EXT3/EXT4
PE6SCL (Clock line)EXT1/EXT3/EXT4

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

Table 4-17. GPIO Lines Connected to the EDBG
ATmega324PB pinFunctionShared functionality
PB4GPIO0EXT1.15/J303
PB2GPIO1EXT4.9/J303
PC1GPIO2EXT1.9/J303
PC6GPIO3EXT3.9/USER BUTTON/J303