Analog Devices ADSP 21365 6 prb Datasheet

a
SHARC® Processor
Preliminary Technical Data

SUMMARY

High performance 32-bit/40-bit floating-point processor
optimized for high performance automotive audio processing
Audio decoder and post processor-algorithm support with
32-bit floating-point implementations Non-volatile memory may be configured to support audio
decoders and post processor-algorithms like PCM, Dolby Digital EX, Dolby Prologic IIx, DTS 96/24, Neo:6, DTS ES, MPEG2 AAC, MPEG2 2-channel, MP3, and functions like Bass management, Delay, Speaker equalization, Graphic equalization, and more. Decoder/post-processor algo­rithm combination support will vary depending upon the chip version and the system configurations. Please visit www.analog.com/SHARC.
CORE PROCESSOR
INSTRUCTION
TIMER
CACHE
32-LOCATION
ADSP-21365/ADSP-21366
Single-Instruction Multiple-Data (SIMD) computational
architecture
On-chip memory—3M bit of on-chip SRAM and a dedicated
4M bit of on-chip mask-programmable ROM Code compatible with all other members of the SHARC family The ADSP-21365/ADSP-21366 is available with a 333 MHz
core instruction rate and unique audiocentric peripherals
such as the digital audio interface, S/PDIF transceiver,
DTCP (digital transmission content protocol) available on
the ADSP-21365 only, serial ports, 8-channel asynchro-
nous sample rate converter, precision clock generators
and more. For complete ordering information, see Order-
ing Guide on page 53.
BLOCK 0 BLOCK 1 BLOCK 2 BLOCK 3
SRAM
1M BIT ROM
2M BIT
4 BLOCKS OF ON-CHIP MEMORY
SRAM
1M B IT ROM
2M BIT
SRAM
0.5M BIT
SRAM
0.5M BIT
DAG1 DAG2
PROCESSING
ELEMENT
(PEX)
PM ADDRESS BUS
PM DATA BUS
PROCESSING
ELEMENT
(PEY)
JTAG TEST & EMULATION
PROGRAM
SEQUENCER
DM ADDRESS BUS
DM DATA BUS
PX REGISTER
32
32
64
64
6
S
Figure 1. Functional Block Diagram—Processor Core
SHARC and the SHARC logo are registered trademarks of Analog Devices, Inc.
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 infringements of patents or other rights of third parties that may result from its use. Specifications subject to change without notice. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices. Trademarks and registered trademarks are the property of their respective owners.
ADDR DATA
IOA
One Technology Way, P.O. Box 9106, Norwood, MA 02062-9106 U.S.A. Tel#: 781.329.4700 www.analog.com Fax#: 781.326.8703 © 2005 Analog Devices, Inc. All rights reserved.
ADDR DATA
IOD
IOP REGISTERS
(MEMORY MAPPED)
IOA
ADDR DATA
IOD IOA IOD IOD
SPI
SPORTS
IDP
PCG
TIMERS
SRC
SPDIF
DTCP
I/O PROCESSOR
AND PERIPHERALS
SEE “ADSP-21365/6 MEMORY
AND I/O INTERFACE FEATURES”
SECTION FOR DETAILS
ADDR DATA
IOA
SIGNAL
ROUTING
UNIT
ADSP-21365/ADSP-21366 Preliminary Technical Data
KEY FEATURES—PROCESSOR CORE
At 333 MHz (3.0 ns) core instruction rate, the ADSP-
21365/ADSP-21366 performs 2 GFLOPS/666 MMACS
3M bit on-chip SRAM (1M Bit in blocks 0 and 1, and 0.50M Bit
in blocks 2 and 3) for simultaneous access by the core pro­cessor and DMA
4M bit on-chip mask-programmable ROM (2M bit in block 0
and 2M bit in block 1)
Dual Data Address Generators (DAGs) with modulo and bit-
reverse addressing
Zero-overhead looping with single-cycle loop setup, provid-
ing efficient program sequencing
Single-Instruction Multiple-Data (SIMD) architecture
provides: Two computational processing elements Concurrent execution Code compatibility with other SHARC family members at
the assembly level
Parallelism in buses and computational units allows single
cycle execution (with or without SIMD) of a multiply operation, an ALU operation, a dual memory read or write, and an instruction fetch
Transfers between memory and core at a sustained 5.4G
bytes/s bandwidth at 333 MHz core instruction rate

INPUT/OUTPUT FEATURES

