User manual

Atmel SAM4E Xplained Pro [USER GUIDE]
42216A-MCU-01/2014
18
cutting the strap and adding a resistor across the strap. More information about oscillator allowance and safety
factor can be found in appnote AVR4100
1
.
Table 4-12. External 32.768kHz Crystals
Pin on SAM4E Function
PA7 XIN32
PA8 XOUT32
Table 4-13. External 12MHz Crystals
Pin on SAM4E Function
PB9 XIN
PB8 XOUT
4.2.8 Mechanical Buttons
SAM4E Xplained Pro contains two mechanical buttons. One button is the RESET button connected to the
SAM4E 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. Note that in order to read the button status the internal pull-up must be enabled on PA2.
Table 4-14. Mechanical Buttons
Pin on SAM4E Silkscreen text
NRST RESET
PA2 SW0
4.2.9 LED
There is one yellow LED available on the SAM4E 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-15. LED Connections
Pin on SAM4E LED
PD22 Yellow LED0
4.3 Embedded Debugger Implementation
SAM4E Xplained Pro contains an Embedded Debugger (EDBG) that can be used to program and debug the
ATSAM4E16E 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 SAM4E
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 “Embedded Debugger” on page 6.
Table 4-16. SWD Connections
Pin on SAM4E 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 ATSAM4E16E UARTs. For
further information on how to use the Virtual COM port see “Embedded Debugger” on page 6.
1
http://www.atmel.com/images/doc8333.pdf