Mechanical Buttons; Led; Analog Reference; Embedded Debugger Implementation - Atmel SAM4N Xplained Pro User Manual

Hide thumbs Also See for SAM4N Xplained Pro:
Table of Contents

Advertisement

Pin on SAM4N
PA8
Table 4-8. External 12MHz crystals
Pin on SAM4N
PB9
PB8
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
NRST
PA30
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
PB14
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
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
Function
XOUT32
Function
XIN
XOUT
Silkscreen text
RESET
SW0
LED
Yellow LED0
"Embedded Debugger" on page
Function
SWD clock
SWD data
SWD trace output
Erase
"Embedded Debugger" on page
Atmel SAM4N Xplained Pro [USER GUIDE]
6.
6.
12
42104A-MCU-06/2013

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?

Questions and answers

Table of Contents