DMA Controller supports: 25 DMA channels for transfers between ADSP-21365/ADSP-
21366 internal memory and a variety of peripherals
32-bit DMA transfers at peripheral clock speed, in parallel
with full-speed processor execution
Asynchronous parallel port provides access to asynchronous
external memory
16 multiplexed address/data lines support 24-bit address
external address range with 8-bit data or 16-bit address external address range with 16-bit data
55M byte per sec transfer rate External memory access in a dedicated DMA channel 8-bit to 32-bit and 16-bit to 32-bit packing options Programmable data cycle duration: 2 to 31 CCLK Digital audio interface (DAI) includes six serial ports, two pre-
cision clock generators, an input data port, three timers, an
S/PDIF transceiver, a DTCP cipher (ADSP-21365 only), an 8-
channel asynchronous sample rate converter, an SPI port,
and a signal routing unit Six dual data line serial ports that operate at up to 50M bits/s
on each data line — each has a clock, frame sync and two
data lines that can be configured as either a receiver or
transmitter pair Left justified sample pair and I
direction for up to 24 simultaneous receive or transmit
channels using two I
port TDM support for telecommunications interfaces including
128 TDM channel support for newer telephony interfaces
such as H.100/H.110
2
2
S support, programmable
S compatible stereo devices per serial
Up to 12 TDM stream support, each with 128 channels per
frame Companding selection on a per channel basis in TDM mode Input data port provides an additional input path to the pro-
cessor core, configurable as eight channels of serial data or
seven channels of serial data and up to a 20-bit wide paral-
lel data channel Signal routing unit provides configurable and flexible con-
nections between all DAI components–six serial ports, one
SPI port, eight channels of asynchronous sample rate con-
verters, an S/PDIF receiver/transmitter, DTCP (digital
transmission content protocol (ADSP-21365 only), three
timers, an SPI port,10 interrupts, six flag inputs, six flag
outputs, and 20 SRU I/O pins (DAI_Px) Two Serial Peripheral Interfaces (SPI): primary on dedicated
pins, secondary on DAI pins provide:
master or slave serial boot through primary SPI, full-
duplex operation, master-slave mode multimaster sup-
port, open drain outputs, programmable baud rates, clock
polarities and phases 3 Muxed Flag/IRQ 1 Muxed Flag/Timer expired line
lines

DEDICATED AUDIO COMPONENTS

S/PDIF compatible digital audio receiver/transmitter sup-
ports EIAJ CP-340 (CP-1201), IEC-958, AES/EBU standards
left justified, I
18, 20 or 24-bit word widths (transmitter)
Two channel mode and single channel double frequency
(SCDF) mode Digital transmission content protection (DTCP)—a crypto-
graphic protocol for protecting audio content from
unauthorized copying, intercepting, and tampering
(ADSP-21365 only). Sample rate converter (SRC) Contains a serial input port, de-
emphasis filter, sample rate converter (SRC) and serial out-
put port providing up to -128dB SNR performance
Supports left justified, I
18 and 16-bit serial formats (input) Pulse-width modulation provides:
16 PWM outputs configured as four groups of four outputs
Supports center-aligned or edge-aligned PWM waveforms
Can generate complementary signals on two outputs in
paired mode or independent signals in non-paired mode ROM based security features include:
JTAG access to memory permitted with a 64-bit key
Protected memory regions that can be assigned to limit
access under program control to sensitive code
PLL has a wide variety of software and hardware multi-
plier/divider ratios Dual voltage: 3.3 V I/O, 1.2 V core Available in 136-ball mini-BGA and 144-lead LQFP packages
(see Ordering Guide on page 53)
2
S or right justified serial data input with 16,
2
S, TDM and right justified 24, 20,
Rev. PrB | Page 2 of 54 | February 2005

CONTENTS

ADSP-21365/ADSP-21366Preliminary Technical Data
Summary ............................................................... 1
Key Features – Processor Core ................................. 2
Input/Output Features ........................................... 2
Dedicated Audio Components ................................. 2
General Description ................................................. 3
ADSP-21365/6 Family Core Architecture ................... 3
ADSP-21365/6 Memory and I/O Interface Features ...... 5
Development Tools ............................................... 8
Additional Information ......................................... 10
Pin Function Descriptions ........................................ 11
Address Data Pins as FLAGs .................................. 14
Address Data Modes ............................................. 14
Boot Modes ........................................................ 14
Core Instruction Rate to CLKIN Ratio Modes ............. 14
ADSP-21365/6 Specifications ..................................... 15
Recommended Operating Conditions ....................... 15
Electrical Characteristics ........................................ 15
Maximum Power Dissipation ................................. 16
Absolute Maximum Ratings ................................... 16
ESD Sensitivity .................................................... 16
Timing Specifications ........................................... 16
Output Drive Currents .......................................... 41
Test Conditions ................................................... 41
Capacitive Loading ............................................... 41
Thermal Characteristics ........................................ 42
136-Ball BGA Pin Configurations ............................... 44
144-Lead LQFP Pin Configurations ............................. 47
Package Dimensions ................................................ 48
Ordering Guide ...................................................... 50
JTAG Test Access Port and Emulation .........................43

REVISION HISTORY

2/05–Data sheet changed from REV. PrA to REV PrB.
Power Supplies .........................................................9
Core Clock and System Clock Relationship to CLKIN ..... 18
Precision Clock Generator (Direct Pin Routing) ............. 24
Memory Read—Parallel Port ..................................... 26
Memory Write—Parallel Port .................................... 28
Input Data Port (IDP) .............................................. 33
Pulse Width Modulation Generators ........................... 35
Sample Rate Converter—Serial Output Port .................. 37
SPDIF Transmitter Input Data Timing ......................... 39
Rev. PrB | Page 3 of 54 | February 2005
ADSP-21365/ADSP-21366 Preliminary Technical Data

GENERAL DESCRIPTION

The ADSP-21365/ADSP-21366 SHARC processors are mem­bers of the SIMD SHARC family of DSPs that feature Analog Devices' Super Harvard Architecture. The ADSP-21365/ADSP­21366 are source code compatible with the ADSP-2126x, and ADSP-2116x, DSPs as well as with first generation ADSP-2106x SHARC processors in SISD (Single-Instruction, Single-Data) mode. The ADSP-21365/ADSP-21366 are 32-bit/40-bit float­ing-point processors optimized for high performance automotive audio applications with their large on-chip SRAM and mask-programmable ROM, multiple internal buses to elim­inate I/O bottlenecks, and an innovative digital audio interface (DAI).
As shown in the functional block diagram on Page 1, the ADSP-21365/ADSP-21366 use two computational units to deliver a significant performance increase over the previous SHARC processors on a range of signal processing algorithms. Fabricated in a state-of-the-art, high speed, CMOS process, the ADSP-21365/ADSP-21366 processors achieve an instruction cycle time of 3.0 ns at 333 MHz. With its SIMD computational hardware, the ADSP-21365/ADSP-21366 can perform 2 GFLOPS running at 333 MHz.
Table 1 shows performance benchmarks for the ADSP-
21365/ADSP-21366.
Table 1. ADSP-21365/ADSP-21366 Benchmarks (at 333 MHz)
Benchmark Algorithm Speed
(at 333 MHz)
1024 Point Complex FFT (Radix 4, with reversal) 27.9 µs FIR Filter (per tap) IIR Filter (per biquad) Matrix Multiply (pipelined)
[3×3] × [3×1] [4×4] × [4×1]
Divide (y/x) 10.5 ns Inverse Square Root 16.3 ns
1
Assumes two files in multichannel SIMD mode
1
1
1.5 ns
6.0 ns
13.5 ns
23.9 ns
The ADSP-21365/ADSP-21366 continues SHARC’s industry leading standards of integration for DSPs, combining a high performance 32-bit DSP core with integrated, on-chip system features.
The block diagram of the ADSP-21365/ADSP-21366 on Page 1, illustrates the following architectural features:
• Two processing elements, each of which comprises an ALU, multiplier, shifter and data register file
• Data address generators (DAG1, DAG2)
• Program sequencer with instruction cache
• PM and DM buses capable of supporting four 32-bit data transfers between memory and the core at every core pro­cessor cycle
• Three programmable interval timers with PWM genera­tion, PWM capture/pulse-width measurement, and external event counter capabilities
•On-chip SRAM (3M bit)
•On-chip mask-programmable ROM (4M bit)
• 8- or 16-bit parallel port that supports interfaces to off-chip memory peripherals
• JTAG test access port
The block diagram of the ADSP-21365/ADSP-21366 on Page 7 illustrates the following architectural features:
• DMA controller
• Six full duplex serial ports
• Two SPI-compatible interface ports—primary on dedi­cated pins, secondary on DAI pins
• Digital audio interface that includes two precision clock generators (PCG), an input data port (IDP), an S/PDIF receiver/transmitter, eight channels asynchronous sample rate converters, DTCP cipher, six serial ports, eight serial interfaces, a 20-bit parallel input port, 10 interrupts, six flag outputs, six flag inputs, three timers, and a flexible signal routing unit (SRU)
Figure 2 on Page 5 shows one sample configuration of a SPORT
using the precision clock generators to interface with an I ADC and an I
2
S DAC with a much lower jitter clock than the
2
S
serial port would generate itself. Many other SRU configura­tions are possible.

ADSP-21365/ADSP-21366 FAMILY CORE ARCHITECTURE

The ADSP-21365/ADSP-21366 are code compatible at the assembly level with the ADSP-2126x, ADSP-21160 and ADSP­21161, and with the first generation ADSP-2106x SHARC pro­cessors. The ADSP-21365/ADSP-21366 shares architectural features with the ADSP-2126x and ADSP-2116x SIMD SHARC processors, as detailed in the following sections.

SIMD Computational Engine

The ADSP-21365/ADSP-21366 contain two computational pro­cessing elements that operate as a Single-Instruction Multiple­Data (SIMD) engine. The processing elements are referred to as PEX and PEY and each contains an ALU, multiplier, shifter, and register file. PEX is always active, and PEY may be enabled by setting the PEYEN mode bit in the MODE1 register. When this mode is enabled, the same instruction is executed in both pro­cessing elements, but each processing element operates on different data. This architecture is efficient at executing math intensive signal processing algorithms.
Entering SIMD mode also has an effect on the way data is trans­ferred between memory and the processing elements. When in SIMD mode, twice the data bandwidth is required to sustain computational operation in the processing elements. Because of this requirement, entering SIMD mode also doubles the band-
Rev. PrB | Page 4 of 54 | February 2005
ADSP-21365/ADSP-21366Preliminary Technical Data
CLOCK
ADC
(OPTIONAL)
CLK
FS
SDAT
DAC
(OPTIONAL)
CLK
FS
SDAT
2
2 3
ADSP-21365/ADSP-21366
CLKIN XTAL
CLK_CFG1-0
BOOTCFG1-0
FLAG3-1
DAI_P1
DA I_P 2 DA I_P 3
SRU
DAI_P18
DAI_P19
DAI_ P2 0
DAI
RESET JTA G
CLK FS
PCGA
PCGB
SCLK0 SFS0 SD0A SD0B
SPOR T0-5
TIME RS
SPDIF
SRC
IDP
SPI
6
CLKOUT
ALE
AD1 5-0
RD
WR
CO NT RO L
LATCH
ADDR
PARALLEL
DATA
OE
WE
CSFLAG0
DATA
ADDRESS
PORT
RAM, ROM BOO T ROM I/O DEVICE
Figure 2. ADSP-21365/ADSP-21366 System Sample Configuration
width between memory and the processing elements. When using the DAGs to transfer data in SIMD mode, two data values are transferred with each access of memory or the register file.

Independent, Parallel Computation Units

Within each processing element is a set of computational units. The computational units consist of an arithmetic/logic unit (ALU), multiplier, and shifter. These units perform all opera­tions in a single cycle. The three units within each processing element are arranged in parallel, maximizing computational throughput. Single multifunction instructions execute parallel ALU and multiplier operations. In SIMD mode, the parallel ALU and multiplier operations occur in both processing ele­ments. These computation units support IEEE 32-bit single­precision floating-point, 40-bit extended-precision floating­point, and 32-bit fixed-point data formats.

Data Register File

A general-purpose data register file is contained in each pro­cessing element. The register files transfer data between the computation units and the data buses, and store intermediate results. These 10-port, 32-register (16 primary, 16 secondary) register files, combined with the ADSP-2136x enhanced Har­vard architecture, allow unconstrained data flow between computation units and internal memory. The registers in PEX are referred to as R0-R15 and in PEY as S0-S15.

Single-Cycle Fetch of Instruction and Four Operands

The ADSP-21365/ADSP-21366 features an enhanced Harvard architecture in which the data memory (DM) bus transfers data and the program memory (PM) bus transfers both instructions and data (see Figure 1 on Page 1). With the ADSP­21365/ADSP-21366’s separate program and data memory buses and on-chip instruction cache, the processor can simulta­neously fetch four operands (two over each data bus) and one instruction (from the cache), all in a single cycle.

Instruction Cache

The ADSP-21365/ADSP-21366 include an on-chip instruction cache that enables three-bus operation for fetching an instruc­tion and four data values. The cache is selective—only the instructions whose fetches conflict with PM bus data accesses are cached. This cache allows full-speed execution of core, looped operations such as digital filter multiply-accumulates, and FFT butterfly processing.

Data Address Generators With Zero-Overhead Hardware Circular Buffer Support

The ADSP-21365/ADSP-21366’s two data address generators (DAGs) are used for indirect addressing and implementing cir­cular data buffers in hardware. Circular buffers allow efficient programming of delay lines and other data structures required
Rev. PrB | Page 5 of 54 | February 2005
ADSP-21365/ADSP-21366 Preliminary Technical Data
in digital signal processing, and are commonly used in digital filters and Fourier transforms. The two DAGs of the ADSP­21365/ADSP-21366 contain sufficient registers to allow the cre­ation of up to 32 circular buffers (16 primary register sets, 16 secondary). The DAGs automatically handle address pointer wraparound, reduce overhead, increase performance, and sim­plify implementation. Circular buffers can start and end at any memory location.

Flexible Instruction Set

The 48-bit instruction word accommodates a variety of parallel operations, for concise programming. For example, the ADSP-21365/ADSP-21366 can conditionally execute a multiply, an add, and a subtract in both processing elements while branching and fetching up to four 32-bit values from memory— all in a single instruction.

ADSP-21365/ADSP-21366 MEMORY AND I/O INTERFACE FEATURES

The ADSP-21365/ADSP-21366 adds the following architectural features to the SIMD SHARC family core.
Table 2. ADSP-21365/ADSP-21366 Internal Memory Space

On-Chip Memory

The ADSP-21365/ADSP-21366 contains three megabits of internal SRAM and four megabits of internal mask-program­mable ROM. Each block can be configured for different combinations of code and data storage (see Table 2). Each memory block supports single-cycle, independent accesses by the core processor and I/O processor. The ADSP-21365/ADSP­21366 memory architecture, in combination with its separate on-chip buses, allows two data transfers from the core and one from the I/O processor, in a single cycle.
The ADSP-21365/ADSP-21366’s, SRAM can be configured as a maximum of 96K words of 32-bit data, 192K words of 16-bit data, 64K words of 48-bit instructions (or 40-bit data), or com­binations of different word sizes up to three megabits. All of the memory can be accessed as 16-bit, 32-bit, 48-bit, or 64-bit words. A 16-bit floating-point storage format is supported that effectively doubles the amount of data that may be stored on­chip. Conversion between the 32-bit floating-point and 16-bit floating-point formats is performed in a single instruction. While each memory block can store combinations of code and data, accesses are most efficient when one block stores data using the DM bus for transfers, and the other block stores instructions and data using the PM bus for transfers.
IOP Registers 0x0000 0000–0003 FFFF Long Word (64 bits) Extended Precision Normal or
Instruction Word (48 bits)
BLOCK 0 ROM 0x0004 0000–0x0004 7FFF
Reserved 0x0004 8000–0x0004 BFFF
BLOCK 0 RAM 0x0004 C000–0x0004 FFFF
BLOCK 1 ROM 0x0005 0000–0x0005 7FFF
Reserved 0x0005 8000–0x0005 BFFF
BLOCK 1 RAM 0x0005 C000–0x0005 FFFF
BLOCK 2 RAM 0x0006 0000–0x0006 1FFF
Reserved 0x0006 2000–0x0006 FFFF
BLOCK 3 RAM 0x0007 0000–0x0007 1FFF
Reserved 0x0007 2000–0x0007 FFFF
BLOCK 0 ROM 0x0008 0000–0x0008 AAAA
BLOCK 0 RAM 0x0009 0000–0x0009 5555
BLOCK 1 ROM 0x000A 0000–0x000A AAAA
BLOCK 1 RAM 0x000B 0000–0x000B 5555
BLOCK 2 RAM 0x000C 0000–0x000C 2AAA
BLOCK 3 RAM 0x000E 0000–0x000E 2AAA
Normal Word (32 bits) Short Word (16 bits)
BLOCK 0 ROM 0x0008 0000–0x0008 FFFF
Reserved 0x0009 0000–0x0009 7FFF
BLOCK 0 RAM 0x0009 8000–0x0009 FFFF
BLOCK 1 ROM 0x000A 0000–0x000A FFFF
Reserved 0x000B 0000–0x000B 7FFF
BLOCK 1 RAM 0x000B 8000–0x000B FFFF
BLOCK 2 RAM 0x000C 0000–0x000C 3FFF
Reserved 0x000C 4000–0x000D FFFF
BLOCK 3 RAM 0x000E 0000–0x000E 3FFF
Reserved 0x000E 4000–0x000F FFFF
BLOCK 0 ROM 0x0010 0000–0x0011 FFFF
Reserved 0x0012 0000–0x0012 FFFF
BLOCK 0 RAM 0x0013 0000–0x0013 FFFF
BLOCK 1 ROM 0x0014 0000–0x0015 FFFF
Reserved 0x0016 0000–0x0016 FFFF
BLOCK 1 RAM 0x0017 0000–0x0017 FFFF
BLOCK 2 RAM 0x0018 0000–0x0018 7FFF
Reserved 0x0018 8000–0x001B FFFF
BLOCK 3 RAM 0x001C 0000–0x001C 7FFF
Reserved 0x001C 8000–0x001F FFFF
Reserved 0x0020 0000–0xFFFF FFFF
Rev. PrB | Page 6 of 54 | February 2005
Using the DM bus and PM buses, with one bus dedicated to each memory block, assures single-cycle execution with two data transfers. In this case, the instruction must be available in the cache.

DMA Controller

The ADSP-21365/ADSP-21366’s on-chip DMA controllers allow data transfers without processor intervention. The DMA controller operates independently and invisibly to the processor core, allowing DMA operations to occur while the core is simul­taneously executing its program instructions. DMA transfers can occur between the ADSP-21365/ADSP-21366’s internal memory and their serial ports, the SPI-compatible (serial peripheral interface) ports, the IDP (Input Data Port), the paral­lel data acquisition port (PDAP) or the parallel port. Twenty­five channels of DMA are available on the ADSP-21365/ADSP­21366—two for the SPI interface, twelve via the serial ports, eight via the input data port, two for DTCP (or memory-to­memory data transfer when DTCP is not used), and one via the processor’s parallel port. Programs can be downloaded to the ADSP-21365/ADSP-21366 using DMA transfers. Other DMA features include interrupt generation upon completion of DMA transfers, and DMA chaining for automatic linked DMA transfers.

Digital Audio Interface (DAI)

The digital audio interface (DAI) provides the ability to connect various peripherals to any of the DSPs DAI pins (DAI_P20–1).
Programs make these connections using the signal routing unit (SRU, shown in Figure 3).
The SRU is a matrix routing unit (or group of multiplexers) that enables the peripherals provided by the DAI to be intercon­nected under software control. This allows easy use of the DAI associated peripherals for a much wider variety of applications by using a larger set of algorithms than is possible with noncon­figurable signal paths.
The DAI also includes six serial ports, an S/PDIF receiver/trans­mitter, a DTCP cipher (ADSP-21365 only), a precision clock generator (PCG), eight channels of asynchronous sample rate converters, an input data port (IDP), an SPI port, six flag out­puts and six flag inputs, and three timers. The IDP provides an additional input path to the ADSP-21365/ADSP-21366 core, configurable as either eight channels of I
2
S serial data or as seven channels plus a single 20-bit wide synchronous parallel data acquisition port. Each data channel has its own DMA channel that is independent from the ADSP-21365/ADSP­21366’s serial ports.
For complete information on using the DAI, see the ADSP-
2136x SHARC Processor Hardware Reference for the ADSP­21363/4/5/6 Processors.

Serial Ports

The ADSP-21365/ADSP-21366 feature six synchronous serial ports that provide an inexpensive interface to a wide variety of digital and mixed-signal peripheral devices such as Analog Devices AD183x family of audio codecs, ADCs, and DACs. The
ADSP-21365/ADSP-21366Preliminary Technical Data
TO PROCESSOR BUSES AND
SYSTEM MEMORY
IO DATA BUS (32)
serial ports are made up of two data lines, a clock, and a frame sync. The data lines can be programmed to either transmit or receive and each data line has a dedicated DMA channel.
Serial ports are enabled via 12 programmable and simultaneous receive or transmit pins that support up to 24 transmit or 24 receive channels of audio data when all six SPORTS are enabled, or six full duplex TDM streams of 128 channels per frame.
The serial ports operate at a maximum data rate of 50M bits/s. Serial port data can be automatically transferred to and from on-chip memory via dedicated DMA channels. Each of the serial ports can work in conjunction with another serial port to provide TDM support. One SPORT provides two transmit sig­nals while the other SPORT provides the two receive signals. The frame sync and clock are shared.
Serial ports operate in four modes:
• Standard DSP serial mode
•Multichannel (TDM) mode
IO ADDRESS
BUS (18)
GPIO FLAGS/IRQ/TIMEXP
DMA CONTROLL ER
25 CHANNELS
CONTROL/GPIO
ADDRESS/DATA BUS/ GPIO
PARALLEL PORT
PWM (16)
SPI PORT (1)
S R E F F U B
) D
A
S
E
T
R
P
A
E
P
D
T
A
&
S
M
I
,
G
S
Y
E
U
R
R
T
O
A
P
M
T
O
E
I
S ,
M
(
L O R T N O C
SPI PORT (1)
SERIAL PORTS (6)
INPUT
DATA PORTS (8)
DTCP CIPHER
SPDIF (RX/TX)
SRC (8 CHANNELS)
PRECISION CL OCK
GENERATORS (2)
TIMERS (3)
4
3
16
4
4
3
DIGITAL AUDIO INTERFACE
I/O PROCESSOR
Figure 3. ADSP-21365/ADSP-21366 I/O Processor and
Peripherals Block Diagram
T
I N U
G N
I T U O R
L A N G
I S
20
Rev. PrB | Page 7 of 54 | February 2005
ADSP-21365/ADSP-21366 Preliminary Technical Data
•I2S mode
• Left justified sample pair mode
Left justified sample pair mode is a mode where in each frame sync cycle two samples of data are transmitted/received—one sample on the high segment of the frame sync, the other on the low segment of the frame sync. Programs have control over var­ious attributes of this mode.
Each of the serial ports supports the left justified sample pair
2
S protocols (I2S is an industry standard interface com-
and I monly used by audio codecs, ADCs and DACs such as the Analog Devices AD183x family), with two data pins, allowing four left justified sample pair or I devices) per serial port, with a maximum of up to 24 I
2
S channels (using two stereo
2
S chan­nels. The serial ports permit little-endian or big-endian transmission formats and word lengths selectable from 3 bits to 32 bits. For the left justified sample pair and I
2
S modes, data­word lengths are selectable between 8 bits and 32 bits. Serial ports offer selectable synchronization and transmit modes as well as optional µ-law or A-law companding selection on a per channel basis. Serial port clocks and frame syncs can be inter­nally or externally generated.

Parallel Port

The parallel port provides interfaces to SRAM and peripheral devices. The multiplexed address and data pins (AD15–0) can access 8-bit devices with up to 24 bits of address, or 16-bit devices with up to 16 bits of address. In either mode, 8- or 16­bit, the maximum data transfer rate is 55M bytes/sec.
DMA transfers are used to move data to and from internal memory. Access to the core is also facilitated through the paral­lel port register read/write functions. The RD
, WR, and ALE (Address Latch Enable) pins are the control pins for the parallel port.

Serial Peripheral (Compatible) Interface

The processor’s contain two serial peripheral interface ports (SPIs). The SPI is an industry standard synchronous serial link, enabling the ADSP-21365/ADSP-21366 SPI-compatible port to communicate with other SPI-compatible devices. The SPI con­sists of two data pins, one device select pin, and one clock pin. It is a full-duplex synchronous serial interface, supporting both master and slave modes. The SPI port can operate in a multi­master environment by interfacing with up to four other SPI­compatible devices, either acting as a master or slave device. The ADSP-21365/ADSP-21366 SPI-compatible peripheral imple­mentation also features programmable baud rate and clock phase and polarities. The ADSP-21365/ADSP-21366 SPI com­patible port uses open drain drivers to support a multimaster configuration and to avoid data contention.

S/PDIF-Compatible Digital Audio Receiver/Transmitter and Synchronous/Asynchronous Sample Rate Converter

The S/PDIF transmitter has no separate DMA channels. It receives audio data in serial format and converts it into a biphase encoded signal. The serial data input to the transmitter can be formatted as left justified, I
2
S or right justified with word
widths of 16, 18, 20, or 24 bits.
The serial data, clock, and frame sync inputs to the S/PDIF transmitter are routed through the signal routing unit (SRU). They can come from a variety of sources such as the SPORTs, external pins, the precision clock generators (PCGs), or the sample rate converters (SRC) and are controlled by the SRU control registers.
The sample rate converter (SRC) contains four SRC blocks and is the same core as that used in the AD1896 192 kHz stereo asynchronous sample rate converter and provides up to 128dB SNR. The SRC block is used to perform synchronous or asyn­chronous sample rate conversion across independent stereo channels, without using internal processor resources. The four SRC blocks can also be configured to operate together to con­vert multichannel audio data without phase mismatches. Finally, the SRC is used to clean up audio data from jittery clock sources such as the S/PDIF receiver.

Digital Transmission Content Protection

The DTCP specification defines a cryptographic protocol for protecting audio entertainment content from illegal copying, intercepting and tampering as it traverses high performance digital buses, such as the IEEE 1394 standard. Only legitimate entertainment content delivered to a source device via another approved copy protection system (such as the DVD content scrambling system) will be protected by this copy protection system. This feature is only available on the ADSP-21365 processor.

Pulse-Width Modulation

The PWM module is a flexible, programmable, PWM waveform generator that can be programmed to generate the required switching patterns for various applications related to motor and engine control or audio power control. The PWM generator can generate either center-aligned or edge-aligned PWM wave­forms. In addition, it can generate complementary signals on two outputs in paired mode or independent signals in non­paired mode (applicable to a single group of four PWM waveforms).
The entire PWM module has four groups of four PWM outputs each. Therefore, this module generates 16 PWM outputs in total. Each PWM group produces two pairs of PWM signals on the four PWM outputs.
The PWM generator is capable of operating in two distinct modes while generating center-aligned PWM waveforms: single update mode or double update mode. In single update mode the duty cycle values are programmable only once per PWM period. This results in PWM patterns that are symmetrical about the midpoint of the PWM period. In double update mode, a second updating of the PWM registers is implemented at the midpoint of the PWM period. In this mode, it is possible to produce asymmetrical PWM patterns that produce lower harmonic dis­tortion in three-phase PWM inverters.
Rev. PrB | Page 8 of 54 | February 2005
ADSP-21365/ADSP-21366Preliminary Technical Data

Timers

The ADSP-21365/ADSP-21366 each have a total of four timers: a core timer that can generate periodic software interrupts and three general purpose timers that can generate periodic inter­rupts and be independently set to operate in one of three modes:
• Pulse Waveform Generation mode
• Pulse-Width Count/Capture mode
• External Event Watchdog mode
The core timer can be configured to use FLAG3 as a Timer Expired signal, and each general-purpose timer has one bidirec­tional pin and four registers that implement its mode of operation: a 6-bit configuration register, a 32-bit count register, a 32-bit period register, and a 32-bit pulse-width register. A sin­gle control and status register enables or disables all three general-purpose timers independently.

ROM Based Security

The ADSP-21365/ADSP-21366 have a ROM security feature that provides hardware support for securing user software code by preventing unauthorized reading from the internal code when enabled. When using this feature, the processor does not boot-load any external code, executing exclusively from internal SRAM/ROM. Additionally, the processor is not freely accessible via the JTAG port. Instead, a unique 64-bit key, which must be scanned in through the JTAG or Test Access Port will be assigned to each customer. The device will ignore a wrong key. Emulation features and external boot modes are only available after the correct key is scanned.

Program Booting

The internal memory of the ADSP-21365/ADSP-21366 boots at system power-up from an 8-bit EPROM via the parallel port, an SPI master, an SPI slave or an internal boot. Booting is deter­mined by the Boot Configuration (BOOTCFG1–0) pins (see
Table 6 on Page 15). Selection of the boot source is controlled
via the SPI as either a master or slave device, or it can immedi­ately begin executing from ROM.

Phase-Locked Loop

The ADSP-21365/ADSP-21366 uses an on-chip Phase-Locked Loop (PLL) to generate the internal clock for the core. On power up, the CLKCFG1–0 pins are used to select ratios of 32:1, 16:1, and 6:1 (see Table 7 on Page 15). After booting, numerous other ratios can be selected via software control.
The ratios are made up of software configurable numerator val­ues from 1 to 64 and software configurable divisor values of 1, 2, 4, and 8.

Power Supplies

The ADSP-21365/ADSP-21366 has separate power supply con­nections for the internal (V analog (A
VDD/AVSS
) power supplies. The internal and analog
DDINT
), external (V
DDEXT
), and
supplies must meet the 1.2 V requirement. The external supply must meet the 3.3 V requirement. All external supply pins must be connected to the same power supply.
Note that the analog supply pin (A
) powers the ADSP-
VDD
21365/ADSP-21366’s internal clock generator PLL. To produce a stable clock, it is recommended that PCB designs use an exter­nal filter circuit for the A close as possible to the A
pin. Place the filter components as
VDD VDD/AVSS
pins. For an example circuit, see Figure 4. (A recommended ferrite chip is the muRata BLM18AG102SN1D). To reduce noise coupling, the PCB should use a parallel pair of power and ground planes for V
and GND. Use wide traces to connect the bypass capac-
DDINT
itors to the analog power (A that the A
VDD
and A
pins specified in Figure 4 are inputs to
VSS
) and ground (A
VDD
) pins. Note
VSS
the processor and not the analog ground plane on the board— the A
pin should connect directly to digital ground (GND) at
VSS
the chip.
ADSP-213xx
A
VDD
A
VSS
V
DDINT
100nF 10nF 1nF
HI Z FERRITE
BEAD CHIP
LOCATE ALL COMPONENTS
CLOSE TO A
Figure 4. Analog Power (A
VDD
AND A
VSS
) Filter Circuit
VDD
PINS

Target Board JTAG Emulator Connector

Analog Devices DSP Tools product line of JTAG emulators uses the IEEE 1149.1 JTAG test access port of the ADSP­21365/ADSP-21366 processor to monitor and control the target board processor during emulation. Analog Devices DSP Tools product line of JTAG emulators provides emulation at full pro­cessor speed, allowing inspection and modification of memory, registers, and processor stacks. The processor’s JTAG interface ensures that the emulator will not affect target system loading or timing.
For complete information on Analog Devices’ SHARC DSP Tools product line of JTAG emulator operation, see the appro­priate “Emulator Hardware User’s Guide.”

DEVELOPMENT TOOLS

The ADSP-21365/ADSP-21366 is supported with a complete set of CROSSCORE including Analog Devices emulators and VisualDSP++ opment environment. The same emulator hardware that supports other SHARC processors also fully emulates the ADSP-21365/ADSP-21366.
The VisualDSP++ project management environment lets pro­grammers develop and debug an application. This environment includes an easy to use assembler (which is based on an alge­braic syntax), an archiver (librarian/library builder), a linker, a loader, a cycle-accurate instruction-level simulator, a C/C++ compiler, and a C/C++ runtime library that includes DSP and mathematical functions. A key point for these tools is C/C++ code efficiency. The compiler has been developed for efficient
®
software and hardware development tools,
®
devel-
Rev. PrB | Page 9 of 54 | February 2005
ADSP-21365/ADSP-21366 Preliminary Technical Data
translation of C/C++ code to DSP assembly. The SHARC has architectural features that improve the efficiency of compiled C/C++ code.
The VisualDSP++ debugger has a number of important fea­tures. Data visualization is enhanced by a plotting package that offers a significant level of flexibility. This graphical representa­tion of user data enables the programmer to quickly determine the performance of an algorithm. As algorithms grow in com­plexity, this capability can have increasing significance on the designer’s development schedule, increasing productivity. Sta­tistical profiling enables the programmer to nonintrusively poll the processor as it is running the program. This feature, unique to VisualDSP++, enables the software developer to passively gather important code execution metrics without interrupting the real-time characteristics of the program. Essentially, the developer can identify bottlenecks in software quickly and effi­ciently. By using the profiler, the programmer can focus on those areas in the program that impact performance and take corrective action.
Debugging both C/C++ and assembly programs with the VisualDSP++ debugger, programmers can:
• View mixed C/C++ and assembly code (interleaved source and object information)
• Insert breakpoints
• Set conditional breakpoints on registers, memory, and stacks
• Trace instruction execution
• Perform linear or statistical profiling of program execution
• Fill, dump, and graphically plot the contents of memory
• Perform source level debugging
• Create custom debugger windows
The VisualDSP++ IDDE lets programmers define and manage DSP software development. Its dialog boxes and property pages let programmers configure and manage all of the SHARC devel­opment tools, including the color syntax highlighting in the VisualDSP++ editor. This capability permits programmers to:
• Control how the development tools process inputs and generate outputs
• Maintain a one-to-one correspondence with the tool’s command line switches
The VisualDSP++ Kernel (VDK) incorporates scheduling and resource management tailored specifically to address the mem­ory and timing constraints of DSP programming. These capabilities enable engineers to develop code more effectively, eliminating the need to start from the very beginning, when developing new application code. The VDK features include Threads, Critical and Unscheduled regions, Semaphores, Events, and Device flags. The VDK also supports Priority-based, Preemptive, Cooperative, and Time-Sliced scheduling approaches. In addition, the VDK was designed to be scalable. If the application does not use a specific feature, the support code for that feature is excluded from the target system.
Because the VDK is a library, a developer can decide whether to use it or not. The VDK is integrated into the VisualDSP++ development environment, but can also be used via standard command line tools. When the VDK is used, the development environment assists the developer with many error-prone tasks and assists in managing system resources, automating the gen­eration of various VDK-based objects, and visualizing the system state, when debugging an application that uses the VDK.
VisualDSP++ component software engineering (VCSE) is Ana­log Devices’ technology for creating, using, and reusing software components (independent modules of substantial functionality) to quickly and reliably assemble software applications. It allows downloading components from the Web and dropping them into the application, and publishing component archives from within VisualDSP++. VCSE supports component implementa­tion in C/C++ or assembly language.
Use the expert linker to visually manipulate the placement of code and data on the embedded system. View memory utiliza­tion in a color-coded graphical form, easily move code and data to different areas of the processor or external memory with a drag of the mouse and examine run time stack and heap usage. The expert linker is fully compatible with the existing linker def­inition file (LDF), allowing the developer to move between the graphical and textual environments.
In addition to the software and hardware development tools available from Analog Devices, third parties provide a wide range of tools supporting the SHARC processor family. Hard­ware tools include SHARC processor PC plug-in cards. Third party software tools include DSP libraries, real-time operating systems, and block diagram design tools.

Designing an Emulator-Compatible DSP Board (Target)

The Analog Devices family of emulators are tools that every DSP developer needs to test and debug hardware and software systems. Analog Devices has supplied an IEEE 1149.1 JTAG Test Access Port (TAP) on each JTAG DSP. Nonintrusive in­circuit emulation is assured by the use of the processor’s JTAG interface—the emulator does not affect target system loading or timing. The emulator uses the TAP to access the internal fea­tures of the processor, allowing the developer to load code, set breakpoints, observe variables, observe memory, and examine registers. The processor must be halted to send data and com­mands, but once an operation has been completed by the emulator, the DSP system is set running at full speed with no impact on system timing.
To use these emulators, the target board must include a header that connects the DSP’s JTAG port to the emulator.
For details on target board design issues including mechanical layout, single processor connections, multiprocessor scan chains, signal buffering, signal termination, and emulator pod logic, see the EE-68: Analog Devices JTAG Emulation Technical Reference on the Analog Devices website (www.analog.com)— use site search on “EE-68.” This document is updated regularly to keep pace with improvements to emulator support.
Rev. PrB | Page 10 of 54 | February 2005
ADSP-21365/ADSP-21366Preliminary Technical Data

Evaluation Kit

Analog Devices offers a range of EZ-KIT Lite evaluation plat­forms to use as a cost-effective method to learn more about developing or prototyping applications with Analog Devices processors, platforms, and software tools. Each EZ-KIT Lite includes an evaluation board along with an evaluation suite of the VisualDSP++ development and debugging environment with the C/C++ compiler, assembler, and linker. Also included are sample application programs, power supply, and a USB cable. All evaluation versions of the software tools are limited for use only with the EZ-KIT Lite product.
The USB controller on the EZ-KIT Lite board connects the board to the USB port of the user’s PC, enabling the VisualDSP++ evaluation suite to emulate the on-board proces­sor in-circuit. This permits the customer to download, execute, and debug programs for the EZ-KIT Lite system. It also allows in-circuit programming of the on-board flash device to store user-specific boot code, enabling the board to run as a stand-a­lone unit without being connected to the PC.
With a full version of VisualDSP++ installed (sold separately), engineers can develop software for the EZ-KIT Lite or any cus­tom defined system. Connecting one of Analog Devices JTAG emulators to the EZ-KIT Lite board enables high-speed, non­intrusive emulation.

ADDITIONAL INFORMATION

This data sheet provides a general overview of the ADSP­21365/ADSP-21366 architecture and functionality. For detailed information on the ADSP-2136x Family core architecture and instruction set, refer to the ADSP-2136x SHARC Processor Hardware Reference for the ADSP-21363/4/5/6 Processors and the ADSP-2136x SHARC Processor Programming Reference.
Rev. PrB | Page 11 of 54 | February 2005
ADSP-21365/ADSP-21366 Preliminary Technical Data

PIN FUNCTION DESCRIPTIONS

ADSP-21365/ADSP-21366 pin definitions are listed below. Inputs identified as synchronous (S) must meet timing require­ments with respect to CLKIN (or with respect to TCK for TMS and TDI). Inputs identified as asynchronous (A) can be asserted asynchronously to CLKIN (or to TCK for TRST unused inputs to V
or GND, except for the following:
DDEXT
). Tie or pull
• DAI_Px, SPICLK, MISO, MOSI, EMU
, TMS, TRST, TDI,
and AD15–0 (NOTE: These pins have pull-up resistors.)
The following symbols appear in the Type column of Table 3: A = asynchronous, G = ground, I = input, O = output, P = power supply, S = synchronous, (A/D) = active drive, (O/D) = open drain, and T = three-state, (pd) = pulldown resis­tor, (pu) = pull-up resistor.
Table 3. Pin Descriptions
Pin Type State During and
After Reset
AD15–0 I/O/T
(pu)
RD
WR
ALE O
FLAG3–0 I/O/A Three-state Flag Pins. Each flag pin is configured via control bits as either an input or output. As
O (pu)
O (pu)
(pd)
Three-state with pull-up enabled
Three-state, driven
1
high
Three-state, driven
1
high
Three-state, driven
1
low
Func tion
Parallel Port Address/Data. The ADSP-21365/ADSP-21366 parallel port and its corre-
sponding DMA unit output addresses and data for peripherals on these multiplexed pins. The multiplex state is determined by the ALE pin. The parallel port can operate in either 8-bit or 16-bit mode. Each AD pin has a 22.5 k internal pull-up resistor. See
Address Data Modes on page 15 for details of the AD pin operation.
For 8-bit mode: ALE is automatically asserted whenever a change occurs in the upper 16 external address bits, A23–8; ALE is used in conjunction with an external latch to retain the values of the A23–8.
For 16-bit mode: ALE is automatically asserted whenever a change occurs in the address bits, A15–0; ALE is used in conjunction with an external latch to retain the values of the A15–0. To use these pins as flags (FLAGS15–0) or PWMs (PWM15–0),
1) set (=1) Bit 20 of the SYSCTL register to disable the parallel port, 2) set (=1) Bits 22–25 of the SYSCTL register to enable FLAGS in groups of four (Bit 22 for FLAGS3–0, Bit 23 for FLAGS7–4 etc.) or, set (=1) Bits 26–29 of the SYSCTL register to enable PWMs in groups of four (Bit 26 for PWM0–3, Bit 27 for PWM4–7, and so on). When configured in the IDP_PDAP_CTL register, IDP Channel 0 can use these pins for parallel input data.
Parallel Port Read Enable. RD is asserted low whenever the processor reads 8-bit or 16-bit data from an external memory device. When AD15–0 are flags, this pin remains deasserted. RD has a 22.5 k internal pull-up resistor.
Parallel Port Write Enable. WR is asser ted low whenever the processor writes 8-bit or 16-bit data to an external memory device. When AD15–0 are flags, this pin remains deasserted. WR
Parallel Port Address Latch Enable. ALE is asserted whenever the processor drives a new address on the parallel port address pins. On reset, ALE is active high. However, it can be reconfigured using software to be active low. When AD15–0 are flags, this pin remains deasserted. ALE has a 20 k internal pull-down resistor.
an inp ut, it ca n be test ed a s a c ond itio n. A s an o utp ut, it ca n be used to s ign al ex ter nal peripherals. These pins can be used as an SPI interface slave select output during SPI mastering. These pins are also multiplexed with the IRQx
In SPI master boot mode, FLAG0 is the slave select pin that must be connected to an SPI EPROM. FLAG0 is configured as a slave select during SPI master boot. When Bit 16 is set (=1) in the SYSCTL register, FLAG0 is configured as IRQ0. When Bit 17 is set (=1) in the SYSCTL register, FLAG1 is configured as IRQ1 When Bit 18 is set (=1) in the SYSCTL register, FLAG2 is configured as IRQ2 When Bit 19 is set (=1) in the SYSCTL register, FLAG3 is configured as TIMEXP which indicates that the system timer has expired.
has a 22.5 k internal pull-up resistor.
and the TIMEXP signals.
. .
Rev. PrB | Page 12 of 54 | February 2005
Table 3. Pin Descriptions (Continued)
ADSP-21365/ADSP-21366Preliminary Technical Data
Pin Type State During and
After Reset
DAI_P20–1 I/O/T
(pu)
SPICLK I/O
(pu)
SPIDS
MOSI I/O (O/D)
MISO I/O (O/D)
BOOTCFG1–0 I Input only Boot Configurat ion Select. This pin is used to select the boot mode for the processor.
I Input only Serial Peripheral Interface Slave Device Select. An active low signal used to select
(pu)
(pu)
Three-state with programmable pull-up
Three-state with pull-up enabled
Three-state with pull-up enabled
Three-state with pull-up enabled
Func tion
Digital Audio Interface Pins. These pins provide the physical interface to the SRU.
The SRU configuration registers define the combination of on-chip peripheral inputs or outputs connected to the pin and to the pin’s output enable. The configuration registers of these peripherals then determines the exact behavior of the pin. Any input or output signal present in the SRU may be routed to any of these pins. The SRU provides the connection from the Serial ports, Input data port, precision clock gener­ators and timers, sample rate converters and SPI to the DAI_P20–1 pins These pins have internal 22.5 k pull-up resistors which are enabled on reset. These pull-ups can be disabled in the DAI_PIN_pullup register.
Serial Peripheral Interface Clock Signal. Driven by the master, this signal controls the rate at which data is transferred. The master may transmit data at a variety of baud rates. SPICLK cycles once for each bit transmitted. SPICLK is a gated clock that is active during data transfers, only for the length of the transferred word. Slave devices ignore the serial clock if the slave select input is driven inactive (HIGH). SPICLK is used to shift out and shift in the data driven on the MISO and MOSI lines. The data is always shifted out on one clock edge and sampled on the opposite edge of the clock. Clock polarity and clock phase relative to data are programmable into the SPICTL control register and define the transfer format. SPICLK has a 22.5 k internal pull-up resistor.
the processor as an SPI slave device. This input signal behaves like a chip select, and is provided by the master device for the slave devices. In multimaster mode the DSPs
signal can be driven by a slave device to signal to the processor (as SPI master)
SPIDS that an error has occurred, as some other device is also trying to be the master device. If asserted low when the device is in master mode, it is considered a multimaster error. For a single-master, multiple-slave configuration where flag pins are used, this pin must be tied or pulled high to V 21366 to ADSP-21365/ADSP-21366 SPI interaction, any of the master ADSP­21365/ADSP-21366’s flag pins can be used to drive the SPIDS signal on the ADSP­21365/ADSP-21366 SPI slave device.
SPI Master Out Slave In. If the ADSP-21365/ADSP-21366 is configured as a master, the MOSI pin becomes a data transmit (output) pin, transmitting output data. If the ADSP-21365/ADSP-21366 is configured as a slave, the MOSI pin becomes a data receive (input) pin, receiving input data. In an ADSP-21365/ADSP-21366 SPI intercon­nection, the data is shifted out from the MOSI output pin of the master and shifted into the MOSI input(s) of the slave(s). MOSI has a 22.5 k internal pull-up resistor.
SPI Master In Slave Out. If the ADSP-21365/ADSP-21366 is configured as a master, the MISO pin becomes a data receive (input) pin, receiving input data. If the ADSP­21365/ADSP-21366 is configured as a slave, the MISO pin becomes a data transmit (output) pin, transmitting output data. In an ADSP-21365/ADSP-21366 SPI intercon­nection, the data is shifted out from the MISO output pin of the slave and shifted into the MISO input pin of the master. MISO has a 22.5 k internal pull-up resistor. MISO can be configured as O/D by setting the OPD bit in the SPICTL register. Note: Only one slave is allowed to transmit data at any given time. To enable broadcast transmission to multiple SPI-slaves, the processor’s MISO pin may be disabled by setting (=1) bit 5 (DMISO) of the SPICTL register.
The BOOTCFG pins must be valid before reset is asserted. See Ta ble 6 for a description of the boot modes.
on the master device. For ADSP-21365/ADSP-
DDEXT
Rev. PrB | Page 13 of 54 | February 2005
ADSP-21365/ADSP-21366 Preliminary Technical Data
Table 3. Pin Descriptions (Continued)
Pin Type State During and
Func tion
After Reset
CLKIN I Input only Local Clock In. Used in conjunction with XTAL. CLKIN is the ADSP-21365/ADSP-21366
clock input. It configures the ADSP-21365/ADSP-21366 to use either its internal clock generator or an external clock source. Connecting the necessary components to CLKIN and XTAL enables the internal clock generator. Connecting the external clock to CLKIN while leaving XTAL unconnected configures the ADSP-21365/ADSP-21366 to use the external clock source such as an external clock oscillator. The core is clocked either by the PLL output or this clock input depending on the CLKCFG1–0 pin settings. CLKIN may not be halted, changed, or operated below the specified frequency.
XTAL O Output only
2
Crystal Oscillator Terminal. Used in conjunction with CLKIN to drive an external crystal.
CLKCFG1–0 I Input only Core/CLKIN Ratio Control. These pins set the start up clock frequency. See Table 7
for a description of the clock configuration modes. Note that the operating frequency can be changed by programming the PLL multiplier and divider in the PMCTL register at any time after the core comes out of reset.
RSTOUT
/CLKOUT O Output only Local Clock Out/Reset Out. Drives out the core reset signal to an external device.
CLKOUT can also be configured as a reset out pin. The functionality can be switched between the PLL output clock and reset out by setting bit 12 of the PMCTREG register. The default is reset out.
RESET I/A Input only Processor Reset. Resets the ADSP-21365/ADSP-21366 to a known state. Upon
deassertion, there is a 4096 CLKIN cycle latency for the PLL to lock. After this time, the core begins program execution from the hardware reset vector address. The RESET input must be asserted (low) at power-up.
TCK I Input only
3
Test Clock (JTAG). Provides a clock for JTAG boundary scan. TCK must be asserted (pulsed low) after power-up or held low for proper operation of the ADSP­21365/ADSP-21366.
TMS I/S
(pu)
TDI I/S
(pu) TDO O Three-state TRST
I/A
(pu)
Three-state with pull-up enabled
Three-state with pull-up enabled
4
Three-state with pull-up enabled
Tes t M ode Select ( JTAG ). Used to control the test state machine. TMS has a 22.5 k internal pull-up resistor.
Test Data Input (JTAG). Provides serial data for the boundary scan logic. TDI has a 22.5 k internal pull-up resistor.
Test Data Output (JTAG). Serial scan output of the boundary scan path. Test Reset (JTAG). Resets the test state machine. TRST must be asserted (pulsed low)
after power-up or held low for proper operation of the ADSP-21365/ADSP-21366. TRST has a 22.5 k internal pull-up resistor.
EMU
O (O/D)
(pu)
Three-state with pull-up enabled
Emulation Status. Must be connected to the ADSP-21365/ADSP-21366 Analog Devices DSP Tools product line of JTAG emulators target board connector only. EMU has a 22.5 k internal pull-up resistor.
V
DDINT
P Core Power Supply. Nominally +1.2 V dc and supplies the processor’s core
(13 pins on the Mini-BGA package, 32 pins on the LQFP package).
V
DDEXT
P I/O Power Supply. Nominally +3.3 V dc. (6 pins on the Mini-BGA package, 10 pins on
the LQFP package).
A
VDD
P Analog Power Supply. Nominally +1.2 V dc and supplies the processor’s internal PLL
(clock generator). This pin has the same specifications as V
, except that added
DDINT
filtering circuitry is required. For more information, see Power Supplies on page 9.
A
VSS
G Analog Power Supply Return. GND G Power Supply Return. (54 pins on the Mini-BGA package, 39 pins on the LQFP
package).
1
RD, WR, and ALE are three-stated (and not driven) only when RESET is active.
2
Output only is a three-state driver with its output path always enabled.
3
Input only is a three-state driver with both output path and pull-up disabled.
4
Three-state is a three-state driver with pull-up disabled.
Rev. PrB | Page 14 of 54 | February 2005
ADSP-21365/ADSP-21366Preliminary Technical Data

