Atmel SAM4E Xplained Pro User guide

USER GUIDE
Atmel SAM4E Xplained Pro

Preface

The Atmel® SAM4E Xplained Pro evaluation kit is a hardware platform to evaluate the ATSAM4E16E microcontroller.
Supported by the Atmel Studio integrated development platform, the kit provides easy access to the features of the Atmel ATSAM4E16E and explains how to integrate the device in a custom design.
The Xplained Pro MCU series evaluation kits include an on-board Embedded Debugger, and no external tools are necessary to program or debug the ATSAM4E16E.
The Xplained Pro extension series evaluation kits offers additional peripherals to extend the features of the board and ease the development of custom designs.
42216A-MCU-01/2014

Table of Contents

Preface .......................................................................................... 1
1. Introduction .............................................................................. 3
1.1. Features .... .... ....... .... .... ........... .... .... ........... .... .... ....... .... .... .. 3
1.2. Kit Overview ......... .... .... ........... .... .... ....... .... .... ........... .... .... ... 3
2. Getting Started ........................................................................ 5
2.1. Quick-start ........... .... .... ........... .... .... ....... .... .... ........... .... .... ... 5
2.2. Connecting the Kit ......... .... .... ........... .... .... ....... .... .... ........... ... 5
2.3. Design Documentation and Related Links ... ........... .... .... ........... . 5
3. Xplained Pro ............................................................................ 6
3.1. Embedded Debugger ....... .... .... ........... .... .... ........... .... .... ....... . 6
3.2. Hardware Identification System . .... .... ........... .... .... ....... .... .... ..... 6
3.3. Power Supply ..... .... .... ....... .... .... ........... .... .... ........... .... .... ..... 7
3.3.1. Measuring SAM4E Power Consumption .. .... ........... .... ... 7
3.4. Standard Headers and Connectors ... .... .... ........... .... .... ........... .. 7
3.4.1. Xplained Pro Standard Extension Header ... .... .... ....... .... 7
3.4.2. Xplained Pro LCD Connector .... ........... .... .... ....... .... .... 8
3.4.3. Xplained Pro Power Header .... ....... .... .... ........... .... .... 10
4. Hardware User Guide ........................................................... 11
4.1. Connectors ....... .... .... ........... .... .... ........... .... .... ....... .... .... ..... 11
4.1.1. I/O Extension Headers ...... .... .... ........... .... .... ....... .... . 11
4.1.2. LCD Extension Connector . .... .... ....... .... .... ........... .... .. 12
4.1.3. Chip Erase Header .... ........... .... .... ....... .... .... ........... . 14
4.1.4. Other Headers .... .... .... ........... .... .... ....... .... .... .......... 14
4.2. Peripherals ....... .... .... ........... .... .... ........... .... .... ....... .... .... ..... 14
4.2.1. SRAM .... .... ....... .... .... ........... .... .... ........... .... .... ...... 14
4.2.2. NAND Flash . .... ........... .... .... ....... .... .... ........... .... .... . 15
4.2.3. Ethernet ........... .... .... ........... .... .... ....... .... .... ........... . 16
4.2.4. SD Card Connector ........... .... .... ....... .... .... ........... .... 17
4.2.5. CAN .... .... .... ....... .... .... ........... .... .... ........... .... .... ..... 17
4.2.6. USB .... .... .... ........... .... .... ....... .... .... ........... .... .... ..... 17
4.2.7. Crystals .... ....... .... .... ........... .... .... ........... .... .... ....... . 17
4.2.8. Mechanical Buttons ... .... ....... .... .... ........... .... .... ......... 18
4.2.9. LED .... .... .... ........... .... .... ....... .... .... ........... .... .... ..... 18
4.3. Embedded Debugger Implementation ...... .... .... ........... .... .... ..... 18
4.3.1. Serial Wire Debug .... .... .... ....... .... .... ........... .... .... ..... 18
4.3.2. Virtual COM Port .... ........... .... .... ....... .... .... ........... .... 18
4.3.3. Atmel Data Gateway Interface .......... .... .... ........... .... .. 19
5. Kit Specific Data ................................................................... 20
6. Hardware Revision History and Known Issues ..................... 21
6.1. Identifying Product ID and Revision .. ........... .... .... ........... .... .... . 21
6.2. Revision 3 .. ........... .... .... ........... .... .... ....... .... .... ........... .... .... 21
7. Document Revision History ................................................... 22
8. Evaluation Board/Kit Important Notice .................................. 23
Atmel SAM4E Xplained Pro [USER GUIDE]
42216A-MCU-01/2014
2

