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 1. DGI Interface Connections when using SPI
Pin on SAM4S Function
PA5 Slave select (SAM4S is Master)
PA12 SPI MISO (Master In, Slave Out)
PA13 SPI MOSI (Master Out, Slave in)
PA14 SPI SCK (Clock Out)
Table 2. DGI Interface Connections when using TWI
Pin on SAM4S Function
PA3 SDA (Data line)
PA4 SCL (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 3. GPIO Lines Connected to the EDBG
Pin on SAM4S Function
PA6 GPIO0
PC22 GPIO1
PC24 GPIO2
PC25 GPIO3