The SAM4S Evaluation Kit (SAM4S-EK2) enables evaluation capabilities and code development of
applications running on a SAM4SD32 device.
1.2User Guide
This guide focuses on the SAM4S-EK2 board as an evaluation platform. It is made up of 6 sections:
Section 1 includes references, applicable documents, acronyms and abbreviations.
Section 2 describes the kit contents, its main features and specif ications.
Section 3 provides instructions to power up the SAM4S-EK2 and describes how to use it.
Section 4 provides board specifications, describes the development environment and presents the
hardware resources, default jumper, switch settings and connectors.
The Atmel® SAM4S-EK2 toolkit contains the following items:
Board:
– a SAM4S-EK2 board
– a universal input AC/DC power supply with US, Europe and UK plug adapters
Cables:
– one USB cable
– one serial RS232 cable
A Welcome Letter
Figure 2-1. Unpacked SAM4S-EK2
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.
SAM4S-EK2 User Guide2-1
11176A–ATARM–24-Sep-12
2.2Electrostatic Warning
The SAM4S-EK2 board is shipped in a protective anti-static bag. The 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.
Kit Contents
SAM4S-EK2 User Guide2-2
11176A–ATARM–24-Sep-12
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 into 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 display a welcome page. Then, click or touch the icons displayed on
the screen and enjoy the demo.
3.2Sample 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 suppor t from th e Atm el web site : http://www.atmel.com
Section 3
Power Up
SAM4S-EK2 User Guide3-1
11176A–ATARM–24-Sep-12
4.1Board Overview
This section introduces the Atmel SAM4S-EK2 Evaluation Kit design. It introduces system-level concepts, such as power distribution, memory, and interface assignments.
The SAM4S-EK2 board is based on the integration of an ARM
NAND 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. SAM4S-EK2 Block Diagram
Section 4
Evaluation Kit Hardware
®
Cortex®-M4 processor with on-board
SAM4S-EK2 User Guide4-1
11176A–ATARM–24-Sep-12
4.2Features List
Here is the list of the main board components and interfaces:
SAM4SD32 chip LQFP100 package with optional socket footprint
12 MHz crystal
32.768 KHz crystal
Optional SMB connector for external system clock input
NAND Flash
2.8 inch TFT color LCD display with touch panel and b acklight
UART port with level shifter circuit
USART port with level shifter circuit multiplexed with RS485 port with level shifter circuit
Microphone input and mono/stereo headphone jack output
SD/MMC interface
Reset button: NRST
User buttons: Left and Right
QTouch
Full Speed USB device port
JTAG/ICE port
On-board power regulation
Two user LEDs
Pow er LED
BNC connector for ADC input
BNC connector for DAC output
User potentiometer connected to the ADC input
ZigBEE connector
2x32 bit PIO connection interfaces (PIOA, PIOC) and 1x16 bit PIO connection interface (PIOB)
®
buttons: Up, Down, Left, Right, Valid and Slider
Evaluation Kit Hardware
4.3Function Blocks
4.3.1Processor
The SAM4S-EK2 is equipped with a SAM4SD32 device in LQFP100 package.
4.3.2Memory
The SAM4SD32 chip embeds:
2048 Kbytes of embedded Flash
160 Kbytes of embedded SRAM
16 Kbytes of ROM with embedded BootLo ader routines (U AR T, USB) and In-Application Programming
functions (IAP) routines
SAM4S-EK2 User Guide4-2
11176A–ATARM–24-Sep-12
Evaluation Kit Hardware
MN3
WE
18
N.C6
6
VCC
37
CE
9
RE
8
N.C11
20
WP
19
N.C5
5
N.C1
1
N.C2
2
N.C3
3
N.C4
4
N.C12
21
N.C13
22
N.C14
23
N.C15
24
R/B
7
N.C17
26
N.C18
27
N.C19
28
I/O0
29
N.C21
34
N.C22
35
VSS
36
PRE
38
N.C23
39
VCC
12
VSS
13
ALE
17
N.C8
11
N.C7
10
N.C9
14
N.C10
15
CLE
16
N.C16
25
N.C20
33
I/O1
30
I/O3
32
I/O2
31
N.C27
47
N.C26
46
N.C25
45
I/O7
44
I/O6
43
I/O5
42
I/O4
41
N.C24
40
N.C28
48
MT29F2G08ABAEA
JP9
Heade r2
C28
100nF
NAND FLASH
PC18
C29
1uF
+3V3
PC14
DGND
R16
47K
R22
0R
DNP
R2147 K
R190R
DGND
+3V3
C27
100nF
PC7
PC6
PC5
PC4
PC0
PC1
PC2
PC3
R15
47K
+3V3
PC10
PC9
PC16
PC17
+3V3
MN3
WE
18
N.C6
6
VCC
37
CE
9
RE
8
N.C11
20
WP
19
N.C5
5
N.C1
1
N.C2
2
N.C3
3
N.C4
4
N.C12
21
N.C13
22
N.C14
23
N.C15
24
R/B
7
N.C17
26
N.C18
27
N.C19
28
I/O0
29
N.C21
34
N.C22
35
VSS
36
PRE
38
N.C23
39
VCC
12
VSS
13
ALE
17
N.C8
11
N.C7
10
N.C9
14
N.C10
15
CLE
16
N.C16
25
N.C20
33
I/O1
30
I/O3
32
I/O2
31
N.C27
47
N.C26
46
N.C25
45
I/O7
44
I/O6
43
I/O5
42
I/O4
41
N.C24
40
N.C28
48
MT29F2G08ABAEA
JP9
Heade r2
C28
100nF
NAND FLASH
PC18
C29
1uF
+3V3
PC14
DGND
R16
47K
R22
0R
DNP
R2147 K
R190R
DGND
+3V3
C27
100nF
PC7
PC6
PC5
PC4
PC0
PC1
PC2
PC3
R15
47K
+3V3
PC10
PC9
PC16
PC17
+3V3
MN3
WE
18
N.C6
6
VCC
37
CE
9
RE
8
N.C11
20
WP
19
N.C5
5
N.C1
1
N.C2
2
N.C3
3
N.C4
4
N.C12
21
N.C13
22
N.C14
23
N.C15
24
R/B
7
N.C17
26
N.C18
27
N.C19
28
I/O0
29
N.C21
34
N.C22
35
VSS
36
PRE
38
N.C23
39
VCC
12
VSS
13
ALE
17
N.C8
11
N.C7
10
N.C9
14
N.C10
15
CLE
16
N.C16
25
N.C20
33
I/O1
30
I/O3
32
I/O2
31
N.C27
47
N.C26
46
N.C25
45
I/O7
44
I/O6
43
I/O5
42
I/O4
41
N.C24
40
N.C28
48
MT29F2G08ABAEA
JP9
Heade r2
C28
100nF
NAND FLASH
PC18
C29
1uF
+3V3
PC14
DGND
R16
47K
R22
0R
DNP
R2147 K
R190R
DGND
+3V3
C27
100nF
PC7
PC6
PC5
PC4
PC0
PC1
PC2
PC3
R15
47K
+3V3
PC10
PC9
PC16
PC17
+3V3
NOT POPULATED
DNP
XOUT32
XIN32
XIN32
XOUT32
PA7
PA8
XIN
XOUT
PB8
PB9
DGND
DGND
DGND
DGND
DGND
R3DNPR3DNP
R6DNPR6DNP
R9DNPR9DNP
R1DNPR1DNP
C3
20pFC320pF
R40RR40R
C4
20pFC420pF
R2
49.9R 1%R249.9R 1%
Y1Y1
12
3
R8DNPR8DNP
R7DNPR7DNP
MN1MN1
PA7_RTS0_PWMH3
49
PA8_CTS0_AD12BTRG
48
PB8_XOUT
96
PB9 _XIN
97
R110RR11
0R
Y212MHzY212MHz
C120pFC120pF
R10DNPR10DNP
Y3
32.768KHz
Y3
32.768KHz
12
3
R50RR50R
R120RR12
0R
J1J1
1
23
54
C220pFC220pF
SAM4SD32
The SAM4SD32 features an External Bus Interface (EBI) that permits interfacing to a broad range of
external memories and virtually to any parallel peripheral. The SAM4S-EK2 board is equipped with a
memory device connected to the SAM4 EBI:
One NAND Flash MT29F2G08ABAEA.
Figure 4-2. NAND Flash
4.3.3Clock Circuitry
Figure 4-3. External Clock Source
SAM4S-EK2 User Guide4-3
NCS0 chip select signal is used for NAND Flash chip selection. Furthermore, a dedicated jumper can
disconnect it from the on-board mem ories, thereby letting NCS0 free for other custom purposes.
The clock generator of a SAM4SD32 microcontroller is composed of:
A Low Power 32.768 Hz Slow Clock Oscillator with bypass mode
A 3 to 20 MHz Crystal Oscillator, which can be bypassed (12 MHz needed in case of USB)
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 PLL (PLLB) providing a clock for the USB Full Speed Controller
A 60 to 130 MHz programmable PLL (PLLA), capable to provide the clock MCK to the processor and
to the peripherals. The input frequency of PLLA is from 7.5 to 20 MHz
The SAM4S-EK2 board is equipped with one 12 MHz crystal, optional Piezoelectric Ceramic Resonator
12 MHz (Murata ref. CSTCE12M0G15L99-R0), one 32.768 Hz crystal and an external clock input connector (optional, not populated by default).
11176A–ATARM–24-Sep-12
The SAM4SD32 chip internally generates the following clocks:
DGND
+5V
DGND
+5V+3V3
C75
100uF
+
C75
100uF
C65
22uF
+
C65
22uF
C64
100nF
C64
100nF
MN10
BNX002-01
MN10
BNX002-01
SV
1
SG
2
CV
3
CG1
4
CG2
5
CG3
6
C76
100nF
C76
100nF
C66
22uF
+
C66
22uF
MN9
ZEN056V130A24LS
MN9
ZEN056V130A24LS
1
2
3
R92
102K 1%
R92
102K 1%
MN12
MIC29152WU
Micrel's 1.5A LDO, TO263-5
MN12
MIC29152WU
Micrel's 1.5A LDO, TO263-5
VIN
2
VOUT
4
SD
1
GND1
3
ADJ
5
GND2
6
R89
169K 1%
R89
169K 1%
J9
MP179P 2.1mm
J9
MP179P 2.1mm
1
2
3
SLCK, the Slow Clock, which is the only permanent clock of the system
MAINCK, the output of the Main Clock Oscillator selection: either a Crystal Oscillator or a 4/8/12 MHz
Fast RC Oscillator
PLLACK, the output of the Divider and 60 to 130 MHz programmable PLL (PLLA)
PLLBCK, the output of the Divider and 60 to 130 MHz programmable PLL (PLLB)
4.3.4Reset Circuitry
On-board NRST button BP1 provides an external reset control of th e SAM4SD32.
The NRST pin is bidirectional. It is handled by the on-c hip 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 Core and the per ipherals. The NRST pin integrates a perma nent pull-up re sistor
of 100 kOhm to VDDIO.
On the SAM4S-EK2 board, the NRST signal is connected to the LCD module and JTAG port.
Note:At power-on, the NRST signal is asserted with a default duration of 2 clock cycles. That duration may not be
Evaluation Kit Hardware
sufficient to correctly reset any other system or board devices connected to that signal. First, in your custom
application, you need to check for these device’s datasheets about reset duration requirements. Then, you
need to set an appropriate configuration in the NRST Manager. This is done through the ERSTL field in the
RSTC_MR register. The NRST duration is thereby configurable between 60 µs and 2 s, whether it is subsequently activated by a software reset or a user reset. Refer to the SAM4SD32 datasheet for in-depth
information.
4.3.5Power Supply and Management
The SAM4S-EK2 board is supplied with an external 5V DC block through input J9. It is protected by a
PolyZen diode (MN9) and an LC combinatory filter (MN10). The PolyZen is used in the event of an incorrect power supply connection.
The adjustable LDO regulator MN12 is used for the 3.3V rail main supply. It powers all the 3.3V components on the board.
Figure 4-4. Power Block
The SAM4SD32 product has different types of power supply pins:
VDDIN pin:
Power for the internal voltage regulator, ADC, DAC, and analog comparator power supplies.
SAM4S-EK2 User Guide4-4
The voltage ranges from 1.8V to 3.6V.
11176A–ATARM–24-Sep-12
4.3.6UART
Evaluation Kit Hardware
VDDIO pins:
Po wer for the Peripherals I/O lines.
The voltage ranges from 1.62V to 3.6V.
VDDOUT pin:
Output of the internal voltage regulator.
VDDCORE pins:
Power for the core, including the processor, embedded memories and peripherals.
The voltage ranges fr om 1.62V to 1.95V.
VDDPLL pin:
Power for the PLL A, PLL B and 12 MHz oscillator.
The voltage ranges fr om 1.62V to 1.95V.
Note:VDDPLL should be decoupled and filtered from VDDCORE.
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.
This two-pin UART (TXD and RXD only) is buffered through an RS232 Transceiver MN6 and brought to
the DB9 male connector J7.
4.3.7USART
Figure 4-5. UART
MN6
MN6
MAX3232CSE
MAX3232CSE
16
VCC
2
V+
6
V-
15
GND
11
T1IN
12
R1OUT
10
T2IN
9
R2OUT
C1+
C2+
T1OUT
R1IN
T2OUT
R2IN
1
C38
C38
100nF
100nF
3
C1-
4
C42
C42
100nF
100nF
5
C2-
14
13
7
8
DGND
1
6
2
7
3
8
4
9
5
FGND
J7J7
10
11
PA10
PA9
+3V3
TP5
TP5
SMD
SMD
R45
R45
100K
100K
+3V3
R46
R46
100K
100K
R470RR470R
R480RR480R
+3V3
C40
C40
100nF
100nF
TP6
TP6
SMD
SMD
DGND
C39
C39
100nF
100nF
C41
C41
100nF
100nF
The Universal Synchronous/Asynchronous Receiver Transmitter (USART) provides one full duplex universal synchronous/asynchronous serial link. The data frame format is extensively configurable (data
length, parity, number of stop bits) to support a broad range of serial communication standards. The
USART is also associated with PDC channels for TX/RX data access.
Note:For design optimization purposes, both tr ansmitters have been implemented on the same
PIO lines, that is PA21, 22, 23, 24, 25.
To avoid any electrical conflict, the RS485 transceiver is isolated from the receiving line PA21.
Should you need to implement an RS485 channel in place of the RS232, follow the procedure below:
1.make sure your software will permanently set PA23 to a high level - this will permanently disable the
RS232 receiver.
2. change JP31 to make sure that 2-3 pins are connected.
SAM4S-EK2 User Guide4-5
11176A–ATARM–24-Sep-12
4.3.7.1RS232
DGND
DGND
+3V3
J5
5
4
3
2
1
9
8
7
6
10
11
FGND
PA25
DGND
MN5
ADM3312 EARU
C1+
6
C1-
20
C2+
2
C2-
4
C3+
24
C3-
22
VCC
3
V+
1
V-
21
GND
23
SD
19
EN
5
T1IN7T1OUT
18
R1IN
15
R1OUT
10
T2IN8T2OUT
17
R2IN
14
R2OUT
11
T3IN9T3OUT
16
R3IN
13
R3OUT
12
PA24
C34
100nF
PA21_ 232
C31
4.7uF
C35
100nF
R32
47K
PA22
C37
100nF
USART
C33
100nF
R3747 K
PA23
C36
100nF
C32
100nF
+3V3
R310R
R330R
R340R
R350R
R360R
R380R
+3V3
PA25
PA21_ 485
R23
10K
R250R
R30
TBD
DNP
R24
TBD
DNP
+3V3
R260R
R270R
R280R
FGND
R29
120R
MN4
ADM3485 ARZ
RO
1
RE
2
DE
3
DI
4
VCC
8
GND
5
A
6
B
7
JP11
Header2
JP12
Header2
C30
100nF
JP10
Header2
+3V3
DGND
DGND
PA22
RS 485
+3V3
PA24
J4
1
2
3
JP28
Header2 nm
DNP
Evaluation Kit Hardware
SAM4S-EK2 connects the USART1 bus (including TXD, RXD, RTS, CTS handshake signal controls and
EN command) to the DB9 male connector J5 through the RS232 Transceiver MN5.
Figure 4-6. USART Evaluation Kit Hardware
4.3.7.2RS485
As noticed above, the USART1 is shared with the RS485 port, connected to the transceiver MN4, connected to the 3-point connector J4. The design includes selectable jumpers for RS485 bu s termination
resistors selection (JP10, JP11, JP12).
Figure 4-7. RS485
4.3.8Display Interface
The SAM4S-EK2 carries a TFT Transmissive LCD module with touch panel, FTM280C34D. Its integrated driver IC is ILI9325. The LCD displa y area is 2.8 inches diagonally me asured, with a native
resolution of 240 x 320 dots.
11176A–ATARM–24-Sep-12
SAM4S-EK2 User Guide4-6
4.3.8.1LCD Module
LCD_DB3
R590R
Six slots on PCB for LCD shield
PC11
R634.7 K
DNP
DGND
LED_A
PC26
LCD_DB2
NRST
PC8
LCD_DB0
PC27
LCD
C45
100nF
LCD_DB4
DGND
J8
FH26-39S -0.3SHW
VDD
1
DB1 7
2
DB1 6
3
DB1 5
4
DB1 4
5
DB1 3
6
DB1 2
7
DB1 1
8
DB1 0
9
DB9
10
DB8
11
DB7
12
DB6
13
DB5
14
DB4
15
DB3
16
DB2
17
DB1
18
DB0
19
VDD
20
RD
21
WR
22
RS
23
CS
24
RES ET
25
IM0
26
IM1
27
GND
28
LED-A
29
LEDK1
30
LEDK2
31
LEDK3
32
LEDK4
33
Y+
34
Y-
35
X+
36
X-
37
NC
38
GND
39
PC28
DGND
R49
47K
X_RIGHT
Y_DOWN
Y_UP
X_LEFT
D1
PACDN044Y5 R
TVS, SOT23-5
DNP
1
2
345
NOT POPULAT ED
The part is pl aced as
cl o s e as pos s ibl e t o J8
DGND
PC29
DGND
DGND
DGND
JP13Header2
LCD_DB9
LCD_DB 13
LCD_DB 12
LCD_DB 11
LCD_DB 10
LCD_DB 16
LCD_DB 15
LCD_DB 14
PC30
LCD_DB 17
R58
4.7K
LCD_DB5
PC2
PC1
PC0
PC3
X_LEFT
LCD_DB9
R56
10K
PC6
PC5
PC4
PC7
PC23
X_RIGHT
+3V3
DGND
DGND
LCD_DB7
Y_DOWN
LCD_DB8
Y_UP
RA2
4.7Kx4
DNP
1
2
3
45
6
7
8
PC22
PC31
PC13
LCD_DB6
LCD_DB6
LCD_DB7
DGND
PC15
PC[0 ..31]
LED_K4
LCD_DB8
LCD_DB4
LCD_DB5
LED_K3
LED_K2
PC24
PINs
on
BOT
PIN 39
PIN 1
Z7
FTM28 0C34 D
LCD_DB2
LCD_DB3
LCD_DB1
LED_K1
NRST
RA3
4.7Kx4
DNP
1
2
3
45
6
7
8
PC19
LCD_DB0
LCD_DB1
C44
100nF
R614.7 K
DNP
DGND
+3V3
+
C43
10uF
PC25
MN8
AAT3155ITP-T1
C1+
10
C1-
9
EN/SET
11
C2+
7
C2-
6
OUTCP
8
IN
5
GND
4
D1
3
D2
2
D3
1
D4
12
C55
1uF
C54
1uF
C57
4.7uF
C56
1uF
R68
0R
R64
47K
LED_A
LED_K1
+3V3
LED_K4
LED_K3
LED_K2
+3V3
PC13
DGND
DGND
TP7
FB1
BN03K314S3 00R
LCD BACKLI GHT
The LCD module gets reset from the NRST sig nal. As expl ained, this NRST is shared with the JTAG port
and the push-button BP1. The LCD chip select signal is connected to NCS1; the jump er JP13 can disconnect it so that this PIO line is available for other custom usage.
The SAM4SD32 communicates with the LCD through PIOC where an 8-bit parallel “8080-like” protocol
data bus has to be implemented in software.
Figure 4-8. LCD Block
Evaluation Kit Hardware
The LCD backlight is made of four integrated white chip-LEDs arranged in parallel. These are driven by
an AAT3155 charge pump, MN8. The AAT3155 is controlled by the SAM4SD32 through a single PIO
line PC13 interface; the 0 Ohm resistor R68 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 R59 is implemented in series for an optional current limitation.
Figure 4-9. Backlight Control
11176A–ATARM–24-Sep-12
4.3.8.2Backlight Control
SAM4S-EK2 User Guide4-7
4.3.8.3Touch Screen Interface
AGND_TP
JP32
Header2
LCD TOUCH SCREEN
R74
0R
C59
100nF
C58
100nF
R71
1R
C60
100nF
TP8
PA14
PA13
PA12
C61
4.7uF
PA11
PA17
TP9
DGND
R65
100K
+3V3
+3V3
AGND_TP
+3V3
R62
100K
R73
100K
R72
100K
L2
10uH-100mA
MN7
ADS7843E
XP
2
YP
3
XM
4
YM
5
DCLK
16
DIN
14
DOUT
12
CS
15
BUSY
13
PE NIRQ
11
VREF
9
VCC1
1
VCC2
10
GND
6
IN3
7
IN4
8
X_RIGHT
Y_DOWN
X_LEFT
Y_UP
R670R
R700R
R69 0R
PA16
The LCD module integrates a 4-wire touch panel controlled by MN7 (ADS7843) which is a slave device
on the SAM4SD32 SPI bus. The controller sends back the information about the X and Y positions, as
well as a measurement for the pressure applied to the touch panel. The touch panel can be used with
either a stylus or a finger.
The ADS7843 touch panel controller connects to the SPI0 interface via the NPCS0 control signal. Two
interrupt signals are connected and provide events information back to the microcontroller: PenIrq and
Busy.
Note:PenIrq (PA16) is shared with ZigBEE signal IRQ0.
Busy (PA17) is shared with ZigBEE signal IRQ1.
Therefore, if using a ZigBEE interface in concurrence with the TouchScreen controller, take
care not to have both drivers enabled at the same time on either PA16 or PA17.
For that purpose, 0 Ohm resistors have been implemented on these PIO lines in order to disconnect
either end driver from the other:
On the touch panel controller side, R67 and R69.
On ZigBEE side, R117 and R120.
For further information, refer t o the “Schematics” section.
Evaluation Kit Hardware
Touch ADC auxiliary inputs IN3/IN4 of the ADS7843 are connected to test points (TP8, TP9) for optional
function extension.
Figure 4-10. Touch Panel Control
4.3.9JTAG/ICE
A standard 20-pin JTAG/ICE connector is implemented on the SAM4S-EK2 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 and is also used to reset the LCD
module. The 0 ohm resistor R44 may be removed in order to isolate the JTAG port fr om
this system reset signal.
2. The TDO pin is in input mode with the pull-up resistor disabled when the Cortex M4 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.
11176A–ATARM–24-Sep-12
SAM4S-EK2 User Guide4-8
Figure 4-11. JTAG Interface
+3V3
DGND
NRST
PB5
PB7
PB6
PB4
R43
100K
R43
100K
R41
100K
R41
100K
R39
100K
R39
100K
J6J6
VTref1Vsupply
2
nTRST
3
GND1
4
TDI
5
GND2
6
TMS
7
GND3
8
TCK
9
GND4
10
RTCK
11
GND5
12
TDO
13
GND6
14
nSRST
15
GND7
16
DBGRQ
17
GND8
18
DBGACK
19
GND9
20
R42
100K
R42
100K
R40
100K
R40
100K
R440RR440R
4.3.10Audio Interface
The SAM4S-EK2 board supports both audio recording and playback.
The audio volume can be adjusted using the potentiometer RV1, and the microphone amplifier gain can
be adjusted via jumpers (fixed gain of 24 or 26 dB).
4.3.10.1 Microphone Input
The embedded microphone is connected to an audio pr e-ampli fie r using t he TS9 22 ope ratio nal a mplifier
(MN11). The gain is set by using JP14 and JP15 jumpers; both must be set or removed at the same
time.
Evaluation Kit Hardware
By modifying the jumper positions, you can select each of the following gain values:
20 dB (default setting, both JP14 and JP15 are off)
26 dB (both JP14 and JP15 are on).
Notes: 1. R83 is a default 0 Ohm resistor that enables the disconnection of PB0 from the audio
input path for custom usage.
2. The audio pre-amplifier MN11 is powered by a dedicated low dropout regulator
MIC5219-3.3 (MN14).
SAM4S-EK2 User Guide4-9
11176A–ATARM–24-Sep-12
Figure 4-12. Microphone Input
R7547 K
C74
100nF
C77
4.7uF
R83
0R
R91
0R
AGND
DGND
JP14 and JP15 should be set
or removed tog ether
R90
100K
R7647 K
AVDD
R93
100K
JP15
Header2
C72
1nF
AGND AG ND
VCC33
C69
1nF
AGND
R77
470R
PB0
R86
47K
AGND
MIC1
SVB6 050
12
MN11
TS922
IN1-
2
IN1+
3
OUT2
7
IN2-
6
IN2+
5
GND
4
VCC
8
OUT1
1
FB2
BN03K314S3 00R
AVDD
R79
1K
JP14Header2
R87
47K
R81
100R
AVDD
AUDIO IN
C71
22nF
AGND
R82
1K
R78
1K
R80
1K
R84
1K
R85
1K
R88
470R
C62
100pF
C63
22uF
C73
22uF
C67
1uF
C68
1uF
AGND
AGNDAGND
Evaluation Kit Hardware
4.3.10.2 Headphone Output
The SAM4S-EK2 evaluation kit supports mono/stereo audio playback driven by a TPA0223 audio amplifier connected to two DAC channels of the microcontroller.
The TPA0223 is a 2W mono Bridge-Tied-Load (BTL) amplifier desig ned to drive speakers with as low as
4 Ohm impedance. The amplifier can be reconfigured on the fly to drive two stereo Single-Ended (SE)
signals into head phones.
Figure 4-13. Headphone Output
1
AUDIO OUT
+5V
FB3
C79
1uF
DGND
BN03K314S3 00R
JP17He ader2
C85 0.4 7uF
JP19He ader2
JP2912
VCC33
PB13
SAM4S-EK2 User Guide4-10
3
C84 0.4 7uF
TP12
C88 0.4 7uF
AUDIO_OUTL
T est Pad SQ -40T H
VDD_AMP
+
C80
10uF
AGND
R9833 K
R9947 K
R10033K
R10447K
R10533K
C82
100nF
MN13
TPA0223DGQ
3
VDD
5
RIN
1
MONO-IN
9
LIN
11
AGND
RO/MO+
LO/MO-
ST/MN
SHUTD0WN
BYPA SS
GND
PAD
6
10
7
2
4
8
+
C81220uF-TAN-6.3V
R951K
R971K
AGND
+
C83220uF-TAN-6.3V
R101100KR102100K
R103100K
C86 0.4 7uF
AGND
AGND
2
5
4
3
2
1
AGND
JP20
Header2
11176A–ATARM–24-Sep-12
J10
J11
Phone jack Stereo 3.5
VDD_AMP
C87
1uF
AGND
Using a readily available 1/8-in. (3,5 mm) stereo headphone jack, the control switch is closed when no
C94
10pF
R11627R
DGND
RV2
V5.5MLA0 603
PC21
PB11
FGND
RV1
V5.5MLA0 603
USB
5V D- D+ ID G
J15
TBD USB Micro B
1
23475
6
8
9
1011
R11268K
DGND
R11047K
FGND
R11427R
PB10
ADVREF
DGND
DGND
VCC33
+5V
JP2JP2
1
2
3
C5
100nFC5100nF
ADVREF
1
R13
2.2K
R13
2.2K
MN2
LM4040-2.5
MN2
LM4040-2.5
SAM4SD32
plug is inserted. When closed, a 100-kOhm/1-kOhm divi der pulls the ST/MN input low. When a jack plug
is inserted, the 1-kOhm resistor is disconnected and the ST/MN input is pulled high. The mono speaker
(J10 connector) is also physically disc on ne cted from the RO/MO+ output so that no so un d is h ea r d fr om
the speaker while the headphones are inserted.
4.3.11USB Device
The SAM4SD32 UDP port is compliant with the Universal Serial Bus (USB) rev 2.0 Full Speed device
specification. J15 is a micro B-type receptacle for USB device.
Both 27-Ohm resistors R114 and R116 build up a 90-Ohm differential impedance together with the
(embedded) 6-Ohm output impedance of the SAM4SD32 full speed channel drivers.
R110 and R112 build up a divider bridge from VBUS +5V to implement plug-in detection (5V level gets
lowered to a PIO compatible 3.3V level) through PC21.
Figure 4-14. USB
Evaluation Kit Hardware
4.3.12Analog Interface
4.3.12.1 Analog Reference
SAM4S-EK2 User Guide4-11
The 2.5V voltage reference is based on a LM40 40 (Precision Micropower Shunt Voltage Reference).
This ADVREF level can be set as 2.5V or 3.3V via the jumper JP2.
Figure 4-15. Analog Vref
11176A–ATARM–24-Sep-12
4.3.12.2 Analog Input
The BNC connector CN1 is connected to the ADC port PB1 as an exte rnal analog input. An on-board 50Ohm resistor termination can be applied by closing jumper JP16. A low pass filter can be implemented
for the BNC connector CN1 by replacing R94 and C78 with custom resisto r and capacitor values,
depending on your application requirements.
A 10-KOhm potentiometer (VR1) is also connected to this channel to implemen t an easy access to ADC
programming and debugging (or implement an analog user control like display br ightness, volume, etc.) .
Either of these two functions can be selected by jumper JP18.
Figure 4-16. ADC Input
CN1
BNC
JP16
Header2
R96
49.9R
R94
0R
C78
10nF
Evaluation Kit Hardware
4.3.12.3 Analog Output
The BNC connector CN2 is connected to the DAC port PB13 and provides an extern al analog output . An
on-board 50-Ohm resistor termination can be enabled by closing jumper JP21. A filter can be implemented on this output channel by replacing R106 and C90 with appropriate resistor and capacitor
values, depending on the application requirements.
Figure 4-17. DAC Output
CN2
BNC
VR1
10K V R
DGND
VCC33
13
DGND
JP21
Header2
R109
49.9R
Potentiometer
Clockwise 2-->3
2
C89
10nF
C902.2uF
R106
0R
AUDIO_OUTL
JP18
JP30
ADC
3
1
3
1
AD5
2
2
PB1
DAC1
PB13
DGND
DAC
4.3.13QTouch Elements
QTouch keys consist in a series of sensors formed by the association of a copper area and the capacitive effect of human fingers approaching it.
4.3.13.1 Keys
The SAM4S-EK2 implements five individual capacitive touch keys (UP, DOWN, RIGHT, LEFT and
VALID) using five pairs of PIO.
SAM4S-EK2 User Guide4-12
11176A–ATARM–24-Sep-12
4.3.13.2 Slider
PC25
PC24
PC31
PC30
PC29
PC28
PC23
PC22
PC27
PC26
R531KR531K
C49
22nF
C49
22nF
R601KR601K
R511KR511K
R571KR571K
C51
22nF
C51
22nF
R551KR551K
C47
22nF
C47
22nF
K1
DNPK1DNP
C53
22nF
C53
22nF
C52
22nF
C52
22nF
PB3
PC12
DGND
NRST
JP26JP26
BP1BP1
1
4
2
3
BP3BP3
1
4
2
3
JP25JP25
BP2BP2
1
4
2
3
Evaluation Kit Hardware
Figure 4-18. QST Keys
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 t o det ect a line ar finger displa ceme nt on a sensitive area. A typical implementation is volume control.
Figure 4-19. QT_Slider
4.3.14User Buttons
There are two mechanical user buttons on the SAM4S-EK2, 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.
Figure 4-20. System Buttons
PA1
PA0
PA3
PA2
PA5
PA4
22nF use X7R
R501K
C46
22nF
R521K
C48
22nF
R541K
C50
22nF
S1
QT ouch Slider
SR
SL
SM
SR
SAM4S-EK2 User Guide4-13
11176A–ATARM–24-Sep-12
4.3.15LEDs
PA19
PA20
PC20
+3V3
DGND
D4Red-ledD4Red-led
R113
220R
R113
220R
Q1
IRLML2502
Q1
IRLML2502
1
3
2
R115100KR115100K
D3Green-ledD3Green-led
R117
220R
R117
220R
R111
220R
R111
220R
D2Blue-ledD2Blue-led
There are three LEDs on the SAM4S-EK2 board:
A blue LED (D2) and a green LED (D3), which are user def ined 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 two 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-21. LEDs
4.3.16SD/MMC Card
Evaluation Kit Hardware
4.3.17ZigBEE
The SAM4S-EK2 has a high-speed 4-bit multimedia MMC interface, which is connected to a 4-bit
SD/MMC micro card slot featuring a card detection switch.
Figure 4-22. SD Card
+3V3
123
PA26
PA27
PA28
PA29
PA30
PA31
PA6
R1260R
R1270R
R200R
R1240R
R1250R
R17
10K
R18
10K
45
678
RA1
68Kx4
+
C26
C25
100nF
10uF
DGND
SD CARD
J3
TF01A
1
DAT2
2
DAT3
3
CMD
4
VCC
5
CLK
6
VSS
7
DAT0
8
DAT1
10
GND
9
CD
Sh1
Sh2
Sh3
11
12
13
DGND
SAM4S-EK2 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.
The SAM4S-EK2 product features three PIO controllers, PIOA, PIOB and PIOC, which are multiplexed
with the I/O lines of the embedded periphera ls. Each PIO Co ntroller cont rols up to 32 lines (16 f or PIOB).
Expansion ports J12, J13 and J14 provide PIO lines access for customer defined usage.
Figure 4-24. PIO Expansion
ZI GBEE
DGND
Note:All PIO lines are available on these expansion con nec t or s, exc ep t th ose tha t ar e use d for
the QTouch elements.
SAM4S-EK2 User Guide4-15
11176A–ATARM–24-Sep-12
4.4Configuration
This section describes the PIO usage, the jumpers, the test p oints and the solder d rops of a SAM4S-EK2
board.
4.4.1PIO Usage
Table 4-1. PIO Port A Pin Assignments and Signal Descriptions
Table 4-3. PIO Port C Pin Assignments and Signal Descriptions (Continued)
Evaluation Kit Hardware
NoI/O LinePeripheral A
Peripheral BPeripheral
C
Extra
Function
System
FunctionComments
13PC12NCS3AD12User push-button 2
14PC13NWAITPWML0AD10LCD backlight control
15PC14NCS0NAND Flash chip select
16PC15NCS1PWML1AD11TFT LCD chip select
17PC16A21/NANDALENAND Flash ALE
18PC17A22/NANDCLENAND Flash CLE
19PC18A0/NBS0PWMH0RDYBSYNAND Flash RDY/BSY
20PC19A1PWMH1TFT LCD RegSel
21PC20A2PWMH2Red LED (Power)
22PC21A3PWMH3USB Vbus detection
23PC22A4PWML3QTouch valid button SNS
24PC23A5TIOA3QTouch valid button SNSK
25PC24A6TIOB3QTouch up button SNS
26PC25A7TCLK3QTouch up button SNSK
27PC26A8TIOA4QTouch down button SNS
28PC27A9TIOB4QTouch down button SNSK
29PC28A10TCLK4AD13QTouch left button SNS
30PC29A11TIOA5AD14QTouch left button SNSK
31PC30A12TIOB5QTouch right button SNS
32PC31A13TCLK5QTouch right button SNSK
SAM4S-EK2 User Guide4-18
11176A–ATARM–24-Sep-12
Evaluation Kit Hardware
4.4.2Jumpers
The SAM4S-EK2 board jumpers are essentially used for two main purposes: functional selection or current measurement. Details are given below.
Table 4-4. Jumpers Setting
DesignationLabelDefault SettingFeature
JP1JTAGOPENClose to select the JTAG boundary scan of the SAM4SD32
JP2 ADVREF1-2
JP3ERASEOPENClose to reinitialize the Flash contents and some of its NVM bits.
JP4TEST
JP5VDDPLLCLOSEAccess for current measurement on VDDPLL
JP6VDDIOCLOSEAccess for current measurement on VDDIO
JP7VDDINCLOSEAccess for current measurement on VDDIN
JP8VDDCORECLOSEAccess for current measurement on VDDCORE
JP9CE FLASHCLOSENCS0 enable NAND Flash chip select
JP10RS485OPENMaintain differential impedance for RS485 interface
JP11RS485CLOSEMaintain impedance matching for RS485 interface
JP12RS485OPENMaintain differential impedance for RS485 interface
JP13CSCLOSENCS1 chip select LCD
JP14 - JP15MIC GAIN0
JP16ADC inputOPENClose for impedance matching on ADC BNC port
JP17 – JP19MIC Gain stage Close to mux RIN/LIN into MONO-IN path within audio PA
JP18 SELECT ADC INP
JP20MONO/STEREOCLOSEClose to fix in mono speaker, no matter the stereo plug state
JP21DAC outputOPENClose for impedance matching on DAC BNC port
Not populated
(OPEN)
CLOSE (both) 20db
OPEN (both) 26db
1-2
2-3
Analog reference voltage selection between 3.3V (close 1-2) and
2.5V (close 2-3)
Close for manufacturing test or fast programming mode
Close both to lower gain stage on microphone input.
ADC input potentiometer
ADC input BNC
JP22
JP23
JP24
JP25BP2CLOSEOpen to disconnect and free PB3 for custom usage
JP26BP3CLOSEOpen to disconnect and free PC12 for custom usage
JP27ZIGBEECLOSE
SAM4S-EK2 User Guide4-19
PIO expansion J12
voltage supply
PIO expansion J13
voltage supply
PIO expansion J14
voltage supply
2-3Set to 3.3V (position 1-2 sets to 5V)
2-3Set to 3.3V (position 1-2 sets to 5V)
2-3Set to 3.3V (position 1-2 sets to 5V)
Power supply connection/disconnection for the ZigBEE module
May also be used as a current measurement point
11176A–ATARM–24-Sep-12
Table 4-5. Audio Input Configuration
4.4.3Test Points
Some test points have been placed on the SAM4S-EK2 board for the verif ication of important signals.
Table 4-6. Test Points
ReferenceFunction
TP1, TP2, TP3, TP4GND
Evaluation Kit Hardware
JP17JP19MONO-STEREO INPUT
OFFOFFPIN test point (TP12)
OFFONLeft-in only
ONOFFR i g ht -i n on l y
ONONSum of Left-in and Right-in
TP5
TP6
TP7
TP8, TP9
TP12Optional Audio PA input
UART TXD
UART RXD
LCD Backlight driver anode
Aux ADC input for TSC
4.4.4Assigned PIO Lines, Disconnection Possibility
As pointed out in some previous interface description, 0 Ohm resistors ha ve been inser ted on the pat h of
the receiver PIO lines of the SAM4S-EK2. These are the PIO lines connected to an external driver on the
board. The 0 Ohm resistors allow disconnecting each of these fo r custom usage (throug h 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.
External clock resource input
Backup 12 MHz crystal
Isolation between 12 MHZ clock source and GPIO line
Isolation between 32 kHz clock source and GPIO line
JTAGSEL and TEST selector
Coupling capacitor
LQFP100 Socket
Evaluation Kit Hardware
R22
R24, R30
JP28
D1
R61, R63, RA2, RA3
R122, R123Optional TWI
Optional write protection on NAND Flash
Differential impedance matching for RS485 cable
Option for software test
Optional ESD protection for LCD touch panel
Optional databus termination for LCD controller
SAM4S-EK2 User Guide4-21
11176A–ATARM–24-Sep-12
4.5Connectors
4.5.1Power Supply Connector J9
The SAM4S-EK2 evaluation board can be powered from a 5V DC power supply connected to the external power supply jack J9. The positive pole is the center pin.
Figure 4-25. Power Supply Connector J9
Evaluation Kit Hardware
Table 4-9. Power Supply Connector J9 Signal Descriptions
PinMnemonicSignal Description
1Center+5 VCC
2GndGround reference
4.5.2USART Connector J5 With RTS/CTS Hands hak e Su pp or t
Figure 4-26. Male RS232/USART Connector J5
Table 4-10. Serial COM1 Connector J5 Signal Descriptions
PinMnemonicSignal Description
1, 4, 6, 9NCNO CONNECTION
2TXD TRANSMITTED DATARS232 serial data output signal
3RXD RECEIVED DATARS232 serial data input signal
5GNDGROUND
7RTS READY TO SENDActive-positive RS232 input signal
8CTS CLEAR TO SENDActive-positive RS232 output signal
SAM4S-EK2 User Guide4-22
11176A–ATARM–24-Sep-12
4.5.3UART Connector J7
Figure 4-27. Male RS232/UART connector J7
Table 4-11. Male RS232/UART Connector J7 Signal Descriptions
PinMnemonicSignal Description
1, 4, 6, 7, 8, 9NCNO CONNECTION
2TXD TRANSMITTED DATARS232 serial data output signal
3RXD RECEIVED DATARS232 serial data input signal
5GNDGROUND
4.5.4USB Device Connector J15
Evaluation Kit Hardware
Figure 4-28. Micro-B USB Connector J15
Table 4-12. Micro-B USB Connector J15 Signal Descriptions
PinMnemonicSignal Description
1Vbus5V power
2DMData 3DPData +
4GndGround
5ShieldShield
4.5.5TFT LCD Connector J8
One 39-pin connector is available on the board to connect the LCD module, backlight and touch screen.
29LED-A30LED-K1
31LED-K232LED-K3
33LED-K434Y UP
35Y DOWN36X RIGHT
37X LEFT38NC
39GND
SAM4S-EK2 User Guide4-24
11176A–ATARM–24-Sep-12
4.5.6JTAG Debugging Connector J6
This JTAG connector is a 20-way Insulation Displacement Connector (IDC) keyed box header (2.54 mm
male) that mates with IDC sockets mounted on a ribbon cable. Its signal assignment is compatible with
the SAM-ICE or any similar third-party interface.
Figure 4-30. JTAG/ICE Connector J6
Table 4-14. JTAG/ICE Connector J6 Signal Descriptions
PinMnemonicDescription
This is the target reference voltage. It is used to check if the target has power, to
1VTref. 3.3V power
create the logic-level ref erence for the input comparators and to control the output
logic lev els t o the target . It is normally fed from Vdd on the target board and must
not have a series resistor.
Evaluation Kit Hardware
2Vsupply. 3.3V power
nTRST TARGET RESET — Active-low
3
4GNDCommon ground.
5
6GNDCommon ground.
7TMS TEST MODE SELECT
8GND Common ground.
9
10GNDCommon ground.
11
12GNDCommon ground.
output signal that resets the target
TDI TEST DATA INPUT — Serial data
output line, sampled on the rising edge
of the TCK signal
TCK TEST CLOCK — Output timing
signal, for synchronizing test logic and
control register access
RTCK
Input Return test clock signal from the
target
This pin is not connected in SAM-ICE. It is reserved for compatibility with other
equipment. Connect to Vdd or leave open in target system.
JTAG Reset. Output from SAM-ICE to the Reset signal on the target JTAG port.
Typically connected to nTRST on the target CPU. This pin is normally pulled
HIGH on the target to avoid unintentional resets when there is no connection.
JTAG data input of target CPU. It is recommended that this pin is pulled to a
defined state on the target board. Typically connected to TDI on target CPU.
JTAG mode set input of target CPU. This pin should be pulled up on the target.
Typically connected to TMS on target CPU. Output signal that sequences the
target’s JTAG state machine, sampled on the rising edge of the TCK signal.
JTAG clock signal to target CPU. It is recommended that this pin is pulled to a
defined state on the target board. Typically connected to TCK on target CPU.
Some targets must synchronize the JTAG inputs to internal clocks. To assist in
meeting this requirement, a returned and retimed TCK can be used to
dynamically control the TCK rate. SAM-ICE supports ada ptive clocking which
waits for TCK changes to be echoed correctly before making further changes.
Connect to RTCK if available, otherwise to GND.
13
14GNDCommon ground.
SAM4S-EK2 User Guide4-25
TDO JTAG TEST DATA OUTPUT —
Serial data output from the target
JTAG data output from target CPU. Typically connected to TDO on target CPU.
11176A–ATARM–24-Sep-12
Table 4-14. JTAG/ICE Connector J6 Signal Descriptions (Continued)
PinMnemonicDescription
15nSRST RESET — Active-low reset signal. Target CPU reset signal.
16GNDCommon ground.
17RFUThis pin is not connected in SAM-ICE.
18GNDCommon ground.
19RFUThis pin is not connected in SAM-ICE.
20GNDCommon ground.
4.5.7SD/MMC - MCI Connector J3
Figure 4-31. SD/MMC Connector J3
Evaluation Kit Hardware
Table 4-15. SD/MMC Connector J3 Signal Descriptions
PinMnemonicPinMnemonic
1RSV/DAT32CDA
3GND4VCC
5CLK6GND
7DAT08DAT1
9DAT210Card Detect
11GND12
SAM4S-EK2 User Guide4-26
11176A–ATARM–24-Sep-12
4.5.8Analog Connector CN1 & CN2
Figure 4-32. Analog Input Connector CN1 and Analog Out put CN2, Bottom View
Table 4-16. Analog Input, Output Connector CN1, CN2 Signal Descriptions
PinMnemonic
1, 2, 3, 4 GND
5Analog input PB1 for CN1 and analog output PB13 for CN2 respectively
4.5.9RS485 Connector J14
Evaluation Kit Hardware
Figure 4-33. RS485 Connector J14
Table 4-17. RS485 J14 Signal Descriptions
PinMnemonic
1A - non-inverted RS485 signal A
2Frame ground
3B - non-inverted RS485 signal B
SAM4S-EK2 User Guide4-27
11176A–ATARM–24-Sep-12
4.5.10Headphone Connector J11
Figure 4-34. Headphone J11
Table 4-18. Headphone J11 Signal Descriptions
PinMnemonic
1AGND
2Out left
3
4
5Out Right
Evaluation Kit Hardware
4.5.11ZigBEE Connector J16
Figure 4-35. ZigBee Connector J16
Table 4-19. Connector J16 Signal Descriptions
Signal
Function
Reset/RST12Misc.
Interrupt
Request
NamePortPinPinPort
IRQ34SLP_TRSLP_TR
Signal
NameFunction
Option on Misc. Port Set by
Zero Ohm Resistor or Sold er Shun ts
EEPROM for MA C addr ess, CAP arr a y
settings and serial number
TST: test mode activation
CLKM: RF chip clock output
SPI chip
select
SPI MISOMISO78SCLKSPI CLK
Power
Supply
SAM4S-EK2 User Guide4-28
/SEL56MOSISPI MOSI
GNDGND910VCCVCCVCC
Voltage range: 1.8V to 5.5V, typically
regulated to 3.3V
Block Diagram
Board Configuration
Microcontroller
NAND Flash & Serial IF
TFT-LCD & QTouch
Audio & Power Supply
USB IF & ZigBee
Section 5
Schematics
SAM4S-EK2 User Guide5-1
11176A–ATARM–24-Sep-12
5
DD
4
3
2
1
5 V Input
POWER SUPPLY
(3.3V)
AUDIO In (ADC)
MIC
AUDIO Out (DAC)
PHONE
JACK
CC
POT
ADC/ DAC
Sheet 6
POWER
PIO A, B, C
ATMEL
Cortex-M4 ARM Processor
SAM4SD32 (LQFP100)
PIO A, B, C
NAND FLASH
HSMCI
UART0
USART1
USART1
Micro SD
RS232
ICE
QTOUCH
Sheet 4
HE 10 RS485
LCD INTERFACE
2.8"
240x320
TFT
TOUCH SCREEN
Sheet 5
BB
Board Configuration
Sheet
Sheet 2
Sheet 3
FS
DEVICE
ZIGBEE
INTERFACE
LEDs, Buttons
PIO A, B, C
Extension
Sheet 7
USB
HE 10
HE 14
AA
INIT EDIT
INIT EDIT
INIT EDIT
A
A
A
REV
REV
REV
SCALE
SCALE
SAM4S-EK2
SAM4S-EK2
SAM4S-EK2
Block Diagram
Block Diagram
Block Diagram
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
30-APR-12
30-APR-12
30-APR-12
DES.
DATE
DES.
DATE
DES.
DATE
1
XX-XXX-XXPPXXX
XX-XXX-XXPPXXX
XX-XXX-XXPPXXX
DATEMODIF.
VER.
DATEMODIF.
VER.
DATEMODIF.
VER.
REV. SHEET
REV. SHEET
REV. SHEET
1
1
1
A
A
A
7
7
7
5
4
3
2
1
JUMPER and SOLDERDROP
REVISION HISTORY
REVDATA
DD
A
2012.04ORIGINAL RELEASED
NOTE
SCHEMATICS CONVENTIONS
(1) Resistance Unit: "K" is "Kohm", "R" is "Ohm¸"
(2) "DNP" means the component is not populated
by default
PAGEREFERENCEFUNCTION
3JP1Close to select JTAG boundary scan
JP2Analog reference voltage selection between 3.3V and 3.0V
JP3Close to reinitialize the Flash contents and some of its NVM bits
JP4Close for manufacturing test or fast programming mode
JP5, JP6, JP7, JP8Access for current measurement on each power rail
JP9Nand Flash chip select enable
4
JP11
DEFAULT
OPEN
1-2
OPEN
OPEN
CLOSE
CLOSE
CLOSE
RS485 bus termination enable
JP10, JP12OPENRS485 pull resistor selectors
JP28
TP7LCD backlight driver anode
TP8, TP9Aux ADC input for TSC
TP12Optional audio PA input
6
JP31
JP13
5LCD chip select enable
JP32CLOSETOUCH SCREEN chip select enable
JP14, JP15Sync close to degrade gain stage on microphone input
6
JP17, JP19Close to mux RIN/LIN into MONO-IN path within audio PA
JP16, JP21Close for impedance matching on AD/DA BNC port
JP18ADC input selection between BNC port and potentiometer
JP20Close to fix in mono speaker mode, no matter stereo plug state
JP292-3AUDIO Amplifier power select between VCC33 and +5V
JP30DAC output between AUDIO left channel and BNC connector
7JP22, JP23, JP24DC voltage selection between 3.3V and 5V on PIO expansion ports
JP25Button BP2 disable
JP26
JP27Power consumption measure for ZigBEE module
Y1, R3, R7Backup 12MHz crystal
R6, R8Isolation between 12MHz clock source and GPIO line
R9, R10Isolation between 32KHz clock source and GPIO line
JP1, JP4
C13Coupling capacitor
J2LQFP100 Socket
4R22Optional write protection on NAND flash
R24, R30
JP28
D1Optional ESD protection for LCD touch panel
5
R61, R63, RA2, RA3Optional databus termination for LCD controller
7R122, R123Optional TWI
2
JTAGSEL and TEST selector
Differential impedance matching for RS485 cable
Option for software test
A
A
A
REV
REV
REV
SCALE
SCALE
SAM4S-EK2
SAM4S-EK2
SAM4S-EK2
Board Configuration
Board Configuration
Board Configuration
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.
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
30-APR-12
30-APR-12
30-APR-12
DES.
DATE
DES.
DATE
DES.
DATE
1
XX-XXX-XXPPXXX
XX-XXX-XXPPXXX
XX-XXX-XXPPXXX
DATEMODIF.
VER.
DATEMODIF.
VER.
DATEMODIF.
VER.
REV. SHEET
REV. SHEET
REV. SHEET
7
7
7
A
A
A
7
7
7
6.1Self-Test
A software test package is available to implement a functiona l test for ea ch section of the bo ard. Refer to
the SAM4S-EK2 page on www.atmel.com.
6.2Board Recovery
Closing JP3 and powering the board will assert ERASE and clear GPNVM bit 1, and thereby select the
boot from the ROM by default. The MCU will boot from the internal ROM to enable a SAM-BA connection
through the UART. Connect the SAM4S-EK2 UART port (J3) to a PC COM port through a RS232 crossover cable.
You can then run the SAM-BA application from that PC to progr am t he int erna l Flash o f th e MCU as we ll
as the GPNVM bit 1.
Section 6
Troubleshooting
SAM4S-EK2 User Guide6-1
11176A–ATARM–24-Sep-12
7.1Revision History
Table 7-1.
DocumentComments
11176AInitial version.
Section 7
Revision History
Change Request
Ref.
SAM4S-EK2 User Guide7-1
11176A–ATARM–24-Sep-12
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 upda te the information contai ned 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.