Power Supplies.............................................................................................................................................14
USB Overview........................... ... .................................................... ............................................................. 15
USB to JTAG/SWD............. ... ... ... .... ... ... .................................................... ................................................... 15
Virtual COM Port........................................................................................................................................... 15
Serial Wire Out..............................................................................................................................................15
Organic LED Display ........................................................................................................................................ 15
Control Interface ...........................................................................................................................................16
Power Supply................................................................................................................................................ 16
Further Reference.........................................................................................................................................16
Other Peripherals............. ... .................................................... ..........................................................................16
Interfacing to the EVB....................................................................................................................................... 17
Using the In-Circuit Debugger Interface ...........................................................................................................17
Chapter 3: CAN Device Board Hardware Description................................................................................. 19
Power Supply................................................................................................................................................ 19
ARM Target Pinout ........................................................................................................................................... 31
The Stellaris® LM3S2965 Evaluation Board is a compact and versatile evaluation platform for the
Stellaris LM3S296 5 ARM® Cortex™-M3-based microcontroller. The evaluation kit demonstrates a
complete controller area network (CAN) using two Stellaris microcontrollers. The main evaluation
board (EVB) configures a Stellaris LM3S2965 microcontroller as a CAN host. A small CAN device
board, linked with a ribbon cable, uses a Stellaris LM3S2110 microcontroller. The function of each
board is fully configurable in software.
You can use the board either as an evaluation platform or as a low-cost in-circuit debug interface
(ICDI). In debug interface mode, the on-board microcontroller is bypassed, allowing for
programming or debugging of an external target. The kit is also comp atible with high-perfo rmance
external JTAG debuggers.
This evaluation kit enables quick evaluation, prototype development, and creation of applicationspecific designs for CAN. The kit also includes extensive source-code examples, allowing you to
start building C code applications quickly.
Figure 1-1.Stellaris LM3S2965 Evaluation Board Layou t
January 6, 20107
Stellaris® LM3S2965 Evaluation Board
User switches
CAN bus c onnector
I/O break-out
headers
Power LED
Reset switch
St at us LED
JTAG/SWD
input
Stellaris®
LM3S2110
Microcontroller
Figure 1-2.Stellaris LM3S2110 CAN Device Board
Features
The Stellaris LM3S2965 Evaluation Kit includes the following features:
Stellaris LM3S2965 microcontroller with fully-integrated CAN module
Standalone CAN device board using Stellaris LM3S2110 microcontroller
Simple setup; USB cable provides serial communication, debugging, and power
OLED graphics display with 128 x 96 pixel resolution
User LED, navigation switches, and select pushbuttons
Magnetic speaker
LM3S2965 I/O available on labeled break-out pads
Standard ARM® 20-pin JTAG debug connector with input and output modes
USB interface for debugging and power supply
256-KB single-cycle flash
64-KB single-cycle SRAM
Four general-purpose 32-bit timers
Controller area network (CAN) module
Three fully programmable 16C550-type UARTs
Four 10-bit channels (inputs) when used as single-ended inputs
Three independent integrated analog comparators
Two I
2
C modules
Three PWM generator blocks
– One 16-bit counter
– Two comparators
– One PWM generator
– One dead-band generator
Two QEI modules with position integrator for tracking encoder position
Two synchronous serial interfaces (SSIs)
3 to 56 GPIOs, depending on user configuration
On-chip low drop-out (LDO) voltage regulator
January 6, 201011
Stellaris® LM3S2965 Evaluation Board
12January 6, 2010
CHAPTER 2
Hardware Description
In addition to a microcontroller, the Stellaris LM3S2965 evaluation board includes a range of useful
peripherals and an integrated ICDI. This chapter describes how these peripherals operate and
interface to the microcontroller.
LM3S2965 Evaluation Board
LM3S2965 Microcontroller Overview
The heart of the EVB is a Stellaris LM3S2965 ARM Cortex-M3-based microcontroller. The
LM3S2965 offers 256-KB flash memory, 50-MHz operation, a CAN module, and a wide range of
peripherals. Refer to the LM3S2965 data sheet (order number DS-LM3S2965) for complete device
details.
The LM3S2965 microcontroller is factory programmed with a quickstart demo program. The
quickstart program resides in the LM3S2965 on-chip flash memo ry and runs each time power is
applied, unless the quickstart has been replaced with a user progr am.
CAN Module
A key feature of the LM3S2965 is its CAN module that enables highly reliable communications at
up to 1 Mbits/s. The LM3S2965 evaluation board includes a standard CAN transceiver and a
10-pin CAN connector whose signal assignments follow a commonly used CAN standard. A
simple adaptor (not included in the kit) can be used to allow the us e of st andard DB-9 CAN cables.
Clocking
Reset
An on-board 120-ohm resistor provides bus termination. This resistor can be removed if the board
is not a network endpoint.
The CAN transceiver is configured in hardware to support speeds up to 1 Mbits/s. A resistor can
be added to reduce the transceiver's drive slew-rate for slower data rates over longer distances.
The LM3S2965 microcontroller has three on-chip oscillators, two are implemented on the EVB. A
8.0-MHz crystal completes the LM3S2965’s main internal clock circuit. An intern al PLL, configured
in software, multiples this clock to 50-MHz for core and peripheral timing. At initial power on, the
microcontroller operates directly from a 12-MHz internal oscillator.
The LM3S2965 microcontroller shares its external reset input with the OLED display. In the EVB,
reset sources are gated through the CPLD, though in a typical application a simple wired-OR
arrangement is sufficient.
Reset is asserted (active low) under any one of three conditions:
Power-on reset
Reset push switch SW1 held down
Internal debug mode—By the USB device controller (U5 FT2232) when instructed by
debugger
January 6, 201013
Hardware Description
Power Supplies
The LM3S2965 is powered from a +3.3-V supply. A low drop-out (LDO) regulator regulates +5-V
power from the USB cable to +3.3-V. +3.3-V power is available for powering external circuits.
A +15-V rail is available when the OLED display is active. The speaker and OLED display boostconverter operate directly from the +5-V rail.
Debugging
Stellaris microcontrollers support programming and debugging using either JTAG or SWD. JTAG
uses the signals TCK, TMS, TDI, and TDO. SWD requires fewer signals (SWCLK, SWDIO, and,
optionally, SWO, for trace). The debugger determines which debug protocol is used.
Debugging Modes
The LM3S2965 evaluation board supports a range of hardware debugging configurations. Table
summarizes these.
2ICDI out to JTAG/SWD headerThe EVB is used as a USB
3In from JTAG/SWD headerFor users who prefer an
Modes 2 and 3 automatically detect the presence of an exter nal deb ug cable . When the d ebugg er
software is connected to the EVB's USB controller, the EVB automatically selects Mode 2 and
illuminates the red Debug Out LED. ICDI out (Mode 2) can be used to program and debug the
small LM3S2110 CAN device board included in the kit.
Debug In Considerations
Debug Mode 3 supports evaluation boa rd debug ging using an external d ebug interface. Mode 3 is
automatically selected when a device such as a Segger J-Link or Keil ULINK is connected.
Boards marked Revision C or later automatically configure pin 1 to be a 3.3-V reference, if an
external debugger is connected. To determine the revision of your board, locate the product
number on the bottom of the board; for example, EK-LM3S2965-C. The last character of the
product number identifies the board revision.
microcontroller over USB
interface.
to SWD/JTAG interface to
an external target.
external debug interface
(ULINK, JLINK, etc.) with the
EVB.
Default mode
Connecting to an external
target and starting debug
software. The red Debug
Out LED will be ON.
Connecting an external
debugger to the JTAG/SWD
header
A configuration or board-level change may be necessary when using an external debug interface
with revisions A and B of this evaluation board. Because the evaluation board suppo rts both debug
out and debug in modes, pin 1 of the 20-pin JTAG/SWD header is, by default, not connected to
+3.3 V. Consequently, devices requiring a voltage on pin 1 to power their line buffers may not
work.
14January 6, 2010
Two solutions exist. Some debugger interfaces (such as ULINK) have an internal power jumper
that, in this case, should be set to internal +3.3-V power. Refer to debugger interface
documentation for full details. However, if your debugger interface does not have a selectable
power source, it may be necessary to inst a ll a 0-Ω re sistor on th e e v aluatio n b oar d to route p ower
to pin 1. Refer to the schematics and board drawing in the appendix of this manual for the location
of this resistor.
USB Functions
USB Overview
An FT2232 device from Future Technology Devices International Ltd manages USB-to-serial
conversion. The FT2232 is factory configured to implement a JT AG/SWD po rt (synchronous serial)
on channel A and a Virtual COM Port (VCP) on channel B. This feature allows two simultaneous
communications links between the host computer an d the t ar get device using a single USB cable .
Separate Windows drivers for each function are provided on the Document atio n and Sof tware CD.
A small serial EEPROM holds the FT2232 configuration data. The EEPROM is not accessible by
the LM3S2965 microcontroller.
For full details on FT2232 operation, go to www.ftdichip.com.
USB to JTAG/SWD
Stellaris® LM3S2965 Evaluation Board
The FT2232 USB device performs JT AG/SWD serial operations under th e control of the debugger.
A CPLD (U4) multiplexes SWD and JTAG functions and, when working in SWD mode, provides
direction control for the bidirectional data line.
Virtual COM Port
The Virtual COM Port (VCP) allows Windows applications (such as HyperTerminal) to
communicate with UART0 on the LM3S2965 over USB. Once the FT2232 VCP driver is installed,
Windows assigns a COM port number to the VCP channel.
Serial Wire Out
The evaluation board supports the Cortex-M3 serial-wire output (SWO) trace capabilities. Under
debugger control, the CPLD can route the SWO datastream to the virtual communication port
(VCP) transmit channel. The debugger can then decode and interpret the trace information
received from the VCP. The normal VCP connection to UART0 is interrupted when using SWO. Not
all debuggers support SWO. Refer to the S tellaris LM 3S3748 dat a sheet for additional infor mation
on the trace port interface unit (TPIU).
Organic LED Display
The EVB features an Organic LED (OLED) graphics display with 128 x 64 pixel resolution. OLED
is a new technology that offers many advantages over LCD display technology.
Features
RiT P14201 series display
128 colu mn s by 96 row s
High-contrast (typ. 500:1)
Excellent brightness (120 cd/m
January 6, 201015
2
)
Hardware Description
Fast response
Control Interface
The OLED display has a built-in controller IC with synchronous serial and parallel interfaces.
Synchronous serial (SSI) is used on the EVB as it requires fewer microcontroller pins. Data cannot
be read from the OLED controller; only one data line is necessary. Stellaris® Firmware
Development Package (included on the Documentation and Software CD) contains complete
drivers with source-code for the OLED display.
Power Supply
A +15-V supply is needed to bias the OLED display. A FAN5331 device from Fairchild combines
with a few external components to complete a boost converter. A few external components
complete the switching power supply. When the OLED display is operating, a small amount of
power can be drawn from the +12-V rail to power other devices.
Design Guidelines
The OLED display has a lifetime of about 13,000 hours. It is also prone to degradation due to
burn-in, similar to CRT and plasma displays. The quickstart application includes both a screen
saver and a power-down mode to extend display life. These factors should be considered when
developing EVB applications that use the OLED display.
Further Reference
For additional information on the RiT OLED display, visit www.ritekdisplay.com.
Other Peripherals
Speaker
A small, magnetic audio transducer connects through a MOSFET to PD1/PWM1, allowing a range
of options for generating simple and complex tones. Use of the +5-V rail reduces switching noise
on the +3.3-V rail.
Push Switches
The EVB has five general-purpose input switches. Four are arranged in a navigation-style
configuration. The fifth functions as a Select switch.
User LED
A user LED (LED1) is provided for general use. The LED is connected to PG2/PWM0, allowing the
option of either GPIO or PWM control (brightness control). Refer to the Quickstart Application
source code for an example of PWM control.
Bypassing Peripherals
Excluding CAN and JTAG, the EVB’s on-board peripheral circuits require 13 GPIO lines. This
leaves 40 GPIO lines and 4 ADC channels immediately available for connection to external
circuits. If an application requires more GPIO lines the on-board hardware can be disconnected.
The EVB is populated with 3 jumper links, which can be cut with a knife to isolate on-board
hardware. The process can be reversed by installing 0603- 0-ohm chip resistors.
16January 6, 2010
Stellaris® LM3S2965 Evaluation Board
Important: The quickstart application will not run if one or more jumpers are removed.
Table 2-2. Isolating On-Board Hardware
An array of accessible I/O signals makes it easy to interface the EVB to external circuits. All
LM3S2965 I/O lines (except those with both JTAG and SWD functions) are brought out to 0.1”
pitch pads. For quick reference, silk-screened labels on the PCB show primary pin functions.
Table B-1 on page 29 has a complete list of I/O signals as well as recommended connectors.
Most LM3S2965 I/O signals are +5-V tolerant. Refer to the LM3S2965 data sheet for detailed
electrical specifications.
Using the In-Circuit Debugger Interface
The Stellaris LM3S2965 Evaluation Kit can operate as an In-Circuit Debugger Interface (ICDI).
ICDI acts as a USB to the JTAG/SWD adaptor, allowing debugging of any external target board
that uses a Stellaris microcontroller. See “Debugging Modes” on page 14 for a description of how
to enter Debug Out mode.
January 6, 201017
Hardware Description
Evaluation Board
Target
Board
Stellaris
MCU
Target
Cable
`
USB
PC with IDE/
debugger
Stellaris
MCU
TC K/SWC LK by pas s es t he
on- board m ic roc ont roller
JT AG or SWD c onnec t s t o t he
ext ernal m icroc on troller
Connec t ing Pin 18 t o GN D s ets
ext ernal debug m ode
Figure 2-1.ICD Interface Mode
The debug interface operates in either serial-wire debug (SWD) or full JTAG mode, depending on
the configuration in the debugger IDE.
The IDE/debugger does not distinguish between the on-EVB Stellaris microcontroller and an
external Stellaris microcontroller. The only requirement is that the correct Stellaris device is
selected in the project configuration.
18January 6, 2010
CHAPTER 3
CAN Device Board Hardware Description
The CAN device board uses a S tellaris LM3S2110 microcontroller to demonstrate a complete
two-node network. The board can be used with the main LM3S2965 evaluation board or as a
standalone board.
Device Overview
The Stellaris LM3 S2110 ARM Cortex-M3-based microcontroller has 64-KB flash memory, 25-MHz
operation, a CAN module, and a wide range of peripherals. For complete device details, see the
LM3S2110 data sheet (order number DS-LM3S2110).
The LM3S2110 microcontroller is factory programmed with a quickstart demonstration program
that adds a remote volume control feature to the quickstart application. The quickstart program
resides in the LM3S2110 on-chip flash memory and runs each time power is applied, unless the
quickstart has been replaced with a user program.
Power Supply
The CAN device board receives +5.0-V power from the CAN bus and should not be connected to
a CAN bus that ha a power wire voltage of greater than 10.0 V. If the bus is unpowered, a +5.0 -V
local power supply must be provided. The LM3S2110 is powered from a +3.3-V rail, supplied by a
low drop-out (LDO) regulator. +3.3-V power is available for powering external circuits.
Programming and Debugging
A standard two-way header supports both JTAG And SWD programming and debugging using
either the main LM3S2965 board in ICDI out mode or a full-featured debug interface.
Interfacing
Two push switches and an LED implement a very simple user interface. The board’s capabilities
are easily expanded using the I/O breakout headers . For breakout header signal assignments see
Figure B-4.‚ “LM3S2110 CAN Device Board Connections,” on page 30.
January 6, 201019
CAN Device Board Hardware Description
20January 6, 2010
APPENDIX A
Schematics
This section contains the schematics for the LM3S1968 Evaluation Board:
LM3S2965 Micro and CAN Host on page 22
OLED Display, Switches, and Audio on page 23
USB, Debugger Interfaces, and Power on page 24
CAN Device Using LM3S2110 on page 25
JTAG Logic with Auto Mode Detect, Hibernate, and TVccControl on page 26
January 6, 201021
1
1
2
2
3
3
4
4
5
5
6
6
DD
CC
BB
AA
Document Number:
RevSheetDate:
of
9/28/20071 4
Drawing Title:
Page Title:
Size
Fury CAN Evaluation Board
LM3S2965 Micro and CAN Host
The LM3S2965 EVB has 57 I/O pads, 15 power pads, and 2 crystal connections, for a total of 74
pads. Connection can be made by soldering wires directly to these pads, or by using 0.1” pitch
headers and sockets.
Note: In Table B-2, an asterisk (*) by a signal name (also on the EVB PCB) indicates the signal is
normally used for on-board functions. Normally, you should cut the associated jumper (JP1-15)
before using an assigned signal for external interfacing.
In ICDI input and output mode, the Stellaris LM3S2965 Evaluation Kit supports ARM’s standard
20-pin JTAG/SWD configuration. The same pin configuration can be used for debugging over
serial-wire debug (SWD) and JTAG interfaces. The debugger software, running on the PC,
determines which interface protocol is used.
The Stellaris target board should have a 2x10 0.1” pin header with signals as indicated in
Table B-3. This applies to both external Stellaris MCU target s (Debug output mode) an d to external
JTAG/SWD debuggers (Debug input mode).
ICDI does not control RST
implemented as commands over JTAG/SWD, so these signals are not necessary.
It is recommended that connections be made to all GND pins; however, both targets and external
debug interfaces must connect pin 18 and at least one other GND pin to GND.
References
In addition to this document, the following references are included on the Stellaris Family
Development Kit documentation CD-ROM and are also available for do wnload at www.ti.com/
stellaris:
StellarisLM3S2965Evaluation Kit Quickst art Guide for appropriate tool kit (s ee “Evaluation Kit
Contents,” on page 10)
(device reset) or TRST (test reset) signals. Both reset functions are
StellarisLM3S2965Read Me First for the CAN Evaluation Kit
StellarisWare® Driver Library, Order number SW-DRL
StellarisWare® Driver Library User’s Manual, publication number SW-DRL-UG
Stellaris LM3S2965 Data Sheet, publication DS-LM3S2965
January 6, 201031
References
Additional references include:
Future Technology Devices Incorporated FT2232C Datasheet
Information on development tool being used:
– RealView MDK web site, www.keil.com/arm/rvmdkkit.asp
– IAR Embedded Workbench web site, www.iar.com
– Code Sourcery GCC development tools web site,
www.codesourcery.com/gnu_toolchains/arm
– Code Red Technologies developm en t to ols we b site, www.code-red-tech.com
– Texas Instruments’ Code Composer Studio™ IDE web site, www.ti.com/ccs
32January 6, 2010
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.