Freescale Semiconductor
Technical Information Center, CH370
1300 N. Alma School Road
Chandler, Arizona 85224
+1-800-521-6274 or +1-480-768-2130
support@freescale.com
Freescale Semiconductor Japan Ltd.
Headquarters
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064, Japan
0120 191014 or +81 3 5437 9125
support.japan@freescale.com
Asia/Pacific:
Freescale Semiconductor Hong Kong Ltd.
Technical Information Center
2 Dai King Street
Tai Po Industrial Estate
Tai Po, N.T., Hong Kong
+800 2666 8080
support.asia@freescale.com
For Literature Requests Only:
Freescale Semiconductor Literature Distribution Center
P.O. Box 5405
Denver, Colorado 80217
1-800-521-6274 or 303-675-2140
Fax: 303-675-2150
LDCForFreescaleSemiconductor@hibbertgroup.com
Information in this document is provided solely to enable system and software implementers to use
Freescale Semiconductor products. There are no express or implied copyright licenses granted
hereunder to design or fabricate any integrated circuits or integrated circuits based on the information
in this document.
Freescale Semiconductor reserves the right to make changes without further notice to any products
herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the
suitability of its products for any particular purpose, nor does Freescale Semiconductor assume any
liability arising out of the application or use of any product or circuit, and specifically disclaims any
and all liability, including without limitation consequential or incidental damages. “Typical” parameters
that may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary
in different applications and actual performance may vary over time. All operating parameters,
including “Typicals”, must be validated for each customer application by customer’s technical experts.
Freescale Semiconductor does not convey any license under its patent rights nor the rights of others.
Freescale Semiconductor products are not designed, intended, or authorized for use as components
in systems intended for surgical implant into the body, or other applications intended to support or
sustain life, or for any other application in which the failure of the Freescale Semiconductor product
could create a situation where personal injury or death may occur. Should Buyer purchase or use
Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall
indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and
distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney
fees arising out of, directly or indirectly, any claim of personal injury or death associated with such
unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was
negligent regarding the design or manufacture of the part.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other
product or service names are the property of their respective owners.
This manual describes the DSP56366 24-bit digital signal processor (DSP), its memory, operating modes,
and peripheral modules. The DSP56366 is a member of the DSP56300 family of programmable CMOS
DSPs. Changes in core functionality specific to the DSP56366 are also described in this manual.
The DSP56366 is targeted to applications that require digital audio compression and decompression,
sound field processing, acoustic equalization, and other digital audio algorithms.
This manual is intended to be used with the following publications:
•The DSP56300 Family Manual (DSP56300FM), which describes the CPU, core programming models,
and instruction set details.
•The DSP56366 Technical Data Sheet (DSP56366), which provides electrical specifications, timing,
pinout, and packaging descriptions of the DSP56366.
These documents, as well as Freescale’s DSP development tools, can be obtained through a local Freescale
Semiconductor Sales Office or authorized distributor.
To receive the latest information on this DSP, access the Freescale DSP home page at the address given on
the back cover of this document.
This manual contains the following sections and appendices.
SECTION 1—DSP56366 OVERVIEW
•Provides a brief description of the DSP56366, including a features list and block diagram. Lists
related documentation needed to use this chip and describes the organization of this manual.
SECTION 2—SIGNAL/CONNECTION DESCRIPTIONS
•Describes the signals on the DSP56366 pins and how these signals are grouped into interfaces.
SECTION 3—MEMORY CONFIGURATION
•Describes the DSP56366 memory spaces, RAM and ROM configuration, memory configurations
and their bit settings, and memory maps.
SECTION 4—CORE CONFIGURATION
•Describes the registers used to configure the DSP56300 core when programming the DSP56366,
in particular the interrupt vector locations and the operation of the interrupt priority registers.
Explains the operating modes and how they affect the processor’s program and data memories.
SECTION 5—GENERAL PURPOSE INPUT/OUTPUT (GPIO)
•Describes the DSP56366 GPIO capability and the programming model for the GPIO signals
(operation, registers, and control).
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductori
SECTION 6— HOST INTERFACE (HDI08)
•Describes the HDI08 parallel host interface.
SECTION 7—SERIAL HOST INTERFACE (SHI)
•Describes the serial input/output interface providing a path for communication and
program/coefficient data transfers between the DSP and an external host processor. The SHI can
also communicate with other serial peripheral devices.
SECTION 8—ENHANCED SERIAL AUDIO INTERFACE (ESAI)
•Describes one of the full-duplex serial port for serial communication with a variety of serial
devices.
SECTION 9—ENHANCED SERIAL AUDIO INTERFACE 1 (ESAI_1)
•Describes the second full-duplex serial port for serial communication with a variety of serial
devices.
SECTION 10—DIGITAL AUDIO TRANSMITTER (DAX)
•Describes the full-duplex serial port for serial communication with a variety of serial devices.
SECTION 11—TRIPLE TIMER MODULE (TEC)
APPENDIX A—BOOTSTRAP PROGRAM
•Lists the bootstrap code used for the DSP56366.
APPENDIX B—EQUATES
•Lists equates for the DSP56366.
APPENDIX C—JTAG/BSDL LISTING
•Provides the BSDL listing for the DSP56366.
APPENDIX D—PROGRAMMING REFERENCE
•Lists peripheral addresses, interrupt addresses, and interrupt priorities for the DSP56366. Contains
programming sheets listing the contents of the major DSP56366 registers for programmer
reference.
Manual Conventions
The following conventions are used in this manual:
•Bits within registers are always listed from most significant bit (MSB) to least significant bit
(LSB).
•When several related bits are discussed, they are referenced as AA[n:m], where n>m. For purposes
of description, the bits are presented as if they are contiguous within a register. However, this is not
always the case. Refer to the programming model diagrams or to the programmer’s sheets to see
the exact location of bits within a register.
•When a bit is described as “set”, its value is 1. When a bit is described as “cleared”, its value is 0.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
iiFreescale Semiconductor
•The word “assert” means that a high true (active high) signal is pulled high to VCC or that a low
true (active low) signal is pulled low to ground. The word “deassert” means that a high true signal
is pulled low to ground or that a low true signal is pulled high to VCC.
High True/Low True Signal Conventions
Signal/SymbolLogic StateSignal StateVoltage
1
PIN
PINFalseDeassertedV
PINTrueAssertedV
PINFalseDeassertedGround
1
PIN is a generic term for any pin on the chip.
2
Ground is an acceptable low voltage level. See the appropriate data sheet for the range of
acceptable low voltage levels (typically a TTL logic low).
3
VCC is an acceptable high voltage level. See the appropriate data sheet for the range of acceptable
high voltage levels (typically a TTL logic high).
TrueAssertedGround
CC
CC
2
3
•Pins or signals that are asserted low (made active when pulled to ground)
— In text, have an overbar (e.g., RESET is asserted low).
— In code examples, have a tilde in front of their names. In example below, line 3 refers to the
SS0 pin (shown as ~SS0).
•Sets of pins or signals are indicated by the first and last pins or signals in the set (e.g., HA1–HA8).
•Code examples are displayed in a monospaced font, as shown below:
Example Sample Code Listing
BFSET#$0007,X:PCC Configure:line 1
; MISO0, MOSI0, SCK0 for SPI masterline 2
; ~SS0 as PC3 for GPIOline 3
•Hex values are indicated with a dollar sign ($) preceding the hex value, as follows: $FFFFFF is the
X memory address for the core interrupt priority register (IPR-C).
•The word “reset” is used in four different contexts in this manual:
— the reset signal, written as “RESET,”
— the reset instruction, written as “RESET,”
— the reset operating state, written as “Reset,” and
— the reset function, written as “reset.”
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductoriii
NOTES
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
ivFreescale Semiconductor
1DSP56366 Overview
1.1Introduction
This manual describes the DSP56366 24-bit digital signal processor (DSP), its memory, operating modes,
and peripheral modules. The DSP56366 is a member of the DSP56300 family of programmable CMOS
DSPs. The DSP56366 is targeted to applications that require digital audio compression/decompression,
sound field processing, acoustic equalization and other digital audio algorithms. Changes in core
functionality specific to the DSP56366 are also described in this manual. See Figure 1-1 for the block
diagram of the DSP56366.
4
8
6
ESAI
INTER-
FACE
ESAI_1
PERIPHERAL
EXPANSION AREA
INTER-
FACE
PIO_EB
24-BIT
DSP56300
Core
SHI
5
MEMORY EXPANSION AREA
PM_EB
YAB
XAB
PAB
DAB
X MEMORY
13K X 24
32K x 24
PROGRAM
RAM
/INSTR.
CACHE
3K x 24
PROGRAM
ROM
40K x 24
Bootstrap
DDB
YDB
XDB
PDB
GDB
RAM
ROM
XM_EB
Y MEMORY
RAM
7K X 24
ROM
8K x 24
YM_EB
EXTERNAL
ADDRESS
SWITCH
DRAM &
SRAM BUS
INTERFACE
I - CACHE
EXTERNAL
DATA BUS
BUS
&
SWITCH
18
ADDRESS
10
CONTROL
24
DATA
TRIPLE
TIMER
1
2
DAX
(SPDIF Tx.)
INTER-FAC
E
ADDRESS
GENERATION
UNIT
SIX CHANNELS
DMA UNIT
INTERNAL
DATA
BUS
16
HOST
INTER-
FAC E
POWER
PLL
CLOCK
GENERATO
EXTAL
RESET
PINIT/NMI
PROGRAM
INTERRUPT
CONTROLLER
PROGRAM
DECODE
CONTROLLE
MODA/IRQA
MODB/IRQB
MODC/IRQC
PROGRAM
ADDRESS
GENERATOR
DATA ALU
24X24+56->56-BIT MAC
TWO 56-BIT ACCUMULATORS
BARREL SHIFTER
24 BITS BUS
MNGMNT
JTAG
OnCE™
4
MODD/IRQD
Figure 1-1 DSP56366 Block Diagram
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor1-1
DSP56300 Core Description
1.2DSP56300 Core Description
The DSP56366 uses the DSP56300 core, a high-performance, single clock cycle per instruction engine that
provides up to twice the performance of Freescale's popular DSP56000 core family while retaining code
compatibility with it.
The DSP56300 core family offers a new level of performance in speed and power, provided by its rich
instruction set and low power dissipation, thus enabling a new generation of wireless, telecommunications,
and multimedia products. For a description of the DSP56300 core, see Section 1.4, "DSP56300 Core
Functional Blocks". Significant architectural enhancements to the DSP56300 core family include a barrel
shifter, 24-bit addressing, an instruction cache, and direct memory access (DMA).
The DSP56300 core family members contain the DSP56300 core and additional modules. The modules
are chosen from a library of standard predesigned elements such as memories and peripherals. New
modules may be added to the library to meet customer specifications. A standard interface between the
DSP56300 core and the on-chip memory and peripherals supports a wide variety of memory and
peripheral configurations. Refer to Section 3, "Memory Configuration".
Core features are described fully in the DSP56300 Family Manual. Pinout, memory, and peripheral
features are described in this manual.
•DSP56300 modular chassis
— 120 Million Instructions Per Second (MIPS) with an 120 MHz clock at 3.3V.
— Object Code Compatible with the 56K core.
— Data ALU with a 24 × 24 bit multiplier-accumulator and a 56-bit barrel shifter. 16-bit
arithmetic support.
— Program Control with position independent code support and instruction cache support.
— Six-channel DMA controller.
— PLL based clocking with a wide range of frequency multiplications (1 to 4096), predivider
factors (1 to 16) and power saving clock divider (2i: i=0 to 7). Reduces clock noise.
— Internal address tracing support and OnCE™ for Hardware/Software debugging.
— JTAG port.
— Very low-power CMOS design, fully static design with operating frequencies down to DC.
— STOP and WAIT low-power standby modes.
•On-chip Memory Configuration
—7K × 24 Bit Y-Data RAM and 8K × 24 Bit Y-Data ROM.
— 13K × 24 Bit X-Data RAM and 32K × 24 Bit X-Data ROM.
— 40K × 24 Bit Program ROM.
—3K × 24 Bit Program RAM and 192 × 24 Bit Bootstrap ROM. 1K of Program RAM may be
used as Instruction Cache or for Program ROM patching.
—2K × 24 Bit from Y Data RAM and 5K × 24 Bit from X Data RAM can be switched to Program
RAM resulting in up to 10K × 24 Bit of Program RAM.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
1-2Freescale Semiconductor
DSP56366 Audio Processor Architecture
— Off-chip expansion up to two 16M × 24-bit word of Data memory.
— Off-chip expansion up to 16M × 24-bit word of Program memory.
— Simultaneous glueless interface to SRAM and DRAM.
•Peripheral modules
— Serial Audio Interface (ESAI): up to 4 receivers and up to 6 transmitters, master or slave. I
Sony, AC97, network and other programmable protocols.
— Serial Audio Interface I (ESAI_1): up to 4 receivers and up to 6 transmitters, master or slave.
2
I
S, Sony, AC97, network and other programmable protocols
The ESAI_1 shares four of the data pins with ESAI, and ESAI_1 does NOT support HCKR and
HCKT (high frequency clocks)
— Serial Host Interface (SHI): SPI and I2C protocols, multi master capability, 10-word receive
FIFO, support for 8, 16 and 24-bit words.
— Byte-wide parallel Host Interface (HDI08) with DMA support.
— Triple Timer module (TEC).
— Digital Audio Transmitter (DAX): 1 serial transmitter capable of supporting the SPDIF,
IEC958, CP-340 and AES/EBU digital audio formats.
— Pins of unused peripherals (except SHI) may be programmed as GPIO lines.
•144-pin plastic TQFP package.
2
S,
1.3DSP56366 Audio Processor Architecture
This section defines the DSP56366 audio processor architecture. The audio processor is composed of the
following units:
•The DSP56300 core is composed of the Data ALU, Address Generation Unit, Program Controller,
Instruction-Cache Controller, DMA Controller, PLL-based clock oscillator, Memory Module
Interface, Peripheral Module Interface and the On-Chip Emulator (OnCE). The DSP56300 core is
described in the document DSP56300 24-Bit Digital Signal Processor Family Manual, Freescale
publication DSP56300FM.
•Memory modules.
•Peripheral modules. The peripheral modules are defined in the following sections.
Memory sizes in the block diagram are defaults. Memory may be differently partitioned, according to the
memory mode of the chip. See Section 1.4.8, "On-Chip Memory" for more details about memory size.
1.4DSP56300 Core Functional Blocks
The DSP56300 core provides the following functional blocks:
•Data arithmetic logic unit (Data ALU)
•Address generation unit (AGU)
•Program control unit (PCU)
•Bus interface unit (BIU)
•DMA controller (with six channels)
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor1-3
DSP56300 Core Functional Blocks
•Instruction cache controller
•PLL-based clock oscillator
•OnCE module
•JTAG TAP
•Memory
In addition, the DSP56366 provides a set of on-chip peripherals, described in Section 1.5, "Peripheral
Overview".
1.4.1Data ALU
The Data ALU performs all the arithmetic and logical operations on data operands in the DSP56300 core.
The components of the Data ALU are as follows:
•Bit field unit, comprising a 56-bit parallel barrel shifter (fast shift and normalization; bit stream
generation and parsing)
•Conditional ALU instructions
•24-bit or 16-bit arithmetic support under software control
•Four 24-bit input general purpose registers: X1, X0, Y1, and Y0
•Six Data ALU registers (A2, A1, A0, B2, B1, and B0) that are concatenated into two general
purpose, 56-bit accumulators (A and B), accumulator shifters
•Two data bus shifter/limiter circuits
1.4.1.1Data ALU Registers
The Data ALU registers can be read or written over the X memory data bus (XDB) and the Y memory data
bus (YDB) as 24- or 48-bit operands (or as 16- or 32-bit operands in 16-bit arithmetic mode). The source
operands for the Data ALU, which can be 24, 48, or 56 bits (16, 32, or 40 bits in 16-bit arithmetic mode),
always originate from Data ALU registers. The results of all Data ALU operations are stored in an
accumulator.
All the Data ALU operations are performed in two clock cycles in pipeline fashion so that a new
instruction can be initiated in every clock, yielding an effective execution rate of one instruction per clock
cycle. The destination of every arithmetic operation can be used as a source operand for the immediately
following arithmetic operation without a time penalty (i.e., without a pipeline stall).
1.4.1.2Multiplier-Accumulator (MAC)
The MAC unit comprises the main arithmetic processing unit of the DSP56300 core and performs all of
the calculations on data operands. In the case of arithmetic instructions, the unit accepts as many as three
input operands and outputs one 56-bit result of the following form- Extension:Most Significant
Product:Least Significant Product (EXT:MSP:LSP).
The multiplier executes 24-bit × 24-bit, parallel, fractional multiplies, between two’s-complement signed,
unsigned, or mixed operands. The 48-bit product is right-justified and added to the 56-bit contents of either
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
1-4Freescale Semiconductor
DSP56300 Core Functional Blocks
the A or B accumulator. A 56-bit result can be stored as a 24-bit operand. The LSP can either be truncated
or rounded into the MSP. Rounding is performed if specified.
1.4.2Address Generation Unit (AGU)
The AGU performs the effective address calculations using integer arithmetic necessary to address data
operands in memory and contains the registers used to generate the addresses. It implements four types of
arithmetic: linear, modulo, multiple wrap-around modulo, and reverse-carry. The AGU operates in parallel
with other chip resources to minimize address-generation overhead.
The AGU is divided into two halves, each with its own Address ALU. Each Address ALU has four sets of
register triplets, and each register triplet is composed of an address register, an offset register, and a
modifier register. The two Address ALUs are identical. Each contains a 24-bit full adder (called an offset
adder).
A second full adder (called a modulo adder) adds the summed result of the first full adder to a modulo
value that is stored in its respective modifier register. A third full adder (called a reverse-carry adder) is
also provided.
The offset adder and the reverse-carry adder are in parallel and share common inputs. The only difference
between them is that the carry propagates in opposite directions. Test logic determines which of the three
summed results of the full adders is output.
Each Address ALU can update one address register from its respective address register file during one
instruction cycle. The contents of the associated modifier register specifies the type of arithmetic to be used
in the address register update calculation. The modifier value is decoded in the Address ALU.
1.4.3Program Control Unit (PCU)
The PCU performs instruction prefetch, instruction decoding, hardware DO loop control, and exception
processing. The PCU implements a seven-stage pipeline and controls the different processing states of the
DSP56300 core. The PCU consists of the following three hardware blocks:
•Program decode controller (PDC)
•Program address generator (PAG)
•Program interrupt controller (PIC)
The PDC decodes the 24-bit instruction loaded into the instruction latch and generates all signals necessary
for pipeline control. The PAG contains all the hardware needed for program address generation, system
stack, and loop control. The PIC arbitrates among all interrupt requests (internal interrupts, as well as the
five external requests: IRQA, IRQB, IRQC, IRQD, and NMI), and generates the appropriate interrupt
vector address.
PCU features include the following:
•Position independent code support
•Addressing modes optimized for DSP applications (including immediate offsets)
•On-chip instruction cache controller
•On-chip memory-expandable hardware stack
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor1-5
DSP56300 Core Functional Blocks
•Nested hardware DO loops
•Fast auto-return interrupts
The PCU implements its functions using the following registers:
•PC—program counter register
•SR—Status register
•LA—loop address register
•LC—loop counter register
•VBA—vector base address register
•SZ—stack size register
•SP—stack pointer
•OMR—operating mode register
•SC—stack counter register
The PCU also includes a hardware system stack (SS).
1.4.4Internal Buses
To provide data exchange between blocks, the following buses are implemented:
•Peripheral input/output expansion bus (PIO_EB) to peripherals
•Program memory expansion bus (PM_EB) to program memory
•X memory expansion bus (XM_EB) to X memory
•Y memory expansion bus (YM_EB) to Y memory
•Global data bus (GDB) between registers in the DMA, AGU, OnCE, PLL, BIU, and PCU as well
as the memory-mapped registers in the peripherals
•DMA data bus (DDB) for carrying DMA data between memories and/or peripherals
•DMA address bus (DAB) for carrying DMA addresses to memories and peripherals
•Program Data Bus (PDB) for carrying program data throughout the core
•X memory Data Bus (XDB) for carrying X data throughout the core
•Y memory Data Bus (YDB) for carrying Y data throughout the core
•Program address bus (PAB) for carrying program memory addresses throughout the core
•X memory address bus (XAB) for carrying X memory addresses throughout the core
•Y memory address bus (YAB) for carrying Y memory addresses throughout the core
All internal buses on the DSP56300 family members are 24-bit buses. See Figure 1-1.
1.4.5Direct Memory Access (DMA)
The DMA block has the following features:
•Six DMA channels supporting internal and external accesses
•One-, two-, and three-dimensional transfers (including circular buffering)
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
1-6Freescale Semiconductor
DSP56300 Core Functional Blocks
•End-of-block-transfer interrupts
•Triggering from interrupt lines and all peripherals
1.4.6PLL-based Clock Oscillator
The clock generator in the DSP56300 core is composed of two main blocks: the PLL, which performs
clock input division, frequency multiplication, and skew elimination; and the clock generator (CLKGEN),
which performs low-power division and clock pulse generation. PLL-based clocking:
•Allows change of low-power divide factor (DF) without loss of lock
•Provides output clock with skew elimination
•Provides a wide range of frequency multiplications (1 to 4096), predivider factors (1 to 16), and a
power-saving clock divider (2i: i = 0 to 7) to reduce clock noise
The PLL allows the processor to operate at a high internal clock frequency using a low frequency clock
input. This feature offers two immediate benefits:
•A lower frequency clock input reduces the overall electromagnetic interference generated by a
system.
•The ability to oscillate at different frequencies reduces costs by eliminating the need to add
additional oscillators to a system.
1.4.7JTAG TAP and OnCE Module
The DSP56300 core provides a dedicated user-accessible TAP fully compatible with the IEEE 1149.1
Standard Test Access Port and Boundary Scan Architecture
. Problems associated with testing high-density
circuit boards led to developing this standard under the sponsorship of the Test Technology Committee of
IEEE and JTAG. The DSP56300 core implementation supports circuit-board test strategies based on this
standard.
The test logic includes a TAP consisting of four dedicated signals, a 16-state controller, and three test data
registers. A boundary scan register links all device signals into a single shift register. The test logic,
implemented utilizing static logic design, is independent of the device system logic. More information on
the JTAG port is provided in DSP56300 Family Manual, JTAG Port.
The OnCE module provides a nonintrusive means of interacting with the DSP56300 core and its
peripherals so a user can examine registers, memory, or on-chip peripherals. This facilitates hardware and
software development on the DSP56300 core processor. OnCE module functions are provided through the
JTAG TAP signals. More information on the OnCE module is provided in DSP56300 Family Manual,
On-Chip Emulation Module
.
1.4.8On-Chip Memory
The memory space of the DSP56300 core is partitioned into program memory space,
X data memory space, and Y data memory space. The data memory space is divided into X and Y data
memory in order to work with the two Address ALUs and to feed two operands simultaneously to the Data
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor1-7
Peripheral Overview
ALU. Memory space includes internal RAM and ROM and can be expanded off-chip under software
control.
There is an instruction cache, made using program RAM. The patch mode (which uses instruction cache
space) is used to patch program ROM. The memory switch mode is used to increase the size of program
RAM as needed (switch from X data RAM and/or Y data RAM).
There are on-chip ROMs for program memory (40K × 24-bit), bootstrap memory (192 words × 24-bit), X
ROM (32K × 24-bit), and Y ROM(8K × 24-bit).
More information on the internal memory is provided in Section 3, "Memory Configuration".
1.4.9Off-Chip Memory Expansion
Memory can be expanded off-chip as follows:
•Data memory can be expanded to two 16 M × 24-bit word memory spaces in 24-bit address mode
(64K in 16-bit address mode).
•Program memory can be expanded to one 16 M × 24-bit word memory space in 24-bit address
mode (64K in 16-bit address mode).
Other features of external memory expansion include the following:
•External memory expansion port
•Chip-select logic glueless interface to static random access memory (SRAM)
•On-chip dynamic RAM (DRAM) controller for glueless interface to DRAM
•Eighteen external address lines
1.5Peripheral Overview
The DSP56366 is designed to perform a wide variety of fixed-point digital signal processing functions. In
addition to the core features previously discussed, the DSP56366 provides the following peripherals:
•8-bit parallel host interface (HDI08, with DMA support) to external hosts
•As many as 37 user-configurable general purpose input/output (GPIO) signals
•Timer/event counter (TEC) module, containing three independent timers
•Memory switch mode in on-chip memory
•Four external interrupt/mode control lines and one external non-maskable interrupt line
•Enhanced serial audio interface (ESAI) with up to four receivers and up to six transmitters, master
or slave, using the I
•A second enhanced serial audio interface (ESAI_1) with 6 dedicated pins.
•Serial host interface (SHI) using SPI and I
receive FIFO, and support for 8-, 16-, and 24-bit words
•Digital audio transmitter (DAX): a serial transmitter capable of supporting the SPDIF, IEC958,
CP-340, and AES/EBU digital audio formats
2
S, Sony, AC97, network, and other programmable protocols
2
C protocols, with multi-master capability, 10-word
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
1-8Freescale Semiconductor
Peripheral Overview
1.5.1Host Interface (HDI08)
The host interface (HDI08) is a byte-wide, full-duplex, double-buffered, parallel port that can be connected
directly to the data bus of a host processor. The HDI08 supports a variety of buses and provides glueless
connection with a number of industry-standard DSPs, microcomputers, microprocessors, and DMA
hardware.
The DSP core treats the HDI08 as a memory-mapped peripheral, using either standard polled or interrupt
programming techniques. Separate transmit and receive data registers are double-buffered to allow the
DSP and host processor to efficiently transfer data at high speed. Memory mapping allows DSP core
communication with the HDI08 registers to be accomplished using standard instructions and addressing
modes.
Since the host bus may operate asynchronously with the DSP core clock, the HDI08 registers are divided
into 2 banks. The “host side” bank is accessible to the external host, and the “DSP side” bank is accessible
to the DSP core.
The HDI08 supports the following three classes of interfaces:
•Host processor/MCU connection
•DMA controller
•GPIO port
Host port pins not in use may be configured as GPIO pins. The host interface provides up to 16 GPIO pins.
These pins can be programmed to function as either GPIO or host interface.
For more information on the HDI08, see Section 6, Host Interface (HDI08).
1.5.2General Purpose Input/Output (GPIO)
The GPIO port consists of as many as 37 programmable signals, all of which are also used by the
peripherals (HDI08, ESAI, ESAI_1, DAX, and TEC). There are no dedicated GPIO signals. The signals
are configured as GPIO after hardware reset. Register programming techniques for all GPIO functionality
among these interfaces are very similar.
1.5.3Triple Timer (TEC)
This section describes a peripheral module composed of a common 21-bit prescaler and three independent
and identical general purpose 24-bit timer/event counters, each one having its own register set.
Each timer can use internal or external clocking and can interrupt the DSP after a specified number of
events (clocks). Timer 0 can signal an external device after counting internal events. Each timer can also
be used to trigger DMA transfers after a specified number of events (clocks) occurred. One timer (Timer
0) connects to the external world through one bidirectional pin TIO0. When TIO0 is configured as input,
the timer functions as an external event counter or can measure external pulse width/signal period. When
TIO0 is used as output the timer is functioning as either a timer, a watchdog or a Pulse Width Modulator.
When the TIO0 pin is not used by the timer it can be used as a General Purpose Input/Output Pin. Refer
to Section 11, "Timer/ Event Counter".
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor1-9
Peripheral Overview
1.5.4Enhanced Serial Audio Interface (ESAI)
The ESAI provides a full-duplex serial port for serial communication with a variety of serial devices
including one or more industry-standard codecs, other DSPs, microprocessors, and peripherals that
implement the Freescale SPI serial protocol. The ESAI consists of independent transmitter and receiver
sections, each with its own clock generator. It is a superset of the DSP56300 family ESSI peripheral and
of the DSP56000 family SAI peripheral. For more information on the ESAI, refer to Section 8, "Enhanced
Serial AUDIO Interface (ESAI)".
1.5.5Enhanced Serial Audio Interface 1 (ESAI_1)
The ESAI_1 is a second ESAI interface with just 6 dedicated pins instead of the 12 pins of the full ESAI.
Four data pins are shared with the ESAI, while the two high frequency clock pins are not available. Other
than the available pins, ESAI_1 is functionally identical to ESAI. For more information on the ESAI_1,
refer to Section 9, "Enhanced Serial Audio Interface 1 (ESAI_1)".
1.5.6Serial Host Interface (SHI)
The SHI is a serial input/output interface providing a path for communication and program/coefficient data
transfers between the DSP and an external host processor. The SHI can also communicate with other serial
peripheral devices. The SHI can interface directly to either of two well-known and widely used
synchronous serial buses: the Freescale serial peripheral interface (SPI) bus and the Philips
inter-integrated-circuit control (I2C) bus. The SHI supports either the SPI or I2C bus protocol, as required,
from a slave or a single-master device. To minimize DSP overhead, the SHI supports single-, double-, and
triple-byte data transfers. The SHI has a 10-word receive FIFO that permits receiving up to 30 bytes before
generating a receive interrupt, reducing the overhead for data reception. For more information on the SHI,
refer to Section 7, "Serial Host Interface".
1.5.7Digital Audio Transmitter (DAX)
The DAX is a serial audio interface module that outputs digital audio data in the AES/EBU, CP-340 and
IEC958 formats. For more information on the DAX, refer to Section 10, "Digital Audio Transmitter".
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
1-10Freescale Semiconductor
2Signal/Connection Descriptions
2.1Signal Groupings
The input and output signals of the DSP56364 are organized into functional groups, which are listed in
Table 2-1 and illustrated in Figure 2-1.
The DSP56364 is operated from a 3.3 V supply; however, some of the inputs can tolerate 5 V. A special
notice for this feature is added to the signal descriptions of those inputs.
Table 2-1 DSP56364 Functional Signal Groupings
Functional Group
Power (V
Ground (GND)18Table 2-3
Clock and PLL3Table 2-4
Address bus
Data bus24Tab le 2-6
Bus control10Tab le 2-7
Interrupt and mode control5Table 2-8
HDI08Port B
SHI5Table 2-10
ESAI Port C
ESAI_1Port E
Digital audio transmitter (DAX)Port D
)20Table 2-2
CC
1
Por t A
2
3
4
5
Number of
Signals
18
16Tab le 2-9
12
6
2
Detailed
Description
Table 2-5
Table 2-11
Table 2-12
Table 2-13
Timer1Table 2-14
JTAG/OnCE Port4Table 2-15
1
Port A is the external memory interface port, including the external address bus, data bus, and control signals.
2
Port B signals are the GPIO port signals which are multiplexed with the HDI08 signals.
3
Port C signals are the GPIO port signals which are multiplexed with the ESAI signals.
4
Port E signals are the GPIO port signals which are multiplexed with the ESAI_1 signals.
5
Port D signals are the GPIO port signals which are multiplexed with the DAX signals.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
2-2Freescale Semiconductor
2.2Power
Table 2-2 Power Inputs
Power NameDescription
Power
V
CCP
PLL Power — V
CCP
should be provided with an extremely low impedance path to the V
input.
V
(4)Quiet Core (Low) Power — V
CCQL
must be tied externally to all other chip power inputs. The user must provide adequate external
decoupling capacitors. There are four V
(3)Quiet External (High) Power — V
V
CCQH
externally to all other chip power inputs. The user must provide adequate decoupling capacitors. There
are three V
V
(3)Address Bus Power — V
CCA
CCQH
inputs.
must be tied externally to all other chip power inputs. The user must provide adequate external
decoupling capacitors. There are three V
(4)Data Bus Power — V
V
CCD
be tied externally to all other chip power inputs. The user must provide adequate external decoupling
capacitors. There are four V
(2)Bus Control Power — V
V
CCC
externally to all other chip power inputs. The user must provide adequate external decoupling
capacitors. There are two V
V
CCH
Host Power — V
CCH
to all other chip power inputs. The user must provide adequate external decoupling capacitors. There
is one V
CCH
input.
is VCC dedicated for PLL use. The voltage should be well-regulated and the input
power rail. There is one V
CC
is an isolated power for the internal processing logic. This input
CCQL
inputs.
CCQL
is a quiet power source for I/O lines. This input must be tied
CCQH
is an isolated power for sections of the address bus I/O drivers. This input
CCA
inputs.
CCA
is an isolated power for sections of the data bus I/O drivers. This input must
CCD
inputs.
CCD
is an isolated power for the bus control I/O drivers. This input must be tied
CCC
inputs.
CCC
CCP
is an isolated power for the HDI08 I/O drivers. This input must be tied externally
(2)SHI, ESAI, ESAI_1, DAX and Timer Power — V
V
CCS
is an isolated power for the SHI, ESAI, ESAI_1,
CCS
DAX and Timer. This input must be tied externally to all other chip power inputs. The user must provide
adequate external decoupling capacitors. There are two V
CCS
inputs.
2.3Ground
Table 2-3 Grounds
Ground NameDescription
GND
P
(4)Quiet Ground — GNDQ is an isolated ground for the internal processing logic. This connection must
GND
Q
Freescale Semiconductor2-3
PLL Ground — GNDP is a ground dedicated for PLL use. The connection should be provided with an
extremely low-impedance path to ground. V
located as close as possible to the chip package. There is one GND
should be bypassed to GNDP by a 0.47 µF capacitor
CCP
connection.
P
be tied externally to all other chip ground connections. The user must provide adequate external
decoupling capacitors. There are four GND
connections.
Q
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Clock and PLL
Table 2-3 Grounds (continued)
Ground NameDescription
GNDA (4)Address Bus Ground — GNDA is an isolated ground for sections of the address bus I/O drivers. This
connection must be tied externally to all other chip ground connections. The user must provide
adequate external decoupling capacitors. There are four GND
(4)Data Bus Ground — GNDD is an isolated ground for sections of the data bus I/O drivers. This
GND
D
connection must be tied externally to all other chip ground connections. The user must provide
adequate external decoupling capacitors. There are four GND
GNDC (2)Bus Control Ground — GNDC is an isolated ground for the bus control I/O drivers. This connection
must be tied externally to all other chip ground connections. The user must provide adequate external
decoupling capacitors. There are two GND
connections.
C
connections.
A
connections.
D
GND
H
Host Ground — GNDh is an isolated ground for the HD08 I/O drivers. This connection must be tied
externally to all other chip ground connections. The user must provide adequate external decoupling
capacitors. There is one GND
(2)SHI, ESAI, ESAI_1, DAX and Timer Ground — GNDS is an isolated ground for the SHI, ESAI, ESAI_1,
GND
S
connection.
H
DAX and Timer. This connection must be tied externally to all other chip ground connections. The user
must provide adequate external decoupling capacitors. There are two GND
connections.
S
2.4Clock and PLL
Table 2-4 Clock and PLL Signals
Signal
Name
Typ e
EXTALInputInputExternal Clock Input — An external clock source must be connected to EXTAL
PCAPInputInputPLL Capacitor — PCAP is an input connecting an off-chip capacitor to the PLL
PINIT/NMI
InputInputPLL Initial/Nonmaskable Interrupt — During assertion of RESET, the value of
State during
Reset
Signal Description
in order to supply the clock to the internal clock generator and PLL.
This input cannot tolerate 5 V.
filter. Connect one capacitor terminal to PCAP and the other terminal to V
If the PLL is not used, PCAP may be tied to V
PINIT/NMI
is written into the PLL Enable (PEN) bit of the PLL control register,
determining whether the PLL is enabled or disabled. After RESET
and during normal instruction processing, the PINIT/NMI
, GND, or left floating.
CC
Schmitt-trigger input
de assertion
is a negative-edge-triggered nonmaskable interrupt (NMI) request internally
synchronized to internal system clock.
This input cannot tolerate 5 V.
CCP
.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
2-4Freescale Semiconductor
External Memory Expansion Port (Port A)
2.5External Memory Expansion Port (Port A)
When the DSP56364 enters a low-power standby mode (stop or wait), it releases bus mastership and
tri-states the relevant port A signals: A0 – A17, D0 – D23, AA0/RAS0 – AA2/RAS2, RD, WR, BB, CAS.
2.5.1External Address Bus
Table 2-5 External Address Bus Signals
Signal NameType
A0–A17OutputTri-statedAddress Bus — When the DSP is the bus master, A0 – A17 are active-high
State during
Reset
Signal Description
outputs that specify the address for external program and data memory
accesses. Otherwise, the signals are tri-stated. To minimize power dissipation,
A0 – A17 do not change state when external memory spaces are not being
accessed.
2.5.2External Data Bus
Table 2-6 External Data Bus Signals
Signal NameTypeState during ResetSignal Description
D0–D23Input/OutputTri-statedData Bus — When the DSP is the bus master,
D0 – D23 are active-high, bidirectional input/outputs that provide the
bidirectional data bus for external program and data memory
accesses. Otherwise,
D0 – D23 are tri-stated.
2.5.3External Bus Control
Table 2-7 External Bus Control Signals
Signal NameType
AA0–AA2/RAS0
– RAS2
CASOutputTri-statedColumn Address Strobe — When the DSP is the bus master, CAS is an
RD
Freescale Semiconductor2-5
OutputTri-statedAddress Attribute or Row AddressStrobe — When defined as AA, these
OutputTri-statedRead Enable — When the DSP is the bus master, RD is an active-low output
State during
Reset
signals can be used as chip selects or additional address lines. When defined
as RAS
, these signals can be used as RAS for DRAM interface. These
signals are tri-statable outputs with programmable polarity.
active-low output used by DRAM to strobe the column address. Otherwise, if
the bus mastership enable (BME) bit in the DRAM control register is cleared,
the signal is tri-stated.
that is asserted to read external memory on the data bus (D0-D23).
Otherwise, RD
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
is tri-stated.
Signal Description
External Memory Expansion Port (Port A)
Table 2-7 External Bus Control Signals (continued)
Signal NameType
WR
TA
OutputTri-statedWrite Enable — When the DSP is the bus master, WR is an active-low output
InputIgnored InputTransfer Acknowledge — If the DSP is the bus master and there is no
State during
Reset
Signal Description
that is asserted to write external memory on the data bus (D0-D23).
Otherwise, WR
external bus activity, or the DSP is not the bus master, the TA
The TA
input is a data transfer acknowledge (DTACK) function that can extend
an external bus cycle indefinitely. Any number of wait states (1, 2. . .infinity)
may be added to the wait states inserted by the BCR by keeping TA
deasserted. In typical operation, TA
is asserted to enable completion of the bus cycle, and is deasserted before
the next bus cycle. The current bus cycle completes one clock period after TA
is asserted synchronous to the internal system clock. The number of wait
states is determined by the TA
whichever is longer. The BCR can be used to set the minimum number of wait
states in external bus cycles.
In order to use the TA
one wait state. A zero wait state access cannot be extended by TA
deassertion, otherwise improper operation may result. TA
synchronously or asynchronously, depending on the setting of the TAS bit in
the operating mode register (OMR).
TA
functionality may not be used while performing DRAM type accesses,
otherwise improper operation may result.
is tri-stated.
input is ignored.
is deasserted at the start of a bus cycle,
input or by the bus control register (BCR),
functionality, the BCR must be programmed to at least
can operate
BROutputOutput
(deasserted)
Bus Request — BR is an active-low output, never tri-stated. BR is asserted
when the DSP requests bus mastership. BR
longer needs the bus. BR
whether the DSP56364 is a bus master or a bus slave. Bus “parking” allows
BR
to be deasserted even though the DSP56364 is the bus master. (See the
description of bus “parking” in the BB
hold (BRH) bit in the BCR allows BR
even though the DSP does not need the bus. BR
external bus arbitrator that controls the priority, parking, and tenure of each
master on the same external bus. BR
external bus, never for the internal bus. During hardware reset, BR
deasserted and the arbitration is reset to the bus slave state.
may be asserted or deasserted independent of
is deasserted when the DSP no
signal description.) The bus request
to be asserted under software control
is typically sent to an
is only affected by DSP requests for the
is
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
2-6Freescale Semiconductor
Table 2-7 External Bus Control Signals (continued)
Interrupt and Mode Control
Signal NameType
BGInputIgnored InputBus Grant — BG is an active-low input. BG is asserted by an external bus
BBInput/
Output
State during
Reset
arbitration circuit when the DSP56364 becomes the next bus master. When
BG
is asserted, the DSP56364 must wait until BB is deasserted before taking
bus mastership. When BG
at the end of the current bus cycle. This may occur in the middle of an
instruction that requires more than one external bus cycle for execution.
For proper BG
in the OMR register must be set.
InputBus Busy — BB is a bidirectional active-low input/output. BB indicates that
the bus is active. Only after BB
become the bus master (and then assert the signal again). The bus master
may keep BB
asserted or deasserted. This is called “bus parking” and allows the current
bus master to reuse the bus without rearbitration until another device requires
the bus. The deassertion of BB
is driven high and then released and held high by an external pull-up resistor).
For proper BB operation, the asynchronous bus arbitration enable bit (ABE)
in the OMR register must be set.
BB requires an external pull-up resistor.
operation, the asynchronous bus arbitration enable bit (ABE)
asserted after ceasing bus activity regardless of whether BR is
Signal Description
is deasserted, bus mastership is typically given up
is deasserted can the pending bus master
is done by an “active pull-up” method (i.e., BB
2.6Interrupt and Mode Control
The interrupt and mode control signals select the chip’s operating mode as it comes out of hardware reset.
After RESET is deasserted, these inputs are hardware interrupt request lines.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor2-7
Interrupt and Mode Control
Table 2-8 Interrupt and Mode Control
Signal NameType
MODA/IRQA
MODB/IRQB
MODC/IRQC
InputInputMode Select A/External Interrupt Request A — MODA/IRQA is an active-low
InputInputMode Select B/External Interrupt Request B — MODB/IRQB is an active-low
InputInputMode Select C/External Interrupt Request C — MODC/IRQC is an active-low
State during
Reset
Signal Description
Schmitt-trigger input, internally synchronized to the DSP clock. MODA/IRQA
selects the initial chip operating mode during hardware reset and becomes a
level-sensitive or negative-edge-triggered, maskable interrupt request input
during normal instruction processing. MODA, MODB, MODC,and MODD select
one of 16 initial chip operating modes, latched into the OMR when the RESET
signal is deasserted. If the processor is in the stop standby state and the
MODA/IRQA
This input is 5 V tolerant.
Schmitt-trigger input, internally synchronized to the DSP clock. MODB/IRQB
selects the initial chip operating mode during hardware reset and becomes a
level-sensitive or negative-edge-triggered, maskable interrupt request input
during normal instruction processing. MODA, MODB, MODC, and MODD select
one of 16 initial chip operating modes, latched into OMR when the RESET
signal is deasserted.
This input is 5 V tolerant.
Schmitt-trigger input, internally synchronized to the DSP clock. MODC/IRQC
selects the initial chip operating mode during hardware reset and becomes a
level-sensitive or negative-edge-triggered, maskable interrupt request input
during normal instruction processing. MODA, MODB, MODC, and MODD select
one of 16 initial chip operating modes, latched into OMR when the RESET
signal is deasserted.
This input is 5 V tolerant.
pin is pulled to GND, the processor will exit the stop state.
MODD/IRQD
RESET
2-8Freescale Semiconductor
InputInputMode Select D/External Interrupt Request D — MODD/IRQD is an active-low
Schmitt-trigger input, internally synchronized to the DSP clock. MODD/IRQD
selects the initial chip operating mode during hardware reset and becomes a
level-sensitive or negative-edge-triggered, maskable interrupt request input
during normal instruction processing. MODA, MODB, MODC, and MODD select
one of 16 initial chip operating modes, latched into OMR when the RESET
signal is deasserted.
This input is 5 V tolerant.
InputInputReset — RESET is an active-low, Schmitt-trigger input. When asserted, the
chip is placed in the Reset state and the internal phase generator is reset. The
Schmitt-trigger input allows a slowly rising input (such as a capacitor charging)
to reset the chip reliably. When the RESET
operating mode is latched from the MODA, MODB, MODC, and MODD inputs.
The RESET
must be supplied while RESET is being asserted.
This input is 5 V tolerant.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
signal must be asserted during power up. A stable EXTAL signal
signal is deasserted, the initial chip
PARALLEL HOST INTERFACE (HDI08)
2.7PARALLEL HOST INTERFACE (HDI08)
The HDI08 provides a fast, 8-bit, parallel data port that may be connected directly to the host bus. The
HDI08 supports a variety of standard buses and can be directly connected to a number of industry standard
microcomputers, microprocessors, DSPs, and DMA hardware.
Table 2-9 Host Interface
Signal NameType
H0 – H7Input/
output
HAD0 – HAD7Input/
output
PB0 – PB7Input, output, or
disconnected
HA0InputGPIO
HAS/HASInputHost Address Strobe — When HDI08 is programmed to interface a
State during
Reset
GPIO
disconnected
disconnected
Signal Description
Host Data — When HDI08 is programmed to interface a nonmultiplexed
host bus and the HI function is selected, these signals are lines 0 – 7 of the
bidirectional, tri-state data bus.
Host Address/Data — When HDI08 is programmed to interface a
multiplexed host bus and the HI function is selected, these signals are lines
0 – 7 of the address/data bidirectional, multiplexed, tri-state bus.
Port B 0–7 — When the HDI08 is configured as GPIO, these signals are
individually programmable as input, output, or internally disconnected.
The default state after reset for these signals is GPIO disconnected.
These inputs are 5 V tolerant.
Host Address Input 0 — When the HDI08 is programmed to interface a
nonmultiplexed host bus and the HI function is selected, this signal is line 0
of the host address input bus.
multiplexed host bus and the HI function is selected, this signal is the host
address strobe (HAS) Schmitt-trigger input. The polarity of the address
strobe is programmable, but is configured active-low (HAS
) following reset.
PB8Input, output, or
disconnected
HA1InputGPIO
disconnected
HA8InputHost Address 8 — When HDI08 is programmed to interface a multiplexed
PB9Input, output, or
disconnected
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor2-9
Port B 8 — When the HDI08 is configured as GPIO, this signal is individually
programmed as input, output, or internally disconnected.
The default state after reset for this signal is GPIO disconnected.
This input is 5 V tolerant.
Host Address Input 1 — When the HDI08 is programmed to interface a
nonmultiplexed host bus and the HI function is selected, this signal is line 1
of the host address (HA1) input bus.
host bus and the HI function is selected, this signal is line 8 of the host
address (HA8) input bus.
Port B 9 — When the HDI08 is configured as GPIO, this signal is individually
programmed as input, output, or internally disconnected.
The default state after reset for this signal is GPIO disconnected.
This input is 5 V tolerant.
PARALLEL HOST INTERFACE (HDI08)
Table 2-9 Host Interface (continued)
Signal NameType
HA2InputGPIO
HA9InputHost Address 9 — When HDI08 is programmed to interface a multiplexed
PB10Input, Output, or
Disconnected
HRWInputGPIO
HRD
HRD
/
InputHost Read Data — When HDI08 is programmed to interface a
State during
Reset
disconnected
disconnected
Signal Description
Host Address Input 2 — When the HDI08 is programmed to interface a
non-multiplexed host bus and the HI function is selected, this signal is line 2
of the host address (HA2) input bus.
host bus and the HI function is selected, this signal is line 9 of the host
address (HA9) input bus.
Port B 10 — When the HDI08 is configured as GPIO, this signal is
individually programmed as input, output, or internally disconnected.
The default state after reset for this signal is GPIO disconnected.
This input is 5 V tolerant.
Host Read/Write — When HDI08 is programmed to interface a
single-data-strobe host bus and the HI function is selected, this signal is the
Host Read/Write
double-data-strobe host bus and the HI function is selected, this signal is the
host read data strobe (HRD) Schmitt-trigger input. The polarity of the data
strobe is programmable, but is configured as active-low (HRD
(HRW) input.
) after reset.
PB11Input, Output, or
Disconnected
/
HDS
HDS
HWR
/
HWR
PB12Input, output, or
InputGPIO
InputHost Write Data — When HDI08 is programmed to interface a
disconnected
disconnected
Port B 11 — When the HDI08 is configured as GPIO, this signal is
individually programmed as input, output, or internally disconnected.
The default state after reset for this signal is GPIO disconnected.
This input is 5 V tolerant.
Host Data Strobe — When HDI08 is programmed to interface a
single-data-strobe host bus and the HI function is selected, this signal is the
host data strobe (HDS) Schmitt-trigger input. The polarity of the data strobe
is programmable, but is configured as active-low (HDS
double-data-strobe host bus and the HI function is selected, this signal is the
host write data strobe (HWR) Schmitt-trigger input. The polarity of the data
strobe is programmable, but is configured as active-low (HWR
reset.
Port B 12 — When the HDI08 is configured as GPIO, this signal is
individually programmed as input, output, or internally disconnected.
The default state after reset for this signal is GPIO disconnected.
This input is 5 V tolerant.
) following reset.
) following
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
2-10Freescale Semiconductor
Table 2-9 Host Interface (continued)
PARALLEL HOST INTERFACE (HDI08)
Signal NameType
HCSInputGPIO
HA10InputHost Address 10 — When HDI08 is programmed to interface a multiplexed
PB13Input, output, or
disconnected
HOREQ
EQ
HTRQ/
HTRQ
/HOR
OutputGPIO
OutputTransmit Host Request — When HDI08 is programmed to interface a
State during
Reset
disconnected
disconnected
Signal Description
Host Chip Select — When HDI08 is programmed to interface a
nonmultiplexed host bus and the HI function is selected, this signal is the
host chip select (HCS) input. The polarity of the chip select is
programmable, but is configured active-low (HCS
host bus and the HI function is selected, this signal is line 10 of the host
address (HA10) input bus.
Port B 13 — When the HDI08 is configured as GPIO, this signal is
individually programmed as input, output, or internally disconnected.
The default state after reset for this signal is GPIO disconnected.
This input is 5 V tolerant.
Host Request — When HDI08 is programmed to interface a single host
request host bus and the HI function is selected, this signal is the host
request (HOREQ) output. The polarity of the host request is programmable,
but is configured as active-low (HOREQ
may be programmed as a driven or open-drain output.
double host request host bus and the HI function is selected, this signal is
the transmit host request (HTRQ) output. The polarity of the host request is
programmable, but is configured as active-low (HTRQ
host request may be programmed as a driven or open-drain output.
) following reset. The host request
) after reset.
) following reset. The
PB14Input, output, or
disconnected
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Port B 14 — When the HDI08 is configured as GPIO, this signal is
individually programmed as input, output, or internally disconnected.
The default state after reset for this signal is GPIO disconnected.
This input is 5 V tolerant.
Freescale Semiconductor2-11
Serial Host Interface
Table 2-9 Host Interface (continued)
Signal NameType
HACK/
HACK
HRRQ/
HRRQ
PB15Input, output, or
InputGPIO
OutputReceive Host Request — When HDI08 is programmed to interface a
disconnected
State during
Reset
disconnected
Signal Description
Host Acknowledge — When HDI08 is programmed to interface a single
host request host bus and the HI function is selected, this signal is the host
acknowledge (HACK) Schmitt-trigger input. The polarity of the host
acknowledge is programmable, but is configured as active-low (HACK
reset.
double host request host bus and the HI function is selected, this signal is
the receive host request (HRRQ) output. The polarity of the host request is
programmable, but is configured as active-low (HRRQ
request may be programmed as a driven or open-drain output.
Port B 15 — When the HDI08 is configured as GPIO, this signal is
individually programmed as input, output, or internally disconnected.
The default state after reset for this signal is GPIO disconnected.
This input is 5 V tolerant.
) after reset. The host
) after
2.8Serial Host Interface
The SHI has five I/O signals that can be configured to allow the SHI to operate in either SPI or I2C mode.
Table 2-10 Serial Host Interface Signals
Signal
Name
SCKInput or outputTri-statedSPI Serial Clock — The SCK signal is an output when the SPI is configured as
SCLInput or outputI
Signal Type
State during
Reset
Signal Description
a master and a Schmitt-trigger input when the SPI is configured as a slave.
When the SPI is configured as a master, the SCK signal is derived from the
internal SHI clock generator. When the SPI is configured as a slave, the SCK
signal is an input, and the clock signal from the external master synchronizes
the data transfer. The SCK signal is ignored by the SPI if it is defined as a slave
and the slave select (SS
SPI devices, data is shifted on one edge of the SCK signal and is sampled on
the opposite edge where data is stable. Edge polarity is determined by the SPI
transfer protocol.
2
C Serial Clock — SCL carries the clock for I2C bus transactions in the I2C
mode. SCL is a Schmitt-trigger input when configured as a slave and an
open-drain output when configured as a master. SCL should be connected to
V
through a pull-up resistor.
CC
This signal is tri-stated during hardware, software, and individual reset. Thus,
there is no need for an external pull-up in this state.
This input is 5 V tolerant.
) signal is not asserted. In both the master and slave
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
2-12Freescale Semiconductor
Table 2-10 Serial Host Interface Signals (continued)
Serial Host Interface
Signal
Name
Signal Type
State during
Reset
Signal Description
MISOInput or outputTri-statedSPI Master-In-Slave-Out — When the SPI is configured as a master, MISO is
the master data input line. The MISO signal is used in conjunction with the
MOSI signal for transmitting and receiving serial data. This signal is a
Schmitt-trigger input when configured for the SPI Master mode, an output when
configured for the SPI Slave mode, and tri-stated if configured for the SPI Slave
mode when SS
is deasserted. An external pull-up resistor is not required for SPI
operation.
2
SDAInput or
open-drain
output
I
C Data and Acknowledge — In I2C mode, SDA is a Schmitt-trigger input
when receiving and an open-drain output when transmitting. SDA should be
connected to V
through a pull-up resistor. SDA carries the data for I2C
CC
transactions. The data in SDA must be stable during the high period of SCL.
The data in SDA is only allowed to change when SCL is low. When the bus is
free, SDA is high. The SDA line is only allowed to change during the time SCL
is high in the case of start and stop events. A high-to-low transition of the SDA
line while SCL is high is a unique situation, and is defined as the start event. A
low-to-high transition of SDA while SCL is high is a unique situation defined as
the stop event.
This signal is tri-stated during hardware, software, and individual reset. Thus,
there is no need for an external pull-up in this state.
This input is 5 V tolerant.
MOSIInput or outputTri-statedSPI Master-Out-Slave-In — When the SPI is configured as a master, MOSI is
the master data output line. The MOSI signal is used in conjunction with the
MISO signal for transmitting and receiving serial data. MOSI is the slave data
input line when the SPI is configured as a slave. This signal is a Schmitt-trigger
input when configured for the SPI Slave mode.
HA0InputI
2
C Slave Address 0 — This signal uses a Schmitt-trigger input when
configured for the I
2
C mode. When configured for I2C slave mode, the HA0
signal is used to form the slave device address. HA0 is ignored when configured
2
for the I
C master mode.
This signal is tri-stated during hardware, software, and individual reset. Thus,
there is no need for an external pull-up in this state.
This input is 5 V tolerant.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor2-13
Serial Host Interface
Table 2-10 Serial Host Interface Signals (continued)
Signal
Name
SS
Signal Type
InputTri-statedSPI Slave Select — This signal is an active low Schmitt-trigger input when
State during
Reset
Signal Description
configured for the SPI mode. When configured for the SPI Slave mode, this
signal is used to enable the SPI slave for transfer. When configured for the SPI
master mode, this signal should be kept deasserted (pulled high). If it is
asserted while configured as SPI master, a bus error condition is flagged. If SS
is deasserted, the SHI ignores SCK clocks and keeps the MISO output signal
in the high-impedance state.
HA2InputI
2
C Slave Address 2 — This signal uses a Schmitt-trigger input when
configured for the I
2
C mode. When configured for the I2C Slave mode, the HA2
signal is used to form the slave device address. HA2 is ignored in the I
2
C master
mode.
This signal is tri-stated during hardware, software, and individual reset. Thus,
there is no need for an external pull-up in this state.
This input is 5 V tolerant.
HREQInput or OutputTri-statedHost Request — This signal is an active low Schmitt-trigger input when
configured for the master mode but an active low output when configured for the
slave mode.
When configured for the slave mode, HREQ
is asserted to indicate that the SHI
is ready for the next data word transfer and deasserted at the first clock pulse
of the new data word transfer. When configured for the master mode, HREQ
an input. When asserted by the external slave device, it will trigger the start of
the data word transfer by the master. After finishing the data word transfer, the
master will await the next assertion of HREQ
to proceed to the next transfer.
is
This signal is tri-stated during hardware, software, personal reset, or when the
HREQ1–HREQ0 bits in the HCSR are cleared. There is no need for external
pull-up in this state.
This input is 5 V tolerant.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
2-14Freescale Semiconductor
2.9Enhanced Serial Audio Interface
Table 2-11 Enhanced Serial Audio Interface Signals
Enhanced Serial Audio Interface
Signal NameSignal Type
HCKRInput or outputGPIO
PC2Input, output, or
disconnected
HCKTInput or outputGPIO
PC5Input, output, or
disconnected
State during
disconnected
disconnected
Reset
Signal Description
High Frequency Clock for Receiver — When programmed as an
input, this signal provides a high frequency clock source for the ESAI
receiver as an alternate to the DSP core clock. When programmed as
an output, this signal can serve as a high-frequency sample clock (e.g.,
for external digital to analog converters [DACs]) or as an additional
system clock.
Port C 2 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
High Frequency Clock for Transmitter — When programmed as an
input, this signal provides a high frequency clock source for the ESAI
transmitter as an alternate to the DSP core clock. When programmed as
an output, this signal can serve as a high frequency sample clock (e.g.,
for external DACs) or as an additional system clock.
Port C 5 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
FSRInput or outputGPIO
disconnected
PC1Input, output, or
disconnected
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
Frame Sync for Receiver — This is the receiver frame sync
input/output signal. In the asynchronous mode (SYN=0), the FSR pin
operates as the frame sync input or output used by all the enabled
receivers. In the synchronous mode (SYN=1), it operates as either the
serial flag 1 pin (TEBE=0), or as the transmitter external buffer enable
control (TEBE=1, RFSD=1).
When this pin is configured as serial flag pin, its direction is determined
by the RFSD bit in the RCCR register. When configured as the output
flag OF1, this pin will reflect the value of the OF1 bit in the SAICR
register, and the data in the OF1 bit will show up at the pin synchronized
to the frame sync in normal mode or the slot in network mode. When
configured as the input flag IF1, the data value at the pin will be stored
in the IF1 bit in the SAISR register, synchronized by the frame sync in
normal mode or the slot in network mode.
Port C 1 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor2-15
Enhanced Serial Audio Interface
Table 2-11 Enhanced Serial Audio Interface Signals (continued)
Signal NameSignal Type
FSTInput or outputGPIO
PC4Input, output, or
disconnected
SCKRInput or outputGPIO
State during
disconnected
disconnected
Reset
Signal Description
Frame Sync for Transmitter — This is the transmitter frame sync
input/output signal. For synchronous mode, this signal is the frame sync
for both transmitters and receivers. For asynchronous mode, FST is the
frame sync for the transmitters only. The direction is determined by the
transmitter frame sync direction (TFSD) bit in the ESAI transmit clock
control register (TCCR).
Port C 4 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
Receiver Serial Clock — SCKR provides the receiver serial bit clock for
the ESAI. The SCKR operates as a clock input or output used by all the
enabled receivers in the asynchronous mode (SYN=0), or as serial flag
0 pin in the synchronous mode (SYN=1).
When this pin is configured as serial flag pin, its direction is determined
by the RCKD bit in the RCCR register. When configured as the output
flag OF0, this pin will reflect the value of the OF0 bit in the SAICR
register, and the data in the OF0 bit will show up at the pin synchronized
to the frame sync in normal mode or the slot in network mode. When
configured as the input flag IF0, the data value at the pin will be stored
in the IF0 bit in the SAISR register, synchronized by the frame sync in
normal mode or the slot in network mode.
PC0Input, output, or
disconnected
SCKTInput or outputGPIO
disconnected
PC3Input, output, or
disconnected
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Port C 0 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
Transmitter Serial Clock — This signal provides the serial bit rate clock
for the ESAI. SCKT is a clock input or output used by all enabled
transmitters and receivers in synchronous mode, or by all enabled
transmitters in asynchronous mode.
Port C 3 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
2-16Freescale Semiconductor
Enhanced Serial Audio Interface
Table 2-11 Enhanced Serial Audio Interface Signals (continued)
Signal NameSignal Type
SDO5OutputGPIO
SDI0InputSerial Data Input 0 — When programmed as a receiver, SDI0 is used
PC6Input, output, or
disconnected
SDO4OutputGPIO
SDI1InputSerial Data Input 1 — When programmed as a receiver, SDI1 is used
PC7Input, output, or
disconnected
State during
Reset
disconnected
disconnected
Signal Description
Serial Data Output 5 — When programmed as a transmitter, SDO5 is
used to transmit data from the TX5 serial transmit shift register.
to receive serial data into the RX0 serial receive shift register.
Port C 6 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
Serial Data Output 4 — When programmed as a transmitter, SDO4 is
used to transmit data from the TX4 serial transmit shift register.
to receive serial data into the RX1 serial receive shift register.
Port C 7 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
SDO3/
SDO3_1
SDI2/
SDI2_1
PC8/PE8Input, output, or
OutputGPIO
InputSerial Data Input 2 — When programmed as a receiver, SDI2 is used
disconnected
disconnected
Serial Data Output 3 — When programmed as a transmitter, SDO3 is
used to transmit data from the TX3 serial transmit shift register.
When enabled for ESAI_1 operation, this is the ESAI_1 Serial Data
Output 3.
to receive serial data into the RX2 serial receive shift register.
When enabled for ESAI_1 operation, this is the ESAI_1 Serial Data Input
2.
Port C 8 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
When enabled for ESAI_1 GPIO, this is the Port E 8 signal.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor2-17
Enhanced Serial Audio Interface
Table 2-11 Enhanced Serial Audio Interface Signals (continued)
Signal NameSignal Type
SDO2/
SDO2_1
SDI3/
SDI3_1
PC9/PE9Input, output, or
SDO1/
SDO1_1
OutputGPIO
InputSerial Data Input 3 — When programmed as a receiver, SDI3 is used
disconnected
OutputGPIO
State during
Reset
disconnected
disconnected
Signal Description
Serial Data Output 2 — When programmed as a transmitter, SDO2 is
used to transmit data from the TX2 serial transmit shift register
When enabled for ESAI_1 operation, this is the ESAI_1 Serial Data
Output 2.
to receive serial data into the RX3 serial receive shift register.
When enabled for ESAI_1 operation, this is the ESAI_1 Serial Data Input
3.
Port C 9 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
When enabled for ESAI_1 GPIO, this is the Port E 9 signal.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
Serial Data Output 1 — SDO1 is used to transmit data from the TX1
serial transmit shift register.
When enabled for ESAI_1 operation, this is the ESAI_1 Serial Data
Output 1.
PC10/PE10Input, output, or
disconnected
SDO0/
SDO0_1
PC11/
PE11
OutputGPIO
Input, output, or
disconnected
disconnected
Port C 10 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
When enabled for ESAI_1 GPIO, this is the Port E 10 signal.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
Serial Data Output 0 — SDO0 is used to transmit data from the TX0
serial transmit shift register.
When enabled for ESAI_1 operation, this is the ESAI_1 Serial Data
Output 0.
Port C 11 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
When enabled for ESAI_1 GPIO, this is the Port E 11 signal.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
2-18Freescale Semiconductor
2.10Enhanced Serial Audio Interface_1
Table 2-12 Enhanced Serial Audio Interface_1 Signals
Enhanced Serial Audio Interface_1
Signal
Name
FSR_1Input or outputGPIO
PE1Input, output, or
FST_1Input or outputGPIO
Signal Type
disconnected
State during
Reset
disconnected
disconnected
Signal Description
Frame Sync for Receiver_1 — This is the receiver frame sync
input/output signal. In the asynchronous mode (SYN=0), the FSR pin
operates as the frame sync input or output used by all the enabled
receivers. In the synchronous mode (SYN=1), it operates as either the
serial flag 1 pin (TEBE=0), or as the transmitter external buffer enable
control (TEBE=1, RFSD=1).
When this pin is configured as serial flag pin, its direction is determined
by the RFSD bit in the RCCR register. When configured as the output
flag OF1, this pin will reflect the value of the OF1 bit in the SAICR
register, and the data in the OF1 bit will show up at the pin synchronized
to the frame sync in normal mode or the slot in network mode. When
configured as the input flag IF1, the data value at the pin will be stored
in the IF1 bit in the SAISR register, synchronized by the frame sync in
normal mode or the slot in network mode.
Port E 1—When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input cannot tolerate 5 V.
Frame Sync for Transmitter_1—This is the transmitter frame sync
input/output signal. For synchronous mode, this signal is the frame sync
for both transmitters and receivers. For asynchronous mode, FST is the
frame sync for the transmitters only. The direction is determined by the
transmitter frame sync direction (TFSD) bit in the ESAI transmit clock
control register (TCCR).
PE4Input, output, or
disconnected
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor2-19
Port E 4—When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input cannot tolerate 5 V.
Enhanced Serial Audio Interface_1
Table 2-12 Enhanced Serial Audio Interface_1 Signals (continued)
Signal
Name
SCKR_1Input or outputGPIO
PE0Input, output, or
SCKT_1Input or outputGPIO
Signal Type
disconnected
State during
Reset
disconnected
disconnected
Signal Description
Receiver Serial Clock_1 — SCKR provides the receiver serial bit clock
for the ESAI. The SCKR operates as a clock input or output used by all
the enabled receivers in the asynchronous mode (SYN=0), or as serial
flag 0 pin in the synchronous mode (SYN=1).
When this pin is configured as serial flag pin, its direction is determined
by the RCKD bit in the RCCR register. When configured as the output
flag OF0, this pin will reflect the value of the OF0 bit in the SAICR
register, and the data in the OF0 bit will show up at the pin synchronized
to the frame sync in normal mode or the slot in network mode. When
configured as the input flag IF0, the data value at the pin will be stored
in the IF0 bit in the SAISR register, synchronized by the frame sync in
normal mode or the slot in network mode.
Port E 0 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input cannot tolerate 5 V.
Transmitter Serial Clock_1 — This signal provides the serial bit rate
clock for the ESAI. SCKT is a clock input or output used by all enabled
transmitters and receivers in synchronous mode, or by all enabled
transmitters in asynchronous mode.
PE3Input, output, or
disconnected
SDO5_1OutputGPIO
disconnected
SDI0_1InputSerial Data Input 0_1 — When programmed as a receiver, SDI0 is used
PE6Input, output, or
disconnected
Port E 3 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input cannot tolerate 5 V.
Serial Data Output 5_1 — When programmed as a transmitter, SDO5
is used to transmit data from the TX5 serial transmit shift register.
to receive serial data into the RX0 serial receive shift register.
Port E 6 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input cannot tolerate 5 V.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
2-20Freescale Semiconductor
SPDIF Transmitter Digital Audio Interface
Table 2-12 Enhanced Serial Audio Interface_1 Signals (continued)
Signal
Name
SDO4_1OutputGPIO
SDI1_1InputSerial Data Input 1_1 — When programmed as a receiver, SDI1 is used
PE7Input, output, or
Signal Type
disconnected
State during
Reset
disconnected
Signal Description
Serial Data Output 4_1 — When programmed as a transmitter, SDO4
is used to transmit data from the TX4 serial transmit shift register.
to receive serial data into the RX1 serial receive shift register.
Port E 7 — When the ESAI is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
2.11SPDIF Transmitter Digital Audio Interface
Table 2-13 Digital Audio Interface (DAX) Signals
Signal
Name
ACIInputGPIO
Typ e
State During
Reset
Disconnected
Signal Description
Audio Clock Input — This is the DAX clock input. When programmed
to use an external clock, this input supplies the DAX clock. The external
clock frequency must be 256, 384, or 512 times the audio sampling
frequency (256 × Fs, 384 × Fs or 512 × Fs, respectively).
PD0Input,
output, or
disconnected
ADOOutputGPIO
Disconnected
PD1Input,
output, or
disconnected
Port D 0 — When the DAX is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
Digital Audio Data Output — This signal is an audio and non-audio
output in the form of AES/EBU, CP340 and IEC958 data in a biphase
mark format.
Port D 1 — When the DAX is configured as GPIO, this signal is
individually programmable as input, output, or internally disconnected.
The default state after reset is GPIO disconnected.
This input is 5 V tolerant.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor2-21
Timer
2.12Timer
Table 2-14 Timer Signal
Signal
Name
TIO0Input or
Typ e
Output
State during
Reset
InputTimer 0 Schmitt-Trigger Input/Output — When timer 0 functions as an
external event counter or in measurement mode, TIO0 is used as input.
When timer 0 functions in watchdog, timer, or pulse modulation mode,
TIO0 is used as output.
The default mode after reset is GPIO input. This can be changed to
output or configured as a timer input/output through the timer 0
control/status register (TCSR0). If TIO0 is not being used, it is
recommended to either define it as GPIO output immediately at the
beginning of operation or leave it defined as GPIO input but connected
to Vcc through a pull-up resistor in order to ensure a stable logic level at
this input.
This input is 5 V tolerant.
Signal Description
2.13JTAG/OnCE Interface
Table 2-15 JTAG/OnCE Interface
Signal
Name
TCKInputInputTest Clock — TCK is a test clock input signal used to synchronize the JTAG
Signal
Typ e
State during
Reset
Signal Description
test logic. It has an internal pull-up resistor.
This input is 5 V tolerant.
TDIInputInputTest Data Input — TDI is a test data serial input signal used for test
instructions and data. TDI is sampled on the rising edge of TCK and has an
internal pull-up resistor.
This input is 5 V tolerant.
TDOOutputTri-statedTest Data Output — TDO is a test data serial output signal used for test
instructions and data. TDO is tri-statable and is actively driven in the shift-IR
and shift-DR controller states. TDO changes on the falling edge of TCK.
TMSInputInputTes t Mode Select — TMS is an input signal used to sequence the test
controller’s state machine. TMS is sampled on the rising edge of TCK and has
an internal pull-up resistor.
This input is 5 V tolerant.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
2-22Freescale Semiconductor
3Memory Configuration
3.1Data and Program Memory Maps
The on-chip memory configuration of the DSP56366 is affected by the state of the CE (Cache Enable),
MSW0, MSW1, and MS (Memory Switch) control bits in the OMR register, and by the SC bit in the Status
Register. The internal data and program memory configurations are shown in Table 3-1. The address
ranges for the internal memory are shown in Tab le 3-2 and Table 3-3. The memory maps for each memory
configuration are shown in Figure 3-1 to Figure 3-16.
Table 3-1 Internal Memory Configurations
Bit SettingsMemory Sizes (24-bit words)
MSW1MSW0CEMSSC
XX0003Kn.a.40K19213K7K32K8K
XX1002K1K40K19213K7K32K8K
0001010Kn.a.40K1928K5K32K8K
010108Kn.a.40K1928K7K32K8K
100105Kn.a.40K19211K7K32K8K
001109K1K40K1928K5K32K8K
011107K1K40K1928K7K32K8K
101104K1K40K19211K7K32K8K
XX0013Kn.a.n.a.n.a.13K7K32K8K
XX1012K1Kn.a.n.a.13K7K32K8K
0001110Kn.a.n.a.n.a.8K5K32K8K
010118Kn.a.n.a.n.a.8K7K32K8K
Prog
RAM
Prog
Cache
Prog
ROM
Boot
ROM
X Data
RAM
Y Data
RAM
X Data
ROM
Y Data
ROM
100115Kn.a.n.a.n.a.11K7K32K8K
001119K1Kn.a.n.a.8K5K32K8K
011117K1Kn.a.n.a.8K7K32K8K
101114K1Kn.a.n.a.11K7K32K8K
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
$FF0000 -
$FF00BF
$004000$00BFFF
$00BFFF
$004000$005FFF
$004000$005FFF
3-2Freescale Semiconductor
Data and Program Memory Maps
$FFFFFF
$FFB000
$FF1000
$FF00C0
$FF0000
$000C00
$000000
$FFFFFF
$FFB000
$FF1000
$FF00C0
$FF0000
PROGRAM
INTERNAL
RESERVED
40K INTERNAL
ROM
INTERNAL
RESERVED
BOOT ROM
EXTERNAL
3K INTERNAL
RAM
$FFFFFF
$FFFF80
$FFF000
$FF0000
$00C000
$004000
$003400
$000000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
32K INTERNAL
ROM
INT. RESERVED
13K INTERNAL
RAM
$FFFFFF
$FFFFB0
$FFFF80
$FFF000
$FF0000
$006000
$004000
$001C00
$000000
Figure 3-1 Memory Maps for MSW=(X,X), CE=0, MS=0, SC=0
PROGRAM
INTERNAL
RESERVED
40K INTERNAL
ROM
INTERNAL
RESERVED
BOOT ROM
$FFFFFF
$FFFF80
$FFF000
$FF0000
$00C000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
32K INTERNAL
$FFFFFF
$FFFFB0
$FFFF80
$FFF000
$FF0000
$006000
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
$000800
$000000
EXTERNAL
2K INTERNAL
RAM
1K I-CACHE ENABLED
$004000
$003400
$000000
ROM
INT. RESERVED
13K INTERNAL
RAM
$004000
$001C00
$000000
Figure 3-2 Memory Maps for MSW=(X,X), CE=1, MS=0, SC=0
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor3-3
Data and Program Memory Maps
$FFFFFF
$FFB000
$FF1000
$FF00C0
$FF0000
$002800
$000000
$FFFFFF
$FFB000
$FF1000
$FF00C0
$FF0000
$002800
$002400
$001C00
$000000
PROGRAM
INTERNAL
RESERVED
40K INTERNAL
ROM
INTERNAL
RESERVED
BOOT ROM
EXTERNAL
10K INTERNAL
RAM
$FFFFFF
$FFFF80
$FFF000
$FF0000
$00C000
$004000
$002000
$000000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
32K INTERNAL
ROM
INT. RESERVED
8K INTERNAL
RAM
$FFFFFF
$FFFFB0
$FFFF80
$FFF000
$FF0000
$006000
$004000
$001400
$000000
Figure 3-3 Memory Maps for MSW=(0,0), CE=0 MS=1, SC=0
PROGRAM
INTERNAL
RESERVED
40K INTERNAL
ROM
INTERNAL
RESERVED
BOOT ROM
EXTERNAL
1K RAM
INT. RESERVED
7K INTERNAL
RAM
$FFFFFF
$FFFF80
$FFF000
$FF0000
$00C000
$004000
$002000
$000000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
32K INTERNAL
ROM
INT. RESERVED
8K INTERNAL
RAM
$FFFFFF
$FFFFB0
$FFFF80
$FFF000
$FF0000
$006000
$004000
$001C00
$000000
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
5K INTERNAL
RAM
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
Figure 3-4 Memory Maps for MSW=(0,1), CE=0, MS=1, SC=0
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
3-4Freescale Semiconductor
Data and Program Memory Maps
$FFFFFF
$FFB000
$FF1000
$FF00C0
$FF0000
$002800
$002400
$001000
$000000
$FFFFFF
$FFB000
$FF1000
$FF00C0
$FF0000
PROGRAM
INTERNAL
RESERVED
40K INTERNAL
ROM
INTERNAL
RESERVED
BOOT ROM
EXTERNAL
1K RAM
INT. RESERVED
4K INTERNAL
RAM
$FFFFFF
$FFFF80
$FFF000
$FF0000
$00C000
$004000
$002C00
$000000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
32K INTERNAL
ROM
INT. RESERVED
11K INTERNAL
RAM
$FFFFFF
$FFFFB0
$FFFF80
$FFF000
$FF0000
$006000
$004000
$001C00
$000000
Figure 3-5 Memory Maps for MSW=(1,0), CE=0, MS=1, SC=0
PROGRAM
INTERNAL
RESERVED
40K INTERNAL
ROM
INTERNAL
RESERVED
BOOT ROM
$FFFFFF
$FFFF80
$FFF000
$FF0000
$00C000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
32K INTERNAL
$FFFFFF
$FFFFB0
$FFFF80
$FFF000
$FF0000
$006000
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
5K INTERNAL
RAM
$002400
$000000
EXTERNAL
9K INTERNAL
RAM
1K I-CACHE ENABLED
$004000
$002000
$000000
ROM
INT. RESERVED
8K INTERNAL
RAM
$004000
$001400
$000000
Figure 3-6 Memory Maps for MSW=(0,0), CE=1, MS=1, SC=0
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor3-5
Data and Program Memory Maps
$FFFFFF
$FFB000
$FF1000
$FF00C0
$FF0000
$002400
$001C00
$000000
$FFFFFF
$FFB000
$FF1000
$FF00C0
$FF0000
PROGRAM
INTERNAL
RESERVED
40K INTERNAL
ROM
INTERNAL
RESERVED
BOOT ROM
EXTERNAL
INT. RESERVED
7K INTERNAL
RAM
1K I-CACHE ENABLED
$FFFFFF
$FFFF80
$FFF000
$FF0000
$00C000
$004000
$002000
$000000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
32K INTERNAL
ROM
INT. RESERVED
8K INTERNAL
RAM
$FFFFFF
$FFFFB0
$FFFF80
$FFF000
$FF0000
$006000
$004000
$001C00
$000000
Figure 3-7 Memory Maps for MSW=(0,1), CE=1, MS=1, SC=0
PROGRAM
INTERNAL
RESERVED
40K INTERNAL
ROM
INTERNAL
RESERVED
BOOT ROM
$FFFFFF
$FFFF80
$FFF000
$FF0000
$00C000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
32K INTERNAL
$FFFFFF
$FFFFB0
$FFFF80
$FFF000
$FF0000
$006000
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
INTERNAL
RESERVED
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
$002400
$001000
$000000
EXTERNAL
INT. RESERVED
4K INTERNAL
RAM
1K I-CACHE ENABLED
$004000
$002C00
$000000
ROM
INT. RESERVED
11K INTERNAL
RAM
$004000
$001C00
$000000
Figure 3-8 Memory Maps for MSW=(1,0), CE=1, MS=1, SC=0
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
3-6Freescale Semiconductor
Data and Program Memory Maps
$FFFF
$0C00
$0000
$FFFF
PROGRAM
EXTERNAL
3K INTERNAL
RAM
$FFFF
$FF80
$C000
$4000
$3400
$0000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
32K INTERNAL
ROM
INT. RESERVED
13K INTERNAL
RAM
$FFFF
$FFB0
$FF80
$6000
$4000
$1C00
$0000
Figure 3-9 Memory Maps for MSW=(X,X), CE=0, MS=0, SC=1
PROGRAM
$FFFF
$FF80
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
$FFFF
$FFB0
$FF80
Y DATA
EXTERNAL I/O
(82 words)
INTERNAL I/O
(46 words)
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48words)
EXTERNAL
EXTERNAL
$0800
$0000
2K INTERNAL
RAM
1K I-CACHE ENABLED
$C000
$4000
$3400
$0000
32K INTERNAL
ROM
INT. RESERVED
13K INTERNAL
RAM
$6000
$4000
$1C00
$0000
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
Figure 3-10 Memory Maps for MSW=(X,X), CE=1, MS=0, SC=1
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor3-7
Data and Program Memory Maps
$FFFF
$2800
$0000
$FFFF
PROGRAM
EXTERNAL
10K INTERNAL
RAM
$FFFF
$FF80
$C000
$4000
$2000
$0000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
32K INTERNAL
ROM
INT. RESERVED
8K INTERNAL
RAM
$FFFF
$FFB0
$FF80
$6000
$4000
$1400
$0000
Figure 3-11 Memory Maps for MSW=(0,0), CE=0, MS=1, SC=1
PROGRAM
$FFFF
$FF80
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
$FFFF
$FFB0
$FF80
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48words)
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
5K INTERNAL
RAM
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
EXTERNAL
$2800
$2400
$1C00
$0000
1K RAM
INT. RESERVED
7K INTERNAL
RAM
$C000
$4000
$2000
$0000
32K INTERNAL
ROM
INT. RESERVED
8K INTERNAL
RAM
$6000
$4000
$1C00
$0000
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
Figure 3-12 Memory Maps for MSW=(0,1), CE=0, MS=1, SC=1
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
3-8Freescale Semiconductor
Data and Program Memory Maps
$FFFF
$2800
$2400
$1000
$0000
$FFFF
PROGRAM
EXTERNAL
1K RAM
INT. RESERVED
4K INTERNAL
RAM
$FFFF
$FF80
$C000
$4000
$2C00
$0000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
32K INTERNAL
ROM
INT. RESERVED
11K INTERNAL
RAM
$FFFF
$FFB0
$FF80
$6000
$4000
$1C00
$0000
Figure 3-13 Memory Maps for MSW=(1,0), CE=0, MS=1, SC=1
PROGRAM
$FFFF
$FF80
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
$FFFF
$FFB0
$FF80
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
EXTERNAL
$2400
9K INTERNAL
$0000
1K I-CACHE ENABLED
RAM
$C000
$4000
$2000
$0000
32K INTERNAL
ROM
INT. RESERVED
8K INTERNAL
RAM
$6000
$4000
$1400
$0000
8K INTERNAL
ROM
INT. RESERVED
5K INTERNAL
RAM
Figure 3-14 Memory Maps for MSW=(0,0), CE=1, MS=1, SC=1
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor3-9
Data and Program Memory Maps
$FFFF
$2400
$1C00
$0000
PROGRAM
EXTERNAL
INT. RESERVED
7K INTERNAL
RAM
1K I-CACHE ENABLED
$FFFF
$FF80
$C000
$4000
$2000
$0000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
32K INTERNAL
ROM
INT. RESERVED
8K INTERNAL
RAM
$FFFF
$FFB0
$FF80
$6000
$4000
$1C00
$0000
Figure 3-15 Memory Maps for MSW=(0,1), CE=1, MS=1, SC=1
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
$FFFF
$2400
$1000
$0000
PROGRAM
EXTERNAL
INT. RESERVED
4K INTERNAL
RAM
1K I-CACHE ENABLED
$FFFF
$FF80
$C000
$4000
$2C00
$0000
X DATA
INTERNAL I/O
(128 words)
EXTERNAL
32K INTERNAL
ROM
INT. RESERVED
11K INTERNAL
RAM
$FFFF
$FFB0
$FF80
$6000
$4000
$1C00
$0000
Figure 3-16 Memory Maps for MSW=(1,0), CE=1, MS=1, SC=1
Y DATA
EXTERNAL I/O
(80 words)
INTERNAL I/O
(48 words)
EXTERNAL
8K INTERNAL
ROM
INT. RESERVED
7K INTERNAL
RAM
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
3-10Freescale Semiconductor
Data and Program Memory Maps
3.1.1Reserved Memory Spaces
The reserved memory spaces should not be accessed by the user. They are reserved for future expansion.
3.1.2Program ROM Area Reserved for Freescale Use
The last 128 words ($FFAF80-$FFAFFF) of the Program ROM are reserved for Freescale use. This
memory area is reserved for use as expansion area for the bootstrap ROM as well as for testing purposes.
Customer code should not use this area. The contents of this Program ROM segment is defined by the
Appendix A, "Bootstrap ROM Contents".
3.1.3Bootstrap ROM
The 192-word Bootstrap ROM occupies locations $FF0000-$FF00BF. The bootstrap ROM is
factory-programmed to perform the bootstrap operation following hardware reset. The contents of the
Bootstrap ROM are defined by the Bootstrap ROM source code in Appendix A, "Bootstrap ROM
Contents".
3.1.4Dynamic Memory Configuration Switching
The internal memory configuration is altered by re-mapping RAM modules from Y and X data memory
into program memory space and vice-versa. The contents of the switched RAM modules are preserved.
The memory can be dynamically switched from one configuration to another by changing the MS, MSW0
or MSW1 bits in OMR. The address ranges that are directly affected by the switch operation are specified
in Table 3-2. The memory switch can be accomplished provided that the affected address ranges are not
being accessed during the instruction cycle in which the switch operation takes place. Accordingly, the
following condition must be observed for trouble-free dynamic switching:
NOTE
No accesses (including instruction fetches) to or from the affected address
ranges in program and data memories are allowed during the switch cycle.
NOTE
The switch cycle actually occurs 3 instruction cycles after the instruction
that modifies the MS, MSW0 or MSW1 bits.
Any sequence that complies with the switch condition is valid. For example, if the program flow executes
in the address range that is not affected by the switch, the switch condition can be met very easily. In this
case a switch can be accomplished by just changing the MS, MSW0 or MSW1 bits in OMR in the regular
program flow, assuming no accesses to the affected address ranges of the data memory occur up to 3
instructions after the instruction that changes the OMR bit. Special care should be taken in relation to the
interrupt vector routines since an interrupt could cause the DSP to fetch instructions out of sequence and
might violate the switch condition.
Special attention should be given when running a memory switch routine using the OnCE™ port. Running
the switch routine in Trace mode, for example, can cause the switch to complete after the MS bit change
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor3-11
Internal I/O Memory Map
while the DSP is in Debug mode. As a result, subsequent instructions might be fetched according to the
new memory configuration (after the switch), and thus might execute improperly.
3.1.5External Memory Support
The DSP56366 does not support the SSRAM memory type. It does support SRAM and DRAM as
indicated in the DSP56300 24-Bit Digital Signal Processor Family Manual, Freescale publication
DSP56300FM. Also, care should be taken when accessing external memory to ensure that the necessary
address lines are available. For example, when using glueless SRAM interfacing, it is possible to directly
address 3 × 218 memory locations (768k) when using the 18 address lines and the three programmable
address attribute lines.
3.2Internal I/O Memory Map
The DSP56366 on-chip peripheral modules have their register files programmed to the addresses in the
internal X-I/O memory range (the top 128 locations of the X data memory space) and internal Y-I/O
memory range (48 locations of the Y-data memory space) as shown in Tabl e 3-4.
EUN- Extended Stack Underflow Flag CDP1- Core-Dma Priority 1MB- Operating Mode B
XYS- Stack Extension Space SelectCDP0- Core-Dma Priority 0MA- Operating Mode A
- Reserved bit. Read as zero, should be written with zero for future compatibility
4.2.1Asynchronous Bus Arbitration Enable (ABE) - Bit 13
The asynchronous bus arbitration mode is activated by setting the ABE bit in the OMR register. Hardware
reset clears the ABE bit.
4.2.2Address Attribute Priority Disable (APD) - Bit 14
The Address Attribute Priority Disable (APD) bit is used to turn off the address attribute priority
mechanism. When this bit is set, more than one address attribute pin AA/RAS(2:0) may be simultaneously
asserted according to its AAR settings. The APD bit is cleared by hardware reset.
4.2.3Address Tracing Enable (ATE) - Bit 15
The Address Tracing Enable (ATE) bit is used to turn on Address Tracing (AT) Mode. When the AT Mode
is enabled, the DSP56300 Core reflects the addresses of internal fetches and program space moves
(MOVEM) to the Address Bus (A0-A17), if the Address Bus is not needed by the DSP56300 Core for
external accesses. The ATE bit is cleared on hardware reset.
4.2.4Patch Enable (PEN) - Bit 23
The Patch Enable function is used for patching Program ROM locations. i.e. to replace during program
execution, the contents of the Program ROM. This is done by using the Instruction Cache to supply the
instruction word instead of the Program ROM.
The Patch Enable function is activated by setting bit 23 (PEN) in the OMR Register. The PEN bit is cleared
by hardware reset.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
4-2Freescale Semiconductor
Operating Mode Register (OMR)
The Instruction Cache should be initialized with the new instructions according to the following
procedure:
These steps should be executed from external memory or by download via host interface:
1. Set Cache Enable = 1
2. Set Patch Enable = 1
3. Initialize TAGs to different values by unlock eight different external sectors
4. Lock the PATCH sector(s)
5. Move new code to locked sector(s), to the addresses that should be replaced
6. Start regular PROM program
;****************************************************************************
; PATCH initialization example
;****************************************************************************
page 132,55,0,0,0
nolist
INCLUDE "ioequ.asm"
INCLUDE "intequ.asm"
list
STARTequ$100; main program starting address
PATCH_OFSETequ128; patch offset
M_PAEequ23; Patch Enable
M_PROMSequ$ffafec; ROM area Start
M_PROMEequ$ffafff; ROM area End
The operating modes are defined as shown in Table 4-2. The operating modes are latched from MODA,
MODB, MODC and MODD pins during reset. Each operating mode is briefly described below. Except for
modes 0 and 8, the operation of all other modes is defined by the Bootstrap ROM source code in Appendix
A , "Bootstrap ROM Contents".
Table 4-2 DSP56366 Operating Modes
Mode
MODDMODCMODBMOD
A
00000$C00000Expanded mode
10001$FF0000Bootstrap from byte-wide memory
20010$FF0000Jump to PROM starting address
30011$FF0000Reserved
40100$FF0000Reserved
Reset
Vector
Description
50101$FF0000Bootstrap from SHI (slave SPI mode)
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
4-4Freescale Semiconductor
Table 4-2 DSP56366 Operating Modes (continued)
Operating Modes
Mode
MODDMODCMODBMOD
A
60110$FF0000Bootstrap from SHI (slave I
Reset
Vector
Description
2
C mode) (HCKFR=1, 100ns filter
enabled)
70111$FF0000Bootstrap from SHI (slave I
2
C mode)(HCKR=0)
81000$008000Expanded mode
91001$FF0000Reserved for Burn-in testing
A1010$FF0000Reserved
B1011$FF0000Reserved
C1100$FF0000HDI08 Bootstrap in ISA Mode
D1101$FF0000HDI08 Bootstrap in HC11 non-multiplexed mode
E1110$FF0000HDI08 Bootstrap in 8051 multiplexed bus mode
F1111$FF0000HDI08 Bootstrap in 68302 bus mode
Table 4-3 DSP56366 Mode Descriptions
Mode 0The DSP starts fetching instructions beginning at address $C00000. Memory accesses are performed using
SRAM memory access type with 31 wait states and no address attributes selected. Address $C00000 is reflected
as address $00000 on Port A pins A0-A17.
Mode 1The bootstrap program loads instructions through Port A from external byte-wide memory, connected to the least
significant byte of the data bus (bits 7-0), and starting at address P:$D00000. The bootstrap code expects to read
3 bytes specifying the number of program words, 3 bytes specifying the address to start loading the program
words and then 3 bytes for each program word to be loaded. The number of words, the starting address and the
program words are read least significant byte first followed by the mid and then by the most significant byte. The
program words will be stored in contiguous PRAM memory locations starting at the specified starting address.
After reading the program words, program execution starts from the same address where loading started.The
SRAM memory access type is selected by the values in Address Attribute Register 1 (AAR1), with 31 wait states
for each memory access. Address $D00000 is reflected as address $00000 on Port A pins A0-A17.
Mode 2The DSP starts fetching instructions from the starting address of the on-chip Program ROM.
Mode 3Reserved.
Mode 4Reserved.
Mode 5In this mode, the internal PRAM is loaded from the Serial Host Interface (SHI). The SHI operates in the SPI slave
mode, with 24-bit word width.The bootstrap code expects to read a 24-bit word specifying the number of program
words, a 24-bit word specifying the address to start loading the program words and then a 24-bit word for each
program word to be loaded. The program words will be stored in contiguous PRAM memory locations starting at
the specified starting address. After reading the program words, program execution starts from the same address
where loading started.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor4-5
Interrupt Priority Registers
Table 4-3 DSP56366 Mode Descriptions
Mode 6Same as Mode 5 except SHI interface operates in the I2C slave mode with HCKFR set to 1 and the 100ns filter
enabled.
Mode 7Same as Mode 5 except SHI interface operates in the I2C slave mode with HCKFR set to 0.
Mode 8The DSP starts fetching instructions beginning at address $008000. Memory accesses are performed using
SRAM memory access type with 31 wait states and no address attributes selected.
Mode 9Reserved. Used for Burn-In testing.
Mode AReserved.
Mode BReserved.
Mode CInstructions are loaded through the HDI08, which is configured to interface with an ISA bus. The HOST ISA
bootstrap code expects to read a 24-bit word specifying the number of program words, a 24-bit word specifying
the address to start loading the program words and then a 24-bit word for each program word to be loaded. The
program words will be stored in contiguous PRAM memory locations starting at the specified starting address.
After reading the program words, program execution starts from the same address where loading started. The
Host Interface bootstrap load program may be stopped by setting the Host Flag 0 (HF0). This will start execution
of the loaded program from the specified starting address.
Mode DAs in Mode C, but HDI08 is set for interfacing to Freescale HC11 microcontroller in non-multiplexed mode
Mode EAs in Mode C, but HDI08 is set for interfacing to Intel 8051 multiplexed bus
Mode FAs in Mode C, but HDI08 is set for interfacing to Freescale 68302 bus.
4.4Interrupt Priority Registers
There are two interrupt priority registers in the DSP56366:
1. IPR-C is dedicated for DSP56300 Core interrupt sources.
2. IPR-P is dedicated for DSP56366 peripheral interrupt sources.
The interrupt priority registers are shown in Figure 4-1 and Figure 4-2. The Interrupt Priority Level bits
are defined in Table 4-4. The interrupt vectors are shown in Table 4-6 and the interrupt priorities are shown
in Table 4-5.
Table 4-4 Interrupt Priority Level Bits
IPL bits
00No—
Interrupts
Enabled
Interrupt
Priority
LevelxxL1xxL0
01Yes0
10Yes1
11Yes2
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
4-6Freescale Semiconductor
Interrupt Priority Registers
91011
8
ESL10
TAL1
ESL11
22
23
Reserved bit. Read as zero, should be written with zero for future compatibility.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor4-7
Interrupt Priority Registers
PriorityInterrupt Source
Level 3 (Nonmaskable)
HighestHardware RESET
LowestNon-Maskable Interrupt
Levels 0, 1, 2 (Maskable)
Table 4-5 Interrupt Sources Priorities Within an IPL
Stack Error
Illegal Instruction
Debug Request Interrupt
Tr ap
HighestIRQA
IRQB (External Interrupt)
IRQC
IRQD (External Interrupt)
DMA Channel 0 Interrupt
DMA Channel 1 Interrupt
DMA Channel 2 Interrupt
DMA Channel 3 Interrupt
DMA Channel 4 Interrupt
DMA Channel 5 Interrupt
ESAI Receive Data with Exception Status
ESAI Receive Even Data
ESAI Receive Data
ESAI Receive Last Slot
ESAI Transmit Data with Exception Status
(External Interrupt)
(External Interrupt)
ESAI Transmit Last Slot
ESAI Transmit Even Data
ESAI Transmit Data
SHI Bus Error
SHI Receive Overrun Error
SHI Transmit Underrun Error
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
4-8Freescale Semiconductor
Table 4-5 Interrupt Sources Priorities Within an IPL (continued)
PriorityInterrupt Source
SHI Receive FIFO Full
SHI Transmit Data
SHI Receive FIFO Not Empty
HOST Command Interrupt
HOST Receive Data Interrupt
HOST Transmit Data Interrupt
DAX Transmit Underrun Error
DAX Block Transferred
DAX Transmit Register Empty
TIMER0 Overflow Interrupt
TIMER0 Compare Interrupt
TIMER1 Overflow Interrupt
Interrupt Priority Registers
TIMER1 Compare Interrupt
TIMER2 Overflow Interrupt
TIMER2 Compare Interrupt
ESAI_1 Receive Data with Exception Status
ESAI_1 Receive Even Data
ESAI_1 Receive Data
ESAI_1 Receive Last Slot
ESAI_1 Transmit Data with Exception Status
ESAI_1 Transmit Last Slot
ESAI_1 Transmit Even Data
LowestESAI_1 Transmit Data
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor4-9
Interrupt Priority Registers
Table 4-6 DSP56366 Interrupt Vectors
Interrupt
Starting Address
VBA:$003Hardware RESET
VBA:$023Stack Error
VBA:$043Illegal Instruction
VBA:$063Debug Request Interrupt
VBA:$083Trap
VBA:$0A3Non-Maskable Interrupt (NMI
VBA:$0C3Reserved For Future Level-3 Interrupt Source
VBA:$0E3Reserved For Future Level-3 Interrupt Source
VBA:$100 - 2IRQA
VBA:$120 - 2IRQB
VBA:$140 - 2IRQC
VBA:$160 - 2IRQD
VBA:$180 - 2DMA Channel 0
VBA:$1A0 - 2DMA Channel 1
VBA:$1C0 - 2DMA Channel 2
VBA:$1E0 - 2DMA Channel 3
Interrupt Priority
Level Range
Interrupt Source
)
VBA:$200 - 2DMA Channel 4
VBA:$220 - 2DMA Channel 5
VBA:$240 - 2Reserved
VBA:$260 - 2Reserved
VBA:$280 - 2DAX Underrun Error
VBA:$2A0 - 2DAX Block Transferred
VBA:$2C0 - 2Reserved
VBA:$2E0 - 2DAX Audio Data Empty
VBA:$300 - 2ESAI Receive Data
VBA:$320 - 2ESAI Receive Even Data
VBA:$340 - 2ESAI Receive Data With Exception Status
VBA:$360 - 2ESAI Receive Last Slot
VBA:$380 - 2ESAI Transmit Data
VBA:$3A0 - 2ESAI Transmit Even Data
VBA:$3C0 - 2ESAI Transmit Data with Exception Status
VBA:$3E0 - 2ESAI Transmit Last Slot
VBA:$400 - 2SHI Transmit Data
VBA:$420 - 2SHI Transmit Underrun Error
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
4-10Freescale Semiconductor
Table 4-6 DSP56366 Interrupt Vectors (continued)
Interrupt Priority Registers
Interrupt
Starting Address
VBA:$440 - 2SHI Receive FIFO Not Empty
VBA:$460 - 2Reserved
VBA:$480 - 2SHI Receive FIFO Full
VBA:$4A0 - 2SHI Receive Overrun Error
VBA:$4C0 - 2SHI Bus Error
VBA:$4E0 - 2Reserved
VBA:$500 - 2Reserved
VBA:$520 - 2Reserved
VBA:$540 - 2TIMER0 Compare
VBA:$560 - 2TIMER0 Overflow
VBA:$580 - 2TIMER1 Compare
VBA:$5A0 - 2TIMER1 Overflow
VBA:$5C0 - 2TIMER2 Compare
VBA:$5E0 - 2TIMER2 Overflow
VBA:$600 - 2Host Receive Data Full
VBA:$620 - 2Host Transmit Data Empty
Interrupt Priority
Level Range
Interrupt Source
VBA:$640 - 2Host Command (Default)
VBA:$660 - 2Reserved
VBA:$680 - 2Reserved
VBA:$6A0 - 2Reserved
VBA:$6C0 - 2Reserved
VBA:$6E0 - 2Reserved
VBA:$700 - 2ESAI_1 Receive Data
VBA:$720 - 2ESAI_1 Receive Even Data
VBA:$740 - 2ESAI_1 Receive Data With Exception Status
VBA:$760 - 2ESAI_1 Receive Last Slot
VBA:$780 - 2ESAI_1 Transmit Data
VBA:$7A0 - 2ESAI_1 Transmit Even Data
VBA:$7C0 - 2ESAI_1 Transmit Data with Exception Status
VBA:$7E0 - 2ESAI_1 Transmit Last Slot
VBA:$800 - 2Reserved
:::
VBA:$FE0 - 2Reserved
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor4-11
DMA Request Sources
4.5DMA Request Sources
The DMA Request Source bits (DRS0-DRS4 bits in the DMA Control/Status registers) encode the source
of DMA requests used to trigger the DMA transfers. The DMA request sources may be the internal
peripherals or external devices requesting service through the IRQA, IRQB, IRQC and IRQD pins. The
DMA Request Sources are shown in Table 4-7.
Table 4-7 DMA Request Sources
DMA Request Source Bits
DRS4...DRS0
00000External (IRQA
00001External (IRQB pin)
00010External (IRQC pin)
00011External (IRQD
00100Transfer Done from DMA channel 0
00101Transfer Done from DMA channel 1
00110Transfer Done from DMA channel 2
00111Transfer Done from DMA channel 3
01000Transfer Done from DMA channel 4
01001Transfer Done from DMA channel 5
01010DAX Transmit Data
01011ESAI Receive Data (RDF=1)
01100ESAI Transmit Data (TDE=1)
Requesting Device
pin)
pin)
01101SHI HTX Empty
01110SHI FIFO Not Empty
01111SHI FIFO Full
10000HDI08 Receive Data
10001HDI08 Transmit Data
10010TIMER0 (TCF=1)
10011TIMER1 (TCF=1)
10100TIMER2 (TCF=1)
10101ESAI_1 Receive Data (RDF=1)
10110ESAI_1 Transmit Data (TDE=1)
10111-11111Reserved
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
4-12Freescale Semiconductor
PLL Initialization
4.6PLL Initialization
4.6.1PLL Multiplication Factor (MF0-MF11)
The DSP56366 PLL multiplication factor is set to 6 during hardware reset, i.e. the Multiplication Factor
Bits MF0-MF11 in the PLL Control Register (PCTL) are set to $005.
4.6.2PLL Pre-Divider Factor (PD0-PD3)
The DSP56366 PLL Pre-Divider factor is set to 1 during hardware reset, i.e. the Pre-Divider Factor Bits
PD0-PD3 in the PLL Control Register (PCTL) are set to $0.
4.6.3Crystal Range Bit (XTLR)
The Crystal Range (XTLR) bit controls the on-chip crystal oscillator transconductance. The on-chip
crystal oscillator is not used on the DSP56366 since no XTAL pin is available. The XTLR bit is set to zero
during hardware reset in the DSP56366.
4.6.4XTAL Disable Bit (XTLD)
The XTAL Disable Bit (XTLD) is set to 1 (XTAL disabled) during hardware reset in the DSP56366.
4.7Device Identification (ID) Register
The Device Identification Register (IDR) is a 24 bit read only factory programmed register used to identify
the different DSP56300 core-based family members. This register specifies the derivative number and
revision number. This information may be used in testing or by software. Table 4-8 shows the ID register
configuration.
Table 4-8 Identification Register Configuration
23161512110
ReservedRevision NumberDerivative Number
$00$0$366
4.8JTAG Identification (ID) Register
The JTAG Identification (ID) Register is a 32 bit, read only thought JTAG, factory programmed register
used to distinguish the component on a board according to the IEEE 1149.1 standard. Table 4-9 shows the
JTAG ID register configuration.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
The boundary scan register (BSR) in the DSP56366 JTAG implementation contains bits for all device
signal and clock pins and associated control signals. All bidirectional pins have a single register bit in the
boundary scan register for pin data, and are controlled by an associated control bit in the boundary scan
register. The boundary scan register bit definitions are described in Table 4-10.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
4-14Freescale Semiconductor
JTAG Boundary Scan Register (BSR)
Table 4-10 DSP56366 BSR Bit Definition (continued)
Bit
#
17 D13Input/OutputData93 HAD6—Control
18 D12Input/OutputData
19 D11Input/OutputData
20 D10Input/OutputData96 HAD7Input/OutputData
21 D9Input/OutputData
22 D8Input/OutputData
23 D7Input/OutputData99 HA8/A1—Control
24 D6Input/OutputData
25 D5Input/OutputData
26 D4Input/OutputData102 HA9/A2Input/OutputData
27 D3Input/OutputData
28 D[12:0]—Control
Pin NamePin Type
BSR Cell
Typ e
Bit
#
94 HAD6Input/OutputData
95 HAD7—Control
97 HAS/A0—Control
98 HAS/A0Input/OutputData
100 HA8/A1Input/OutputData
101 HA9/A2—Control
103 HCS/A10—Control
104 HCS/A10Input/OutputData
Pin NamePin Type
BSR Cell
Type
29 D2Input/OutputData105 TIO0—Control
30 D1Input/OutputData
31 D0Input/OutputData
32 A17Output3Data108 ACIInput/OutputData
33 A16Output3Data
34 A15Output3Data
35 A[17:9]—Control
36 A14Output3Data
37 A13Output3Data
38 A12Output3Data
39 A11Output3Data
40 A10Output3Data
41 A9Output3Data
42 A8Output3Data
106 TIO0Input/OutputData
107 ACI—Control
109 ADO—Control
110 ADOInput/OutputData
111 HREQ/HTRQ—Control
112 HREQ/HTRQInput/OutputData
113 HACK/RRQ—Control
114 HACK/RRQInput/OutputData
115 HRW/RD—Control
116 HRW/RDInput/OutputData
117 HDS/WR—Control
118 HDS/WRInput/OutputData
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor4-15
JTAG Boundary Scan Register (BSR)
Table 4-10 DSP56366 BSR Bit Definition (continued)
Bit
#
43 A7Output3Data
44 A6Output3Data
45 A[8:0]—Control
46 A5Output3Data122 HSCKTInput/OutputData
47 A4Output3Data
48 A3Output3Data
49 A2Output3Data125 SCKT—Control
50 A1Output3Data
51 A0Output3Data
52 BGInputData128 FSRInput/OutputData
53 AA0—Control
54 AA0Output3Data
Pin NamePin Type
BSR Cell
Typ e
Bit
#
119 HSCKR—Control
120 HSCKRInput/OutputData
121 HSCKT—Control
123 SCKR—Control
124 SCKRInput/OutputData
126 SCKTInput/OutputData
127 FSR—Control
129 FST—Control
130 FSTInput/OutputData
Pin NamePin Type
BSR Cell
Type
55 AA1—Control131 SDO5/SDI0—Control
56 AA1Output3Data
57 RDOutput3Data
58 WROutput3Data134 SDO4/SDI1Input/OutputData
59 BB—Control
60 BBInput/OutputData
61 BROutput2Data
62 TAInputData
63 PINITInputData
64 SCKR_1Control
65 SCKR_1Input/OutputData
66 FSR_1Control
67 FSR_1Input/OutputData
68 RD
,WR—Control144 HREQInput/OutputData
132 SDO5/SDI0Input/OutputData
133 SDO4/SDI1—Control
135 SDO3/SDI2—Control
136 SDO3/SDI2Input/OutputData
137 SDO2/SDI3—Control
138 SDO2/SDI3Input/OutputData
139 SDO1—Control
140 SDO1Input/OutputData
141 SDO0—Control
142 SDO0Input/OutputData
143 HREQ—Control
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
4-16Freescale Semiconductor
JTAG Boundary Scan Register (BSR)
Table 4-10 DSP56366 BSR Bit Definition (continued)
Bit
#
69 EXTALInputData145 SSInputData
70 SCKT_1—Control
71 SCKT_1Input/OutputData
72 CAS—Control148 MISO/SDA—Control
73 CASOutput3Data
74 AA2—Control
75 AA2Output3Data151 MOSI/HA0Input/OutputData
Pin NamePin Type
BSR Cell
Typ e
Bit
#
146 SCK/SCL—Control
147 SCK/SCLInput/OutputData
149 MISO/SDAInput/OutputData
150 MOSI/HA0—Control
Pin NamePin Type
BSR Cell
Type
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor4-17
JTAG Boundary Scan Register (BSR)
NOTES
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
4-18Freescale Semiconductor
5General Purpose Input/Output
5.1Introduction
The DSP56362 provides up to 37 bidirectional signals that can be configured as GPIO signals or as
peripheral dedicated signals. No dedicated GPIO signals are provided. All of these signals are GPIO by
default after reset. The techniques for register programming for all GPIO functionality is very similar
between these interfaces. This section describes how signals may be used as GPIO.
5.2Programming Model
The signals description section of this manual describes the special uses of these signals in detail. There
are five groups of these signals which can be controlled separately or as groups:
•Port B: up to 16 GPIO signals (shared with the HDI08 signals)
•Port C: 12 GPIO signals (shared with the ESAI signals)
•Port D: two GPIO signals (shared with the DAX signals)
•Port E: 10 GPIO signals (shared with the ESAI_1 signals)
•Timer: one GPIO signal (shared with the timer/event counter signal)
5.2.1Port B Signals and Registers
When HDI08 is disabled, all 16 HDI08 signals can be used as GPIO. When HDI08 is enabled, five (HA8,
HA9, HCS, HOREQ, and HACK) of the 16 port B signals, if not used as a HDI08 signal, can be configured
as GPIO signals. The GPIO functionality of port B is controlled by three registers: host port control register
(HPCR), host port GPIO data register (HDR), and host port GPIO direction register (HDDR). These
registers are described in Section 6, "Host Interface (HDI08)" of this document.
5.2.2Port C Signals and Registers
Each of the 12 port C signals not used as an ESAI signal can be configured individually as a GPIO signal.
The GPIO functionality of port C is controlled by three registers: port C control register (PCRC), port C
direction register (PRRC), and port C data register (PDRC). These registers are described in Section 8,
"Enhanced Serial AUDIO Interface (ESAI)".
5.2.3Port D Signals and Registers
Each of the two Port D signals not used as a DAX signal can be configured individually as a GPIO signal.
The GPIO functionality of Port D is controlled by three registers: Port D control register (PCRD), Port D
direction register (PRRD) and Port D data register (PDRD). These registers are described in Section 10,
"Digital Audio Transmitter".
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor5-1
Programming Model
5.2.4Port E Signals and Registers
Port E has 10 signals, shared with the ESAI_1. Six of the ESAI_1 signals have their own pin, so each of
the six signals, if not used as an ESAI_1 signal, can be configured individually as a GPIO signal. The other
four ESAI_1 signals share pins with the ESAI. For these shared pins, if the pin is not being used by the
ESAI, Port C and the ESAI_1, then it may be used as a Port E GPIO signal. The GPIO functionality of port
E is controlled by three registers: port E control register (PCRE), port E direction register (PRRE), and
port E data register (PDRE). These registers are described in Section 9, "Enhanced Serial Audio Interface
1 (ESAI_1)".
5.2.5Timer/Event Counter Signals
The timer/event counter signal (TIO), when not used as a timer signal can be configured as a GPIO signal.
The signal is controlled by the appropriate timer control status register (TCSR). The register is described
in Section 11, "Timer/ Event Counter".
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
5-2Freescale Semiconductor
6Host Interface (HDI08)
6.1Introduction
The host interface (HDI08) is a byte-wide, full-duplex, double-buffered, parallel port that can be connected
directly to the data bus of a host processor. The HDI08 supports a variety of buses and provides glueless
connection with a number of industry standard microcomputers, microprocessors, DSPs and DMA
hardware.
The host bus can operate asynchronously to the DSP core clock, therefore the HDI08 registers are divided
into 2 banks. The host register bank is accessible to the external host and the DSP register bank is
accessible to the DSP core.
•Sixteen signals are provided to support non-multiplexed or multiplexed buses:
— H0-H7/HAD0-HAD7
Host data bus (H7-H0) or host multiplexed address/data bus (HAD0-HAD7)
— HAS/HA0
Address strobe (HAS) or Host address line HA0
— HA8/HA1
Host address line HA8 or Host address line HA1
— HA9/HA2
Host address line HA9 or Host address line HA2
—HRW/HRD
Read/write select (HRW) or Read Strobe (HRD)
— HDS/HWR
Data Strobe (HDS) or Write Strobe (HWR)
—HCS/HA10
Host chip select (HCS) or Host address line HA10
— HOREQ/HTRQ
Host request (HOREQ) or Host transmit request (HTRQ)
— HACK/HRRQ
Host acknowledge (HACK) or Host receive request (HRRQ)
•Mapping:
— HDI08 registers are mapped into eight consecutive byte locations in the external host bus
address space.
— The HDI08 acts as a memory or IO-mapped peripheral for microprocessors, microcontrollers,
etc.
•Data Word:
—8-bit
•Transfer Modes:
— Mixed 8-bit, 16-bit and 24-bit data transfers
– DSP to Host
– Host to DSP
— Host Command
•Handshaking Protocols:
— Software polled
— Interrupt-driven (Interrupts are compatible with most processors, including the MC68000,
8051, HC11 and Hitachi H8).
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
6-2Freescale Semiconductor
HDI08 Host Port Signals
— Cycle-stealing DMA with initialization
•Dedicated Interrupts:
— Separate interrupt lines for each interrupt source
— Special host commands force DSP core interrupts under host processor control, which are
useful for the following:
– Real-Time Production Diagnostics
– Debugging Window for Program Development
– Host Control Protocols
•Interface Capabilities:
— Glueless interface (no external logic required) to the following:
– Freescale HC11
– Hitachi H8
– 8051 family
– Thomson P6 family
– external DMA controllers
— Minimal glue-logic (pullups, pulldowns) required to interface to the following:
– ISA bus
– Motorola 68K family
– Intel X86 family.
6.3HDI08 Host Port Signals
The host port signals are described in Section 2, "Signal/Connection Descriptions". If the Host Interface
functionality is not required, the 16 pins may be defined as general purpose I/O pins PB0-PB15. When the
HDI08 is in use, only five host port signals (HA8, HA9, HCS, HOREQ and HACK) may be individually
programmed as GPIO pins if they are not needed for their HDI08 function. Summary of the HDI08 signals.
Table 6-1 HDI08 Signal Summary
HDI08 Port Pin Multiplexed address/data bus ModeNon Multiplexed bus ModeGPIO Mode
HAD0-HAD7HAD0-HAD7H0-H7PB0-PB7
HAS/HA0HAS/HAS
HA8/HA1HA8HA1PB9
HA9/HA2HA9HA2PB10
HCS/HA10HA10HCS/HCS
HA0PB8
PB13
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor6-3
HDI08 Block Diagram
HDI08 Port Pin Single strobe busDual strobe busGPIO Mode
Table 6-2 Strobe Signals Support signals
HRW/HRDHRWHRD/HRD
HDS/HWRHDS/HDS
HWR/HWRPB12
PB11
Table 6-3 Host request support signals
HDI08 Port Pin Vector requiredNo vector requiredGPIO Mode
HOREQ/HTRQHOREQ/HOREQ
HACK/HRRQHACK/HACKHRRQ/HRRQPB15
HTRQ/HTRQPB14
6.4HDI08 Block Diagram
Figure 6-1 shows the HDI08 registers. The top row of registers (HCR, HSR, HDDR, HDR, HBAR, HPCR,
HOTX, HORX) can be accessed the DSP core. The bottom row of registers (ISR, ICR, CVR, IVR,
RXH:RXM:RXL and TXH:TXM:TXL) can be accessed by the host processor.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
6-4Freescale Semiconductor
HDI08 – DSP-Side Programmer’s Model
Core DMA Data Bus
DSP Peripheral Data Bus
24
2424242424
2424
24
24
HDDRHCRHSRHDR
HBAR
Address
Comparator
3
ISR
8
ICRInterface Control Register
CVRCommand Vector Register
ISRInterface Status Register
IVRInterrupt Vector Register
RXH/RXM/RXLReceive Register High/Middle/Low
TXH/TXM/TXLTransmit Register High/Middle/Low
8
8
8
LatchRXLIVRCVRICR
8
5
RXH
8
3
HOST Bus
HCRHost Control Register
HSRHost Status Register
HPCRHost Port Control Register
HBARHost Base Address register
HOTXHost Transmit register
HORXHost Receive register
HDDRHost Data Direction Register
HDRHost Data Register
HPCR
8
RXM
HORHOTX
24
24
RXLTXMTXH
8
8
8
8
8
Figure 6-1 HDI08 Block Diagram
6.5HDI08 – DSP-Side Programmer’s Model
The DSP core threats the HDI08 as a memory-mapped peripheral occupying eight 24-bit words in X data
memory space. The DSP may use the HDI08 as a normal memory-mapped peripheral, employing either
standard polled or interrupt-driven programming techniques. Separate transmit and receive data registers
are double-buffered to allow the DSP and host processor to transfer data efficiently at high speed. Direct
memory mapping allows the DSP core to communicate with the HDI08 registers using standard
instructions and addressing modes. In addition, the MOVEP instruction allows direct data transfers
between the DSP memory and the HDI08 registers or vice-versa. The HOTX and HORX registers may be
serviced by the on-chip DMA controller for data transfers.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
Freescale Semiconductor6-5
HDI08 – DSP-Side Programmer’s Model
The eight host processor registers consists of two data registers and six control registers. All registers can
be accessed by the DSP core but not by the external processor.
Data registers are 24-bit registers used for high-speed data transfer to and from the DSP. They are as
follows:
•Host Data Receive Register (HORX)
•Host Data Transmit Register (HOTX)
The control registers are 16-bit registers used to control the HDI08 functions. The eight MSBs in the
control registers are read by the DSP as zero. The control registers are as follows:
•Host control register (HCR)
•Host status register (HSR)
•Host base address register (HBAR)
•Host port control register (HPCR)
•Host GPIO data direction register (HDDR)
•Host GPIO data register (HDR)
Hardware and software reset disable the HDI08. After reset, the HDI08 signals are configured as GPIO
with all pins disconnected.
6.5.1Host Receive Data Register (HORX)
The 24-bit read-only HORX register is used for host-to-DSP data transfers. The HORX register is loaded
with 24-bit data from the transmit data registers (TXH:TXM:TXL) on the host side when both the transmit
data register empty TXDE (host side) and host receive data full HRDF (DSP side) bits are cleared. This
transfer operation sets both the TXDE and HRDF flags. The HORX register contains valid data when the
HRDF bit is set. Reading HORX clears HRDF. The DSP may program the HRIE bit to cause a host receive
data interrupt when HRDF is set. Also, a DMA channel may be programmed to read the HORX when
HRDF is set.
6.5.2Host Transmit Data Register (HOTX)
The 24-bit write-only HOTX register is used for DSP- to-host data transfers. Writing to the HOTX register
clears the host transfer data empty flag HTDE (DSP side). The contents of the HOTX register are
transferred as 24-bit data to the receive byte registers (RXH:RXM:RXL) when both the HTDE flag (DSP
side) and receive data full RXDF flag (host side) are cleared. This transfer operation sets the RXDF and
HTDE flags. The DSP may set the HTIE bit to cause a host transmit data interrupt when HTDE is set. Also,
a DMA Channel may be programmed to write to HOTX when HTDE is set. To prevent the previous data
from being overwritten, data should not be written to the HOTX until the HTDE flag is set.
DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4
6-6Freescale Semiconductor
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.