SAM4S-EK Development Board User Guide: 11139A-ATARM-29-Nov-11
SAM4S-EK Development Board User Guide: 11139A-ATARM-29-Nov-11
....................................................................................................................
User Guide
11139AATARM29-Nov-11
1-2
11139AATARM29-Nov-11
4.3.10 Display Interface .................................................................................................. 4-6 4.3.11 LCD Module ........................................................................................................ 4-6 4.3.12 Backlight Control.................................................................................................. 4-7 4.3.13 Touch Screen Interface ....................................................................................... 4-8 4.3.14 JTAG/ICE............................................................................................................. 4-8 4.3.15 Audio Interface..................................................................................................... 4-9 4.3.16 Microphone Input ................................................................................................. 4-9 4.3.17 USB Device ....................................................................................................... 4-11 4.3.18 Analog Interface ................................................................................................ 4-11 4.3.19 QTouch Elements .............................................................................................. 4-12 4.3.20 User Buttons ...................................................................................................... 4-13
1-1
11139AATARM29-Nov-11
4.3.21 LEDs .................................................................................................................. 4-14 4.3.22 SD/MMC Card.................................................................................................... 4-14 4.3.23 ZigBEE............................................................................................................... 4-14 4.3.24 PIO Expansion ................................................................................................... 4-15 4.4 Configuration.................................................................................................................... 4-16 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.5 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 PIO Usage ......................................................................................................... 4-16 Jumpers ............................................................................................................. 4-19 Test Points ......................................................................................................... 4-20 Solder Drops ...................................................................................................... 4-20 Assigned PIO Lines, Disconnection Possibility.................................................. 4-20 Power Supply Connector J9 .............................................................................. 4-22 USART Connector J5 With RTS/CTS Handshake Support ............................... 4-22 UART Connector J7 .......................................................................................... 4-23 USB Device Connector J15 ............................................................................... 4-23 TFT LCD Connector J8...................................................................................... 4-24 JTAG Debugging Connector J6 ......................................................................... 4-25 SD/MMC - MCI Connector J3 ............................................................................ 4-26 Analog Connector CN1 & CN2 .......................................................................... 4-27 RS485 Connector J14 ....................................................................................... 4-27
Connectors....................................................................................................................... 4-22
4.5.10 Headphone Connector J11 ................................................................................ 4-28 4.5.11 ZigBEE Connector J16 ...................................................................................... 4-28 4.5.12 PIO Expansion Port C Connector J12 ............................................................... 4-29 4.5.13 PIO Expansion Port A Connector J13 .............................................................. 4-30 4.5.14 PIO Expansion Port B Connector J14 ............................................................... 4-31
1-2
11139AATARM29-Nov-11
Introduction
Section 1 Introduction
1.1 SAM4S Evaluation Kit
The SAM4S Evaluation Kit (SAM4S-EK) enables evaluation capabilities and code development of applications running on a SAM4S16 device.
1.2
User Guide
This guide focuses on the SAM4S-EK 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 specifications. Section 3 provides board specifications. Section 4 describes the development environment. Section 5 provides instructions to power up the SAM4S-EK and describes how to use it. Section 6 describes the hardware resources, default jumper and switch settings, and connectors. Section 7 provides schematics. Section 8 describes the troubleshooting.
1.3
1-1
11139AATARM29-Nov-11
Board: a SAM4S-EK board a universal input AC/DC power supply with US, Europe and UK plug adapters
Figure 2-1.
Unpack and inspect the kit carefully. Contact your local Atmel distributor, should you have issues concerning the contents of the kit.
2-1
11139AATARM29-Nov-11
Kit Contents
2.2
Electrostatic 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-2
11139AATARM29-Nov-11
Section 3 Power Up
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 display a welcome page. Then, click or touch icons displayed on the screen and enjoy the demo.
3.2
3-1
11139AATARM29-Nov-11
4-1
11139AATARM29-Nov-11
4.2
Features 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 buttons: Up, Down, Left, Right, Valid and Slider 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)
4.3
4.3.1
Function Blocks
Processor The SAM4S-EK is equipped with a SAM4S16 device in LQFP100 package.
4.3.2
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-2
11139AATARM29-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:
Figure 4-2.
NAND FLASH
MN3 MT29F2G08ABAEA
16 17 8 18 9 7 19 1 2 3 4 5 6 10 11 14 15 20 21 22 23 24 25 26
CLE ALE RE WE CE R/B WP N.C1 N.C2 N.C3 N.C4 N.C5 N.C6 N.C7 N.C8 N.C9 N.C10 N.C11 N.C12 N.C13 N.C14 N.C15 N.C16 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
DGND
+3V3
37 12
C27 100nF C28 100nF C29 1uF
36 13
DGND
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.3 Clock 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.
NOT POPULATED
J1
R2 49.9R 1%
R3
DNP MN1 C1 20pF Y2 DGND C2 20pF PB8 R8 DNP R4 12MHz R5 0R 0R PB9 R6 XIN DGND DNP XOUT
3 2
2 4
1 3 5
XIN32
DGND DGND
Y1 DNP
97
PB9_XIN
SAM4S
PA7_RTS0_PWMH3 PA8_CTS0_AD12BTRG 49 48
DGND
R7
DNP
96
PB8_XOUT
4-3
11139AATARM29-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.4
Reset 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.5
Power 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
J9 Power Jack 2.1mm 1 2
3
MN10 BNX002-01
+5V
1 2
SV
CV
3 4 5 6
+ C66 22uF + C98 220uF-ELE-16V
DGND
2 1
VIN
GND1 GND2
VOUT ADJ
4 5
SD
DGND
The SAM4S product series has different types of power supply pins:
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-4
11139AATARM29-Nov-11
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.
4.3.6
UART 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. Figure 4-5. UART
MN6 MAX3232CSE +3V3
16
C39 100nF +3V3 +3V3 C40 100nF C41 100nF
VCC
C1+
1
C38 100nF
2 6
V+ V-
C1C2+
3 4
C42 100nF J7
R45 100K
R46 100K
15
0R 0R
5 14 13 7 8
PA10 PA9
R47 R48
11 12 10 9
1 6 2 7 3 8 4 9 5
TP5 SMD
TP6 SMD
10
FGND
DGND
4.3.7
USART 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).
11
DGND
4-5
11139AATARM29-Nov-11
Evaluation Kit Hardware 4.3.8 RS232 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
+3V3 MN5 ADM3312EARU PA21
3
JP31
USART
3
C31 4.7uF C32 100nF C33 100nF
PA21_485
VCC
C1+
6
C34 100nF
1 21
DGND C36 100nF
V+ V-
C1C2+
20 2
C35 100nF
23 19 5 7 10 8 11 9 12
C2C3+
4 24
C37 100nF
22 18 15 17 14 16 13
R38
0R
1 6 2 7 3 8 4 9 5
1
J5
PA21_232
10
FGND J4
DGND DGND
4.3.9
RS485 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
+3V3 +3V3
RS 485
R23 10K MN4 ADM3485ARZ R24 0R nm +3V3
0R nm 0R 0R 0R
1 2 3 4
RO RE DE DI
VCC GND
8 5
C30 100nF
JP10 Header2
1 6 7
DGND
2 3
JP11 Header2 JP12 Header2 FGND R30 0R nm
A B
JP28 Header2 nm
R29 120R
DGND
4.3.10
Display 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.
4.3.11
LCD 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.
4-6
11139AATARM29-Nov-11
11
Z7
DGND J8 FH26-39S-0.3SHW PC13 PC22 PC23 PC24 PC25 PC26 PC27 PC28 PC29 PC30 PC31 PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 LCD_DB17 LCD_DB16 LCD_DB15 LCD_DB14 LCD_DB13 LCD_DB12 LCD_DB11 LCD_DB10 LCD_DB9 LCD_DB8 LCD_DB7 LCD_DB6 LCD_DB5 LCD_DB4 LCD_DB3 LCD_DB2 LCD_DB1 LCD_DB0
R56 10K
Header2
R59
DGND
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
VDD DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 VDD RD WR RS CS RESET IM0 IM1 GND LED-A LEDK1 LEDK2 LEDK3 LEDK4 Y+ YX+ XNC GND
DGND DGND
PIN 39
PINs on BOT
FTM280C34D PIN 1
DGND
DGND
LCD
1 2 3 4 1 2 3 4
R63
8 7 6 5 8 7 6 5
NOT POPULATED
DGND
4.7K nm
DGND
4.3.12
Backlight Control 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 MN8 AAT3155ITP-T1
10
R64 47K C54 1uF
C1+
C2+
7
C55 1uF
PC13 +3V3
9 11 5
C57 4.7uF
C1EN/SET IN
C2OUTCP D1 D2 D3 D4
6 8 3 2 1 12
LED_A LED_K1 LED_K2 LED_K3 LED_K4
TP7
C56 1uF
GND
DGND DGND
LCD BACKLIGHT
4-7
11139AATARM29-Nov-11
Evaluation Kit Hardware 4.3.13 Touch Screen Interface The LCD module integrates a 4-wire touch panel controlled by MN7 (ADS7843) which is a slave device on the SAM4S 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 to the Schematics section. Touch ADC auxiliary inputs IN3/IN4 of the ADS7843 are connected to test point (TP8, TP9) for optional function extension. Figure 4-10. Touch Panel Control
+3V3 MN7 ADS7843E X_RIGHT Y_UP X_LEFT Y_DOW N TP8 SMD TP9 SMD R62 100K
+3V3
2 3 4 5
XP YP XM YM
16 14 12 15 13 11 9 1 10 6
7 8
R72 100K R73 100K
IN3 IN4
C58 100nF
C59 100nF
C60 100nF
R71 1R
L2 10uH/100mA
C61 4.7uF
R74 0R
AGND_TP
AGND_TP
DGND
4.3.14
JTAG/ICE A standard 20-pin JTAG/ICE connector is implemented on the SAM4S-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 and is also used to reset the LCD module. The 0 ohm resistor R44 may be 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.
4-8
11139AATARM29-Nov-11
R39 100K
R40 100K
R41 100K
R42 100K
R43 100K
J6
1 3 5 7 9 11 13 15 17 19
VTref Vsupply GND1 nTRST GND2 TDI GND3 TMS GND4 TCK GND5 RTCK GND6 TDO GND7 nSRST DBGRQ GND8 DBGACK GND9
2 4 6 8 10 12 14 16 18 20
DGND
4.3.15
Audio Interface The SAM4S-EK 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.16
Microphone Input The embedded microphone is connected to an audio pre-amplifier using the TS922 operational amplifier (MN11). The gain is set by using JP14 and JP15 jumpers; both must be set or removed at the same time. 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). Note: 3. The TB1 series 0 Ohm resistor is a reservation for future impedance adaptation facility. Under specific amplifier settings conditions, this enables the easy insertion of a capacitor or any other bipolar device on the audio path. On the other hand, R83 is a default 0 Ohm resistor that enables the disconnection of PB0 from the audio input path for custom usage. 4. The audio pre-amplifier MN11 is powered by a dedicated low dropout regulator MIC5219-3.3 (MN14).
4-9
11139AATARM29-Nov-11
Header2
C67 1uF
R79 1K
R80 1K
AGND
IN1OUT1 1
MIC1 SVB6050
R83 0R
R84 1K C72 1nF R86 47K AGND AGND AVDD JP15 Header2 R87 47K
PB0
IN1+
R85 1K
AVDD
AGND
VCC33
C73 22uF
R88 470R
VCC
8
C74 100nF FB2 BN03K314S300R R91 0R
7
AGND AGND R90 100K
4
AGND
6 5
DGND
IN2+
C77 4.7uF
R93 100K
AGND
AGND
4.3.16.1 Headphone Output The SAM4S-EK 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 designed 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
J10
AUDIO OUT
+5V FB3 BN03K314S300R MN13 TPA0223DGQ VDD_AMP
1 2
JP29 VCC33
2
C79 1uF + C80 10uF C82 100nF
VDD
RO/MO+
PB13
C84
AGND
R98
LO/MORIN
10
AGND
C83
C85 JP19
MONO-IN
ST/MN SHUTD0WN
7 2 4 8
C86
100K 100K
R102
VDD_AMP 100K
AUDIO_OUTL C88
0.47uF
JP20 Header2
C87 1uF
AGND
+5V
2
C91 4.7uF
11
AGND
AGND
AGND
VCC33
1 4
EN BYP
5 6 7 8
+ C92 100uF-TAN-6.3V
DGND
DGND
4-10
11139AATARM29-Nov-11
Using a readily available 1/8-in. (3,5 mm) stereo headphone jack, the control switch is closed when no plug is inserted. When closed, a 100-kOhm/1-kOhm divider 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 disconnected from the RO/MO+ output so that no sound is heard from the speaker while the headphones are inserted. 4.3.17 USB Device The SAM4S 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 SAM4S 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
J15 USB Micro B
8 9
5V
D-
D+
ID
7 6
RV2 V5.5MLA0603
5
RV1 V5.5MLA0603 DGND
FGND
PC21
R110 R112
DGND
PB10 PB11
R114 R116
27R 27R
4.3.18
Analog Interface
4.3.18.1 Analog Reference The 3V voltage reference is based on an LM4040 (Precision Micropower Shunt Voltage Reference). This ADVREF level can be set as 3V or 3.3V via the jumper JP2. Figure 4-15. Analog Vref
VCC33
SAM SAM4S
ADVREF
ADVREF
2
C5 100nF
+5V
JP2
R13 2.2K
3
MN2 LM4040-2.5
DGND DGND
4-11
11139AATARM29-Nov-11
Evaluation Kit Hardware 4.3.18.2 Analog Input The BNC connector CN1 is connected to the ADC port PB1 as an external 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 resistor and capacitor values, depending on your application requirements. A 10-KOhm potentiometer (VR1) is also connected to this channel to implement an easy access to ADC programming and debugging (or implement an analog user control like display brightness, volume, etc.). Either of these two functions can be selected by jumper JP18. Figure 4-16. ADC Input
CN1 BNC R94 0R JP16 Header2 R96 49.9R C78 10nF
DGND
VCC33 JP18
AD5
2
PB1
VR1 10K VR
2
C89 10nF
Potentiometer
ADC
DGND
4.3.18.3 Analog Output The BNC connector CN2 is connected to the DAC port PB14 and provides an external 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
5 1 2 3 4
JP21 C90
PB14
1
R109 49.9R 1% AUDIO_OUTL SD2
DAC01
DGND
DAC
4.3.19
QTouch 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.19.1 Keys The SAM4S-EK implements five individual capacitive touch keys (UP, DOWN, RIGHT, LEFT and VALID) using five pairs of PIO.
4-12
11139AATARM29-Nov-11
PC31
1K
PC30
PC29
1K
PC28
PC23
1K
PC22
PC27
1K
PC26
QTOUCH
4.3.19.2 Slider A group of channels forms a Slider. A Slider is composed of three channels for a QTouch acquisition method using three pairs of PIO. Such a sensor is used to detect a linear finger displacement on a sensitive area. A typical implementation is volume control. Figure 4-19. QT_Slider
S1 QTouch Slider
SR
PA1 R50 C46 22nF PA0 1K
SL
PA3
1K
SM
PA2
SR
PA5 R54 C50 22nF PA4 1K
4.3.20
User Buttons There are two mechanical user buttons on the SAM4S-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. Figure 4-20. System Buttons
BP1
1 2
BP2
3 4
1 2
BP3
3 4
1 2
3 4
JP26 PC12
DGND
4-13
11139AATARM29-Nov-11
Evaluation Kit Hardware 4.3.21 LEDs There are three LEDs on the SAM4S-EK board:
A blue LED (D2) and a green 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 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).
PA20
R113 220R
D3
Green-led
PC20
R115
100K
1
Q1 IRLML2502 2 R117 220R
D4
Red-led
DGND
4.3.22
SD/MMC Card The SAM4S EK 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
R17 10K
R18 10K
4 3 2 1
RA1 68KX4 J3 TF01A
5 6 7 8
PA26 PA27 PA28 PA29 PA30 PA31 PA6 + C25 10uF C26 100nF R20 0R
1 2 3 4 5 6 7 8 10 9
11 12 13
DGND
DGND
4.3.23
ZigBEE SAM4S 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 elsewhere in the design, thereby enabling their individual disconnection, should a conflict occur in your application.
4-14
11139AATARM29-Nov-11
1 3 5 7 9
2 4 6 8 10
R120 R121
0R 0R
JP27 +3V3
C95 18pF
C97 2.2uF
DGND
4.3.24
PIO Expansion The SAM4S 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 (16 for PIOB). Expansion ports J12, J13 and J14 provide PIO lines access for customer defined usage.
+5V
JP22
1 2
+3V3 3
+5V
JP23
1 2
+3V3 3
+5V
JP24
1 2
+3V3 3
J12 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15 +3V3
J13
J14
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40
PC16 PC17 PC18 PC19 PC20 PC21 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 +3V3 +3V3
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40
PA16 PA17 PA18 PA19 PA20 PA21 PA22 PA23 PA24 PA25 PA26 PA27 PA28 PA29 PA30 PA31 +3V3
1 3 5 7 9 11 13 15 17 19 21 23
2 4 6 8 10 12 14 16 18 20 22 24
+3V3
DGND
DGND
DGND
DGND
DGND
DGND
Note:
All PIO lines are available on these expansion connectors, except those that are used for the QTouch elements.
4-15
11139AATARM29-Nov-11
4.4
Configuration
This section describes the PIO usage, the jumpers, the test points and the solder drops of a SAM4S-EK board.
4.4.1
PIO Usage
4-16
11139AATARM29-Nov-11
Evaluation Kit Hardware Table 4-1. PIO Port A Pin Assignments and Signal Descriptions (Continued)
No 30 31 32 I/O Line PA29 PA30 PA31 Peripheral A RI1 PWML2 NPCS1 Peripheral B TCLK2 NPCS2 PCK2 Peripheral C MCCK MCDA0 MCDA1 Extra Function POI_DC5 WKUP11 / POI_DC6 POI_DC7 System Function MCI clock MCI data bit 0 MCI data bit 1 Comment
4-17
11139AATARM29-Nov-11
4-18
11139AATARM29-Nov-11
Evaluation Kit Hardware 4.4.2 Jumpers The SAM4S-EK board jumpers are essentially used for two main purposes: functional selection or current measurement. Details are given below. Table 4-4. Jumpers Setting
Designation JP1 JP2 JP3 JP4 JP5 JP6 JP7 JP8 JP9 JP10 JP11 JP12 JP13 JP14 - JP15 JP16 JP17 JP19 JP18 JP20 JP21 JP22 JP23 JP24 JP25 JP26 JP27 Label JTAG ADVREF ERASE TEST VDDPLL VDDIO VDDIN VDDCORE CE FLASH RS485 RS485 RS485 CS MIC GAIN0 ADC input MIC Gain stage SELECT ADC INP MONO/STEREO DAC output PIO expansion J12 voltage supply PIO expansion J13 voltage supply PIO expansion J14 voltage supply BP2 BP3 ZIGBEE 1-2 2-3 CLOSE OPEN 2-3 2-3 2-3 CLOSE CLOSE CLOSE Default Setting OPEN 1-2 OPEN Not populated (OPEN) CLOSE CLOSE CLOSE CLOSE CLOSE OPEN CLOSE OPEN CLOSE CLOSE (both) 20db OPEN (both) 26db OPEN Feature Close to select the JTAG boundary scan of the SAM4S Analog reference voltage selection between 3.3V (close 1-2) and 2.5V (close 2-3) Close to reinitialize the Flash contents and some of its NVM bits. Close for manufacturing test or fast programming mode Access for current measurement on VDDPLL Access for current measurement on VDDIO Access for current measurement on VDDIN Access for current measurement on VDDCORE NCS0 enable NAND Flash chip select Maintain differential impedance for RS485 interface Maintain impedance matching for RS485 interface Maintain differential impedance for RS485 interface NCS1 chip select LCD Close both to lower gain stage on microphone input. Close for impedance matching on ADC BNC port Close to mux RIN/LIN into MONO-IN path within audio PA ADC input potentiometer ADC input BNC Close to fix in mono speaker, no matter the stereo plug state Close for impedance matching on DAC BNC port Set to 3.3V (position 1-2 sets to 5V) Set to 3.3V (position 1-2 sets to 5V) Set to 3.3V (position 1-2 sets to 5V) Open to disconnect and free PB3 for custom usage Open to disconnect and free PC12 for custom usage Power supply connection/disconnection for the ZigBEE module May also be used as a current measurement point
4-19
11139AATARM29-Nov-11
4.4.3
Test Points Some test points have been placed on the SAM4S-EK board for the verification of important signals. Table 4-6. Test Points
Designation TP1 TP2 TP3 TP4 TP5 TP6 TP7 TP8 TP9 TP10 TP11 TP12 Part Ring Hook Ring Hook Ring Hook Ring Hook Pad Pad Pad Pad Pad Ring Hook Ring Hook Pad Description GND GND GND GND UART TXD UART RXD LCD Backlight driver anode Aux ADC input for Touch Screen controller Aux ADC input for Touch Screen controller +5V +3V3 Optional Audio PA input
4.4.4
Solder Drops There are two solder drops designed on the SAM4S-EK for isolation. Table 4-7. Solder Drops
Designation SD1 SD2 Default Setting OPEN CLOSE Feature Isolation of DAC output from shared channel (PB14) Connects PB14 to the AUDIO_OUTL channel
4.4.5
Assigned PIO Lines, Disconnection Possibility As pointed out in some previous interface description, 0 Ohm resistors have been inserted on the path of the receiver PIO lines of the SAM4S-EK. These are the PIO lines 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.
4-20
11139AATARM29-Nov-11
4-21
11139AATARM29-Nov-11
4.5
4.5.1
Connectors
Power Supply Connector J9 The SAM4S-EK evaluation board can be powered from a 5VDC power supply connected to the external power supply jack J9. The positive pole is the center pin.
4.5.2
USART Connector J5 With RTS/CTS Handshake Support Figure 4-26. Male RS232/USART Connector J5
4-22
11139AATARM29-Nov-11
4.5.3
4.5.4
USB Device Connector J15 Figure 4-27. Micro-B USB Connector J15
4-23
11139AATARM29-Nov-11
Evaluation Kit Hardware 4.5.5 TFT LCD Connector J8 One 39-pin connector is available on the board to connect the LCD module, backlight and touch screen. Figure 4-28. LCD Connector J8
4-24
11139AATARM29-Nov-11
Evaluation Kit Hardware 4.5.6 JTAG 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-29. JTAG/ICE Connector J6
Vsupply. 3.3V power nTRST TARGET RESET Active-low output signal that resets the target GND TDI TEST DATA INPUT Serial data output line, sampled on the rising edge of the TCK signal GND TMS TEST MODE SELECT GND TCK TEST CLOCK Output timing signal, for synchronizing test logic and control register access GND RTCK Input Return test clock signal from the target GND TDO JTAG TEST DATA OUTPUT Serial data input from the target GND
3 4 5 6 7 8 9 10
11
12 13 14
4-25
11139AATARM29-Nov-11
Evaluation Kit Hardware Table 4-15. JTAG/ICE Connector J13 Signal Descriptions (Continued)
Pin 15 16 17 18 19 20 Mnemonic nSRST RESET GND RFU GND RFU GND Description Active-low reset signal. Target CPU reset signal Common ground This pin is not connected in SAM-ICE. Common ground This pin is not connected in SAM-ICE. Common ground
4.5.7
4-26
11139AATARM29-Nov-11
Evaluation Kit Hardware 4.5.8 Analog Connector CN1 & CN2 Figure 4-31. Analog Input Connector CN1 and Analog Output CN2, Bottom View
Table 4-17. Analog Input, Output Connector CN1, CN2 Signal Descriptions
Pin 1, 2, 3, 4 5 Mnemonic GND Analog input PB1 for CN1 and analog output PB13 for CN2 respectively
4.5.9
4-27
11139AATARM29-Nov-11
Evaluation Kit Hardware 4.5.10 Headphone Connector J11 Figure 4-33. Headphone J11
4.5.11
Reset
/RST
Misc.
3 5 7 9
4 6 8 10 VCC
4-28
11139AATARM29-Nov-11
Evaluation Kit Hardware 4.5.12 PIO Expansion Port C Connector J12 Figure 4-35. PIO Expansion Connector J12
4-29
11139AATARM29-Nov-11
Evaluation Kit Hardware 4.5.13 PIO Expansion Port A Connector J13 Figure 4-36. PIO Expansion Connector J13
4-30
11139AATARM29-Nov-11
Section 5 Schematics
5.1 Schematics
This section contains the following schematics:
Block diagram General information Microcontroller NAND Flash, serial interface TFT LCD & Touch Audio & Power Supply USB, LEDs, push-buttons & ZigBEE
5-1
11139AATARM29-Nov-11
5 V Input POWER SUPPLY (3.3V) MIC POWER NAND FLASH Micro SD RS232
AUDIO In (ADC)
PHONE JACK
Sheet 6
PIO A, B, C
USART1 ICE
QTOUCH LCD INTERFACE 2.8" 240x320 TFT TOUCH SCREEN Sheet 5 Board Configuration Sheet Sheet 2
Sheet 4
HE 10
USB
HE 10 RS485
POT
ADC/ DAC
HE 14
A
REV
JH
DES.
08-Mar-11
DATE
XXX XX-XXX-XX
VER. REV. DATE SHEET
SAM4S-EK
Block Diagram
SCALE
1/1
1
1 7
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
REVISION HISTORY
REV
D
SCHEMATICS CONVENTIONS
(1) Resistance Unit: "K" is "Kohm", "R" is "Ohm? (2) "nm" means the component is not populated by default
DATA 2011.03
Analog reference voltage selection between 3.3V and 3.0V Close to reinitialize the Flash contents and some of its NVM bits Close for manufacturing test or fast programming mode Access for current measurement on each power rail Nand Flash chip select enable RS485 bus termination enable RS485 pull resistor selectors RS232 USART and RS485 selection LCD chip select enable Sync close to degrade gain stage on microphone input Close to mux RIN/LIN into MONO-IN path within audio PA Close for impedance matching on AD/DA BNC port ADC input selection between BNC port and potentiometer Close to fix in mono speaker mode, no matter stereo plug state AUDIO Amplifier power select between +5V and VCC33 DAC output between AUDIO left channel and BNC connector DC voltage selection between 3.3V and 5V on PIO expansion ports Button BP2 disable Button BP3 disable Power consumption measure for ZigBEE module
C
TABLE OF CONTENTS
PAGE 1 2 3 4 5 6 7 DESCRIPTION Block Diagram Reference guide Microcontroller NAND Flash, RS232, RS485, MCI, JTAG LCD, Touch items Audio, AD/DA, Power IO Expansion, USB, ZigBEE, LED, Button
TEST POINT
PAGE 3 4 5 REFERENCE TP1, TP2, TP3, TP4 TP5 TP6 TP7 TP8, TP9 6 TP12 FUNCTION GND UART TXD UART RXD LCD backlight driver anode Aux ADC input for TSC Optional audio PA input 5 6
JP13 JP14, JP15 JP17, JP19 JP16, JP21 JP18 JP20 JP29 JP30
PIO MUXING
PIOA PA0 PA1
B
USAGE TSLIDR_SL_SNS TSLIDR_SL_SNSK TSLIDR_SM_SNS TSLIDR_SM_SNSK TSLIDR_SR_SNS TSLIDR_SR_SNSK MCI_CD CLK_32K CLK_32K RX_UART0 TX_UART0 TSC_CS MISO MOSI SPCK ZB_SLPTR
PIOA PA16 PA17 PA18 PA19 PA20 PA21 PA22 PA23 PA24 PA25 PA26 PA27 PA28 PA29 PA30 PA31
USAGE TSC_IRQ/ZB_IRQ0 TSC_BUSY/ZB_IRQ1 ZB_RSTN LED_BLUE LED_GREEN RXD1 TXD1 COM1EN RTS1 CTS1 MCI MCI MCI MCI MCI MCI
PIOB PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14
USAGE MIC INPUT ANA INPUT ZB_NPCS2 USER_PB1 JTAG JTAG JTAG JTAG CLK_12M CLK_12M USB_DDM USB_DDP ERASE AUDIO OUT R AUDIO OUT L
PIOC PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15
PIOC PC16 PC17 PC18 PC19 PC20 PC21 PC22 PC23 PC24 PC25 PC26 PC27 PC28 PC29 PC30 PC31
USAGE NAND_ALE NAND_CLE NAND_RDYBSY REGSEL_LCD LED_RED(POWER) USB_CNX TVALID_SNS TVALID_SNSK TUP_SNS TUP_SNSK TDWN_SNS TDWN_SNSK TLEFT_SNS TLEFT_SNSK TRIGHT_SNS TRIGHT_SNSK
PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15
A
REV
JH
DES.
08-Mar-11
DATE
XXX XX-XXX-XX
VER. REV. DATE SHEET
SAM4S-EK
Board Configuration
SCALE
1/1
1
2 7
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
PC[0..31] PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15 PC16 PC17 PC18 PC19 PC20 PC21 PC22 PC23 PC24 PC25 PC26 PC27 PC28 PC29 PC30 PC31 R1 0R nm PA[0..31] R2 49.9R 1% MN1 AT91SAM4S-LQFP100
D
J1 SMA nm
2 4
1 3 5
DGND
Y1 DNP DGND
Y2 C2 20pF
12MHz R5 0R
PB9
R6
0R nm XOUT
97
PB9_XIN
PC0_D0_PWML0 PC1_D1_PWML1 PC2_D2_PWML2 PC3_D3_PWML3 PC4_D4_NPCS1 PC5_D5 PC6_D6 PC7_D7 PC8_NWR0_NWE PC9_NANDOE PC10_NANDWE PC11_NRD PC12_NCS3_AD12B12 PC13_NWAIT_PWML0_AD12B10 PC14_NCS0 PC15_NCS1PWML1_AD12B11 PC16_A21_NANDALE PC17_A22_NANDCLE PC18_A0_NBS0_PWMH0 PC19_A1_PWMH1 PC20_A2_PWMH2 PC21_A3_PWMH3 PC22_A4_PWML3 PC23_A5_TIOA3 PC24_A6_TIOB3 PC25_A7_TCLK3 PC26_A8_TIOA4 PC27_A9_TIOB4 PC28_A10_TCLK4 PC29_A11_TIOA5_AD12B13 PC30_A12_TIOB5_AD12B14 PC31_A13_TCLK5_AD12B15
DGND
C1
20pF
R4
0R
XIN
25 47 43 40 37 35 32 29 58 62 65 68 23 21 71 19 73 75 78 80 82 84 86 90 92 94 13 17 54 4 6 8
R3
0R nm
DGND
R7
0R nm
PB8
R8
0R nm
96
PB8_XOUT
C3 20pF
R11 0R
3 2
PB2 PB3
7 9
PB2_URXD1_NPCS2_AD12B6 PB3_UTXD1_PCK2_AD12B7
DGND C4 20pF
PB10 PB11
C
88 89
PB10_DDM PB11_DDP
AT91SAM4S-LQFP100
77 51 79 83 76 60 3 5 87 61
JTAGSEL PB4_TWD1_PWMH2_TDI PB6_TMS_SWDIO PB7_TCK_SWCLK PB5_TWCK1_PWML0_TDO NRST PB0_PWMH0_AD12B4 PB1_PWMH1_AD12B5 PB12_PWML1_ERASE VDDOUT VDDIN TEST
PB4 PB6 PB7 PB5 NRST PB0 PB1 +3V3 VDDCORE JP3 VDDOUT VDDIN JP4 Header2 nm ADVREF PC0 PA20 PC12 PA23 PC13 PA22 PC15 PA19 PC27 PA21 PA18 PC26 PA17 PB3 PC31 PB2 PC30 PB1 PC29 PB0
PA0_PWMH0_TIOA0_A17 PA1_PWMH1_TIOB0_A18 PA2_PWMH2_SCK0_DATRG PA3_TWD0_NPCS3 PA4_TWCK0_TCLK0 PA5_RXD0_NPCS3 PA6_TXD0_PCKO PA7_RTS0_PWMH3 PA8_CTS0_AD12BTRG PA9_URXD0_NPCS1 PA10_UTXD0_NPCS2 PA11_NPCS0_PWMH0 PA12_MISO_PWMH1 PA13_MOSI_PWMH2 PA14_SPCK_PWMH3 PA15_TF_TIOA1_PWML3 PA16_TK_TIOB1_PWML2 PA17_TD_PCK1_PWMH3_AD12B0 PA18_RD_PCK2_A14_AD12B1 PA19_RK_PWML0_A15_AD12B2 PA20_RF_PWML1_A16_AD12B3 PA21_RXD1_PCK1_AD12B8 PA22_TXD1_NPCS3_NCS2_AD12B9 PA23_SCK1_PWMH0_A19 PA24_RTS1_PWMH1_A20 PA25_CTS1_PWMH2_A23 PA26_DCD1_TIOA2_MCDA2 PA27_DTR1_TIOB2_MCDA3 PA28_DSR1_TCLK1_MCCDA PA29_RI1_TCLK2_MCCK PA30_PWML2_NPCS2_MCDA0 PA31_NPCS1_PCK2_MCDA1 ADVREF PB13_PWML2_PCK0_DACO0 PB14_NPCS1_PWMH3_DACO1
1 93 99 2
74 72 67 66 55 53 52 49 48 46 44 42 41 33 31 30 28 12 14 18 24 15 20 22 34 38 39 57 59 63 64 81
PA0 PA1 PA2 PA3 PA4 PA5 PA6 0R nm PA7 0R nm PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 PA16 PA17 PA18 PA19 PA20 PA21 PA22 PA23 PA24 PA25 PA26 PA27 PA28 PA29 PA30 PA31
VCC33 +5V
JP2
R13 2.2K
PB13 PB14
VDDCORE
VDDCORE
VDDCORE
VDDCORE
VDDPLL
VDDIO
VDDIO
VDDIO
VDDIO
VDDIO
GND
GND
GND
GND
GNDANA
R107 0R DGND VDDIO PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14
DGND
10
11
16
36
56
85
26
45
70
95
27
50
69
91
VDDOUT
100
98
PB[0..14]
C6 100nF
C7 100nF
C9 100nF
C10 100nF
C11 100nF
C12 100nF
C14 100nF
C15 100nF
C16 100nF
C17 100nF
C18 100nF
C19 100nF
C20 4.7uF
DGND
C21 4.7uF
C8 2.2uF
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
J2 Socket-QFP100 nm
VDDIO
PA16 PC7 PA15 PA14 PC6 PA13 PA24 PC5 PC4 PA25 PA26 PC3 PA12 PA11 PC2 PA10 PA9 PC1 XOUT32 XIN32
VDDCORE
VDDIO
A
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
SOCKET_THROUGHT_HOLE LQFP100
100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76
PB14 XIN XOUT PC25 PB13 PC24 PC23 PB11 PB10 PB12 PC22
VDDIO
VDDCORE PC21 PB7 PC20 PA31 PC19 PB6 PC18 JTAGSEL PB5
VDDPLL
JP5 Header2
L1 10uH-100mA
VDDOUT
VDDIO
JP6 Header2
C22 100nF
VDDIN
JP7 Header2
DGND
PA27 PC8 PA28 NRST TEST PC9 PA29 PA30 PC10 PA3 PA2 PC11
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
NOT POPULATED
DGND DGND
A
REV
JH
DES.
08-Mar-11
DATE
XXX XX-XXX-XX
VER. REV. DATE SHEET
VDDCORE
VDDIO
SAM4S-EK
Microcontroller
SCALE
1/1
1
3 7
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
+3V3 R15 47K PC17 PC16 PC9 PC10 JP9 Header2 PC14 PC18 R19 +3V3 R21 47K 0R
NAND FLASH
MN3 MT29F2G08ABAEA
+3V3
PC[0..31] PA[0..31]
D
4 3 2 1
9 7 19 1 2 3 4 5 6 10 11 14 15 20 21 22 23 24 25 26
5 6 7 8
16 17 8 18
CLE ALE RE WE CE R/B WP N.C1 N.C2 N.C3 N.C4 N.C5 N.C6 N.C7 N.C8 N.C9 N.C10 N.C11 N.C12 N.C13 N.C14 N.C15 N.C16 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
R17 10K
R18 10K
SD CARD
RA1 68Kx4 J3 TF01A
D
PA26 PA27 PA28 PA29 PA30 PA31 PA6 + C25 10uF +3V3 C26 100nF R20 0R
1 2 3 4 5 6 7 8 10 9
11 12 13
R22 0R nm
DGND
DGND
37 12
C27 100nF C28 100nF C29 1uF +3V3 DGND DGND
36 13
+3V3
RS 485
R23 10K MN4 ADM3485ARZ R24 0R nm +3V3
C
USART
+3V3 MN5 ADM3312EARU
PA21_485 PA21
RXD1 CTS1
JP31
0R nm 0R 0R 0R
1 2 3 4
RO RE DE DI
VCC GND
8 5
C30 100nF
JP10 Header2 J4
1 6 7
DGND
3
C31 4.7uF C32 100nF C33 100nF
VCC
C1+
6
C34 100nF
RTS1 TXD1
2 3
JP11 Header2 JP12 Header2 FGND R30 0R nm
PA21_232
1 21
DGND C36 100nF
V+ V-
C1C2+
20 2
C35 100nF JP28 Header2 nm J5 C37 100nF
A B
R29 120R
23 19 5 7 10 8 11 9 12
C2C3+
4 24 1 6 2 7 3 8 4 9 5
22 18 15 17 14 16 13
DGND
R38
0R
+3V3
ICE INTERFACE
J6 HE10 20PTS
10
DGND DGND
11
R39 100K
R40 100K
R41 100K
R42 100K
R43 100K
UART
MN6 MAX3232CSE +3V3
16
C39 100nF +3V3 +3V3 C40 100nF C41 100nF
VCC
C1+
1
C38 100nF
PB5 NRST
R44
0R
1 3 5 7 9 11 13 15 17 19
VTref Vsupply nTRST GND1 TDI GND2 TMS GND3 TCK GND4 RTCK GND5 TDO GND6 nSRST GND7 DBGRQ GND8 DBGACK GND9
2 4 6 8 10 12 14 16 18 20
DGND
2 6
V+ V-
C1C2+
3 4
C42 100nF J7
R45 100K
R46 100K
15
0R 0R
5 14 13 7 8
UTXD0 URXD0
PA10 PA9
R47 R48
11 12 10 9
1 6 2 7 3 8 4 9 5
10
DGND
11
TP5
TP6
DGND
A
REV
JH
DES.
08-Mar-11
DATE
XXX XX-XXX-XX
VER. REV. DATE SHEET
SAM4S-EK
FGND NAND Flash & Serial IF
SCALE
1/1
1
4 7
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
PA[0..31]
PC[0..31]
DGND
D
J8 FH26-39S-0.3SHW PC13 PC22 PC23 PC24 PC25 PC26 PC27 PC28 PC29 PC30 PC31 PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 LCD_DB17 LCD_DB16 LCD_DB15 LCD_DB14 LCD_DB13 LCD_DB12 LCD_DB11 LCD_DB10 LCD_DB9 LCD_DB8 LCD_DB7 LCD_DB6 LCD_DB5 LCD_DB4 LCD_DB3 LCD_DB2 LCD_DB1 LCD_DB0
JP13
Header2
R59
DGND
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
VDD DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 VDD RD WR RS CS RESET IM0 IM1 GND LED-A LEDK1 LEDK2 LEDK3 LEDK4 Y+ YX+ XNC GND
PC31
1K
PC30 DGND DGND PC29 R55 C51 22nF PC28 PIN 39 PC23 R57 C52 22nF FTM280C34D PIN 1 PC27 DGND DGND PC26 R60 C53 22nF 1K PC22 1K
C
1K
PINs on BOT
QTOUCH
LCD_DB0 LCD_DB4 LCD_DB2 LCD_DB3 LCD_DB1 LCD_DB8 LCD_DB6 LCD_DB7 LCD_DB5 LCD_DB9
R61
4.7K nm
LCD
DGND S1 QTouch Slider
1 2 3 4 1 2 3 4
R63
8 7 6 5 8 7 6 5
SR
PA1 R50 C46 22nF PA0 1K
4.7K nm
SL
B
DGND
NOT POPULATED
PA3 R52 C48 22nF PA2 1K
DGND +3V3 MN7 ADS7843E X_RIGHT Y_UP X_LEFT Y_DOWN TP8 TP9 R62 100K
SM
SR
+3V3 +3V3 R66 R67 R70 0R 0R 0R R71 1R L2 10uH-100mA +3V3 FB1 BN03K314S300R C57 4.7uF PA11 PA17 R69 0R PA16 +3V3 PC13 R65 100K R68 0R R64 47K MN8 AAT3155ITP-T1 PA5 R54 C50 22nF PA4 C55 1uF 1K
2 3 4 5
XP YP XM YM
16 14 12 15 13 11 9 1 10 6
10
C54 1uF
C1+
C2+
9 11 5
C1EN/SET IN
C2OUTCP D1 D2 D3 D4
6 8 3 2 1 12
LED_A LED_K1 LED_K2 LED_K3 LED_K4
TP7
7 8
R72 100K R73 100K
IN3 IN4
C58 100nF
C59 100nF
C60 100nF
4
C61 4.7uF R74 0R DGND
GND
DGND
A
LCD BACKLIGHT
AGND_TP
AGND_TP
DGND
A
REV
JH
DES.
08-Mar-11
DATE
XXX XX-XXX-XX
VER. REV. DATE SHEET
SAM4S-EK
TFT-LCD & QTouch
SCALE
1/1
1
5 7
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
AUDIO IN
AVDD R77 470R
D
C62 100pF J9 Power Jack 2.1mm 1 2 MN9 ZEN056V130A24LS 3 C64 100nF + C65 22uF MN10 BNX002-01
R75 R76
47K 47K
JP14
Header2
+5V
1 2
SV
CV
3 4 5 6
+ C66 22uF + C98 220uF-ELE-16V
D
R79 1K
R80 1K
AGND
IN1OUT1 1
MIC1 SVB6050
R83 0R
R84 1K C72 1nF R86 47K AGND AGND AVDD JP15 Header2 R87 47K
PB0
C63 22uF
R78 1K
C67 1uF
MN11 TS922
DGND
IN1+
R85 1K
AVDD
AGND
VCC33 +5V
C73 22uF
VCC
8
C74 100nF FB2 BN03K314S300R R91 0R
R88 470R
2 1
VIN SD
VOUT ADJ
4 5
GND1
7
AGND AGND R90 100K
GND2
6 5
3
AGND DGND
IN2+
C77 4.7uF
R93 100K
DGND
AGND
AGND
AUDIO OUT
+5V FB3 BN03K314S300R MN13 TPA0223DGQ VDD_AMP
1 2
CN1 BNC R94 0R JP16 Header2 R96 49.9R C78 10nF
JP29 VCC33
2
C79 1uF + C80 10uF C82 100nF
VDD
RO/MO+
PB13
C84
AGND
R98
LO/MORIN
10
AGND
C83
DGND
2 4 8
C86
R103 0.47uF
C85
MONO-IN
ST/MN
R101
100K
R102
VDD_AMP 100K
VCC33 JP18
AD5
2
PB1
VR1 10K VR
2
C89 10nF
Potentiometer
AGND AGND AGND
11
ADC
R106 0R
JP21 Header2 +5V MN14 MIC5219-3.3YMM 2 3 IN OUT C91 4.7uF VCC33 R109 49.9R
C90
2.2uF JP30
DAC1
2
PB14
AUDIO_OUTL
1 4
EN BYP
5 6 7 8
DAC
A
DGND
C93 470pF
DGND
A
REV
JH
DES.
08-Mar-11
DATE
XXX XX-XXX-XX
VER. REV. DATE SHEET
SAM4S-EK
Audio & Power supply
SCALE
1/1
1
6 7
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
PB[0..14] PA[0..31]
D
PC[0..31]
+5V
JP22
1 2
+3V3 3
+5V
JP23
1 2
+3V3 3
+5V
JP24
1 2
J12 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15
C
J13
J14
TWD1
2 4 6 8 10 12 14 16 18 20 22 24
PB8 PB9 PB10 PB11 PB12 PB13 PB14
+3V3
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40
PC16 PC17 PC18 PC19 PC20 PC21 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 +3V3 +3V3
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40
PA16 PA17 PA18 PA19 PA20 PA21 PA22 PA23 PA24 PA25 PA26 PA27 PA28 PA29 PA30 PA31 +3V3
1 3 5 7 9 11 13 15 17 19 21 23
TWCK1
PB5
R123 4.7K nm
+3V3
DGND
PIO B
DGND
C
DGND
PIO C
DGND
DGND
PIO A
DGND
8 9
5V
D-
D+
ID
7 6
PA19
R111 220R
BP1
1 2
BP2
3 4
FGND
RV2 V5.5MLA0603
R113 220R
D3
LED Green
1 2
BP3
3 4
PC21
R110 R112
PC20
R115
100K
1
Q1 IRLML2502 R117 220R
1 2
3 4
D4
LED Red
DGND
BUTTONS
PB10 PB11
R114 R116
27R 27R
LEDS
+3V3 +5V
USB
DGND J16 HE10 5x2 2 4 6 8 10
0R 0R
1 3 5 7 9
R120 R121
0R 0R
JP27 Header2
+3V3
C95 18pF
C97 2.2uF
ZIGBEE
HE10
DGND A
REV INIT EDIT MODIF.
JH
DES.
08-Mar-11
DATE
XXX XX-XXX-XX
VER. REV. DATE SHEET
SAM4S-EK
User IF & ZigBee
SCALE
1/1
1
7 7
This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
Section 6 Troubleshooting
6.1 Board Recovery
Closing JP3 and powering the board will assert ERASE and clear GPNVM bit 1, and thereby selects 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-EK UART port (J3) to a PC COM port through an RS232 crossover cable. You can then run the SAM-BA application from that PC to program the internal Flash of the MCU as well as the GPNVM bit 1.
6-1
11139AATARM29-Nov-11
Table 7-1.
Document 11139A Comments Initial version. Change Request Ref.
7-1
11139AATARM29-Nov-11
Headquarters
Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: (+1) (408) 441-0311 Fax: (+1) (408) 487-2600
International
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 Atmel Munich GmbH Business Campus Parkring 4 D-85748 Garching b. Munich GERMANY Tel: (+49) 89-31970-0 Fax: (+49) 89-3194621 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
Product Contact
Web Site www.atmel.com www.atmel.com/AT91SAM Literature Requests www.atmel.com/literature Technical Support AT91SAM Support Atmel technical support 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 ATMELS TERMS AND CONDITIONS OF SALE LOCATED ON ATMELS 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. Atmels products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.
2011 Atmel Corporation . All rights reserved. Atmel , logo and combinations thereof DataFlash , SAM-BA and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. ARM, Thumb and the ARMPowered logo and others are registered trademarks or trademarks ARM Ltd. Windows and others are registered trademarks or trademarks of Microsoft Corporation in the US and/or other countries. Other terms and product names may be trademarks of others.
11139AATARM29-Nov-11