ADDRESS DATA PINS AS FLAGS

To use these pins as flags (FLAGS15–0) set (=1) Bit 20 of the SYSCTL register to disable the parallel port. Then set (=1) Bits 22 to 25 in the SYSCTL register accordingly.
Table 4. AD15–0 to Flag Pin Mapping
AD Pin Flag Pin AD Pin Flag Pin
AD0 FLAG8 AD8 FLAG0 AD1 FLAG9 AD9 FLAG1 AD2 FLAG10 AD10 FLAG2 AD3 FLAG11 AD11 FLAG3 AD4 FLAG12 AD12 FLAG4 AD5 FLAG13 AD13 FLAG5 AD6 FLAG14 AD14 FLAG6 AD7 FLAG15 AD15 FLAG7

ADDRESS DATA MODES

The following table shows the functionality of the AD pins for 8-bit and 16-bit transfers to the parallel port. For 8-bit data transfers, ALE latches address bits A23–A8 when asserted, fol­lowed by address bits A7–A0 and data bits D7–D0 when deasserted. For 16-bit data transfers, ALE latches address bits A15–A0 when asserted, followed by data bits D15–D0 when deasserted.

BOOT MODES

Table 6. Boot Mode Selection
BOOTCFG1–0 Booting Mode
00 SPI Slave Boot 01 SPI Master Boot 10 Parallel Port boot via EPROM

