The Atmel®SAM4S-EK toolkit contains the following items:
Board:
– a SAM4S-EK 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-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.
SAM4S-EK Development Board User Guide2-1
11139A–ATARM–29-Nov-11
Kit Contents
2.2Electrostatic Warning
The SAM4S-EK board is shipped in a protective anti-static package. 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.
2-2SAM4S-EK Development Board User Guide
11139A–ATARM–29-Nov-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 display a welcome page. Then, click or touch 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
downloadsamplecodeandgettechnicalsupportfromAtmelwebsite
This section introduces the Atmel SAM4S Evaluation Kit design. It introduces system-level concepts,
such as power distribution, memory, and interface assignments.
The SAM4S-EK board is based on the integration of an ARM®Cortex®-M3 processor with on-board
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-EK Block Diagram
Section 4
Evaluation Kit Hardware
SAM4S-EK Development Board User Guide4-1
11139A–ATARM–29-Nov-11
Evaluation Kit Hardware
4.2Features List
Here is the list of the main board components and interfaces:
SAM4S16 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 backlight
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
Power 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
4.3Function Blocks
4.3.1Processor
The SAM4S-EK is equipped with a SAM4S16 device in LQFP100 package.
4.3.2Memory
The SAM4S16 chip embeds:
1024 Kbytes of embedded Flash
128 Kbytes of embedded SRAM
16 Kbytes of ROM with embedded BootLoader routines (UART, USB) and In-Application Programming
functions (IAP) routines.
4-2SAM4S-EK Development Board User Guide
11139A–ATARM–29-Nov-11
Evaluation Kit Hardware
The SAM4S features an External Bus Interface (EBI) that permits interfacing to a broad range of external
memories and virtually to any parallel peripheral. The SAM4S-EK board is equipped with a memory
device connected to the SAM4 EBI:
One NAND Flash MT29F2G08ABAEA.
Figure 4-2.NAND Flash
+3V3
+3V3
PC17
PC16
PC9
PC10
JP9
JP9
Header2
Header2
PC14
PC18
R190RR190R
R2147KR2147K
R15
R15
47K
47K
DGND
+3V3
R22
R22
0R nm
0R nm
R16
R16
47K
47K
NAND FLASH
MN3MN3
MT29F2G08ABAEA
16
CLE
17
ALE
8
RE
18
WE
9
CE
7
R/B
19
WP
1
N.C1
2
N.C2
3
N.C3
4
N.C4
5
N.C5
6
N.C6
10
N.C7
11
N.C8
14
N.C9
15
N.C10
20
N.C11
21
N.C12
22
N.C13
23
N.C14
24
N.C15
25
N.C16
26
N.C17
I/O0
I/O1
I/O2
I/O3
I/O4
I/O5
I/O6
I/O7
N.C28
N.C27
N.C26
N.C25
N.C24
N.C23
PRE
N.C22
N.C21
N.C20
N.C19
N.C18
VCC
VCC
VSS
VSS
29
30
31
32
41
42
43
44
48
47
46
45
40
39
38
35
34
33
28
27
37
12
36
13
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
C27
C27
100nF
100nF
C28
C28
100nF
100nF
+3V3
DGND
C29
C29
1uF
1uF
NCS0 chip select signal is used for NAND Flash chip selection. Furthermore, a dedicated jumper (JP9)
can disconnect it from the on-board memories, thereby letting NCS0 free for other custom purpose.
4.3.3Clock Circuitry
The clock generator of a SAM4S microcontroller is made up 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 and 20 MHz.
The SAM4S-EK 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).
Figure 4-3.External Clock Source
NOT POPULATE
23
J1J1
DGND
D
1
54
DGND
R2
49.9R 1%R249.9R 1%
R1DNPR1DNP
3
DGND
R
R
3DNP
3DNP
1
Y1Y1
D
NP
2
R
7DN
7DN
PR
P
DGND
C
C
120pF
120pF
C
C
220pF
220pF
212MHz
212MHz
Y
Y
R40RR40R
R50
R50
3
3
C
C
20pF
20pF
MN1
12BTRG
MN1
DGND
C4
20pFC420pF
49
8
4
R9DNPR9DNP
32
XIN
R10DNPR10DNP
XOUT32
XIN
PB9
R6DN
R6DN
R
R
PB8
XO
R8DN
R8DN
97
P
P
PB9_XIN
PB8_XOUT
SAM4S
PA7_RTS0_PWMH3
PA8_CTS0_AD
UT
96
P
P
R1
R1
1
1
0R
0R
R12
R12
0
0
XIN32
XOUT32
R
R
1
3
Y3
Y3
32.768KHz
32.768KHz
2
PA7
PA8
SAM4S-EK Development Board User Guide4-3
11139A–ATARM–29-Nov-11
Evaluation Kit Hardware
The SAM4S chip internally generates the following clocks:
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 the SAM4S.
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 Core and the peripherals. The NRST pin integrates a permanent pull-up resistor
of about 100 kOhm to VDDIO.
On the SAM4S-EK 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
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 devices' 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 SAM4S datasheet for in depth
information.
4.3.5Power Supply and Management
The SAM4S-EK 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 SAM4S product series has different types of power supply pins:
J9
J9
Power Jack 2.1mm
Power Jack 2.1mm
1
2
3
+5V
MN9
MN9
ZEN056V130A24LS
ZEN056V130A24LS
1
3
2
MN12
MN12
MIC29152WU
MIC29152WU
Micrel's 1.5A LDO, TO263-5
Micrel's 1.5A LDO, TO263-5
VIN2VOUT
1
SD
ADJ
GND1
GND2
3
6
DGND
MN10
MN10
BNX002-01
BNX002-01
1
SV
2
SG
C65
C65
22uF
22uF
R89
R89
169K 1%
169K 1%
R92
R92
102K 1%
102K 1%
CG1
CG2
CG3
+
+
C64
C64
100nF
100nF
4
5
3
CV
4
5
6
+
+
C75
C75
100uF-TAN-6.3V
100uF-TAN-6.3V
+3V3
C76
C76
100nF
100nF
+5V
DGND
+
+
+
+
C66
C66
C98
C98
22uF
22uF
220uF-ELE-16V
220uF-ELE-16V
VDDIN pin:
Power for the internal voltage regulator, ADC, DAC, and analog comparator power supplies.
The voltage ranges from 1.8V to 3.6V.
4-4SAM4S-EK Development Board User Guide
11139A–ATARM–29-Nov-11
4.3.6UART
Evaluation Kit Hardware
VDDIO pins:
Power 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 from 1.62V to 1.95V.
VDDPLL pin:
Power for the PLL A, PLL B and 12 MHz oscillator.
The voltage ranges from 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.
4.3.7USART
This two-pin UART (TXD and RXD only) is buffered through an RS232 Transceiver MN6 and brought to
the DB9 male connector J7.
Figure 4-5.UART
MN6
MN6
MAX3232CSE
MAX3232CSE
16
9
9
VCC
2
V+
6
V-
5
1
GND
1
1
IN
T1
2
1
UT
R1O
0
1
IN
T2
9
UT
R2O
C1+
C1-
C2+
C2-
T1OUT
R1IN
T2OUT
R2I
1
C38
C38
100nF
100nF
3
4
C42
C42
100nF
100nF
5
1
4
1
3
7
8
N
DGND
1
6
2
7
3
8
4
9
5
FGND
J7J7
10
11
PA10
PA9
+
T
T
SMD
SMD
3V3
P5
P5
R
R
100K
100K
45
45
+3V3
R46
R46
100
100
R470
R470
R480
R480
+3V3
C3
C3
100nF
100nF
C40
C40
100nF
100nF
C41
C41
100nF
K
K
100nF
R
R
R
R
GND
D
TP6
TP6
SM
SM
D
D
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 transmitters 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.solder a shunt resistor in place of R25 (a solder drop will do).
SAM4S-EK Development Board User Guide4-5
11139A–ATARM–29-Nov-11
Evaluation Kit Hardware
4.3.8RS232
SAM4S-EK 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
TXD1
RXD1
RTS1
CTS1
PA23
PA22
PA21_232
PA24
PA25
+3V3
+3V3
+3V3
C31
C31
4.7uF
4.7uF
DGND
R32
R32
47K
47K
R310RR310R
R330RR330R
R340RR340R
R350RR350R
R360RR360R
R3747KR3747K
C32
C32
100nF
100nF
DGND
C33
C33
100nF
100nF
C36
C36
100nF
100nF
USART
MN5
MN5
ADM3312EARU
ADM3312EARU
3
VCC
1
V+
21
V-
23
GND
19
SD
5
EN
T1IN7T1OUT
10
R1OUT
T2IN8T2OUT
11
R2OUT
9
T3IN
12
R3OUT
R1IN
R2IN
T3OUT
R3IN
C1+
C1C2+
C2C3+
C3-
6
20
2
4
24
22
18
15
17
14
16
13
C34
C34
100nF
100nF
C35
C35
100nF
100nF
C37
C37
100nF
100nF
R380RR380R
PA21_485
PA21
PA21_232
DGND
3
2
JP31JP31
1
J5J5
1
6
2
7
3
8
4
9
5
10
11
FGND
4.3.9RS485
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 bus termination
resistors selection (JP10, JP11, JP12).
Figure 4-7.RS485
4.3.10Display Interface
The SAM4S-EK carries a TFT Transmissive LCD module with touch panel, FTM280C34D. Its integrated
driver IC is ILI9325. The LCD display area is 2.8 inches diagonally measured, with a native resolution of
240 x 320 dots.
RXD1
CTS1
RTS1
TXD1
PA21_485
PA25
PA24
PA22
R250R nmR250R nm
R270RR270R
R280RR280R
+3V3+3V3
RS 485
R23
R23
10K
10K
MN4
MN4
ADM3485ARZ
JP28
JP28
Header2 nm
Header2 nm
ADM3485ARZ
1
RO
2
RE
3
DE
4
DI
VCC
GND
A
B
+3V3
8
5
6
7
DGND
C30
C30
100nF
100nFR260RR260R
R29
R29
120R
120R
JP11
JP11
Header2
Header2
DGND
R24
R24
0R nm
0R nm
JP10
JP10
Header2
Header2
JP12
JP12
Header2
Header2
R30
R30
0R nm
0R nm
FGND
J4J4
1
2
3
4.3.11LCD Module
The LCD module gets reset from the NRST signal. As explained, this NRST is shared with the JTAG port
and the push-button BP1. The LCD chip select signal is connected to NCS1; the jumper JP13 can disconnect it so that this PIO line is available for other custom usage.
The SAM4S communicates with the LCD through PIOC where an 8-bit parallel “8080-like” protocol data
bus has to be implemented by software.
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 SAM4S 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
+3V3
PC13
R680RR68
0R
FB1
FB1
BN03K314S300R
BN03K314S300R
+3V3
R64
R64
47K
47K
DGND
MN8
MN8
AAT3155ITP-T1
AAT3155ITP-T1
10
C1+
C54
C54
1uF
1uF
9
C1-
11
EN/SET
5
IN
C57
C57
4.7uF
4.7uF
4
GND
LCD BACKLIGHT
C2+
OUTCP
7
C55
C55
1uF
6
C2-
8
3
D1
2
D2
1
D3
12
D4
1uF
LED_A
LED_K1
LED_K2
LED_K3
LED_K4
TP7TP7
DGND
C56
C56
1uF
1uF
SAM4S-EK Development Board User Guide4-7
11139A–ATARM–29-Nov-11
Loading...
+ 35 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.