4.3.3 Atmel Data Gateway Interface

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

Table 4-15. DGI Interface Connections when using SPI
Pin on SAM4SFunction
PA5Slave select (SAM4S is Master)
PA12SPI MISO (Master In, Slave Out)
PA13SPI MOSI (Master Out, Slave in)
PA14SPI SCK (Clock Out)
Table 4-16. DGI Interface Connections when using TWI
Pin on SAM4SFunction
PA3SDA (Data line)
PA4SCL (Clock 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 SAM4S application code. For further information on how to configure and use the GPIO monitoring features see Embedded Debugger.

Table 4-17. GPIO Lines Connected to the EDBG
Pin on SAM4SFunction
PA6GPIO0
PC22GPIO1
PC24GPIO2
PC25GPIO3