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 SPIPin 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 4-16. DGI Interface Connections
when using TWIPin 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 4-17. GPIO Lines Connected to
the EDBGPin on SAM4S | Function |
---|
PA6 | GPIO0 |
PC22 | GPIO1 |
PC24 | GPIO2 |
PC25 | GPIO3 |