Atmel Data Gateway Interface

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

Table 1. DGI Interface Connections When Using USART
Pin on SAM4N Function
PC10 USART TXD (SAM4N TX line)
PC9 USART RXD (SAM4N RX line)
PC14 USART CLK
Table 2. DGI Interface Connections When Using TWI
Pin on SAM4N Function
PB0 SDA (Data line)
PB1 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 SAM4N application code. For further information on how to configure and use the GPIO monitoring features, see the EDBG user guide.

Table 3. GPIO Lines Connected To the EDBG
Pin on SAM4N Function
PC21 GPIO0
PC20 GPIO1
PC19 GPIO2
PC18 GPIO3