Atmel SAM4N Xplained Pro [USER GUIDE]
42104A-MCU-06/2013
12
Pin on SAM4N
Function
PA8
XOUT32
Table 4-8. External 12MHz crystals
Pin on SAM4N
Function
PB9
XIN
PB8
XOUT
4.2.2
Mechanical buttons
SAM4N Xplained Pro contains two mechanical buttons. One button is the RESET button connected to the
SAM4N reset line and the other is a generic user configurable button. When a button is pressed it will drive the
I/O line to GND.
Table 4-9. Mechanical buttons
Pin on SAM4N
Silkscreen text
NRST
RESET
PA30
SW0
4.2.3
LED
There is one yellow LED available on the SAM4N Xplained Pro board that can be turned on and off. The LED
can be activated by driving the connected I/O line to GND.
Table 4-10. LED connections
Pin on SAM4N
LED
PB14
Yellow LED0
4.2.4
Analog reference
The ADVREF is available on a 2-pin header to measure the analog reference voltage of the SAM4N device.
Note
The ADREF pin can only be used for measuring and must not be used as an input for an external
voltage reference.
4.3
Embedded Debugger implementation
SAM4N Xplained Pro contains an Embedded Debugger (EDBG) that can be used to program and debug the
ATSAM4N16C using Serial Wire Debug (SWD). The Embedded Debugger also include a Virtual Com 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) use two pins to communicate with the target. For further information on how to
use the programming and debugging capabilities of the EDBG, see
Table 4-11. SWD connections
Pin on SAM4N
Function
PB7
SWD clock
PB6
SWD data
PB5
SWD trace output
PB12
Erase
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
.