8.1Revision History ................................................................................................................. 8-1
11080C–ATARM–30-Mar-11
SAM3N-EK Development Board User Guide
1.1SAM3N Evaluation Kit
The SAM3N Evaluation Kit (SAM3N-EK) allows the evaluation of the SAM3N series devices. It has
enough features to demonstrate most of the product's capabilities to the users. The SAM3N-EK also features extension connectors to allow the users to add new interfaces in case they are not on-board.
1.2User Guide
This guide focuses on the SAM3N-EK board as an evaluation platform. It is made up of 6 sections:
Section 1 includes references, applicable documents, acronyms and abbreviations.
Section 2 summarizes the kit contents.
Section 3 provides instructions to power up the SAM3N-EK and describes how to use it.
Section 4 describes the SAM3N-EK board design in more detail.
The Atmel® SAM3N Evaluation Kit contains the following items:
a SAM3N-EK board
a universal input AC/DC power supply with US, Europe and UK plug adapters
one serial RS232 cable
a welcome letter
Figure 2-1. Unpacked SAM3N-EK
Section 2
Kit Contents
Unpack and inspect the kit carefully. Contact your local Atmel distributor, should you have issues concerning the contents of the kit.
SAM3N-EK Development Board User Guide2-1
11080C–ATARM–30-Mar-11
Kit Contents
2.2Electrostatic Warning
The SAM3N-EK board must not be subjected to high electrostatic potentials. A grounding strap or similar
protective device should be worn when handling the board. Avoid touching the components or any other
metallic element of the board.
2-2SAM3N-EK Development Board User Guide
11080C–ATARM–30-Mar-11
3.1Power up the Board
Unpack the board taking care to avoid electrostatic discharge. Unpack the power supply, select the right
power plug adapter corresponding to that of your country, and insert it in the power supply.
Connect the power supply DC connector to the board and plug the power supply to an AC power plug.
The board LCD should light up and run a Touch demo (shows a screen animation that matches the
Touch devices operated on the PCB).
3.2DevStart
The CDROM provided in the kit contains what we call a "DevStart" a.k.a. "Development Start". This bundle guides you through the first steps of building and running a software application on the SAM3N-EK.
If the CD does not auto-play on your PC, just open it through the explorer and click the file welcome.html
to get started.
The SAM3N-EK DevStart guides you through the installation processes of IAR™ EWARM, Keil MDK
and GNU toolkits. Then, it gives you step-by-step instructions on how to rebuild a single example project
and how to program it into the SAM3N-EK. Optionally, if you have a SAM-ICE™, instructions are also
given about how to debug the code.
Section 3
Power Up
3.3Recovery Procedure
The DevStart ends by giving step-by-step instructions on how to recover the SAM3N-EK to the state as it
was when shipped by Atmel.
SAM3N-EK Test Software, Chapter 3.1 "Flash Recovery" gives instructions if you deleted the contents of
the embedded Flash or the DataFlash
®
and want to recover from this situation.
3.4Sample Code and Technical Support
After boot up, you can run some sample code or your own application on the development kit. You can
download sample code and get technical support from Atmel website
(http://support.atmel.no/bin/customer).
SAM3N-EK Development Board User Guide3-1
11080C–ATARM–30-Mar-11
4.1Board Overview
This section introduces the Atmel SAM3N Evaluation Kit design. It introduces system-level concepts,
such as power distribution, memory, and interface assignments.
The SAM3N-EK board is based on the integration of an ARM
Flash and a set of popular peripherals. It is designed to provide a high performance processor evaluation
solution with high flexibility for various kinds of applications.
Figure 4-1. SAM3N-EK Block Diagram
Section 4
Evaluation Kit Hardware
®
Cortex®-M3 processor with on-board
SAM3N-EK Development Board User Guide4-1
11080C–ATARM–30-Mar-11
Evaluation Kit Hardware
DATA FLASH
SPI MOSI
SPI MISO
SPI CLK
NPCS_DATAFLASH
PA12
PA13
PA14
PA22
+3V3
DGND
+3V3
+3V3
R320RR320R
R280RR280R
R2910RR2910R
MN7
AT25DF321
MN7
AT25DF321
NCS
1
SO
2
NWP
3
VCC
8
NHOLD
7
SCK
6
GND
4
SI
5
R27
47K
R27
47K
C35
100nF
C35
100nF
R310RR310R
4.2Features List
Here is the list of the main board components and interfaces:
SAM3N4C QFP chip with optional socket footprint
12 MHz crystal
32.768 KHz crystal
32-Megabit Serial DataFlash
2.0 inch TFT color LCD display with backlight
UART port with level shifter IC
Micro SD interface
Reset buttons: NRST
User buttons: Left and Right
QTouch
JTAG port
On-board power regulation
Two user LEDs
Power LED
ZigBee
2x32 bit PIO connection interfaces (PIOA, PIOC) and 1x15 bit PIO connection interface (PIOB)
®
buttons: Left, Right, and Slider
®
connector
4.3Function Blocks
4.3.1Processor
The SAM3N-EK is equipped with a SAM3N4C device in LQFP100 package.
4.3.2Memory
The SAM3N4 chip embeds:
256 Kbytes of embedded Flash
24 Kbytes of embedded SRAM with dual bank
16 Kbytes of ROM with embedded BootLoader routines (UART) and In-Application Programming
functions (IAP) routines.
The SAM3N-EK features an external DataFlash through SPI bus
Figure 4-2. DataFlash
NPCS3 chip select signal is used for DataFlash chip selection.
The clock generator of a SAM3N microcontroller is made up of:
A Low Power 32,768 Hz Slow Clock Oscillator with bypass mode
A Low Power RC Oscillator
A 3 to 20 MHz Crystal Oscillator, which can be bypassed
A factory programmed fast internal RC Oscillator. 3 output frequencies can be selected: 4 (default
value), 8 or 12 MHz.
A 60 to 130 MHz programmable PLL (input from 3.5 to 20 MHz), capable to provide the clock MCK to
the processor and to the peripherals.
The SAM3N-EK board is equipped with one 12 MHz crystal, and one 32.768 Hz crystal. An optional
12 MHz Piezoelectric Ceramic Resonator can be mounted in place of the 12 MHz crystal (for low cost
clocking option evaluation).
Figure 4-3. SAM3N MCU
Evaluation Kit Hardware
4.3.4Reset Circuitry
The on-board NRST button BP1 provides the SAM3N4C with external reset control.
Two User buttons BP2 and BP3, can be used to wake up the chip from low power modes.
The NRST pin is bidirectional. It is handled by the on-chip reset controller. It can be driven low to provide
a reset signal out to the external components. Conversely, it can be asserted low from the outside to
reset the microcontroller, its core and peripherals, with exception of the backup region (RTC, RTT and
SAM3N-EK Development Board User Guide4-3
11080C–ATARM–30-Mar-11
Evaluation Kit Hardware
+3V3+5V
DGND
C25
1uF
C25
1uF
C29
10uF 0805
C29
10uF 0805
J1
MP179P 2.1mm
J1
MP179P 2.1mm
1
2
3
+
C28
22uF
+
C28
22uF
MN4
LP38692MP-3.3
MN4
LP38692MP-3.3
VIN4VOUT
3
VEN1NC
2
GND
5
MN3
ZEN056V130A24LS
MN3
ZEN056V130A24LS
1
2
3
C27
100nF
C27
100nF
C26
10uF 0805
C26
10uF 0805
Supply Controller). The NRST pin integrates a permanent pull-up resistor of about 100 kOhm to VDDIO.
On the SAM3N-EK board, the NRST signal is connected to the JTAG port.
4.3.5Power Supply and Management
The SAM3N-EK board is supplied with an external 5V DC block through the J1 socket. It is protected by
a PolyZen diode MN3. The PolyZen protects the board in the case of an incorrect power supply
connection.
The LDO regulator MN4 is used for the 3.3V main supply. It powers all the 3.3V components on the
board.
Figure 4-4. Power Block
4.3.6UART
The SAM3N4/2/1 product series has different types of power supply pins:
VDDIN pin: Power for the internal voltage regulator, ADC, DAC, and analog comparator power
supplies. This voltage ranges from 1.8V to 3.6V.
VDDIO pin: Powers the Peripheral I/O lines, Backup part, 32 kHz crystal oscillator and oscillator pads.
This voltage ranges from 1.62V to 3.6V.
VDDOUT pin: Output of the internal voltage regulator.
VDDCORE pin: Powers the core, including the processor, the embedded memories and the
peripherals. This voltage ranges from 1.62V to 1.95V.
VDDPLL pin: Powers the PLL, the Fast RC and the 3 to 20 MHz oscillators. This voltage ranges from
1.62V to 1.95V.
The Universal Asynchronous Receiver Transmitter features a two-pin UART that can be used for communication and trace purposes. It offers an ideal channel for in-situ programming solutions. This UART
is associated with two PDC channels to reduce the processor time on packet handling.
The two-pin UART (TXD and RXD only) is buffered through an RS232 Transceiver MN8 and brought to
the DB9 male connector J4.
4-4SAM3N-EK Development Board User Guide
11080C–ATARM–30-Mar-11
Figure 4-5. UART
UART
PA10
PA9
+3V3
DGND
DGND
+3V3+3V3
FGND
C39
100nF
C39
100nF
C40
100nF
C40
100nF
TP6
SMD
TP6
SMD
J4J4
5
4
3
2
1
9
8
7
6
10
11
R36
100K
R36
100K
R390RR390R
C38
100nF
C38
100nF
TP7
SMD
TP7
SMD
C41
100nF
C41
100nF
R400RR400R
R410RR410R
C42
100nF
C42
100nF
MN8
MAX3232CSE
MN8
MAX3232CSE
T1IN
11
T2IN
10
R1OUT
12
R2OUT
9
T1OUT
14
T2OUT
7
R1IN
13
R2IN
8
V+
2
C1+
1
C1-
3
C2+
4
C2-
5
V-
6
VCC
16
GND
15
R35
100K
R35
100K
4.3.7Display Interface
The SAM3N-EK carries a TFT Transmissive LCD module with touch panel, TM020GDZ18. Its integrated
driver IC is ILI9225B. The LCD display area is 2.0 inches diagonally measured, with a native resolution
of 176x220 pixels.
The LCD module gets reset from GPIO PA29. The LCD chip select signal is connected to NPCS2. The
SAM3N communicates with the LCD through the SPI bus.
Evaluation Kit Hardware
Figure 4-6. LCD
4.3.8Backlight Control
The LCD backlight is made of four integrated white chip-LEDs arranged in parallel. These are driven by
an AAT3193 charge pump, MN5. The AAT3193 is controlled by the SAM3N through a single PIO line
interface (PC13); the 0 Ohm resistor R17 is mounted in series on this line, which permits to use it for
other custom purposes. In that case, the pull-up resistor R64 maintains the charge pump permanently
enabled by default.
On the anode drive line, a 0 Ohm resistor R21 is implemented in series for an optional current limitation.
NPCS_LCD
SPI CLK
SPI MOSI
PA30
PA14
PA13
PA28
PA29
R190RR190R
DGND
+3V3
+
+
C31
C31
C30
C30
10uF
10uF
DGND
100nF
100nF
LED_A
LED_K1
LED_K2
LED_K3
R18
R18
47K
47K
R210RR210R
LCD
R60
R60
47K
47K
MN6
MN6
TM020GDZ18
TM020GDZ18
1
ID
2
NCS
3
SCL
4
SDA
5
RS
6
NREST
7
GND
8
IOVDD
9
VDD
10
LEDA
11
LEDK1
12
LEDK2
13
LEDK3
14
Y+
15
Y-
16
X+
17
X-
18
NC
11080C–ATARM–30-Mar-11
SAM3N-EK Development Board User Guide4-5
Evaluation Kit Hardware
PA1
DGND
+3V3
D5D5
B2
BN03K314S300R
B2
BN03K314S300R
R59
22R
R59
22R
MN9
SMD-050020F-03640
MN9
SMD-050020F-03640
+
1
-
2
Q2
IRLML2502
Q2
IRLML2502
1
32
R58
10K
R58
10K
Figure 4-7. Backlight
4.3.9JTAG/ICE
A standard 20-pin JTAG/ICE connector is implemented on the SAM3N-EK for the connection of a compatible ARM JTAG emulator interface, such as the SAM-ICE from Segger.
Notes: 1. The NRST signal is connected to BP1 system button. The 0 ohm resistor R30 may be
+3V3
R16
+3V3
PC13
R170RR17
0R
B1
B1
BN03K314S300R
BN03K314S300R
DGND
R16
47K
47K
C33
C33
4.7uF
4.7uF
MN5
MN5
AAT3193IJQ-1-T1
AAT3193IJQ-1-T1
6
EN/SET
5
IN
RSET7OUT
R20
R20
19.1k,1%
19.1k,1%
8
GND
LCD BACKLIGHT
4
C+
C-
D1
D2
D3
C32
C32
1uF
1uF
3
2
LED_A
1
LED_K1
10
LED_K2
9
LED_K3
DGND
C34
C34
1uF
1uF
removed in order to isolate the JTAG port from this system reset signal.
2. The TDO pin is in input mode with the pull-up resistor disabled when the Cortex M3 is
not in debug mode. To avoid current consumption on VDDIO and/or VDDCORE due to
floating input, the internal pull-up resistor corresponding to this PIO line must be
enabled.
Figure 4-8. JTAG Connector
4.3.10PWM Buzzer
A small, magnetic audio transducer connects through a MOSFET to PWM, allowing a range of options
for generating simple and complex tones.
The SAM3N-EK implements two individual capacitive touch keys (RIGHT, LEFT) using two pairs of
PIOs.
Slider
A group of channels forms a Slider. A Slider is composed of three channels for a QTouch acquisition
method using three pairs of PIOs. Such a sensor is used to detect a linear finger displacement on a sensitive area. A typical slider implementation is volume control.
4.3.13User Buttons
There are two mechanical user buttons on the SAM3N-EK, which are connected to PIO lines and
defined to be "left" and "right" buttons by default.
In addition, a mechanical button controls the system reset, signal NRST.
SAM3N-EK Development Board User Guide4-7
11080C–ATARM–30-Mar-11
Evaluation Kit Hardware
BUT TONS
PA15
PA16
DGND
NRST
BP1BP1
1
42
3
BP3BP3
1
42
3
BP2BP2
1
42
3
Figure 4-12. User Buttons
4.3.14LEDs
There are four LEDs on the SAM3N-EK board:
A blue LED (D1), a green LED (D2), and an amber LED (D3) which are user-defined and controlled by
the GPIO.
A red LED (D4), which is a power LED indicating that the 3.3V power rail is active. It is also controlled
by the GPIO and can be treated as a user LED as well. The only difference with the three others is that
it is controlled through a MOS transistor. By default, the PIO line is disabled; a pull-up resistor controls
the MOS to light the LED when the power is ON.
Figure 4-13. LEDs
PA23
R42
R42
470R
470R
+3V3
D1Blue-ledD1Blue-led
4.3.15ZigBee
PB14
PA25
PA0
IRLML2502
IRLML2502
DGND
470R
R44
R44
470R
470R
1
Q1
Q1
R46
R46
470R
470R
32
D2Green-ledD2Green-led
D3Amber-le dD3Amber-le d
R45100KR45100K
D4Red-ledD4Red-led
R43
R43
470R
SAM3N-EK has a 10-pin male connector for the RZ600 ZigBEE module.
Note:0 Ohm resistors have been implemented in series with the PIO lines that are used else-
where in the design, thereby enabling their individual disconnection, should a conflict occur
in your application.
Figure 4-14. ZigBee
J7J7
ZB_RSTN
IRQ1_ZBEE
CS
MISO
R470RR470R
PC23
R480RR480R
PA31
R5110RR5110R
PA12PA14
12
34
56
78
910
R490RR490R
R500RR500R
R520RR520R
C43
C43
18pF
18pF
C44
C44
2.2nF
2.2nF
PC24
PC26PC25
PA13
DGND
C45
C45
2.2uF
2.2uF
IRQ0_ZBEE
SLP_TR
MOSI
SPCK
+3V3
4.3.16PIO Expansion
The SAM3N product features three PIO controllers, PIOA, PIOB and PIOC, which are multiplexed with
the I/O lines of the embedded peripherals. Each PIO Controller controls up to 32 lines (15 for PIOB).
4-8SAM3N-EK Development Board User Guide
11080C–ATARM–30-Mar-11
Expansion ports J5, J6 provide PIO lines access for customer defined usage.
The SAM3N-EK board jumpers are used for many purposes such as internal Flash Memory reinitialization, power current measurement and other configurations.
Table 4-4. Jumpers
Default
DesignationLabel
JP1JTAGSELOPEN
SettingFeature
Close it to reinitialize the Flash content and some
of its NVM bits.
This jumper must be closed for more than 220 ms
at power-up to perform the reinitialization.
4.4.3Test Points
Some test points have been placed on the SAM3N-EK board for the verification of important signals.
Table 4-5. Test Points
DesignationPartDescription
TP1Ring Hook+5V
TP2Ring Hook+3V3
TP3Ring HookGND
TP4Ring HookGND
JP2ADVREFCLOSE
JP3PB12OPEN
JP4VDDIOCLOSEAccess for current measurement on VDDIO
JP5VDDINCLOSEAccess for current measurement on VDDIN
JP6VDDPLLCLOSEAccess for current measurement on VDDPLL
JP7VDDCORECLOSEAccess for current measurement on VDDCORE
JP8+3V31-2
JP9+3V31-2
Analog reference voltage selection, access for
external reference voltage
ERASE, Close to reinitialize the Flash contents and
some of its NVM bits
DC voltage selection between 3.3V and 5V on PIO
expansion ports, default for 3.3V
DC voltage selection between 3.3V and 5V on PIO
expansion ports, default for 3.3V
4-12SAM3N-EK Development Board User Guide
11080C–ATARM–30-Mar-11
Table 4-5. Test Points (Continued)
DesignationPartDescription
TP5Ring HookGND
TP6PadUTXD0
TP7PadURXD0
4.4.4Assigned PIO Lines, Disconnection Possibility
As pointed out in previous interface descriptions, 0-Ohm resistors have been inserted on the PIO lines
receiver path of the SAM3N-EK. Some PIO lines are connected to an external driver on the board. The
0-Ohm resistors allow disconnecting each of these for custom usage (through PIO expansion connectors, for example). This feature gives the user an added level of versatility for prototyping a system of his
own. See the table below.
Table 4-6. Disconnection Possibility
DesignationDefault AssignmentPIO
R2XINPB9
R3XOUTPB8
R9, R5XIN32PA7
R4, R10XOUT32PA8
R17EN_LCD PC13
Evaluation Kit Hardware
R39URXD0PA9
R40UTXD0PA10
R47ZB_RSTNPC23
R48IRQ1_ZBEEPC25
R49IRQ0_ZBEEPC24
R50SLP_TRPC26
SAM3N-EK Development Board User Guide4-13
11080C–ATARM–30-Mar-11
5.1Overview
Section 5
QT600
The QT600 is an integrated board added in the kit that allows you to develop and debug any application
using the Atmel QTouch Library
to start developing touch solutions on Atmel ATx Microcontrollers.
QT600 is fully supported by QTouch Library and AVR Studio
QTouch Suite
Figure 5-1. SAM3N-EK and QT600 Connection
™
.
™
. QT600 has been designed to give developers a quick and easy way
®
, and together these tools form the Atmel
SAM3N-EK Development Board User Guide5-1
11080C–ATARM–30-Mar-11
QT600
SAM3N-EK
MCU Board + Touch
QT600
Interface Board
Interface between
To uch MCU and PC
PC Front-End
USB
QTouch Studio
SPI or PIO
5.2System Description
The development system is based on two boards connected together:
QT600 Interface Board
SAM3N-EK Board with Touch Sensor
Figure 5-2. QT600 System Block Diagram
The QT600 Interface board is used to stream live touch data from the SAM3N-EK board.
QTouch Studio
5.3Features
Live streaming of touch data to QTouch Studio
USB Interface to PC for programming and streamed QTouch Debug data
Powered from USB bus
™
is used as the PC front-end, for visualization of the touch data.
5-2SAM3N-EK Development Board User Guide
11080C–ATARM–30-Mar-11
5.4Getting Started
To use the QT600 interface, it is necessary to have QTouch Studio™ 3.4.0 or later installed. Download
the latest version from www.atmel.com.
Download and install the “Atmel_QTouch_Libraries_4.3_SAM3N_Patch.exe” and follow the installation
steps as detailed below:
1. Start the installation process
Figure 5-3. Installation Step 1
QT600
2. Accept the terms of the licence agreement
3. Choose the destination location of the folder
4. Update the QT600 firmware
5. Install the program
6. When the installation is complete, click the “Finish” button
Figure 5-4. Installation Step 6
SAM3N-EK Development Board User Guide5-3
11080C–ATARM–30-Mar-11
QT600
The SAM3N-EK boards must be programmed with the QTouch application code. For ARM products, the
examples can be retrieved from the QTouch Library (installation process described on page 5-3).
The example projects must be compiled for the application to work. Refer to the main.c file in each project for details.
For the SPI interface, the project files are located in:
The Touch Data LED on the QT600 indicates the mode:
Touch Data LED green: Touch Debug Mode (default mode after power-up).
Touch Data LED off: Programmer Mode
Make sure that the Touch Data LED is off before attempting to connect to the QT600 from the QTouch
Studio programming dialog. Use AVR Studio 4.18 or later.
1. Connect the 10 wire flat-cable between the Touch Data header on the QT600 and the selected
SAM3N-EK board (see Figure 5-9 on page 5-7)
2. Make sure that VTG header is open on the QT600 (see “Target Voltage VTG” on page 5-8)
3. Start AVR QTouch Studio
4. Plug in the USB cable to the QT600. AVR QTouch Studio should now automatically connect to the
SAM3N-EK
5. Press the Start Debug button
You should now be able to view the touch data signals and the state of each sensor.
5-4SAM3N-EK Development Board User Guide
11080C–ATARM–30-Mar-11
Figure 5-5. QTouch Studio GUI
QT600
5.5Hardware Description
5.5.1QT600 Interface Board
Figure 5-6. QT600 Interface Board
The QT600 Interface Board is the communication interface between the touch system (presently
SAM3N-EK) and the AVR QTouch Studio. It receives touch signal data from the MCU running the
QTouch Library, and forwards this data to the AVR QTouch Studio for visual presentation.
The QT600 can also be used as a programmer for programming the on-chip flash memory of the microcontrollers on the SAM3N-EK board.
SAM3N-EK Development Board User Guide5-5
11080C–ATARM–30-Mar-11
QT600
Figure 5-7. QT600 Interface Board Block Diagram
5-6SAM3N-EK Development Board User Guide
11080C–ATARM–30-Mar-11
5.5.2TOUCH DATA Connectors
SDASCL
RxDTxD
SSMOSI
MISOSCK
GNDVTG
1 2
PA 31PA13
PA 12PA 14
GND
1 2
In PIO modeIn SPI mode
Figure 5-8. TOUCH DATA Connector Pinout
The TOUCH DATA connector located on the QT600 interface board is used for streaming touch data to
the PC using the SPI (or PIO) interface. The corresponding connector is located on the Touch SAM3NEK board. A straight 10-wire cable can be connected between these two connectors.
Table 5-1. TOUCH DATA Connector Pinout
PinInterfaceName
QT600
Direction, QT600
interface boardDirection SAM3N-EKRemarks
1
TWI
2SCLBi-directionalBi-directional
3
UART
4TxDInputOutput
5
6MOSIInputOutput
SPI
7MISOOutputInput
8SCKInputOutput
9ALL GND
10ALLVTGKeep Jumper Open
SDABi-directionalBi-directional
Not used
RxDOutputInput
Not used
SSInputOutput
Figure 5-9. TOUCH DATA Connector
To uch Data
Connectors
To uch Data
J7
SAM3N-EK Development Board User Guide5-7
11080C–ATARM–30-Mar-11
QT600
5.5.3Target Voltage VTG
The VTG is supplied by the MCU board through the 10-wire cable (connected to the TOUCH DATA
Connector).
Figure 5-10. VTG
Keep
open
5.5.4VTG LED
A green LED labeled VTG on the QT600 board is lit when a voltage of 0.9V or higher is available on the
VTG net.
5.5.5TOUCH DATA LED
The status of the LED indicates the operating mode of the QT600.
5.5.5.1Touch Streaming Mode
When the QT600 is in Touch streaming mode (for use with AVR QTouch Studio), the TOUCH DATA
LED is green. When touch data is received from the SAM3N-EK, the LED starts to flash.
5.5.5.2Programming Mode
When the QT600 is in programming mode (for use with AVR Qtouch Studio), the TOUCH DATA LED is
not lit.
5-8SAM3N-EK Development Board User Guide
11080C–ATARM–30-Mar-11
5.5.6STATUS LED
Green: Ready state
Orange: Busy programming
Orange/red flashing: Upgrade mode
Orange/green flashing: Upgrade mode, upgrade in progress
During programming, the LED is orange. When the Atmel target device has been successfully programmed, the LED turns green.
5.5.7Touch ATx Firmware
The firmware for the Touch ATx is based on the QTouch Library. The QTouch Library handles the touch
acquisition. The touch measurement values are made available for the application firmware trough an
API, which is described in detail in the QTouch Library User Guide.
The touch measurement values available through the Touch Library API are sent to the QT600 with an
SPI (or PIO) interface, using a custom protocol. AVR QTouch Studio will read these data packets from
the QT600.
See the QT600 Protocol Document for details about the communication protocol.
QT600
5.6Touch Debug
Before a touch debug session can be started, the target microcontroller on the SAM3N-EK board must
be programmed. The example projects can be retrieved from the QTouch Library (installation steps are
detailed in Section 5.4).
Example projects for both GCC and IAR compilers are available.
1. Connect a 10-wire cable between the Touch Data Connector on the SAM3N-EK board and the Touch
Data connector on the QT600 Interface board (see Figure 5-9 on page 5-7)
2. Start AVR QTouch Studio
3. Connect the USB cable to the QT600 interface board
4. Press the Start Debug Button in AVR QTouch Studio
AVR QTouch Studio automatically connects to the QT600 when the USB plug is inserted. The Touch
Data streaming starts when the "Start Debug" button is pressed.
5.7Using QT600 and AVR QTouch Studio for Custom Applications
The QT600 Interface Board and QTouch Studio can be used to read touch data from any application
based on the QTouch Library. The only requirement is that there are two I/O pins available and that there
is enough free space in flash for the debug protocol and serial interface driver.
The QT600 interface uses an SPI protocol at a frequency of 200 kHz.
Complete firmware driver files are available in the QT600 example projects, which can be downloaded
from www.atmel.com/QT600. See the readme.txt file in the QT600 Example Projects folder for instructions on how to add the QT600 protocol files to your firmware project.
SAM3N-EK Development Board User Guide5-9
11080C–ATARM–30-Mar-11
QT600
5.8Troubleshooting and Support
5.8.1Technical Support
For technical support, contact at91@atmel.com. When requesting technical support for the QT600, you
should provide the following information:
PC processor type and speed
PC operating system and version
Atmel target device used (complete part number)
Tar g e t v o l t ag e
Jumper settings
A detailed description of the problem
5.8.2Force Firmware Upgrade
Before starting the procedure, make sure that the latest AVR Studio release (4.0 or later) has been
installed on your PC.
1. If connected to the PC with a USB cable, unplug the QT600.
2. Press and hold the button on QT600 when connecting the USB cable: the status LED flashes red
and orange, indicating the upgrade mode.
3. In AVR Studio, go to the Tools menu and select QT600 Upgrade.
4. The Atmel QT600 Upgrade program starts. If a connection has been established, the Status shows
"QT600 present".
5. Press the Start Upgrade button: the upgrade program upgrades QT600's firmware.
6. When complete, a message box indicates if the upgrade was successful or not. Disconnect and then
reconnect the USB cable.
7. If the upgrade was successful, the status LED turns green. Try to connect to the starter kit with
QTouch Studio.
The QT600 USB Bridge firmware must be updated using the batch file available in
“C:\...\QT600_USB_Bridge_Update” folder before using the Example projects.
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
5
4
3
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
2
SCALE
1/1
1/1
1/1
DES.
DES.
DES.
05-MAY-10NLB
05-MAR-10
05-MAR-10
05-MAR-10
DATE
DATE
DATE
1
XX-XXX-XXNLXXX
XX-XXX-XXNLXXX
XX-XXX-XXNLXXX
DATEMODIF.
VER.
DATEMODIF.
VER.
DATEMODIF.
VER.
REV. SHEET
REV. SHEET
REV. SHEET
1
1
1
B
B
B
5
5
5
5
4
3
2
1
DD
REVISION HISTORY
REVDATA
A
2010.03.04ORIGINAL RELEASED
NOTE
SCHEMATICS CONVENTIONS
(1) Resistance Unit: "K" is "Kohm", "R" is "Ohm?
(2) "DNP" means the component is not populated
by default
JUMPER and SOLDERDROP
PAGEREFERENCEFUNCTION
JP1
JP2
DEFAULT
DNPClose to select JTAG boundary scan
1-2
Analog reference voltage selection between 3.3V and 3V,
default 3.3V
JP3
OPEN
ERASE, Close to reinitialize the Flash contents and
some of its NVM bits
TABLE OF CONTENTS
3
TEST POINT
PAGE
CC
1
2
3
4
5
DESCRIPTION
Block Diagram
Reference guide
Microcontroller, Power
Data Flash, Micro SD, LCD, BL Driver,
JTAG, RS232
IO Expansion, Buzzer, ZigBEE, LEDs,
Buttons, QTouch
PAGEREFERENCEFUNCTION
3
TP1
TP2
TP3, TP4, TP5
TP6
+5V
+3V3
GND
UTXD04
TP7URXD0
5
PIO MUXING
BB
PIOAUSAGE
PA0
POWER LED
PA1
CMD_SOUND
PA2
PA3
PA4
PA5
PA6
PA7
XIN32
PA8
XOUT32 / ADTRG
PA9
RX_UART0
PA10
TX_UART0
PA11
PA12
PA13
PA14
PA15
SPI_MISO
SPI_MOSI
SPI_SPCK
PB_USER1
5
AA
PIOAUSAGE
PA16
PB_USER2
PA17
PA18
PA19
MicroSD_CD
PA20
PA21
PA22
NPCS_DATAFLASH
PA23
LED_BLUE
PA24
PA25
LED_AMBER
PA26
PA27
PA28
RS_LCD
PA29
RST_LCDEN_LCD
NPCS_LCD
PA30
NPCS_ZigBee
PA31
PIOBUSAGE
PB0
PB1
PB2
PB3
PB4
JTAG
PB5
JTAG
PB6
JTAG
PB7
JTAG
PB8
XOUT_12M
PB9
XIN_12M
PB10
PB11
ERASE
PB12
PB13
LED_GREEN
PB14
4
PIOCUSAGE
PC0
QT_SL_SNS
PC1
QT_SL_SNSK
PC2
QT_SM_SNS
PC3
QT_SM_SNSK
PC4
QT_SR_SNS
PC5
QT_SR_SNSK
PC6
PC7
PC8
QT1_SNS
PC9
QT1_SNSK
PC10
QT2_SNS
PC11
QT2_SNSK
PC12
PC13
PC14
PC15
PIOCUSAGE
PC16
PC17
PC18
PC19
PC20
PC21
PC22
PC23
ZB_RSTN
PC24
ZB_IRQ0
PC25
ZB_IRQ1
PC26
ZB_SLPTR
PC27
PC28
PC29
PC30
PC31
3
JP4
JP5
JP6
JP7
JP8
JP9
CLOSE
CLOSE
CLOSE
1-2
Access for current measurement on VDDIOCLOSE
Access for current measurement on VDDIN
Access for current measurement on VDDPLL
Access for current measurement on VDDCORE
DC voltage selection between 3.3V and 5V on PIO
expansion ports, default for 3.3V
DEFAULT NO POPULATE PARTS
PAGEREFERENCEFUNCTION
JP1Option access for JTAGSEL
3
R6, R8
R4, R9
S1, K1, K2QTouch PADs, not real part
5
2
External clock resource inputY1, R1, R7
Isolation between 12MHz clock source and GPIO line
Isolation between 32KHz clock source and GPIO line
SAM3N-EK
SAM3N-EK
SAM3N-EK
Describe
Describe
Describe
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
5
4
3
2
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
SCALE
1/1
1/1
1/1
05-MAY-10
05-MAY-10
05-MAY-10
NL
NL
NL
05-MAR-10
05-MAR-10
05-MAR-10
1
XX-XXX-XXNLXXX
XX-XXX-XXNLXXX
XX-XXX-XXNLXXX
REV. SHEET
REV. SHEET
REV. SHEET
5
5
5
B
B
B
5
5
5
7.1Self-Test
A test package software is available to implement a functional test for each section of the board. Refer to
the SAM3N-EK page on http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4846.
7.2Board Recovery
The CDROM provided in the kit contains a recovery procedure allowing to reprogram the board as it was
when shipped. An HTML page describing that procedure is located in the directory html of the CDROM.
Just open the file demo_recovery.html you will find in there.
Section 7
Troubleshooting
SAM3N-EK Development Board User Guide7-1
11080C–ATARM–30-Mar-11
8.1Revision History
Table 8-1.
DocumentComments
Section 8
Revision History
Change Request
Ref.
11080CNote 2 added to
11080B
11080AFirst issue.
Section 5“QT600” added.7544
Section 4.3.9 ”JTAG/ICE”.7636
SAM3N-EK Development Board User Guide8-1
11080C–ATARM–30-Mar-11
HeadquartersInternational
Atmel Corporation
2325 Orchard Parkway
San Jose, CA 95131
USA
Tel: (+1) (408) 441-0311
Fax: (+1) (408) 487-2600
Atmel Asia Limited
Unit 01-5 & 16, 19F
BEA Tower, Millennium City 5
418 Kwun Tong Road
Kwun Tong, Kowloon
HONG KONG
Tel: (+852) 2245-6100
Fax: (+852) 2722-1369
Product Contact
Web Site
www.atmel.com
www.atmel.com/AT91SAM
Literature Requests
www.atmel.com/literature
Atmel Munich GmbH
Business Campus
Parkring 4
D-85748 Garching b. Munich
GERMANY
Tel: (+49) 89-31970-0
Fax: (+49) 89-3194621
Technical Support
AT91SAM Support
Atmel technical support
Atmel Japan
9F, Tonetsu Shinkawa Bldg.
1-24-8 Shinkawa
Chuo-ku, Tokyo 104-0033
JAPAN
Tel: (81) 3-3523-3551
Fax: (81) 3-3523-7581
Sales Contacts
www.atmel.com/contacts/
Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any
intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI-
TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY
WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT
OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no
representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted
for use as components in applications intended to support or sustain life.