1. Introduction

1.1 Features

Atmel ATSAM4E16E microcontroller
Embedded debugger (EDBG)
USB interface
Programming and debugging (target) through Serial Wire Debug (SWD)
Virtual COM-port interface to target via UART
Atmel Data Gateway Interface (DGI) to target via USART or TWI
Four GPIOs connected to target for code instrumentation
Digital I/O
Two mechanical buttons (user, reset and force wakeup button)
One user LED
Three extension headers
Xplained Pro LCD extension connector
One CAN-bus
10/100-T Ethernet
2Gb 8-bit NAND Flash
Dual 512K 8-bit SRAM
Target USB, device mode
Three possible power sources
External power
Embedded debugger USB
Target USB
12MHz crystal
32kHz crystal

1.2 Kit Overview

The Atmel SAM4E Xplained Pro evaluation kit is a hardware platform to evaluate the Atmel ATSAM4E16E.
The kit offers a set of features that enables the ATSAM4E16E user to get started using the ATSAM4E16E peripherals right away and to get an understanding of how to integrate the device in their own design.
Atmel SAM4E Xplained Pro [USER GUIDE]
42216A-MCU-01/2014
3
Figure 1-1. SAM4E Xplained Pro Evaluation Kit Overview
Atmel SAM4E Xplained Pro [USER GUIDE]
42216A-MCU-01/2014
4

2. Getting Started

2.1 Quick-start

3 Steps to start exploring the Atmel Xplained Pro Platform
Download and install Atmel Studio
Launch Atmel Studio
Connect a Micro-B cable to the DEBUG USB port

2.2 Connecting the Kit

When connecting Atmel SAM4E Xplained Pro to your computer for the first time, the operating system will do a
driver software installation. The driver file supports both 32-bit and 64-bit versions of Microsoft® Windows® XP and Windows 7.
Once connected the green power LED will be lit and Atmel Studio will autodetect which Xplained Pro evaluation- and extension kit(s) that's connected. You'll be presented with relevant information like datasheets and kit documentation. You also have the option to launch Atmel Software Framework (ASF) example applications. The target device is programmed and debugged by the on-board Embedded Debugger and no external programmer or debugger tool is needed. Refer to the Atmel Studio user guide2 for information regarding how to compile and program the kit.
1

2.3 Design Documentation and Related Links

The following list contains links to the most relevant documents and software for SAM4E Xplained Pro.
1. Xplained Pro products 3 - Atmel Xplained Pro is a series of small-sized and easy-to-use evaluation kits
for 8- and 32-bit Atmel microcontrollers. It consists of a series of low cost MCU boards for evaluation and demonstration of features and capabilities of different MCU families.
2. SAM4E Xplained Pro User Guide 4 - PDF version of this User Guide.
3. SAM4E Xplained Pro Design Documentation 5 - Package containing schematics, BOM, assembly
drawings, 3D plots, layer plots etc.
4. EDBG User Guide 6 - User guide containing more information about the onboard Embedded Debugger.
5. Atmel Studio 7 - Free Atmel IDE for development of C/C++ and assembler code for Atmel
microcontrollers.
6.
IAR Embedded Workbench® 8 for ARM®. This is a commercial C/C++ compiler that is available for ARM.
There is a 30 day evaluation version as well as a code size limited kick-start version available from their website. The code size limit is 16KB for devices with M0, M0+ and M1 cores and 32KB for devices with other cores.
7. Atmel sample store 9 - Atmel sample store where you can order samples of devices.
1
http://www.atmel.com/atmelstudio
2
http://www.atmel.com/atmelstudio
3
http://www.atmel.com/XplainedPro
4
http://www.atmel.com/Images/Atmel-42216-SAM4E-Xplained-Pro_User-Guide.pdf
5
http://www.atmel.com/Images/Atmel-42216-SAM4E-Xplained-Pro_User-Guide.zip
6
http://www.atmel.com/Images/Atmel-42096-Microcontrollers-Embedded-Debugger_User-Guide.pdf
7
http://www.atmel.com/atmelstudio
8
http://www.iar.com/en/Products/IAR-Embedded-Workbench/ARM/
9
http://www.atmel.com/system/samplesstore
Atmel SAM4E Xplained Pro [USER GUIDE]
42216A-MCU-01/2014
5

3. Xplained Pro

