SAM4SD32 device. User 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 specifications.
Page 5
– one USB cable – one serial RS232 cable A Welcome Letter Figure 2-1. Unpacked SAM4S-EK2 Unpack and inspect the kit carefully. Contact your local Atmel distributor, should you have issues con- cerning the contents of the kit. SAM4S-EK2 User Guide 11176A–ATARM–24-Sep-12...
Page 6
Kit Contents Electrostatic 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 han- dling the board. Avoid touching the components or any other metallic element of the board.
Sample Code and Technical Support After boot up, you can run some sample code or your own application on the development kit. You can download sample code and get technical support from the Atmel web site: http://www.atmel.com SAM4S-EK2 User Guide...
Section 4 Evaluation Kit Hardware Board Overview This section introduces the Atmel SAM4S-EK2 Evaluation Kit design. It introduces system-level con- cepts, such as power distribution, memory, and interface assignments. ® ® The SAM4S-EK2 board is based on the integration of an ARM...
2x32 bit PIO connection interfaces (PIOA, PIOC) and 1x16 bit PIO connection interface (PIOB) Function Blocks 4.3.1 Processor The SAM4S-EK2 is equipped with a SAM4SD32 device in LQFP100 package. 4.3.2 Memory The SAM4SD32 chip embeds: 2048 Kbytes of embedded Flash...
Evaluation Kit Hardware 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.
Power 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 incor- rect power supply connection.
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 Guide 11176A–ATARM–24-Sep-12...
Evaluation Kit Hardware 4.3.7.1 RS232 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 USART +3 V3...
Page 14
FB 1 LE D_K 1 +3 V3 BN03K 31 4S3 00R C5 6 C5 7 LE D_K 2 1u F LE D_K 3 4.7 uF LE D_K 4 DG ND DG ND LCD B AC KLIG HT SAM4S-EK2 User Guide 11176A–ATARM–24-Sep-12...
4.3.9 JTAG/ICE A standard 20-pin JTAG/ICE connector is implemented on the SAM4S-EK2 for the connection of a com- patible 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.
DGND 4.3.10 Audio 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).
Page 17
AG ND 4.3.10.2 Headphone Output The SAM4S-EK2 evaluation kit supports mono/stereo audio playback driven by a TPA0223 audio ampli- fier 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 2.5V voltage reference is based on a LM4040 (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 VCC33 SAM4SD32 ADVREF ADVREF 2.2K 2.2K 100nF 100nF LM4040-2.5 LM4040-2.5 DGND DGND SAM4S-EK2 User Guide 4-11 11176A–ATARM–24-Sep-12...
QTouch keys consist in a series of sensors formed by the association of a copper area and the capaci- tive 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 Guide 4-12 11176A–ATARM–24-Sep-12...
2 2n F u s e X 7R 4.3.14 User 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.
Red-led Red-led DGND 4.3.16 SD/MMC Card 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 +3 V3 SD CA RD R1 7...
4.3.18 PIO Expansion The SAM4S-EK2 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.
Evaluation Kit Hardware Configuration This section describes the PIO usage, the jumpers, the test points and the solder drops of a SAM4S-EK2 board. 4.4.1 PIO Usage Table 4-1. PIO Port A Pin Assignments and Signal Descriptions Peripheral Peripheral Peripheral System...
Evaluation Kit Hardware 4.4.2 Jumpers The SAM4S-EK2 board jumpers are essentially used for two main purposes: functional selection or cur- rent measurement. Details are given below. Table 4-4. Jumpers Setting Designation Label Default Setting Feature JTAG OPEN Close to select the JTAG boundary scan of the SAM4SD32 Analog reference voltage selection between 3.3V (close 1-2) and...
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-EK2. 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).
Page 28
Optional write protection on NAND Flash R24, R30 Differential impedance matching for RS485 cable JP28 Option for software test Optional ESD protection for LCD touch panel R61, R63, RA2, RA3 Optional databus termination for LCD controller R122, R123 Optional TWI SAM4S-EK2 User Guide 4-21 11176A–ATARM–24-Sep-12...
4.5.1 Power Supply Connector J9 The SAM4S-EK2 evaluation board can be powered from a 5V DC power supply connected to the exter- nal power supply jack J9. The positive pole is the center pin. Figure 4-25. Power Supply Connector J9 Table 4-9.
5V power Data - Data + Ground Shield Shield 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-29. LCD Connector J8 SAM4S-EK2 User Guide 4-23 11176A–ATARM–24-Sep-12...
Page 31
LCD_DB05 (NC) LCD_DB04 (NC) LCD_DB03 (NC) LCD_DB02 (NC) LCD_DB01 (NC) LCD_DB00 (NC) 3.3V RD (PC11) WR (PC8) RS (PC19) CS (PC15) RESET LED-A LED-K1 LED-K2 LED-K3 LED-K4 Y UP Y DOWN X RIGHT X LEFT SAM4S-EK2 User Guide 4-24 11176A–ATARM–24-Sep-12...
Connect to RTCK if available, otherwise to GND. Common ground. TDO JTAG TEST DATA OUTPUT — JTAG data output from target CPU. Typically connected to TDO on target CPU. Serial data output from the target Common ground. SAM4S-EK2 User Guide 4-25 11176A–ATARM–24-Sep-12...
Analog input PB1 for CN1 and analog output PB13 for CN2 respectively 4.5.9 RS485 Connector J14 Figure 4-33. RS485 Connector J14 Table 4-17. RS485 J14 Signal Descriptions Mnemonic A - non-inverted RS485 signal A Frame ground B - non-inverted RS485 signal B SAM4S-EK2 User Guide 4-27 11176A–ATARM–24-Sep-12...
Section 5 Schematics Schematics This section contains the following schematics: Block Diagram Board Configuration Microcontroller NAND Flash & Serial IF TFT-LCD & QTouch Audio & Power Supply USB IF & ZigBee SAM4S-EK2 User Guide 11176A–ATARM–24-Sep-12...
Page 40
MODIF. MODIF. MODIF. DES. DES. DES. DATE DATE DATE VER. VER. VER. DATE DATE DATE SAM4S-EK2 SAM4S-EK2 SAM4S-EK2 SCALE SCALE SCALE REV. REV. REV. SHEET SHEET SHEET Block Diagram Block Diagram Block Diagram This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
Page 41
MODIF. MODIF. MODIF. DES. DES. DES. DATE DATE DATE VER. VER. VER. DATE DATE DATE SAM4S-EK2 SAM4S-EK2 SAM4S-EK2 SCALE SCALE SCALE REV. REV. REV. SHEET SHEET SHEET Board Configuration Board Configuration Board Configuration This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
Page 42
DGND MODIF. MODIF. MODIF. DES. DES. DES. DATE DATE DATE VER. VER. VER. DATE DATE DATE DGND SAM4S-EK2 SAM4S-EK2 SAM4S-EK2 SCALE SCALE SCALE REV. REV. REV. SHEET SHEET SHEET VDDCORE VDDIO Microcontroller Microcontroller Microcontroller This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
Page 43
MODIF. MODIF. MODIF. DES. DES. DES. DATE DATE DATE VER. VER. VER. DATE DATE DATE SAM4S-EK2 SAM4S-EK2 SAM4S-EK2 SCALE SCALE SCALE REV. REV. REV. SHEET SHEET SHEET FGND NAND Flash & Serial IF NAND Flash & Serial IF NAND Flash & Serial IF This agreement is our property.
Page 44
MODIF. MODIF. MODIF. DES. DES. DES. DATE DATE DATE VER. VER. VER. DATE DATE DATE SAM4S-EK2 SAM4S-EK2 SAM4S-EK2 SCALE SCALE SCALE REV. REV. REV. SHEET SHEET SHEET TFT-LCD & QTouch TFT-LCD & QTouch TFT-LCD & QTouch This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
Page 45
MODIF. MODIF. MODIF. DES. DES. DES. DATE DATE DATE VER. VER. VER. DATE DATE DATE SAM4S-EK2 SAM4S-EK2 SAM4S-EK2 SCALE SCALE SCALE REV. REV. REV. SHEET SHEET SHEET Audio & Power supply Audio & Power supply Audio & Power supply This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
Page 46
MODIF. MODIF. DES. DES. DES. DATE DATE DATE VER. VER. VER. DATE DATE DATE HE10 SAM4S-EK2 SAM4S-EK2 SAM4S-EK2 SCALE SCALE SCALE REV. REV. REV. SHEET SHEET SHEET User IF & ZigBee User IF & ZigBee User IF & ZigBee This agreement is our property. Reproduction and publication without our written authorization shall expose offender to legal proceedings.
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 cross- over cable.
Section 7 Revision History Revision History Table 7-1. Change Request Document Comments Ref. 11176A Initial version. SAM4S-EK2 User Guide 11176A–ATARM–24-Sep-12...
Page 49
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...
Need help?
Do you have a question about the SAM4S-EK2 and is the answer not in the manual?
Questions and answers