CORE INSTRUCTION RATE TO CLKIN RATIO MODES

For details on processor timing, see Timing Specifications and
Figure 5 on Page 18.
Table 7. Core Instruction Rate/CLKIN Ratio Selection
CLKCFG1–0 Core to CLKIN Ratio
00 6:1 01 32:1 10 16:1
Table 5. Address/Data Mode Selection
EP Data Mode
8-bit Asserted A15–8 A23–16 8-bit Deasserted D7–0 A7–0 16-bit Asserted A7–0 A15–8 16-bit Deasserted D7–0 D15–8
ALE AD7–0
Func tion
AD15–8 Func tion
Rev. PrB | Page 15 of 54 | February 2005
ADSP-21365/ADSP-21366 Preliminary Technical Data

ADSP-21365/ADSP-21366 SPECIFICATIONS

RECOMMENDED OPERATING CONDITIONS

Parameter
1
K Grade B Grade C Grade
Min Max Min Max Min Max Unit
V
DDINT
A
VDD
V
DDEXT
2
V
IH
2
Low Level Input Voltage @ V
V
IL
V
IH_CLKIN
V
IL_CLKIN
4, 5
T
AMB
1
Specifications subject to change without notice.
2
Applies to input and bidirectional pins: AD15–0, FLAG3–0, DAI_Px, SPICLK, MOSI, MISO, SPIDS, BOOTCFGx, CLKCFGx, RESET, TCK, TMS, TDI, TRST.
3
Applies to input pin CLKIN.
4
See Thermal Characteristics on page 45 for information on thermal specifications.
5
See Engineer-to-Engineer Note (No. TBD) for further information.
Internal (Core) Supply Voltage 1.14 1.26 1.14 1.26 0.95 1.05 V
Analog (PLL) Supply Voltage 1.14 1.26 1.14 1.26 0.95 1.05 V
External (I/O) Supply Voltage 3.13 3.47 3.13 3.47 3.13 3.47 V
High Level Input Voltage @ V
3
High Level Input Voltage @ V
Low Level Input Voltage @ V
= max 2.0 V
DDEXT
= min –0.5 +0.8 –0.5 +0.8 –0.5 +0.8 V
DDEXT
= max 1.74 V
DDEXT
= min –0.5 +1.19 –0.5 +1.19 –0.5 +1.19 V
DDEXT
+ 0.5 2.0 V
DDEXT
+ 0.5 1.74 V
DDEXT
+ 0.5 2.0 V
DDEXT
+ 0.5 1.74 V
DDEXT
DDEXT
DDEXT
+ 0.5 V
+ 0.5 V
Ambient Operating Temperature 0 +70 –40 +85 –40 +105 °C

