Analog Devices, Inc. reserves the right to change this product without
prior notice. Information furnished by Analog Devices is believed to be
accurate and reliable. However, no responsibility is assumed by Analog
Devices for its use; nor for any infringement of patents or other rights of
third parties which may result from its use. No license is granted by impli
cation or otherwise under the patent rights of Analog Devices, Inc.
Trademark and Service Mark Notice
The Analog Devices logo, Blackfin, the Blackfin logo, EZ-KIT Lite,
SHARC, TigerSHARC, and VisualDSP++ are registered trademarks of
Analog Devices, Inc.
-
All other brand and product names are trademarks or service marks of
their respective owners.
CONTENTS
PREFACE
Purpose of This Manual ................................................................ xvii
Intended Audience ........................................................................ xvii
Manual Contents Description ...................................................... xviii
Technical or Customer Support ...................................................... xix
Product Information ...................................................................... xix
MyAnalog.com .......................................................................... xx
Processor Product Information ................................................... xx
Related Documents .................................................................. xxi
Online Technical Documentation ............................................. xxi
Accessing Documentation From VisualDSP++ ..................... xxii
Accessing Documentation From Windows ........................... xxii
Accessing Documentation From the Web ........................... xxiii
xviDevice Drivers and System Services Manual for Blackfin Processors
PREFACE
Thank you for using Analog Devices, Inc. development software for
Analog Devices embedded processors.
Purpose of This Manual
The Device Drivers and System Services Manual for Blackfin Processors contains information about the Analog Devices Device Driver Model and
System Services library suite. Included are architectural descriptions of the
device driver design, and each of the System Service components. Also
included is a description of the APIs into each library.
Intended Audience
The primary audience for this manual is a programmer who is familiar
with Analog Devices processors. This manual assumes that the audience
has a working knowledge of the appropriate processor architecture and
instruction set. Programmers who are unfamiliar with Analog Devices
processors can use this manual, but should supplement it with other texts
(such as the appropriate hardware reference and programming reference
manuals) that describe your target architecture.
Device Drivers and System Services Manual for Blackfin Processorsxvii
Manual Contents Description
Manual Contents Description
This manual contains:
•Chapter 1, “Introduction”
provides an overview of System Services and Device Drivers
•Chapter 2, “Interrupt Manager”
describes the System Interrupt Controller (SIC) Manager that supports the general-purpose interrupt events
•Chapter 3, “Power Management Module”
describes the Power Management module that supports Dynamic
Power Management of Blackfin processors
•Chapter 4, “External Bus Interface Unit Module”
describes the External Bus Interface Unit (EBIU) module that is
used to enable the Power Management module to manage the
SDRAM Controller operation
•Chapter 5, “Deferred Callback Manager”
describes the Deferred Callback Manager that is used by the application developer to effectively execute function calls
•Chapter 6, “DMA Manager”
describes Direct Memory Access (DMA) Manager API
•Chapter 7, “Device Driver Manager”
describes the device driver model used to control devices, both
internal and external, to ADI processors
xviiiDevice Drivers and System Services Manual for Blackfin Processors
Technical or Customer Support
You can reach Analog Devices, Inc. Customer Support in the following
ways:
•Visit the Embedded Processing and DSP products Web site at
http://www.analog.com/processors/technicalSupport
•E-mail tools questions to
dsptools.support@analog.com
•E-mail processor questions to
dsp.support@analog.com
•Phone questions to 1-800-ANALOGD
•Contact your Analog Devices, Inc. local sales office or authorized
distributor
Preface
•Send questions by mail to:
Analog Devices, Inc.
One Technology Way
P.O. Box 9106
Norwood, MA 02062-9106
USA
Product Information
You can obtain product information from the Analog Devices Web site,
from the product CD-ROM, or from the printed publications (manuals).
Analog Devices is online at www.analog.com. Our Web site provides information about a broad range of products—analog integrated circuits,
amplifiers, converters, and digital signal processors.
Device Drivers and System Services Manual for Blackfin Processorsxix
Product Information
MyAnalog.com
MyAnalog.com is a free feature of the Analog Devices Web site that allows
customization of a Web page to display only the latest information on
products you are interested in. You can also choose to receive weekly
E-mail notification containing updates to the Web pages that meet your
interests.
sheets, code examples, and more.
Registration:
Visit www.myanalog.com to sign up. Click Register to use MyAnalog.com.
Registration takes about five minutes and serves as means for you to select
the information you want to receive.
If you are already a registered user, just log on. Your user name is your
E-mail address.
MyAnalog.com provides access to books, application notes, data
Processor Product Information
For information on embedded processors and DSPs, visit our Web site at
www.analog.com/processors, which provides access to technical publica-
tions, data sheets, application notes, product overviews, and product
announcements.
xxDevice Drivers and System Services Manual for Blackfin Processors
Preface
You may also obtain additional information about Analog Devices and its
products in any of the following ways.
•E-mail questions or requests for information to
dsp.support@analog.com
•Fax questions or requests for information to
1-781-461-3010 (North America)
089/76 903-557 (Europe)
•Access the FTP Web site at
ftp ftp.analog.com or ftp 137.71.23.21
ftp://ftp.analog.com
Related Documents
For software/tools information, refer to VisualDSP++ user’s documentation available online and in printed forms.
For hardware information, refer to your processors’s hardware reference,
programming reference, or data sheet. All documentation is available
online. Most documentation is available in printed form.
Visit the Technical Library Web site to access all processor and tools manuals and data sheets:
Online documentation includes the VisualDSP++ Help system, software
tools manuals, hardware tools manuals, processor manuals, Dinkum
Abridged C++ library, and Flexible License Manager (FlexLM) network
license manager software documentation. You can easily search across the
Device Drivers and System Services Manual for Blackfin Processorsxxi
Product Information
entire VisualDSP++ documentation set for any topic of interest using the
Search function of VisualDSP++ Help system. For easy printing, supple
mentary .PDF files of most manuals are also provided.
Each documentation file type is described as follows.
File Description
.CHMHelp system files and manuals in Help format
-
.HTM or
.HTML
.PDFVisualDSP++ and processor manuals in Portable Documentation Format (PDF).
Dinkum Abridged C++ library and FlexLM network license manager software
documentation. Viewing and printing the .HTML files requires a browser, such as
Internet Explorer 4.0 (or higher).
Viewing and printing the
Reader (4.0 or higher).
.PDF files requires a PDF reader, such as Adobe Acrobat
Access the online documentation from the VisualDSP++ environment,
Windows
®
Explorer, or the Analog Devices Web site.
Accessing Documentation From VisualDSP++
From the VisualDSP++ environment:
•Access VisualDSP++ online Help from the Help menu’s Contents, Search, and Index commands.
•Open online Help from context-sensitive user interface items (toolbar buttons, menu commands, and windows).
Accessing Documentation From Windows
In addition to any shortcuts you may have constructed, there are many
ways to open VisualDSP++ online Help or the supplementary documenta
tion from Windows.
-
xxiiDevice Drivers and System Services Manual for Blackfin Processors
Preface
Help system files (.CHM) are located in the Help folder of VisualDSP++
environment. The
.PDF files are located in the Docs folder of your
VisualDSP++ installation CD-ROM. The Docs folder also contains the
Dinkum Abridged C++ library and the FlexLM network license manager
software documentation.
Using Windows Explorer
•Double-click the vdsp-help.chm file, which is the master Help system, to access all the other .CHM files.
•Open your VisualDSP++ installation CD-ROM and double-click
any file that is part of the VisualDSP++ documentation set.
Using the Windows Start Button
•Access VisualDSP++ online Help by clicking the Start button and
choosing Programs, Analog Devices, VisualDSP++, and
VisualDSP++ Documentation.
Accessing Documentation From the Web
Download manuals in PDF format at the following Web site:
Select a processor family and book title. Download archive (.ZIP) files, one
for each manual. Use any archive management software, such as WinZip,
to decompress downloaded files.
Printed Manuals
For general questions regarding literature ordering, call the Literature
Center at 1-800-ANALOGD (1-800-262-5643) and follow the prompts.
Device Drivers and System Services Manual for Blackfin Processorsxxiii
Product Information
VisualDSP++ Documentation Set
To purchase VisualDSP++ manuals, call 1-603-883-2430. The manuals
may be purchased only as a kit.
If you do not have an account with Analog Devices, you are referred to
Analog Devices distributors. For information on our distributors, log onto
http://www.analog.com/salesdir/continent.asp.
Hardware Tools Manuals
To purchase EZ-KIT Lite™ and In-Circuit Emulator (ICE) manuals, call
1-603-883-2430. The manuals may be ordered by title or by product
number located on the back cover of each manual.
Processor Manuals
Hardware reference and instruction set reference manuals may be ordered
through the Literature Center at 1-800-ANALOGD (1-800-262-5643),
or downloaded from the Analog Devices Web site. Manuals may be
ordered by title or by product number located on the back cover of each
manual.
Data Sheets
All data sheets (preliminary and production) may be downloaded from the
Analog Devices Web site. Only production (final) data sheets (Rev. 0, A,
B, C, and so on) can be obtained from the Literature Center at
1-800-ANALOGD (1-800-262-5643); they also can be downloaded from
the Web site.
To have a data sheet faxed to you, call the Analog Devices Faxback System
at 1-800-446-6212. Follow the prompts and a list of data sheet code
numbers will be faxed to you. If the data sheet you want is not listed,
check for it on the Web site.
xxivDevice Drivers and System Services Manual for Blackfin Processors
Notation Conventions
Text conventions used in this manual are identified and described as
follows.
ExampleDescription
Preface
Close command
(File menu)
{this | that}Alternative required items in syntax descriptions appear within curly
[this | that]Optional items in syntax descriptions appear within brackets and
[this,…]Optional item lists in syntax descriptions appear within brackets
.SECTIONCommands, directives, keywords, and feature names are in text with
filenameNon-keyword placeholders appear in text with italic style format.
L
a
Titles in reference sections indicate the location of an item within the
VisualDSP++ environment’s menu system (for example, the Close
command appears on the File menu).
brackets and separated by vertical bars; read the example as
that. One or the other is required.
separated by vertical bars; read the example as an optional this or
.
that
delimited by commas and terminated with an ellipse; read the example
as an optional comma-separated list of
letter gothic font.
Note: For correct operation, ...
A Note provides supplementary information on a related topic. In the
online version of this book, the word Note appears instead of this
symbol.
Caution: Incorrect device operation may result if ...
Caution: Device damage may result if ...
A Caution identifies conditions or inappropriate usage of the product
that could lead to undesirable results or product damage. In the online
version of this book, the word Caution appears instead of this symbol.
this.
this or
Warn in g: Injury to device users may result if ...
A Warning identifies conditions or inappropriate usage of the product
[
that could lead to conditions that are potentially hazardous for devices
users. In the online version of this book, the word Wa rnin g appears
instead of this symbol.
Device Drivers and System Services Manual for Blackfin Processorsxxv
Notation Conventions
L
Additional conventions, which apply only to specific chapters, may
appear throughout this document.
xxviDevice Drivers and System Services Manual for Blackfin Processors
1INTRODUCTION
This manual describes the System Services and Device Driver architecture
for Analog Devices processors.
The System Services form a collection of functions that are commonly
found in embedded systems. Each system service focuses on a specific set
of functionality such as Direct Memory Access (DMA), Power Manage
ment (PM), Interrupt Control (IC), and so on. Collectively, the system
services provide a wealth of pre-built, optimized code that simplifies soft
ware development for users, allowing them to get their Blackfin
processor-based designs to market more quickly.
The Device Driver model provides a simple, clean and familiar interface
into device drivers for Blackfin processors. The primary objective of the
device driver model is to create a concise, effective and easy to use inter
face through which applications can communicate with device drivers.
Secondarily, the model and device manager software, significantly simplifies the development of device drivers, making it very straightforward for
the development of new device drivers.
-
-
-
Device Drivers and System Services Manual for Blackfin Processors1-1
System Services Overview
System Services Overview
The current revision of the System Services library consists of five services:
•Interrupt Control Service - The Interrupt Control service allows
the application to control and leverage the event and interrupt pro
cessing of the processor more effectively. Specific functionality
allows the application to:
•Set and detect the mappings of the interrupt priority levels
to peripherals.
•Use standard ‘C’ functions as interrupt handlers.
•Hook and unhook multiple interrupt handlers to the same
interrupt priority level using both nesting and non-nesting
capabilities.
-
•Detect if a system interrupt is being asserted.
•Protect and unprotect critical regions of code in a portable
manner.
•Power Management Service - The Power Management service
allows the application to control the Dynamic Power Management
capabilities of the Blackfin processor. Specific functionality allows
the application to:
•Set core and system clock operating frequencies via a
function call.
•Set and detect the internal voltage regulator settings.
•Transition the processor among the various operating modes including, Full-On, Active, Sleep, and so
on.
1-2Device Drivers and System Services Manual for Blackfin Processors
Introduction
•External Bus Interface Unit Control Service (EBIU) - The EBIU
Control service provides a collection of routines to set up the exter
nal interfaces of the Blackfin processor, including the SDRAM
controller. This functionality enables users to:
•Adjust SDRAM refresh and timing rates to optimal values
for given system clock frequencies.
•Set individual bus interface settings.
•Complete single function setup for known configurations,
such as the Blackfin EZ-Kits.
•Deferred Callback Service - The Deferred Callback service allows
the application to be notified of asynchronous events outside of
high priority interrupt service routines. Using deferred callbacks
typically improves the overall I/O capacity of the system while at
the same time reducing interrupt latency. Specific functionality
allows the application to:
-
•Define how many callbacks can be pending at any point in
time.
•Define the interrupt priority level at which the callback service executes.
•Create multiple callback services, each operating at a different interrupt priority level.
•Post callbacks to a callback service with a relative priority
among all other callbacks posted to the same callback
service.
•DMA Management Service - The DMA Management service provides access into the DMA controller of the Blackfin processor.
The DMA Management service allows the application to schedule
Device Drivers and System Services Manual for Blackfin Processors1-3
System Services Overview
DMA operations, both peripheral and memory DMA, supporting
both linear and two-dimensional transfer types. Specific function
ality allows the application to:
•Set and detect the mapping of DMA channels to
peripherals.
•Configure individual DMA channels for inbound/outbound
traffic using circular (autobuffered) DMA or descriptor
based DMA.
•Command the DMA Manager to issue “live” or deferred
callbacks upon DMA completions.
•Queue descriptors, intermixing both linear and two-dimen-
sional transfers, on DMA channels.
•Enable the DMA Manager to loopback on descriptor chains
automatically.
-
•Continuously stream data into or out from a memory
stream or peripheral.
•Initiate linear and two-dimensional memory DMA transfers
with simple ‘C’ like,
memcpy-type functions.
•Device Manager - The device driver model is used to control
devices, both internal and external to Analog Devices processors.
Specific functionality allow the application to:
•Open and close devices used by the application.
•Configure and control devices.
•Receive and transmit data through the devices using a variety of dataflow methods.
1-4Device Drivers and System Services Manual for Blackfin Processors
Loading...
+ 314 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.