Atmel SAM3N-EK User guide

SAM3N-EK Development Board
....................................................................................................................
User Guide
11080C–ATARM–30-Mar-11
Section 1
Introduction.................................................................................................................1-1
1.2 User Guide ......................................................................................................................... 1-1
1.3 References and Applicable Documents ............................................................................. 1-1
Section 2
Kit Contents ................................................................................................................2-1
2.1 Deliverables ....................................................................................................................... 2-1
2.2 Electrostatic Warning ......................................................................................................... 2-2
Section 3
Power Up....................................................................................................................3-1
3.1 Power up the Board ...........................................................................................................3-1
3.2 DevStart ............................................................................................................................. 3-1
3.4 Sample Code and Technical Support ................................................................................ 3-1
Section 4
Evaluation Kit Hardware .............................................................................................4-1
4.1 Board Overview.................................................................................................................. 4-1
4.2 Features List ...................................................................................................................... 4-2
4.3 Function Blocks.................................................................................................................. 4-2
4.3.1 Processor............................................................................................................. 4-2
4.3.2 Memory................................................................................................................ 4-2
4.3.3 Clock Circuitry...................................................................................................... 4-3
4.3.4 Reset Circuitry ..................................................................................................... 4-3
4.3.5 Power Supply and Management.......................................................................... 4-4
4.3.6 UART ................................................................................................................... 4-4
4.3.7 Display Interface .................................................................................................. 4-5
4.3.8 Backlight Control.................................................................................................. 4-5
4.3.9 JTAG/ICE............................................................................................................. 4-6
4.3.10 PWM Buzzer ........................................................................................................ 4-6
4.3.11 SD/MMC Card ..................................................................................................... 4-6
4.3.12 Touch Elements .................................................................................................. 4-7
4.3.13 User Buttons ........................................................................................................ 4-7
4.3.14 LEDs .................................................................................................................... 4-8
4.3.15 ZigBee ................................................................................................................. 4-8
4.3.16 PIO Expansion ..................................................................................................... 4-8
4.4 Configuration...................................................................................................................... 4-9
4.4.1 PIO Usage ........................................................................................................... 4-9
SAM3N-EK Development Board User Guide 1-1
11080C–ATARM–30-Mar-11
4.4.2 Jumpers ............................................................................................................. 4-12
4.4.3 Test Points ......................................................................................................... 4-12
4.4.4 Assigned PIO Lines, Disconnection Possibility.................................................. 4-13
Section 5
QT600.........................................................................................................................5-1
5.1 Overview ............................................................................................................................ 5-1
5.2 System Description ............................................................................................................ 5-2
5.3 Features ............................................................................................................................. 5-2
5.4 Getting Started ................................................................................................................... 5-3
5.5 Hardware Description.........................................................................................................5-5
5.5.1 QT600 Interface Board ........................................................................................ 5-5
5.5.2 TOUCH DATA Connectors .................................................................................. 5-7
5.5.3 Target Voltage VTG ............................................................................................. 5-8
5.5.4 VTG LED ............................................................................................................. 5-8
5.5.5 TOUCH DATA LED ............................................................................................. 5-8
5.5.6 STATUS LED....................................................................................................... 5-9
5.5.7 Touch ATx Firmware ........................................................................................... 5-9
5.6 Touch Debug...................................................................................................................... 5-9
5.7 Using QT600 and AVR QTouch Studio for Custom Applications....................................... 5-9
5.8 Troubleshooting and Support........................................................................................... 5-10
5.8.1 Technical Support .............................................................................................. 5-10
5.8.2 Force Firmware Upgrade ................................................................................... 5-10
Section 6
Schematics .................................................................................................................6-1
6.1 Schematics......................................................................................................................... 6-1
Section 7
Troubleshooting..........................................................................................................7-1
7.1 Self-Test............................................................................................................................. 7-1
7.2 Board Recovery ................................................................................................................. 7-1
Section 8
Revision History..........................................................................................................8-1
8.1 Revision History ................................................................................................................. 8-1
11080C–ATARM–30-Mar-11
SAM3N-EK Development Board User Guide