ELECTRICAL CHARACTERISTICS

Parameter
V
OH
V
OL
4, 5
I
IH
4
I
IL
I
ILPU
I
OZH
I
OZL
I
OZLPU
I
DD-INTYP
AI
DD
11, 12
C
IN
1
Specifications subject to change without notice.
2
Applies to output and bidirectional pins: AD15–0, RD, WR, ALE, FLAG3–0, DAI_Px, SPICLK, MOSI, MISO, EMU, TDO, CLKOUT, XTAL.
3
See Output Drive Currents on page 44 for typical drive current capabilities.
4
Applies to input pins: SPIDS, BOOTCFGx, CLKCFGx, TCK, RESET, CLKIN.
5
Applies to input pins with 22.5 k internal pull-ups: TRST, TMS, TDI.
6
Applies to three-statable pins: FLAG3–0.
7
Applies to three-statable pins with 22.5 k pull-ups: AD15–0, DAI_Px, SPICLK, EMU, MISO, MOSI.
8
Typical internal current data reflects nominal operating conditions.
9
See Engineer-to-Engineer Note (No. TBD) for further information.
10
Characterized, but not tested.
11
Applies to all signal pins.
12
Guaranteed, but not tested.
1
2
2
High Level Output Voltage @ V Low Level Output Voltage @ V High Level Input Current @ V Low Level Input Current @ V
5
6, 7
6
7
8, 9
10
Low Level Input Current Pull-up @ V Three-State Leakage Current @ V Three-State Leakage Current @ V Three-State Leakage Current Pull-up @ V Supply Current (Internal) t Supply Current (Analog) A Input Capacitance fIN=1 MHz, T
Test Conditions Min Max Unit
= min, IOH = –1.0 mA
DDEXT
= min, IOL = 1.0 mA
DDEXT
= max, VIN = V
DDEXT
= max, VIN = 0 V 10 µA
DDEXT
= max, VIN = 0 V 200 µA
DDEXT
= max, VIN = V
DDEXT
= max, VIN = 0 V 10 µA
DDEXT
= max, VIN = 0 V 200 µA
DDEXT
= min, V
CCLK
= max 10 mA
VDD
= nom 500 mA
DDINT
=25°C, VIN=1.2V 4.7 pF
CASE
3
3
max 10 µA
DDEXT
max 10 µA
DDEXT
2.4 V
0.4 V
Rev. PrB | Page 16 of 54 | February 2005

