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
SPIATmega324PB pin | Function | Shared functionality |
---|
PA7 | GPIO/SPI SS (Slave select) (ATmega324PB is Master) | EXT4.8 via J201 |
PB6 | SPI MISO (Master In, Slave Out) | EXT1/EXT3/EXT4 |
PB5 | SPI MOSI (Master Out, Slave in) | EXT1/EXT3/EXT4 |
PB7 | SPI SCK (Clock Out) | EXT1/EXT3/EXT4 |
Table 4-16. DGI Interface Connections When Using
I²CATmega324PB pin | Function | Shared functionality |
---|
PE5 | SDA (Data line) | EXT1/EXT3/EXT4 |
PE6 | SCL (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 EDBGATmega324PB pin | Function | Shared functionality |
---|
PB4 | GPIO0 | EXT1.15/J303 |
PB2 | GPIO1 | EXT4.9/J303 |
PC1 | GPIO2 | EXT1.9/J303 |
PC6 | GPIO3 | EXT3.9/USER BUTTON/J303 |