Serial Wire Debug; Virtual Com Port; Atmel Data Gateway Interface - Atmel SAM4N Xplained Pro User Manual

Smart arm-based microcontrollers
Hide thumbs Also See for SAM4N Xplained Pro:
Table of Contents

Advertisement

port interface over UART, an Atmel Data Gateway Interface over SPI and TWI and it monitors four of the
SAM4N GPIOs. Atmel Studio can be used as a front end for the Embedded Debugger.
4.3.1.

Serial Wire Debug

The Serial Wire Debug (SWD) interface use two pins to communicate with the target. For further
information on how to use the programming and debugging capabilities of the EDBG, see the EDBG user
guide.
Table 4-11. SWD Connections
Pin on SAM4N
PB7
PB6
PB5
PB12
4.3.2.

Virtual COM Port

The Embedded Debugger act as a Virtual Com Port gateway by using one of the ATSAM4N16C UARTs.
For further information on how to use the Virtual COM port, see the EDBG user guide.
Table 4-12. Virtual COM Port Connections
Pin on SAM4N
PA10
PA9
4.3.3.

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 4-13. DGI Interface Connections When Using USART
Pin on SAM4N
PC10
PC9
PC14
Table 4-14. DGI Interface Connections When Using TWI
Pin on SAM4N
PB0
PB1
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.
Function
SWD clock
SWD data
SWD trace output
Erase
Function
UART TXD (SAM4N TX line)
UART RXD (SAM4N RX line)
Function
USART TXD (SAM4N TX line)
USART RXD (SAM4N RX line)
USART CLK
Function
SDA (Data line)
SCL (Clock line)
Atmel SAM4N Xplained Pro [USER GUIDE]
Atmel-42104B-SAM4N-Xplained-Pro_User Guide-04/2016
16

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SAM4N Xplained Pro and is the answer not in the manual?

Table of Contents