Advertisement

Quick Links

SAM4S-EK2
....................................................................................................................
User Guide
11176A–ATARM–24-Sep-12

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SAM4S-EK2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Atmel SAM4S-EK2

  • Page 1 SAM4S-EK2 ........................User Guide 11176A–ATARM–24-Sep-12...
  • Page 2: Table Of Contents

    4.3.11 USB Device ....................... 4-11 4.3.12 Analog Interface ....................4-11 4.3.13 QTouch Elements ....................4-12 4.3.14 User Buttons ...................... 4-13 4.3.15 LEDs ........................4-14 4.3.16 SD/MMC Card ....................4-14 4.3.17 ZigBEE....................... 4-14 4.3.18 PIO Expansion ....................4-15 SAM4S-EK2 User Guide 11176A–ATARM–24-Sep-12...
  • Page 3 4.5.13 PIO Expansion Port A Connector J13 .............. 4-30 4.5.14 PIO Expansion Port B Connector J14 ............... 4-31 Section 5 Schematics .........................5-1 Schematics......................... 5-1 Section 6 Troubleshooting ......................6-1 Self-Test..........................6-1 Board Recovery ......................... 6-1 Section 7 Revision History......................7-1 Revision History ......................... 7-1 SAM4S-EK2 User Guide 11176A–ATARM–24-Sep-12...
  • Page 4: Introduction

    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.
  • Page 7: Power Up

    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...
  • Page 8: Evaluation Kit Hardware

    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...
  • Page 9: Features List

    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...
  • Page 10: Clock Circuitry

    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.
  • Page 11: Reset Circuitry

    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.
  • Page 12: Uart

    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...
  • Page 13: Display Interface

    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...
  • Page 15: Jtag/Ice

    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.
  • Page 16: Audio Interface

    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.
  • Page 18: Usb Device

    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...
  • Page 19: Qtouch Elements

    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...
  • Page 20: User Buttons

    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.
  • Page 21: Leds

    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...
  • Page 22: Pio Expansion

    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.
  • Page 23: Configuration

    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...
  • Page 24 EBI D2 PWML3 EBI D3 NPCS1 EBI D4 EBI D5 EBI D6 EBI D7 NWR0/NWE TFT LCD write enable NANDOE NAND Flash output enable PC10 NANDWE NAND Flash write enable PC11 TFT LCD read enable SAM4S-EK2 User Guide 4-17 11176A–ATARM–24-Sep-12...
  • Page 25 QTouch down button SNS PC27 TIOB4 QTouch down button SNSK PC28 TCLK4 AD13 QTouch left button SNS PC29 TIOA5 AD14 QTouch left button SNSK PC30 TIOB5 QTouch right button SNS PC31 TCLK5 QTouch right button SNSK SAM4S-EK2 User Guide 4-18 11176A–ATARM–24-Sep-12...
  • Page 26: Jumpers

    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...
  • Page 27: Test Points

    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...
  • Page 29: Connectors

    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.
  • Page 30: Uart Connector J7

    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...
  • Page 32: Jtag Debugging Connector J6

    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...
  • Page 33: Sd/Mmc - Mci Connector J3

    This pin is not connected in SAM-ICE. Common ground. 4.5.7 SD/MMC - MCI Connector J3 Figure 4-31. SD/MMC Connector J3 Table 4-15. SD/MMC Connector J3 Signal Descriptions Mnemonic Mnemonic RSV/DAT3 DAT0 DAT1 DAT2 Card Detect SAM4S-EK2 User Guide 4-26 11176A–ATARM–24-Sep-12...
  • Page 34: Analog Connector Cn1 & Cn2

    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...
  • Page 35: Headphone Connector J11

    TST: test mode activation CLKM: RF chip clock output Interrupt SLP_TR SLP_TR Request SPI chip /SEL MOSI SPI MOSI select SPI MISO MISO SCLK SPI CLK Power Voltage range: 1.8V to 5.5V, typically Supply regulated to 3.3V SAM4S-EK2 User Guide 4-28 11176A–ATARM–24-Sep-12...
  • Page 36: Pio Expansion Port C Connector J12

    PIO Expansion Port C Connector J12 Figure 4-36. PIO Expansion Connector J12 Table 4-20. Connector J12 Signal Descriptions Mnemonic Mnemonic +5V or +3.3V +5V or +3.3V PC16 PC17 PC18 PC19 PC20 PC21 PC10 PC11 PC12 PC13 PC14 PC15 3.3V 3.3V SAM4S-EK2 User Guide 4-29 11176A–ATARM–24-Sep-12...
  • Page 37: Pio Expansion Port A Connector J13

    Table 4-21. Connector J13 Signal Descriptions Mnemonic Mnemonic +5V or +3.3V +5V or +3.3V PA16 PA17 PA18 PA19 PA20 PA21 PA22 PA23 PA24 PA25 PA10 PA26 PA11 PA27 PA12 PA28 PA13 PA29 PA14 PA30 PA15 PA31 3.3V 3.3V SAM4S-EK2 User Guide 4-30 11176A–ATARM–24-Sep-12...
  • Page 38: Pio Expansion Port B Connector J14

    Evaluation Kit Hardware 4.5.14 PIO Expansion Port B Connector J14 Figure 4-38. PIO Expansion Connector J14 Table 4-22. Connector J14 Signal Descriptions Mnemonic Mnemonic +5V or +3.3V +5V or +3.3V PB10 PB11 PB12 PB13 PB14 3.3V 3.3V SAM4S-EK2 User Guide 4-31 11176A–ATARM–24-Sep-12...
  • Page 39: Schematics

    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.
  • Page 47: Troubleshooting

    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.
  • Page 48: Revision History

    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...
  • Page 50 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Atmel ATSAM4S-EK2...

Table of Contents