MAXIMUM POWER DISSIPATION

The data in this table is based on theta JA (θJA) established per JEDEC standards JESD51-2 and JESD51-6. See Engineer-to­Engineer note (EE-TBD) for further information. For informa­tion on package thermal specifications, see Thermal
Characteristics on page 45.
ADSP-21365/ADSP-21366Preliminary Technical Data
Max Ambient
1
Te mp
144 INT–HS
2
LQFP
144 INT–HS
3
LQFP
136 Mini-
4
BGA
136 Mini-
5
BGA
70°C 3.33 W 2.10 2.44 W 2.18 W 85°C 2.42 W N/A 1.77 W N/A 105°C 1.21 W N/A N/A N/A
1
Power Dissipation greater than that listed above may cause permanent damage to the device.
For more information, see Thermal Characteristics on page 45.
2
Heat slug soldered to PCB
3
Heat slug not soldered to PCB
4
Thermal vias in PCB
5
No thermal vias in PCB

ABSOLUTE MAXIMUM RATINGS

Parameter Rating
Internal (Core) Supply Voltage (V Analog (PLL) Supply Voltage (A External (I/O) Supply Voltage (V Input Voltage –0.5 V to V
DDEXT
1
Output Voltage Swing –0.5 V to V Load Capacitance Storage Temperature Range
1
1
–65°C to +150°C
Junction Temperature under Bias 125°C
1
Stresses greater than those listed above may cause permanent damage to the device.
These are stress ratings only; functional operation of the device at these or any other conditions greater than those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
DDINT
VDD
DDEXT
DDEXT
1
)
1
)
1
)
–0.3 V to +1.5 V –0.3 V to +1.5 V –0.3 V to +4.6 V +0.5 V
1
+0.5 V 200 pF

ESD SENSITIVITY

CAUTION
ESD (electrostatic discharge) sensitive device. Electrostatic charges as high as 4000 V readily accumulate on the human body and test equipment and can discharge without detection. Although the ADSP-21365/ADSP-21366 feature proprietary ESD protection circuitry, permanent damage may occur on devices subjected to high energy electrostatic discharges. Therefore, proper ESD precautions are recommended to avoid performance degradation or loss of functionality.
Rev. PrB | Page 17 of 54 | February 2005
Loading...
+ 37 hidden pages