4.3.3 Atmel Data Gateway Interface

The Embedded Debugger features an Atmel Data Gateway Interface (DGI) by using either an SPI or TWI port. The DGI can be used to send a variety of data from the ATmega256RFR2 to the host PC. For further information on how to use the DGI interface, see Embedded Debugger.

Table 4-16. DGI Interface Connections When Using SPI
Pin on ATmega256RFR2Function
PB0Slave select (ATmega256RFR2 is Master)
PB1SPI SCK (Clock Out)
PB2SPI MOSI (Master Out, Slave in)
PB3SPI MISO (Master In, Slave Out)
Table 4-17. DGI Interface Connections When Using TWI
Pin on ATmega256RFR2Function
PD0SCL (Clock line)
PD1SDA (Data line)

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 ATmega256RFR2 application code. For further information on how to configure and use the GPIO monitoring features, see Embedded Debugger.

Table 4-18. GPIO Lines Connected To the EDBG
Pin on ATmega256RFR2Function
PE2GPIO0
PE3GPIO1
PE5GPIO2
PE6GPIO3