Advertisement

Quick Links

SAM4S-EK Development Board
....................................................................................................................
User Guide
11139A–ATARM–29-Nov-11

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Atmel SAM4S-EK

  • Page 1 SAM4S-EK Development Board ........................User Guide 11139A–ATARM–29-Nov-11...
  • Page 2 SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 3: Table Of Contents

    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 SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 4 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 Board Recovery ......................... 6-1 Section 7 Revision History......................7-1 Revision History ......................... 7-1 SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 5: Introduction

    SAM4S16 device. 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.
  • Page 6: Kit Contents

    – one serial RS232 cable A Welcome Letter Figure 2-1. Unpacked SAM4S-EK Unpack and inspect the kit carefully. Contact your local Atmel distributor, should you have issues con- cerning the contents of the kit. SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 7: Electrostatic Warning

    Kit Contents 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 han- dling the board. Avoid touching the components or any other metallic element of the board.
  • Page 8: Power Up

    A t m e l w e b s i t e http://www.atmel.com/dyn/products/tools.asp?category_id=163&family_id=605&subfamily_id=2404 Figure 3-1. Atmel Website for AT91SAM Products SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 9: Evaluation Kit Hardware

    Section 4 Evaluation Kit Hardware Board Overview 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...
  • Page 10: Features List

    2x32 bit PIO connection interfaces (PIOA, PIOC) and 1x16 bit PIO connection interface (PIOB) Function Blocks 4.3.1 Processor The SAM4S-EK is equipped with a SAM4S16 device in LQFP100 package. 4.3.2 Memory The SAM4S16 chip embeds: 1024 Kbytes of embedded Flash...
  • Page 11: Clock Circuitry

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

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

    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 Guide 11139A–ATARM–29-Nov-11...
  • Page 14: Rs232

    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 USART PA21_485 +3V3 ADM3312EARU ADM3312EARU...
  • Page 15: Backlight Control

    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 AAT3155ITP-T1 AAT3155ITP-T1 PC13 EN/SET LED_A OUTCP +3V3 BN03K314S300R BN03K314S300R LED_K1 LED_K2 4.7uF 4.7uF LED_K3 LED_K4 DGND DGND LCD BACKLIGHT SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 16: Touch Screen Interface

    4.3.14 JTAG/ICE A standard 20-pin JTAG/ICE connector is implemented on the SAM4S-EK 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 17: Audio Interface

    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).
  • Page 18 AGND 4.3.16.1 Headphone Output The SAM4S-EK 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 19: Usb Device

    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 SAM4S ADVREF ADVREF 2.2K 2.2K 100nF 100nF LM4040-2.5 LM4040-2.5 DGND DGND SAM4S-EK Development Board User Guide 4-11 11139A–ATARM–29-Nov-11...
  • Page 20: 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.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 SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 21: User Buttons

    22nF use X7R 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.
  • Page 22: Sd/Mmc Card

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

    PC14 PA14 PA30 PC15 PA15 PA31 +3V3 +3V3 +3V3 +3V3 DGND DGND DGND DGND Note: All PIO lines are available on these expansion connectors, except those that are used for the QTouch elements. SAM4S-EK Development Board User Guide 4-15 11139A–ATARM–29-Nov-11...
  • Page 24: Configuration

    Evaluation Kit Hardware 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 Table 4-1. PIO Port A Pin Assignments and Signal Descriptions Peripheral Peripheral Peripheral System...
  • Page 25 JTAG test mode select TCK/SWCLK JTAG clock XOUT CLK12MHz CLK12MHz PB10 USB DM PB11 USB DP PB12 PWML1 ERASE Flash erase selector PB13 PWML2 PCK0 DAC0 Audio Output R PB14 NPCS1 PWMH3 DAC1 Audio Output L SAM4S-EK Development Board User Guide 4-17 11139A–ATARM–29-Nov-11...
  • Page 26 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 4-18 SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 27: Jumpers

    Evaluation Kit Hardware 4.4.2 Jumpers The SAM4S-EK 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 SAM4S Analog reference voltage selection between 3.3V (close 1-2) and...
  • Page 28: 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-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).
  • Page 29 R9, R10 Isolation on 32 KHz clock source and GPIO expansion Optional write protection NAND Flash Optional pull-up for open drain output or equivalent device R24, R30 Differential impedance matching for RS485 cable SAM4S-EK Development Board User Guide 4-21 11139A–ATARM–29-Nov-11...
  • Page 30: Connectors

    Connectors 4.5.1 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. Figure 4-25. Power Supply Connector J9 Table 4-10. Power Supply Connector J9 Signal Descriptions...
  • Page 31: Uart Connector J7

    GROUND 4.5.4 USB Device Connector J15 Figure 4-27. Micro-B USB Connector J15 Table 4-13. Micro-B USB Connector J15 Signal Descriptions Mnemonic Signal Description Vbus 5v power Data - Data + Ground Shield Shield SAM4S-EK Development Board User Guide 4-23 11139A–ATARM–29-Nov-11...
  • Page 32: Tft Lcd Connector J8

    LCD_DB05 (NC) LCD_DB04 (NC) LCD_DB03 (NC) LCD_DB02 (NC) LCD_DB01 (NC) LCD_DB00 (NC) 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 4-24 SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 33: 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 input from the target Common ground SAM4S-EK Development Board User Guide 4-25 11139A–ATARM–29-Nov-11...
  • Page 34: 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-30. SD/MMC Connector J3 Table 4-16. SD/MMC Connector J3 Signal Descriptions Mnemonic Mnemonic RSV/DAT3 DAT0 DAT1 DAT2 Card Detect 4-26 SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 35: Analog Connector Cn1 & Cn2

    Analog input PB1 for CN1 and analog output PB13 for CN2 respectively 4.5.9 RS485 Connector J14 Figure 4-32. RS485 Connector J14 Table 4-18. RS485 J14 Signal Descriptions Mnemonic A - non-inverted RS485 signal A Frame ground B - non-inverted RS485 signal B SAM4S-EK Development Board User Guide 4-27 11139A–ATARM–29-Nov-11...
  • Page 36: Headphone Connector J11

    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 4-28 SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 37: Pio Expansion Port C Connector J12

    PIO Expansion Port C Connector J12 Figure 4-35. PIO Expansion Connector J12 Table 4-21. Connector J12 Signal Descriptions Mnemonic Mnemonic +5V or +3v3 +5V or +3v3 PC16 PC17 PC18 PC19 PC20 PC21 PC10 PC11 PC12 PC13 PC14 PC15 SAM4S-EK Development Board User Guide 4-29 11139A–ATARM–29-Nov-11...
  • Page 38: Pio Expansion Port A Connector J13

    Table 4-22. Connector J13 Signal Descriptions Mnemonic Mnemonic +5V or +3v3 +5V or +3v3 PA16 PA17 PA18 PA19 PA20 PA21 PA22 PA23 PA24 PA25 PA10 PA26 PA11 PA27 PA12 PA28 PA13 PA29 PA14 PA30 PA15 PA31 4-30 SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 39: Schematics

    Section 5 Schematics 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 SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • Page 40 MODIF. MODIF. MODIF. DES. DES. DES. DATE DATE DATE VER. VER. VER. DATE DATE DATE SAM4S-EK SAM4S-EK SAM4S-EK 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-EK SAM4S-EK SAM4S-EK 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-EK SAM4S-EK SAM4S-EK 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-EK SAM4S-EK SAM4S-EK 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-EK SAM4S-EK SAM4S-EK 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-EK SAM4S-EK SAM4S-EK 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-EK SAM4S-EK SAM4S-EK 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 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 cross- over cable.
  • Page 48: Revision History

    Section 7 Revision History Revision History Table 7-1. Change Request Document Comments Ref. 11139A Initial version. SAM4S-EK Development Board User Guide 11139A–ATARM–29-Nov-11...
  • 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-EK...

Table of Contents