1.1 SAM3N 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 fea­tures extension connectors to allow the users to add new interfaces in case they are not on-board.

1.2 User 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.
Section 5 provides schematics.
Section 6 describes the troubleshooting.

Section 1

Introduction

1.3 References and Applicable Documents

Table 1-1. References and Applicable Documents
Title Comment
SAM3N Datasheet http://atmel.com/dyn/products/devices.asp?family_id=605#2245
SAM3N-EK Development Board User Guide 1-1
11080C–ATARM–30-Mar-11

2.1 Deliverables

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 con­cerning the contents of the kit.
SAM3N-EK Development Board User Guide 2-1
11080C–ATARM–30-Mar-11
Kit Contents

2.2 Electrostatic 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-2 SAM3N-EK Development Board User Guide
11080C–ATARM–30-Mar-11

3.1 Power 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.2 DevStart

The CDROM provided in the kit contains what we call a "DevStart" a.k.a. "Development Start". This bun­dle 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.3 Recovery 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.4 Sample 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 Guide 3-1
11080C–ATARM–30-Mar-11

4.1 Board 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 Guide 4-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
R32 0RR32 0R
R28 0RR28 0R
R29 10RR29 10R
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
R31 0RR31 0R

4.2 Features 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.3 Function Blocks

4.3.1 Processor
The SAM3N-EK is equipped with a SAM3N4C device in LQFP100 package.
4.3.2 Memory
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.
4-2 SAM3N-EK Development Board User Guide
11080C–ATARM–30-Mar-11
DNP
XIN
PB2
PB3
PB10
PB11
PB4 PB6 PB7 PB5
NRST
PB1
PA0 PA1 PA2 PA3 PA4 PA5 PA6
PA9 PA10 PA11 PA12 PA13 PA14 PA15 PA16 PA17 PA18 PA19 PA20 PA21 PA22 PA23 PA24 PA25 PA26 PA27 PA28 PA29 PA30 PA31
P
C0
PC1
PC2
PC3PC4
PC5
PC6
PC7
P
C8
PC9
P
C
10
P
C11
PC12
PC13
P
C
14
P
C15
PC16
P
C17
P
C
18
PC19
PC20
PC
21
P
C22
PC
23
PC
24
PC25
P
C26PC
27
P
C28
P
C
29
PC30
PC
31
XOUT
XOUT32
PB0
JTAGSEL
XIN32
PB0
PB6 PB7 PB10 PB11
PB1 PB2
PB12
PB3
PB14
PB13
PB4 PB5
PB13
PB14
PB12
XIN32 XOUT32
PA7 PA8
ADVREF
DGND
DGND
VDDIO
DGND
DGND
DGND
VDDPLLVDDCORE
DGND
VDDINVDDOUT
DGND
DGND
+3V3
+3V3
+3V3
PA[0..31]
PC[0..31]
PB[0..14]
NRST
R1 DNPR1 DNP
C22 4.7uFC22 4.7uF
C13 100nFC13 100nF
R9 DNPR9 DNP
C7 100nFC7 100nF
C3 7pFC37pF
R2 0RR2 0R
C21
4.
7uFC214.7uF
C
10 100nFC10 100nF
C4 7pFC47pF
C20
100nF
C20
100nF
C
15 100nFC15 100nF
Y1Y1
1
2
3
C
19 100nFC19 100nF
JP3JP3
JP2JP2
C
12 100nFC12 100nF
Y3
32.768KHzY332.768KHz
1
2
3
4
C18 100nFC18 100nF
R7 DNPR7 DNP
C9
2.2uFC92.2uF
C17
100nF
C17
100nF
C5 100nFC5100nF
SAM3N - LQFP100
MN1 SAM3N4C-AU
SAM3N - LQFP100
MN1 SAM3N4C-AU
PA0_PWM0_TIOA0
74
PA1_PWM1_TIOB0
72
PA2_PWM2_SCK0_DATRG
67
PA3_TWD0_NPCS3
66
PA4_TWCK0_TCLK0
55
PA5_RXD0_NPCS3
53
PA6_TXD0_PCKO
52
PA7_RTS0_PWM3
49
PA8_CTS0_ADTRG
48
PA9_URXD0_NPCS1
46
PA10_UTXD0_NPCS2
44
PA11_NPCS0_PWM0
42
PA12_MISO_PWM1
41
PA13_MOSI_PWM2
33
PA14_SPCK_PWM3
31
PA15_TIOA1
30
PA16_TIOB1
28
PA17_PCK1_AD0
12
PA18_PCK2_AD1
14
PA19_AD2
18
PA20_AD3
24
PA21_RXD1_PCK1_AD8
15
PA22_TXD1_NPCS3_AD9
20
PA23_SCK1_PWM0
22
VDDCORE
85
JTAGSEL
77
GND
45
GND95GND
70
GND
26
VDDIO
27
VDDIO
69
VDDIO
91
PB8_XOUT
96
PB9_XIN
97
PB0_PWM0_AD4
3
NRST
60
VDDCORE
56
ADVREF
1
PA25_CTS1_PWM2
38
PA24_RTS1_PWM1
34
PB2_URXD1_NPCS2_AD6
7
PB3_UTXD1_PCK2_AD7
9
PB6_TMS_SWDIO
79
PB4_TWD1_PWM2_TDI
51
PB5_TWCK1_TDO_TACESWO
76
PB7_TCK_SWCLK
83
TEST
61
PB12_ERASE
87
PB14_NPCS1_PWM3
99
VDDOUT
11
PB1_PWM1_AD5
5
PA26_TIOA2
39
PA27_TIOB2
57
PA28_TCLK1
59
PA29_TCLK2
63
PA30_NPCS2
64
PA31_NPCS1_PCK2
81
VDDIN
10
PB10_DDM
88
PB11_DDP
89
PB13_PCK0_DAC0
93
VDDIO
98
VDDCORE
36
VDDCORE
16
VDDPLL
100
VDDIO
50
GND
2
PC0
25
PC1
47
PC2
43
PC3
40
PC4_NPCS1
37
PC5
35
PC6
32
PC7_NPCS2
29
PC8_PWM0
58
PC9_PWM1
62
PC10_PWM2
65
PC11_PWM3
68
PC12_AD12
23
PC13_AD10
21
PC14_PCK2
71
PC15_AD11
19
PC16_PCK0
73
PC17_PCK1
75
PC18_PWM0
78
PC19_PWM1
80
PC20_PWM2
82
PC21_PWM384PC22_PWM0
86
PC23_TIOA3
90
PC24_TIOB3
92
PC25_TCLK3
94
PC26_TIOA4
13
PC27_TIOB4
17
PC28_TCLK4
54
PC29_TIOA5_AD13
4
PC30_TIOB5_AD14
6
PC31_TCLK5_AD15
8
R50RR5 0R
C14 DNPC14 DNP
C8 100nFC8 100nF
Y2 12MHzY2 12MHz
C1 15pFC1 15pF
C16 100nFC16 100nF
R4 DNPR4 DNP
R3 0RR3 0R
R100RR10 0R
JP1 DNP
JP1 DNP
C2 15pFC2 15pF
C11 100nFC11 100nF
4.3.3 Clock Circuitry
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.4 Reset 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 Guide 4-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.5 Power 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.6 UART
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 com­munication 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-4 SAM3N-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
R39 0RR39 0R
C38 100nF
C38 100nF
TP7
SMD
TP7
SMD
C41 100nF
C41 100nF
R40 0RR40 0R
R41 0RR41 0R
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.7 Display 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.8 Backlight 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
R19 0RR19 0R
DGND
+3V3
+
+
C31
C31
C30
C30 10uF
10uF
DGND
100nF
100nF
LED_A LED_K1 LED_K2 LED_K3
R18
R18 47K
47K
R21 0RR21 0R
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 Guide 4-5
Loading...
+ 27 hidden pages