Xplained Pro is an evaluation platform that provides the full Atmel microcontroller experience. The platform consists of a series of Microcontroller (MCU) boards and extension boards that are integrated with Atmel Studio, have Atmel Software Framework (ASF) drivers and demo code, support data streaming and more. Xplained Pro MCU boards support a wide range of Xplained Pro extension boards that are connected through a set of standardized headers and connectors. Each extension board has an identification (ID) chip to uniquely identify which boards are mounted on a Xplained Pro MCU board. This information is used to present relevant user guides, application notes, datasheets and example code through Atmel Studio. Available Xplained Pro MCU and extension boards can be purchased in the Atmel Web Store1.

3.1 Embedded Debugger

The SAM4E Xplained Pro contains the Atmel Embedded Debugger (EDBG) for on-board debugging. The EDBG is a composite USB device of three interfaces; a debugger, Virtual COM Port and Data Gateway Interface (DGI).
In conjunction with Atmel Studio, the EDBG debugger interface can program and debug the ATSAM4E16E. On the SAM4E Xplained Pro, the SWD interface is connected between the EDBG and the ATSAM4E16E.
The Virtual COM Port is connected to a UART port on the ATSAM4E16E (see section “Embedded Debugger
Implementation” on page 18 for pinout), and provides an easy way to communicate with the target
application through simple terminal software. It offers variable baud rate, parity and stop bit settings. Note that the settings on the target device UART must match the settings given in the terminal software.
The DGI consists of several physical data interfaces for communication with the host computer. See section
“Embedded Debugger Implementation” on page 18 for available interfaces and pinout. Communication
over the interfaces are bidirectional. It can be used to send events and values from the ATSAM4E16E, or as a generic printf-style data channel. Traffic over the interfaces can be timestamped on the EDBG for more accurate tracing of events. Note that timestamping imposes an overhead that reduces maximal throughput. The DGI uses a proprietary protocol, and is thus only compatible with Atmel Studio.
The EDBG controls two LEDs on SAM4E Xplained Pro, a power LED and a status LED. Table 3-1, “EDBG LED
Control” on page 6 shows how the LEDs are controlled in different operation modes.
Table 3-1. EDBG LED Control
Operation mode Power LED Status LED
Normal operation Power LED is lit when power is
applied to the board.
Bootloader mode (idle) The power LED and the status LED blinks simultaneously.
Bootloader mode (firmware
The power LED and the status LED blinks in an alternating pattern.
upgrade)
For further documentation on the EDBG, see the EDBG User Guide2.

3.2 Hardware Identification System

All Xplained Pro compatible extension boards have an Atmel ATSHA204 CryptoAuthentication™ chip mounted. This chip contains information that identifies the extension with its name and some extra data. When an Xplained Pro extension board is connected to an Xplained Pro MCU board the information is read and sent to Atmel Studio. The Atmel Kits extension, installed with Atmel Studio, will give relevant information, code examples and links to relevant documents. Table 3-2, “Xplained Pro ID Chip Content” on page 6 shows the data fields stored in the ID chip with example content.
Table 3-2. Xplained Pro ID Chip Content
Data Field Data Type Example Content
Manufacturer ASCII string Atmel’\0’
Product Name ASCII string Segment LCD1 Xplained Pro’\0’
Product Revision ASCII string 02’\0’
Product Serial Number ASCII string 1774020200000010’\0’
Activity indicator, LED flashes every time something happens on the EDBG.
1
http://store.atmel.com/CBC.aspx?q=c:100113
2
http://www.atmel.com/Images/Atmel-42096-Microcontrollers-Embedded-Debugger_User-Guide.pdf
Atmel SAM4E Xplained Pro [USER GUIDE]
42216A-MCU-01/2014
6
Data Field Data Type Example Content
Minimum Voltage [mV] uint16_t 3000
Maximum Voltage [mV] uint16_t 3600
Maximum Current [mA] uint16_t 30

3.3 Power Supply

The SAM4E Xplained Pro kit can be powered either by USB or by an external power source through the 4­pin power header, marked PWR. This connector is described in “Xplained Pro Power Header” on page 10. The available power sources and specifications are listed in Table 3-3, “Power Sources for SAM4E Xplained
Pro” on page 7.
Table 3-3. Power Sources for SAM4E Xplained Pro
Power input Voltage requirements Current requirements Connector marking
External power 5V ± 2 % (± 100mV) for
USB host operation.
4.3V to 5.5V if USB host operation is not required
Embedded debugger USB
4.4V to 5.25V (according to USB spec)
Target USB 4.4V to 5.25V
(according to USB spec)
Recommended minimum is 1A to be able to provide enough current for connected USB devices and the board itself. Recommended maximum is 2A due to the input protection maximum current specification.
500mA (according to USB spec)
500mA (according to USB spec)
PWR
DEBUG USB
TARGET USB
The kit will automatically detect which power sources are available and choose which one to use according to the following priority:
1. External power
2. Embedded debugger USB
3. Target USB
Note
External power is required when the 500mA through the USB connector is not enough to power a connected USB device in a USB host application.

3.3.1 Measuring SAM4E Power Consumption

As part of an evaluation of the SAM4E it can be of interest to measure its power consumption. Because the device has a separate power plane (VCC_MCU_P3V3) on this board it is possible to measure the current consumption by measuring the current that is flowing into this plane. The VCC_MCU_P3V3 plane is connected via a jumper to the main power plane (VCC_TARGET_P3V3) and by replacing the jumper with an ammeter it is possible to determine the current consumption. To locate the current measurement header, refer to Figure 1-1,
“SAM4E Xplained Pro Evaluation Kit Overview” on page 4.
Warning
Do not power the board without having the jumper or an ampere meter mounted. This can cause the SAM4E to be powered through its I/O pins and cause undefined operation of the device.

3.4 Standard Headers and Connectors

3.4.1 Xplained Pro Standard Extension Header

All Xplained Pro kits have one or more dual row, 20-pin, 100mil extension headers. Xplained Pro MCU boards have male headers while Xplained Pro extensions have their female counterparts. Note that all pins are not always connected. However, all the connected pins follow the defined pin-out described in Table 3-4, “Xplained
Atmel SAM4E Xplained Pro [USER GUIDE]
42216A-MCU-01/2014
7
Pro Extension Header” on page 8. The extension headers can be used to connect a wide variety of
Xplained Pro extensions to Xplained Pro MCU boards and to access the pins of the target MCU on Xplained Pro MCU board directly.
Table 3-4. Xplained Pro Extension Header
Pin number Name Description
1 ID Communication line to the ID chip on extension board.
2 GND Ground.
3 ADC(+) Analog to digital converter , alternatively positive part of
differential ADC.
4 ADC(-) Analog to digital converter , alternatively negative part of
differential ADC.
5 GPIO1 General purpose I/O.
6 GPIO2 General purpose I/O.
7 PWM(+) Pulse width modulation , alternatively positive part of
differential PWM.
8 PWM(-) Pulse width modulation , alternatively positive part of
differential PWM.
9 IRQ/GPIO Interrupt request line and/or general purpose I/O.
10 SPI_SS_B/GPIO Slave select for SPI and/or general purpose I/O.
11 TWI_SDA Data line for two-wire interface. Always implemented, bus
type.
12 TWI_SCL Clock line for two-wire interface. Always implemented, bus
type.
13 USART_RX Receiver line of Universal Synchronous and Asynchronous
serial Receiver and Transmitter.
14 USART_TX Transmitter line of Universal Synchronous and
Asynchronous serial Receiver and Transmitter.
15 SPI_SS_A Slave select for SPI. Should be unique if possible.
16 SPI_MOSI Master out slave in line of Serial peripheral interface. Always
implemented, bus type.
17 SPI_MISO Master in slave out line of Serial peripheral interface. Always
implemented, bus type.
18 SPI_SCK Clock for Serial peripheral interface. Always implemented,
bus type.
19 GND Ground.
20 VCC Power for extension board.

3.4.2 Xplained Pro LCD Connector

The LCD connector provides the ability to connect to display extensions that have a parallel interface. The connector implements signals for a MCU parallel bus interface and a LCD controller interface as well as signals for a touchcontroller. The connector pin-out definition is shown in Table 3-5, “Xplained Pro LCD
Connector” on page 8. Note that usually only one display interface is implemented, either LCD controller or
the MCU bus interface.
A FPC/FFC connector with 50 pins and 0.5mm pitch is used for the LCD connector. The connector (XF2M-5015-1A) from Omron is used on several designs and can be used as a reference.
Table 3-5. Xplained Pro LCD Connector
Pin number Name RGB interface
1 ID Communication line to ID chip on extension board.
2 GND Ground
3 D0 Data line
MCU interface
description
description
Atmel SAM4E Xplained Pro [USER GUIDE]
42216A-MCU-01/2014
8
Loading...
+ 16 hidden pages