Summary of Contents for Freescale Semiconductor DSP56366
Page 1
DSP56366 24-Bit Digital Signal Processor User Manual Document Number: DSP56366UM Rev. 4 08/2006...
Page 2
“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...
Page 4
HDI08 – DSP-Side Programmer’s Model ......... 6-5 TOC-2 DSP56366 24-Bit Digital Signal Processor, Rev. 4 Freescale Semiconductor...
Page 5
ICR Double Host Request (HDRQ) Bit 2 ........6-21 Freescale Semiconductor DSP56366 24-Bit Digital Signal Processor, Rev. 4 TOC-3...
Page 6
SHI Individual Reset ..........7-11 TOC-4 DSP56366 24-Bit Digital Signal Processor, Rev. 4 Freescale Semiconductor...
Page 7
C Master Mode ........7-24 DSP56366 24-Bit Digital Signal Processor, Rev. 4...
Page 8
RCCR Receiver Clock Source Direction (RCKD) - Bit 21 ..... 8-24 8.3.3.9 RCCR Receiver Frame Sync Signal Direction (RFSD) - Bit 22 ....8-25 TOC-6 DSP56366 24-Bit Digital Signal Processor, Rev. 4 Freescale Semiconductor...
Page 9
ESAI Transmit Shift Registers ..........8-40 8.3.10 ESAI Transmit Data Registers (TX5, TX4, TX3, TX2,TX1,TX0) ....8-40 Freescale Semiconductor DSP56366 24-Bit Digital Signal Processor, Rev. 4 TOC-7...
Page 10
RCCR_1 Rx High Freq. Clock Polarity (RHCKP) - Bit 20 ..... 9-9 TOC-8 DSP56366 24-Bit Digital Signal Processor, Rev. 4 Freescale Semiconductor...
Page 11
DAX Audio Data Register Empty (XADE)—Bit 0 ......10-8 Freescale Semiconductor DSP56366 24-Bit Digital Signal Processor, Rev. 4 TOC-9...
Page 12
TCSR Timer Overflow Flag (TOF) Bit 20 ....... . 11-11 TOC-10 DSP56366 24-Bit Digital Signal Processor, Rev. 4 Freescale Semiconductor...
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.
• 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: •...
— 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 Semiconductor High True/Low True Signal Conventions Logic State...
Page 24
NOTES DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
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.
DSP56300 Core Description DSP56300 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.
• 144-pin plastic TQFP package. DSP56366 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).
OnCE module • JTAG TAP • Memory In addition, the DSP56366 provides a set of on-chip peripherals, described in Overview". 1.4.1 Data ALU The Data ALU performs all the arithmetic and logical operations on data operands in the DSP56300 core.
Direct 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 Figure 1-1. Freescale Semiconductor...
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 Semiconductor : i = 0 to 7) to reduce clock noise .
• Eighteen external address lines Peripheral 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 •...
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 Section 11, "Timer/ Event Counter". DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Peripheral Overview...
Digital 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 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 1-10 (ESAI_1)".
Port E signals are the GPIO port signals which are multiplexed with the ESAI_1 signals. 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 Freescale Semiconductor 2-1.
SPDIF TRANSMITTER (DAX) ADO [PD1] ACI [PD0] TIMER 0 TIO0 [TIO0] Figure 2-1 Signals Identified by Functional Group DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 OnCE‰ ON-CHIP EMULATION/ DSP56366 PARALLEL HOST PORT (HDI08) Port B SERIAL AUDIO INTERFACE (ESAI)
Quiet Ground — GND be tied externally to all other chip ground connections. The user must provide adequate external decoupling capacitors. There are four GND DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 2-2 Power Inputs...
Input PINIT/NMI Input Input DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Table 2-3 Grounds (continued) Description is an isolated ground for sections of the address bus I/O drivers. This is an isolated ground for sections of the data bus I/O drivers. This is an isolated ground for the bus control I/O drivers.
Output Tri-stated Output Tri-stated DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 2-5 External Address Bus Signals Address Bus — When the DSP is the bus master, A0 – A17 are active-high outputs that specify the address for external program and data memory accesses.
Page 40
Output Output (deasserted) DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Signal Description Write Enable — When the DSP is the bus master, WR is an active-low output that is asserted to write external memory on the data bus (D0-D23).
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 Semiconductor Bus Grant —...
Input RESET Input Input DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Table 2-8 Interrupt and Mode Control Signal Description Mode Select A/External Interrupt Request A — MODA/IRQA is an active-low Schmitt-trigger input, internally synchronized to the DSP clock. MODA/IRQA...
Input disconnected Input Input, output, or disconnected DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 2-9 Host Interface Reset 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.
Page 44
HWR/ Input PB12 Input, output, or disconnected DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 2-10 Table 2-9 Host Interface (continued) Reset GPIO 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.
Page 45
HTRQ/ Output HTRQ PB14 Input, output, or disconnected DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 2-9 Host Interface (continued) Reset GPIO 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.
Signal Type Name Reset Input or output Tri-stated Input or output DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 2-12 Table 2-9 Host Interface (continued) Reset GPIO 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.
Page 47
MOSI Input or output Tri-stated Input DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Signal Description SPI 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.
Page 48
Input HREQ Input or Output Tri-stated DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 2-14 Signal Description SPI Slave Select — This signal is an active low Schmitt-trigger input when configured for the SPI mode. When configured for the SPI Slave mode, this signal is used to enable the SPI slave for transfer.
Input or output Input, output, or disconnected Input or output Input, output, or disconnected DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor State during Reset GPIO High Frequency Clock for Receiver — When programmed as an disconnected input, this signal provides a high frequency clock source for the ESAI receiver as an alternate to the DSP core clock.
Page 50
Input or output Input, output, or disconnected SCKT Input or output Input, output, or disconnected DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 2-16 State during Reset GPIO Frame Sync for Transmitter — This is the transmitter frame sync disconnected input/output signal.
Page 51
SDO3_1 SDI2/ Input SDI2_1 PC8/PE8 Input, output, or disconnected DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor State during Reset GPIO Serial Data Output 5 — When programmed as a transmitter, SDO5 is disconnected used to transmit data from the TX5 serial transmit shift register.
Page 52
SDO0/ Output SDO0_1 PC11/ Input, output, or PE11 disconnected DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 2-18 State during Reset GPIO Serial Data Output 2 — When programmed as a transmitter, SDO2 is disconnected 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.
FST_1 Input or output disconnected Input, output, or disconnected DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Reset GPIO 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.
Page 54
SDI0_1 Input Input, output, or disconnected DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 2-20 Reset GPIO 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).
Output Disconnected Input, output, or disconnected DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Reset GPIO Serial Data Output 4_1 — When programmed as a transmitter, SDO4 is used to transmit data from the TX4 serial transmit shift register.
Input Input Output Tri-stated Input Input DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 2-22 Table 2-14 Timer Signal Reset Input Timer 0 Schmitt-Trigger Input/Output — When timer 0 functions as an external event counter or in measurement mode, TIO0 is used as input.
Data 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.
Data and Program Memory Maps Bit Settings MSW1 MSW0 Bit Settings MSW1 MSW0 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Table 3-2 On-chip RAM Memory Locations RAM Memory Locations Prog. $0000 - $0BFF $0000 - $07FF $0000 -$27FF...
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 Semiconductor Contents".
(after the switch), and thus might execute improperly. 3.1.5 External 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 DSP56300FM.
Page 69
X:$FFFFCD X:$FFFFCC X:$FFFFCB X:$FFFFCA PORT B X:$FFFFC9 X:$FFFFC8 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Register Name DMA SOURCE ADDRESS REGISTER (DSR1) DMA DESTINATION ADDRESS REGISTER (DDR1) DMA COUNTER (DCO1) DMA CONTROL REGISTER (DCR1) DMA SOURCE ADDRESS REGISTER (DSR2)
Page 70
X:$FFFFC2 X:$FFFFC1 X:$FFFFC0 PORT C X:$FFFFBF X:$FFFFBE X:$FFFFBD DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 3-14 Register Name HOST TRANSMIT REGISTER (HOTX) HOST RECEIVE REGISTER (HORX) HOST BASE ADDRESS REGISTER (HBAR) HOST PORT CONTROL REGISTER (HPCR) HOST STATUS REGISTER (HSR)
Page 71
X:$FFFF9D X:$FFFF9C X:$FFFF9B X:$FFFF9A X:$FFFF99 X:$FFFF98 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Register Name ESAI RECEIVE SLOT MASK REGISTER B (RSMB) ESAI RECEIVE SLOT MASK REGISTER A (RSMA) ESAI TRANSMIT SLOT MASK REGISTER B (TSMB)
Page 72
X:$FFFF83 X:$FFFF82 X:$FFFF81 X:$FFFF80 ESAI MUX PIN Y:$FFFFAF CONTROL Y:$FFFFAE Y:$FFFFAD DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 3-16 Register Name Reserved Reserved Reserved SHI RECEIVE FIFO (HRX) SHI TRANSMIT REGISTER (HTX) SHI I C SLAVE ADDRESS REGISTER (HSAR)
Page 73
Y:$FFFFA9 Y:$FFFFA8 Y:$FFFFA7 Y:$FFFFA6 Y:$FFFFA5 Y:$FFFFA4 Y:$FFFFA3 Y:$FFFFA2 Y:$FFFFA1 Y:$FFFFA0 PORT E Y:$FFFF9F Y:$FFFF9E Y:$FFFF9D DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Register Name Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved...
Page 74
Y:$FFFF85 Y:$FFFF84 Y:$FFFF83 Y:$FFFF82 Y:$FFFF81 Y:$FFFF80 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 3-18 Register Name ESAI_1 RECEIVE SLOT MASK REGISTER B (RSMB_1) ESAI_1 RECEIVE SLOT MASK REGISTER A (RSMA_1) ESAI_1 TRANSMIT SLOT MASK REGISTER B (TSMB_1) ESAI_1 TRANSMIT SLOT MASK REGISTER A (TSMA_1)
Core Configuration Introduction This chapter contains DSP56300 core configuration information details specific to the DSP56366. These include the following: • Operating modes • Bootstrap program • Interrupt sources and priorities • DMA request sources • • PLL control register •...
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 Table 4-1 Operating Mode Register (OMR) - Address Tracing Enable - Address Priority Disable - Asyn.
Page 77
; replace ROM code by PATCH DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor 132,55,0,0,0 $100 $ffafec ; ROM area Start $ffafff ; ROM area End P:START #M_PROMS,r0...
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 A , "Bootstrap ROM Contents". Mode DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 #(PATCH_DATA_END-PATCH_DATA_START+1),PATCH_LOOP p:(r1)+,x0 x0,p:(r2)+ #M_PROMS...
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 Semiconductor Reset...
As in Mode C, but HDI08 is set for interfacing to Freescale 68302 bus. Interrupt 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.
Reserved bit. Read as zero, should be written with zero for future compatibility. IDL2 IDL1 IDL0 ICL2 D5L1 D5L0 D4L1 D4L0 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor DAL1 DAL0 HDL1 HDL0 SHL1 Figure 4-1 Interrupt Priority Register P ICL1...
Table 4-5 Interrupt Sources Priorities Within an IPL Priority Level 3 (Nonmaskable) Highest Lowest Levels 0, 1, 2 (Maskable) Highest DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Interrupt Source Hardware RESET Stack Error Illegal Instruction Debug Request Interrupt Trap...
Page 83
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 Lowest ESAI_1 Transmit Data DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
Page 85
VBA:$7E 0 - 2 VBA:$80 0 - 2 VBA:$FE 0 - 2 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor SHI Receive FIFO Not Empty Reserved SHI Receive FIFO Full SHI Receive Overrun Error SHI Bus Error...
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.
0000 JTAG Boundary Scan Register (BSR) 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.
Page 89
Input/Output Input/Output Output3 Output3 Output3 A[17:9] — Output3 Output3 Output3 Output3 Output3 Output3 Output3 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor BSR Cell Pin Name Type Data HAD6 Data HAD6 Data HAD7 Data HAD7 Data HAS/A0...
Page 90
Input/Output Output2 Input PINIT Input SCKR_1 SCKR_1 Input/Output FSR_1 FSR_1 Input/Output RD,WR — DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 4-16 BSR Cell Pin Name Type Data 119 HSCKR Data 120 HSCKR Control 121 HSCKT Data 122 HSCKT...
Page 91
Pin Name Pin Type EXTAL Input SCKT_1 — SCKT_1 Input/Output — Output3 — Output3 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor BSR Cell Pin Name Type Data 145 SS Control 146 SCK/SCL Data 147 SCK/SCL Control...
Page 92
JTAG Boundary Scan Register (BSR) NOTES DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 4-18 Freescale Semiconductor...
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 "Digital Audio Transmitter". DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor of this document. (ESAI)".
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 Section 11, "Timer/ Event Counter". DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Section 9, "Enhanced Serial Audio Interface Freescale Semiconductor...
— Memory-mapped registers allow the standard MOVE instruction to be used to transfer data between the DSP and the external host. — Special MOVEP instruction provides for I/O service capability using fast interrupts. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
– 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 Freescale Semiconductor...
GPIO pins if they are not needed for their HDI08 function. Summary of the HDI08 signals. HDI08 Port Pin Multiplexed address/data bus Mode HAD0-HAD7 HAS/HA0 HA8/HA1 HA9/HA2 HCS/HA10 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Section 2, "Signal/Connection Table 6-1 HDI08 Signal Summary Non Multiplexed bus Mode HAD0-HAD7 HAS/HAS HA10 HDI08 Host Port Signals Descriptions".
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 Table 6-2 Strobe Signals Support signals...
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 Semiconductor Core DMA Data Bus...
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 Freescale Semiconductor...
Host interrupt request priorities: If more than one interrupt request source is asserted and enabled (e.g. HRDF=1, HCP=1, HRIE=1 and HCIE=1), the HDI08 generates interrupt requests according to the following table: DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor NOTE DSP56300 Family Manual Section 6.5.9, "DSP-Side Registers After...
DMA operation disabled DMA Operation Enabled. Host may set HM1 or HM0 in the ICR to enable DMA transfers. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Table 6-4 HDI08 IRQ Interrupt Source Host Command (HCP=1) Transmit Data (HTDE=1)
Page 103
(RXL or TXL), the address counter is not incremented but is loaded with the value in HDM[1:0]. This allows 8-, 16- or 24-bit data to be transferred in a circular fashion and eliminates the need DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor HDI08 –...
The HCP bit indicates that the host has set the HC bit and that a host command interrupt is pending. The HCP bit reflects the status of the HC bit in the command vector register (CVR). HC and HCP are cleared DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 6-10 Reset".
6.5.5.1 HBAR Base Address (BA[10:3]) Bits 0-7 These bits define the base address where the host side registers are mapped into the bus address space. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor BA10 HDI08 – DSP-Side Programmer’s Model Figure 6-5.
If the HGEN bit is set, pins configured as GPIO are enabled. If this bit is cleared, pins configured as GPIO are disconnected: outputs are high impedance, inputs are electrically disconnected. Pins configured as HDI08 are not affected by the state of HGEN. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 6-12 Latch...
HDI08 pins are configured as GPIO pins according to the value of HDDR and HDR registers. 6.5.6.8 HPCR Reserved Bit 7 This bit is reserved. It reads as zero and should be written with zero for future compatibility. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor HDI08 – DSP-Side Programmer’s Model 6-13...
In the single strobe bus mode, the HDS (Data-Strobe) signal qualifies the access, while the HRW (Read/Write) signal specifies the direction of the access. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 6-14 Figure 6-7 Single strobe bus...
(GPIO)". If bit DRxx is set, the corresponding HDI08 pin is configured as an output signal. If bit DRxx is cleared, the corresponding HDI08 pin is configured as an input signal. See DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
RESET instruction. The individual reset (IR) is caused by clearing the HEN bit (HPCR bit 6). The stop reset (ST) is caused by executing the STOP instruction. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 6-16 Table 6-6 HDR and HDDR Functionality Read only bit.
HDI08 register (clearing HRDF or HTDE, for example) to clear the interrupt. In the case of host command interrupts, the interrupt acknowledge from the DSP core program controller clears the pending interrupt condition. Figure 6-11 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 6-7 DSP-Side Registers after Reset Reset Reset —...
DSP as a fast device, and data can be transferred between the host processor and the DSP at the fastest host processor data rate. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 6-18...
Bits 2, 5 and 6 of the ICR are affected by the condition of HDM[2:0] (HCR bits 5-7), as shown in Figure 6-12. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 6-8 HDI08 Host Side Register Map...
DMA transfers from host to DSP. In the other DMA modes, TREQ is ignored. Table 6-9 summarizes the effect of RREQ and TREQ on the HOREQ, HTRQ and HRRQ signals. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 6-20 INIT...
The HF1 bit is used as a general purpose flag for host-to-DSP communication. HF1 may be set or cleared by the host processor and cannot be changed by the DSP core. HF1 is reflected in the HSR on the DSP side of the HDI08. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor HTRQ signal...
DMA controller to supply the HA2, HA1, and HA0 address signals. For 16- or 24-bit data transfers, the DSP CPU interrupt rate is reduced by a factor of 2 or 3, respectively, DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 6-22...
When the host command interrupt is recognized by the DSP interrupt control logic, the address of the interrupt routine taken is 2 ∗ HV. The host can write HC and HV in the same write cycle. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
TXDE is set when the contents of the transmit byte registers are transferred to the HORX register. TXDE is cleared when the transmit (TXL or TXH according to HLEND bit) register is DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 6-24...
If the interrupt source has been enabled by the associated request enable bit in the ICR, HREQ is set if one or more of the two enabled interrupt sources is set. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 6-14 Host Request Status (HREQ) HTRQ and HRRQ deasserted;...
$7 clears the TXDE bit. The contents of the transmit byte registers are transferred as 24-bit data to the HORX register when both TXDE and the HRDF bit are cleared. This transfer operation sets TXDE and HRDF. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 6-26 Figure 6-15 Interrupt Vector Register (IVR)
HDR as an input signal if the HDDR bit is cleared or as an output signal if the HDDR bit is set (see Section 6.5.8, "Host Data Register DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 6-15 Host Side Registers After Reset...
HC bit in the CVR to determine when the command has been accepted by the interrupt controller in the DSP core. When the command has been accepted for execution, the HC bit is cleared by the interrupt controller in the DSP core. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 6-28 Freescale Semiconductor...
HACK. The contents of the IVR are placed on the host data bus while HOREQ and HACK are simultaneously asserted. The IVR data tells the MC680XX host processor which interrupt routine to execute to service the DSP. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor STATUS...
Page 124
Servicing The Host Interface DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 6-30 Freescale Semiconductor...
Generate the clock signal (in master mode) • Trigger DMA interrupts to service the transmit and receive events DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor C) bus. The SHI supports either bus protocol as either a slave or a...
HCKFR bit is set in the HCKR register. When the SHI operates in the slave mode, the clock is external and is input to the SHI (HMST = 0). DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 C or the SPI bus protocols.
Serial Host Interface Programming Model Figure 7-4 SHI Programming Model—DSP Side DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
IOSR (see The IOSR cannot be accessed directly either by the host processor or by the DSP. It is fully controlled by the SHI controller logic. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 7-1...
R/W bit), but treats any following data bytes as regular data. That is, the SHI does not differentiate between its dedicated address and the general call address. HSAR cannot be accessed by the host processor. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 16-Bit Data Mode...
The programmer may select any of four combinations of serial clock (SCK) phase and polarity when operating in the SPI mode (See Figure 7-6). DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Serial Host Interface Programming Model C bus transfer.
HTDE is set only at the end of the data word transmission. The master is responsible for deasserting and asserting the slave device SS line between word transmissions. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Internal Strobe for Data Capture NOTE...
C mode, the MISO line when in SPI master mode, and the MOSI line when in SPI slave mode). DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor C when HCKFR is set. The HRS bit is cleared during hardware reset and...
HEN is cleared. When operating in master mode, HEN should be cleared only when the SHI is idle (HBUSY = 0). HEN is cleared during hardware reset and software reset. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 7-10...
If HCKFR is cleared, any attempt from the master to execute a transfer when the slave is not ready results in an overrun or underrun error condition. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Serial Host Interface Programming Model C)—Bit 1...
HRQE[1:0] are cleared during hardware reset and software reset. Table 7-5 HREQ Function In SHI Slave Modes HRQE1 HRQE0 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 7-12 C and SPI modes. 21"). C bus by generating start events, clock pulses,...
HTIE and HTDE are set and HTUE is cleared, the SHI requests an SHI transmit-data interrupt service from the interrupt controller. If both HTIE and HTUE are set, the SHI requests an SHI DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Serial Host Interface Programming Model C master mode;...
When operating in the SPI mode, HTUE is set at the first clock edge if CPHA = 1; it is set at the assertion of SS if CPHA = 0. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 7-14...
HROE is cleared by reading the HCSR with HROE set, followed by reading HRX. HROE is cleared by hardware reset, software reset, SHI individual reset, and during the stop state. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
C bus specifications, the standard mode (100 kHz clock rate) and a fast mode (400 kHz clock rate) are defined. The SHI can operate in either mode. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 7-16 C bus is busy (when in the I...
The acknowledging device must pull down the SDA line during the acknowledge clock pulse so that the SDA line is stable low during the high period of the acknowledge-related clock pulse (see Figure 7-9). DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Data Line Change...
This method is also used to provide indivisible data transfers. Various combinations of read/write formats are illustrated in Figure 7-10 Slave Address Start Figure 7-10 I DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 7-18 Figure 7-9 Acknowledgment on the I Figure 7-11. ACK from...
It is recommended that an SHI individual reset (HEN cleared) be generated before beginning data reception in order to reset the HRX FIFO to its initial (empty) state (e.g., when switching from transmit to receive data). DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ACK from...
The HRX FIFO contains valid receive data, which the DSP can read with either DSP instructions or DMA transfers, if the HRNE status bit is set. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 7-20...
For this purpose, the slave device address byte does not count as part of the data; therefore, it is treated separately. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
IOSR for transmission. When asserted, HREQ indicates that the slave device is ready to transmit the next data word. HREQ is deasserted at the first clock pulse of the next transmitted data word. The HREQ line DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 7-22...
When deasserted, HREQ prevents the clock generation of the next data word transfer until it is asserted again. Connecting DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor C master device.
SHI suspends the serial clock until new data is written into HTX (when the SHI proceeds with the transmit session) or HIDLE is set (the SHI reactivates the clock to generate the stop event and terminate the transmit session). DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 7-24 C Master Mode...
The HCSR and HCKR control bits are not affected. It is recommended that the SHI be disabled before entering the stop state. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor C mode, the SHI signals are disabled (high impedance state).
Page 150
SHI Programming Considerations NOTES DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 7-26 Freescale Semiconductor...
It is a superset of the 56300 Family ESSI peripheral and of the 56000 Family SAI peripheral. The DSP56366 has two ESAI modules. This section describes the ESAI, and Section 9 describes the ESAI_1. The ESAI and ESAI_1 share 4 data pins.
If a data word follows immediately, there is no high-impedance interval. SDO2/SDI3 may be programmed as a general-purpose I/O pin (PC9) when the ESAI SDO2 and SDI3 functions are not being used. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ESAI Data and Control Pins...
RCKD bit in the RCCR register.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). DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
TCKD bit in the TCCR register. The SCKT is a clock input or output used by all the enabled transmitters in the asynchronous mode (SYN=0) or by all the enabled transmitters and receivers in the synchronous mode (SYN=1) (see DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor NOTE...
IF1 bit in the SAISR register, synchronized by the frame sync in normal mode or the slot in network mode. FSR may be programmed as a general-purpose I/O pin (PC1) when the ESAI FSR function is not being used. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Table 8-2 Transmitter Clock Sources Transmitter TCKD...
The ESAI can be viewed as five control registers, one status register, six transmit data registers, four receive data registers, two transmit slot mask registers, two receive slot mask registers and a DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
The ESAI transmit clock generator functional diagram is shown in DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-2). In the synchronous mode (SYN=1), the bit clock defined for the...
When TPSR is set, the fixed prescaler is bypassed. When TPSR is cleared, the fixed divide-by-eight prescaler is DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
(TDC[4:0]=00000 to 11111) for normal mode. In normal mode, a divide ratio of 1 (TDC[4:0]=00000) provides continuous periodic data word transfers. A bit-length frame sync (TFSL=1) must be used in this case. The ESAI frame sync generator functional diagram is shown in DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-10 NOTE Figure 8-4.
See The ESAI high frequency clock generator functional diagram is shown in Table 8-3 Transmitter High Frequency Clock Divider TFP3-TFP0 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor RFSL INTERNAL RX FRAME CLOCK...
The read/write Transmit Control Register (TCR) controls the ESAI transmitter section. Interrupt enable bits for the transmitter section are provided in this control register. Operating modes are also selected in this register See Figure 8-5. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-12 Table Table 8-2.
SDO1 pin remains in the high-impedance state. The on-demand mode transmit enable sequence can be the same as the normal mode, or TE1 can be left enabled. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
#4 is disabled after completing transmission of data currently in the ESAI transmit shift register. Data can be written to TX4 when TE4 is cleared but the data is not transferred to the transmit shift register #4. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-14 Freescale Semiconductor...
1. If the data word is left-aligned (TWA=0), and zero padding is disabled (PADC=0), then the last data bit is repeated after the data word has been transmitted. If zero padding is enabled (PADC=1), zeroes are transmitted after the data word has been transmitted. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Figure 8-13 Figure 8-14).
16 bits long, and the next 12 slots and words will be 20 bits long, as required by the AC97 protocol. Table 8-4 Transmit Network Mode Selection TMOD1 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-16 Figure TMOD0...
ESAI Programming Model Figure 8-6 Normal and Network Operation DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor 8-17...
Table Figure 8-14. Table 8-5 ESAI Transmit Slot and Word Length Selection TSWS4 TSWS3 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-18 8-5. See also the ESAI data path programming model in TSWS2 TSWS1 TSWS0 Figure 8-13...
The TFSL bit selects the length of frame sync to be generated or recognized. If TFSL is cleared, a word-length frame sync is selected. If TFSL is set, a 1-bit clock period frame sync is selected. See Figure 8-7 for examples of frame length selection. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor TSWS2 TSWS1...
RX SERIAL DATA DATA TX FRAME SYNC TX SERIAL DATA DATA DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-20 WORD LENGTH: TFSL=0, RFSL=0 ONE BIT LENGTH: TFSL=1, RFSL=1 MIXED FRAME LENGTH: TFSL=1, RFSL=0 MIXED FRAME LENGTH: TFSL=0, RFSL=1...
When TEIE is cleared, this interrupt is disabled. Reading the SAISR status register followed by writing to all the data registers of the enabled transmitters clears TUE, thus clearing the pending interrupt. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor for more details.
The RCCR control bits are described in the following paragraphs (see X:$FFFFB8 RDC2 RDC1 RHCKD RFSD DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-22 Requests". Figure 8-8). RDC0...
When the HCKR input is being driven from an external high frequency clock, the RFP3-RFP0 bits specify an additional division ration in the clock divider chain. See ratio. The ESAI high frequency generator functional diagram is shown in DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor NOTE Figure 8-4.
RCKD is cleared, the clock source is external; the internal clock generator is disconnected from the SCKR pin, and an external clock source may drive this pin. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-24 Divide Ratio...
Buffer Enable, according to the TEBE control bit. If RFSD is cleared, then the FSR pin becomes the IF1 input flag. See Table 8-1 Table DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 8-1 Table 8-7 SCKR Pin Definition Table...
Reserved bit - read as zero; should be written with zero for future compatibility. Hardware and software reset clear all the bits in the RCR register. The ESAI RCR bits are described in the following paragraphs. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-26 Table 8-9 HCKR Pin Definition Table...
RCR Receiver Shift Direction (RSHFD) - Bit 6 The RSHFD bit causes the receiver shift registers to shift data in MSB first when RSHFD is cleared or LSB first when RSHFD is set (see DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Figure 8-13 Figure 8-14).
ESAI. The word length must be equal to or shorter than the slot length. The possible combinations are shown in Table Figure 8-14. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-28 Figure RMOD0 RDC4-RDC0 Receiver Network Mode...
Table 8-11 ESAI Receive Slot and Word Length Selection RSWS4 RSWS3 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor RSWS2 RSWS1 RSWS0 ESAI Programming Model SLOT LENGTH WORD LENGTH 8-29...
Note that to leave the personal reset state by clearing RPR, the procedure described in Initialization Examples" should be followed. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-30 RSWS2 RSWS1...
ESAI Common Control Register (SAICR) The read/write Common Control Register (SAICR) contains control bits for functions that affect both the receive and transmit sections of the ESAI.See DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Requests". Figure 8-10.
The Synchronous Mode Selection (SYN) bit controls whether the receiver and transmitter sections of the ESAI operate synchronously or asynchronously with respect to each other (see is cleared, the asynchronous mode is chosen and independent clock and frame sync signals are used for DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-32 TEBE...
While ALC is set, 20-bit and 24-bit words may not be used, and word length control should specify 8-, 12- or 16-bit words, otherwise results are unpredictable. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 8-7,...
ESAI Status Register (SAISR) The Status Register (SAISR) is a read-only status register used by the DSP to read the status and serial input flags of the ESAI. See Figure DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-34 ASYNCHRONOUS (SYN=0) TRANSMITTER...
When set, RFS indicates that a receive frame sync occurred during reception of the words in the receiver data registers. This indicates that the data words are from the first slot in the frame. When RFS is clear and DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
Data written to a transmit data register during the time slot when TFS is set is transmitted (in network mode), if the transmitter is enabled, DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-36...
N-1, where N is the number of time slots in the frame. This flag is set when the contents of the transmit data register of all the enabled transmitters are transferred to the transmit shift registers; it is also set for a DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
TRANSMIT HIGH BYTETRANSMIT MIDDLE BYTETRANSMIT LOW BYTE 0 7070 8-BIT DATA 12-BIT DATA 16-BIT DATA (b) Transmit Registers Figure 8-13 ESAI Data Path Programming Model ([R/T]SHFD=0) DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-38 20-BIT DATA 24-BIT DATA NOTES: 20-BIT DATA 24-BIT DATA NOTES: 1.
TRANSMIT HIGH BYTETRANSMIT MIDDLE BYTETRANSMIT LOW BYTE 0 7070 8-BIT DATA 12-BIT DATA 16-BIT DATA (b) Transmit Registers Figure 8-14 ESAI Data Path Programming Model ([R/T]SHFD=1) DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor 20-BIT DATA 24-BIT DATA NOTES: 16 BIT 12 BIT...
The Transmit Slot Mask Registers (TSMA and TSMB) are two read/write registers used by the transmitters in network mode to determine for each slot whether to transmit a data word and generate a DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-40...
TSM setting. Data read from TSM returns the last written data. After hardware or software reset, the TSM register is preset to $FFFFFFFF, which means that all 32 possible slots are enabled for data transmission. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Figure 8-15 TSMA Register...
RSM setting. Data read from RSM returns the last written data. After hardware or software reset, the RSM register is preset to $FFFFFFFF, which means that all 32 possible slots are enabled for data reception. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-42 NOTE...
REx control bits will result in erroneous data being received as the first data word for the newly enabled receivers. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor NOTE...
(TDE=1), the slot is an even slot (TEDE=1), and no exception has occurred (TUE=0 or TEIE=0). Writing to all the TX registers of the enabled transmitters or to TSR clears this interrupt request. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-44 Freescale Semiconductor...
When SYN is cleared, the ESAI transmitter and receiver clocks and frame sync sources are independent. If SYN is set, the ESAI transmitter and receiver clocks and frame sync come from the transmitter section (either external or internal sources). DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Operating Modes...
Three ESAI pins (FSR, SCKR and HCKR) are available as serial I/O flags when the ESAI is operating in the synchronous mode (SYN=1). Their operation is controlled by RCKD, RFSD, TEBE bits in the RCR, DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-46...
The read/write 24-bit Port C Direction Register (PRRC) in conjunction with the Port C Control Register (PCRC) controls the functionality of the ESAI GPIO pins. configurations. Hardware and software reset clear all PRRC bits. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 8-12 for the port pin configurations.
PD[i] bit is reflected on this pin. If a port pin [i] is configured as disconnected, the corresponding PD[i] bit is not reset and contains undefined data. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-48...
It is assumed that the ESAI is operational; that is, at least one pin is defined as an ESAI pin. • The transmitter section should be in its personal reset state (TPR = 1). DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Figure 8-21 PDRC Register...
Take the receiver section out of the personal reset state by clearing RPR. • Enable the receivers by setting their RE bits. • From now on the receivers are operating and can be serviced either by polling, interrupts, or DMA. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 8-50 Freescale Semiconductor...
Enhanced Serial Audio Interface 1 (ESAI_1) Introduction The Enhanced Serial Audio Interface I (ESAI_1) is the second ESAI peripheral in the DSP56366. It is functionally identical to the ESAI peripheral described in Section 8, "Enhanced Serial AUDIO Interface (ESAI)" except for minor differences described in this section. Refer to the ESAI section for functional information about the ESAI_1, in addition to using the information in this section.
RX1_1 serial receive shift register when programmed as a receiver pin. SDO4_1/SDI1_1 may be programmed as a general-purpose pin (PE7) when the ESAI_1 SDO4_1 and SDI1_1 functions are not being used. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ESAI_1 Data and Control Pins...
One status register • Six transmit data registers • Four receive data registers • Two transmit slot mask registers • Two receive slot mask registers • One special-purpose time slot register DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
TCCR_1 also controls the number of words per frame for the serial data. Hardware and software reset clear all the bits of the TCCR_1 register. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
TCCR_1 Tx High Freq. Clock Direction (THCKD) - Bit 23 The ESAI_1 does not have the transmitter high frequency clock pin. THCKD must be set for proper ESAI_1 transmitter section operation. THCKD TFSD DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 TDC0 TPSR TPM7 TPM6...
FLAG0 OUT (SYNC MODE) SCKR_1 SYN=0 RCKD SCKT_1 TCKD THCKD=1 Figure 9-4 ESAI_1 Clock Generator Functional Block Diagram DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor PRESCALE DIVIDER DIVIDE DIVIDE BY DIVIDE BY BY 2 TO DIVIDE...
Reserved bit - read as zero; should be written with zero for future compatibility. Hardware and software reset clear all the bits in the TCR_1 register. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 RFSL INTERNAL RX FRAME CLOCK...
The ESAI_1 does not have the receiver high frequency clock pin. RHCKD must be set for proper ESAI_1 receiver section operation. Table 9-3 Receiver Clock Sources (asynchronous mode only) RHCKD RFSD DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor RDC0 RPSR RPM7...
ESAI_1 Status Register (SAISR_1) The Status Register (SAISR_1) is a read-only status register used by the DSP to read the status and serial input flags of the ESAI_1. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 9-10 RSHFD REDIE...
8 most significant bits when ALC=1) of the TXx_1 are don’t care bits. The DSP is interrupted whenever the TXx_1 becomes empty if the transmit data register empty interrupt has been enabled. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
(RDF=1), or to ignore the received data. RSMA_1 and RSMB_1 should be considered as each containing half of a 32-bit register RSM_1. See RSM_1 (RS**) is an enable/disable control bit for receiving data in slot number N. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 9-12 Figure 9-11 TSMA_1 Register...
(PRRE) controls the functionality of the ESAI_1 GPIO pins. Each of the PE(11:0) bits controls the functionality of the corresponding port pin. See software reset clear all PCRE bits. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Figure 9-13 RSMA_1 Register...
PD[i] bit will be reflected on this pin. If a port pin [i] is configured as disconnected, the corresponding PD[i] bit is not reset and contains undefined data. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 9-14...
Y:$FFFF9D PD11 PD10 Reserved bit - read as zero; should be written with zero for future compatibility. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Figure 9-17 PDRE Register GPIO - Pins and Registers 9-15...
Page 216
GPIO - Pins and Registers NOTES DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 9-16 Freescale Semiconductor...
When the DAX interrupts are disabled, they can still be served by DMA or by a “polling” technique. A block diagram of the DAX is shown in The shaded registers in instructions. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Figure 10-1.
• Non-audio data buffer (XNADBUF) • Audio and non-audio data shift register (XADSR) • Control register (XCTR) • Status register (XSTR) DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 10-2 Global Data Bus DMA Bus XADR XADBUFB XADBUFA C-U-V...
The programmer-accessible DAX registers are shown in following subsections. The Interrupt Vector table for the DAX is shown in interrupt priority is shown in Table DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Figure 10-2. The registers are described in the 10-2.
XADRA - Audio Data Register A - X:$FFFFD2 and XADRB - Audio Data Register B -X:$FFFFD3 XSTR - Status Register - X:$FFFFD4 18 17 16 Reserved bit DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 10-4 Table 10-1 DAX Interrupt Vectors Address...
DAX Channel A Validity (XVA)—Bit 10 The value of the XVA bit is transmitted as the twenty-ninth bit (Bit 28) of channel A subframe in the next frame. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor DAX Internal Architecture...
The XCTR is a 24-bit read/write register that controls the DAX operation. The contents of the XCTR are shown in Figure 10-2. XCTR is cleared by software reset and hardware reset. The XCTR bits are described in the following paragraphs. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 10-6 NOTE Freescale Semiconductor...
Figure 10-2. XSTR is cleared by software reset, hardware reset an by the stop state. The XSTR bits are described in the following paragraphs. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 10-3 Clock Source Selection...
10.5.7.4 XSTR Reserved Bits—Bits 3–23 These XSTR bits are reserved. They read as 0, and should be written with 0 to ensure compatibility with future device versions. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 10-8 #006 #007 #008...
(64 × Fs). The clock source can be selected from the following options (see also Section 10.5.6.4, "DAX Clock Input Select (XCS[1:0])—Bits DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 10-4 Preamble Bit Patterns...
When the XDIE bit is set and the DAX is active, an audio data register empty interrupt (XADE = 1) is generated once at the beginning of every frame transmission. Typically, within an XADE interrupt, the DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 10-10...
$FFFFFE; offset=-2 The memory organization employed for DMA transfers depends on whether or not non-audio data changes from frame to frame as shown in DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Section 10.6.1, "Initiating A Transmit Session"...
DAX pin. When a PC[i] bit is cleared, the corresponding port pin is configured as GPIO pin. If both PC1 and PC0 are cleared, the DAX is disabled. Hardware and software reset clear all PCRD bits. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 10-12 $00000B...
PD[i] bit will be reflected on the this pin. Hardware and software reset clear all PDRD bits. PDRD - Port D Data Register - X:$FFFFD5 20 19 18 read as zero, should be written with zero for future compatibility DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 10-14 PDC0 12 11 10...
This section describes the internal timer/event counter in the DSP56366. Each of the three timers (timer 0, 1 and 2) can use internal clocking to interrupt the DSP56366 or trigger DMA transfers after a specified number of events (clocks). In addition, timer 0 provides external access via the bidirectional signal TIO0.
(TCPR), and logic for clock selection and interrupt/DMA trigger generation. The timer mode is controlled by the TC[3:0] bits of the timer control/status register (TCSR). Timer modes are described in Section 11.4, "Timer Modes of DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 11-2 TPCR Timer Prescaler...
11.3 Timer/Event Counter Programming Model The DSP56366 views each timer as a memory-mapped peripheral with four registers occupying four 24-bit words in the X data memory space. Either standard polled or interrupt programming techniques can be used to service the timers. The timer programming model is shown in DSP56366 24-Bit Digital Signal Processor User Manual, Rev.
Timer/Event Counter Programming Model TC1 TC0 TCF TOF - reserved, read as 0, should be written with 0 for future compatibility Figure 11-3 Timer Module Programmer’s Model DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 11-4 TCIE TOIE Timer Prescaler Load...
TIO0 signal. The external clock is internally synchronized to the internal clock. The external clock frequency must be lower than the DSP56366 internal operating frequency divided by 4 (CLK/4). The PS[1:0] bits are cleared by the hardware RESET signal or the software RESET instruction.
The timer enable (TE) bit is used to enable or disable the timer. Setting TE enables the timer and clears the timer counter. The counter starts counting according to the mode selected by the timer control (TC[3:0]) bit values. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 11-6 Table 11-1 Prescaler Source Selection...
To ensure proper operation, the TC[3:0] bits should be changed only when the timer is disabled (when the TE bit in the TCSR has been cleared). DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Timer/Event Counter Programming Model NOTE Operation".
The GPIO function is enabled only if all of the TC[3:0] bits are zero. Table 11-3 Timer Control Bits for Timers 1 and 2 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 11-8 Table 11-2 Timer Control Bits for Timer 0...
— — — The INV bit is cleared by the hardware RESET signal or the software RESET instruction. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Table 11-4 Inverter (INV) Bit Operation INV = 1 GPIO signal on the TIO0...
If the INV bit is set, the value of the DO bit is inverted when written to the TIO0 signal. When the INV bit is cleared, the value of the DO bit is written directly to the TIO0 signal. When GPIO mode is disabled, writing the DO bit has no effect. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 11-10 NOTE...
11.3.4.13 TCSR Reserved Bits (Bits 3, 10, 14, 16-19, 22, 23) These reserved bits are read as zero and should be written with zero for future compatibility. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Timer/Event Counter Programming Model...
— GPIO, mode 0: Internal timer interrupt generated by the internal clock — Pulse, mode 1: External timer pulse generated by the internal clock — Toggle, mode 2: Output timing signal toggled by the internal clock DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 11-12 Freescale Semiconductor...
The counter is loaded with the TLR value when the first timer clock signal is received. The timer clock can be taken from either the DSP56366 clock divided by two (CLK/2) or from the prescaler clock output. Each subsequent clock signal increments the counter.
TIO0 signal is loaded with the value of the INV bit. The timer clock signal can be taken from either the DSP56366 clock divided by two (CLK/2) or from the prescaler clock output. Each subsequent clock signal increments the counter.
Timer 0 can be also be clocked from the TIO0 input signal. Each subsequent clock signal increments the counter. If an external clock is used, it must be internally synchronized to the internal clock and its frequency must be less than the DSP56366 internal operating frequency divided by 4.
(as determined by the INV bit) occurs on the TIO0 input pin, the counter is loaded with the TLR value on the first timer clock signal received either from the DSP56366 clock divided by two (CLK/2) or from the prescaler clock input. Each subsequent clock signal increments the counter.
After the first appropriate transition occurs on the TIO0 input pin, the counter is loaded with the TLR value on the first timer clock signal received from either the DSP56366 clock divided by two (CLK/2) or the prescaler clock output. Each subsequent clock signal increments the counter.
Timer Modes of Operation clock signal can be taken from either the DSP56366 clock divided by two (CLK/2) or from the prescaler clock output. Each subsequent clock signal increments the counter. At the first appropriate transition of the external clock detected on the TIO0 signal, the TCF bit in the TCSR is set and, if the TCIE bit is set, a compare interrupt is generated.
Set the TE bit to clear the counter and enable the timer. The value the timer is to count is loaded into the TCPR. The counter is loaded with the TLR value on the first timer clock received from either the DSP56366 internal clock divided by two (CLK/2) or the prescaler clock output. Each subsequent timer clock increments the counter.
TPCR. The counter is loaded with the TLR value on the first timer clock received from either the DSP56366 internal clock divided by two (CLK/2) or the prescaler clock output. Each subsequent timer clock increments the counter. The TIO0 signal is set to the value of the INV bit.
TIO0 signal is disconnected. Any external changes that happen to the TIO0 signal is ignored when the DSP56366 is the stop state. To ensure correct operation, the timers should be disabled before the DSP56366 is placed into the stop state.
Page 252
Timer Modes of Operation NOTES DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 11-22 Freescale Semiconductor...
Appendix A Bootstrap ROM Contents DSP56366 Bootstrap Program ; BOOTSTRAP CODE FOR DSP56366 Rev. 0 silicon - (C) Copyright 1999 Motorola Inc. ; Revision 0.0 1999/JAN/26 - Modified from 56362_RevA_regular_boot_rev01.asm: - Change the length of xram and the length of yram - Change the address of the reserved area in the ;...
Page 254
; If MD:MC:MB:MA=1110, then it loads the program RAM from the Host ; Interface programmed to operate in the 8051 multiplexed bus mode, ; in double-strob pin configuration. ; The HOST 8051 bootstrap code expects accesses that are byte wide. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
Page 255
$D00000 AARV $D00409 PROMADDR equ $FF1000 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; this is the location in P memory ; on the external memory bus ; where the external byte-wide ; EPROM is located ;...
Page 256
; MD:MC:MB:MA=0101 - Bootstrap from SHI (SPI slave) ; MD:MC:MB:MA=0110 - Bootstrap from SHI (I2C slave, HCKFR=1,100ns filter) ; MD:MC:MB:MA=0111 - Bootstrap from SHI (I2C slave, HCKFR=0) DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 ; Address Attribute Register 1 ; OnCE GDB Register ;...
Page 257
#MB,omr,shi_loop <RESERVED ;======================================================================== ; This is the routine that loads from external EPROM. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; prepare SHI control value in r1 ; If MD:MC:MB:MA=01x0, go to SHI clock freeze ; If MD:MC:MB:MA=0101, select SPI mode ;...
Page 258
D - HC11 - Single strobe non-multiplexed bus with positive strobe pulse single negative request. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 ; r2 = address of external EPROM ; aar1 configured for SRAM types of access ; read number of words and starting address ;...
Page 259
<HDI08CONT OMR1IS0 jset #MA,omr,HC11HOSTLD ; If MD:MC:MB:MA=1101, go load from HC11 Host ISAHOSTLD movep #%0101000000011000,x:M_HPCR DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; Configure the following conditions: ; HAP = 0 Negative host acknowledge ; HRP = 0 Negative host request ;...
Page 260
HC11HOSTLD movep #%0000001000011000,x:M_HPCR <HDI08CONT I8051HOSTLD movep #%0001110000011110,x:M_HPCR DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 future compatability ; HEN = 0 When the HPCR register is modified HEN should be cleared ; HAEN = 0 Host acknowledge is disabled ;...
Page 261
; expanded mode and jumps to the RESET vector. FINISH andi #$0,ccr jmp (r1) DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; HROD = 0 Host request is active when enabled ; spare = 0 This bit should be set to 0 for future compatability ;...
Page 262
#SCKT,x:M_PCRC bset #SCKT,x:M_PRRC DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 A-10 ; IF MD:MC:MB:MA=1001, go to BURN ;; Port C GPIO Control Register ;; Port C GPIO Data Register ;; Port C Direction Register ;; SCKT is GPIO bit #3 in ESAI (Port C) ;;...
Page 263
#start_dram,r0 n0,_loopd move x:(r0),a1 x1,a DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor DSP56366 Bootstrap Program ;; r5 = test fail flag = $000000 ;; r7 = test pass flag = $FFFFFF ;; pattern for x memory ;;...
Page 264
<burn1 label1 bchg #SCKT,x:M_PDRC burn1 debug wait DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 A-12 ;; a0=a2=0 ;; accumulate error in b ;; x/y ram not symmetrical ;; restore pointer, clear a ;; a0=a2=0 ;; accumulate error in b ;;...
Page 265
; This code segment is located in the uppermost addresses of the Program ROM ORG PL:$FFB000-$14,PL:$FFB000-$14 move #$80000,r0 move #$0,x0 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor DSP56366 Bootstrap Program ;; align for correct modulo addressing ; write address in unused Boot ROM location A-13...
I_VEC+$02 ; Stack Error I_ILL I_VEC+$04 ; Illegal Instruction I_IINST I_VEC+$04 ; Illegal Instruction I_DBG I_VEC+$06 ; Debug Request I_TRAP I_VEC+$08 ; Trap I_NMI I_VEC+$0A ; Non Maskable Interrupt DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
Page 268
I_VEC+$30 ; ESAI Receive Data I_ESAIRED I_VEC+$32 ; ESAI Receive Even Data I_ESAIRDE I_VEC+$34 ; ESAI Receive Data With Exception Status DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 ; DAX Underrun Error ; DAX Block Transferred Freescale Semiconductor...
Page 269
; TIMER 2 compare I_TIM2OF EQU I_VEC+$5E ; TIMER 2 overflow ;------------------------------------------------------------------------ ; HDI08 Interrupts ;------------------------------------------------------------------------ I_HI08RX EQU I_VEC+$60 ; Host Receive Data Full DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; SHI Bus Error Equates...
Page 270
;********************************************************************************* page 132,55,0,0,0 ioequ ident ;------------------------------------------------------------------------ DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 ; ESAI_1 Receive Data ; ESAI_1 Receive Even Data ; ESAI_1 Receive Data With Exception Status ; ESAI_1 Receive Last Slot ; ESAI_1 Transmit Data ;...
Page 271
M_IPRP $FFFFFE Interrupt Priority Register Core (IPRC) M_IAL M_IAL0 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; Host port GPIO data Register ; Host port GPIO direction Register ; Port C Control Register ; Port C Direction Register ;...
Page 275
M_DAM3 M_DAM4 M_DAM5 M_D3D M_DRS $F800 M_DRS0 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; DMA3 Control Register ; DMA4 Source Address Register ; DMA4 Destination Address Register ; DMA4 Counter ; DMA4 Control Register ; DMA5 Source Address Register ;...
Page 276
M_DACT M_DCH $E00 M_DCH0 M_DCH1 M_DCH2 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 B-10 ;DMA Request Source bit 1 ;DMA Request Source bit 2 ;DMA Request Source bit 3 ;DMA Request Source bit 4 ; DMA Continuous Mode ;...
Page 277
$7000 M_DF0 M_DF1 M_DF2 M_XTLR M_XTLD M_PSTP DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; PLL Control Register ; Multiplication Factor Bits Mask (MF0-MF11) ;Multiplication Factor bit 0 ;Multiplication Factor bit 1 ;Multiplication Factor bit 2 ;Multiplication Factor bit 3...
Page 278
M_BA0W M_BA0W0 M_BA0W1 M_BA0W2 M_BA0W3 M_BA0W4 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 B-12 ; PLL Enable Bit ; PLL Clock Output Disable Bit ; PreDivider Factor Bits Mask (PD0-PD3) ;PreDivider Factor bit 0 ;PreDivider Factor bit 1 ;PreDivider Factor bit 2...
Page 279
DRAM Control Register M_BCW M_BCW0 M_BCW1 M_BRW DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; Area 1 Wait Control Mask (BA1W0-BA14) ;Area 1 Wait Control Bit 0 ;Area 1 Wait Control Bit 1 ;Area 1 Wait Control Bit 2 ;Area 1 Wait Control Bit 3...
Page 280
M_BAT1 M_BAAP M_BPEN M_BXEN M_BYEN DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 B-14 ;Out of Page Wait States bit 0 ; Out of Page Wait States bit 1 ; DRAM Page Size Bits Mask (BPS0-BPS1) ; DRAM Page Size Bits 0 ;...
Page 281
M_BAC8 M_BAC9 M_BAC10 M_BAC11 control and status bits in SR DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; Address Muxing ; Packing Enable ; Number of Address Bits to Compare Mask (BNC0-BNC3) ; Number of Address Bits to Compare 0 ;...
Page 282
M_EBD M_SD M_MS M_CDP $300 M_CDP0 M_CDP1 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 B-16 ; Scaling Bit ; Interupt Mask Bit 0 ; Interupt Mask Bit 1 ; Scaling Mode Bit 0 ; Scaling Mode Bit 1 ;...
Page 283
M_XNADR $FFFFD1 M_XCTR $FFFFD0 status bits in XSTR M_XADE M_XAUR DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; Burst Enable ; TA Synchronize Select ; Bus Release Timing ;Async. Bus Arbitration Enable ;Addess Priority Disable ;Address Tracing Enable ;...
Page 284
$FFFF92 M_HCSR $FFFF91 M_HCKR $FFFF90 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 B-18 ; DAX Block Transferred (XBLK) ; DAX Channel A Validity (XVA) ; DAX Channel A User Data (XUA) ; DAX Channel A Channel Status (XCA) ;...
Page 285
M_HCKFR M_HM1 M_HM0 M_HI2C M_HEN DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; SHI I2C Slave Address (HA6) ; SHI I2C Slave Address (HA5) ; SHI I2C Slave Address (HA4) ; SHI I2C Slave Address (HA3) ;...
Page 286
M_TSMB_1 EQU $FFFF9A M_TSMA_1 EQU $FFFF99 M_RCCR_1 EQU $FFFF98 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 B-20 ; SHI Filter Model (HFM1) ; SHI Filter Model (HFM0) ; SHI Divider Modulus Select (HDM7) ; SHI Divider Modulus Select (HDM6) ;...
Page 287
$FFFFBA M_TSMA $FFFFB9 M_RCCR $FFFFB8 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; ESAI_1 Receive Control Register (RCR_1) ; ESAI_1 Transmit Clock Control Register (TCCR_1) ; ESAI_1 Transmit Control Register (TCR_1) ; ESAI_1 Control Register (SAICR_1) ;...
Page 288
M_RS27 M_RS26 M_RS25 M_RS24 M_RS23 M_RS22 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 B-22 ; ESAI Receive Control Register (RCR) ; ESAI Transmit Clock Control Register (TCCR) ; ESAI Transmit Control Register (TCR) ; ESAI Control Register (SAICR) ;...
Page 299
Timer Control Bits M_TC0 M_TC1 M_TC2 M_TC3 ;------------------ end of ioequ.asm ------------------------ DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor ; Timer Overflow Flag ; Timer Compare Flag ; Timer Control 0 ; Timer Control 1 ; Timer Control 2 ;...
Page 300
Equates NOTES DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 B-34 Freescale Semiconductor...
HGND:linkage bit; SS_:in HREQ_:inout RESET_:in PVCC:linkage bit; PCAP:linkage bit; PGND:linkage bit; AA:out DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor J T A G S O F T W A R E bit; bit; bit; bit; bit;...
(HDI08). Table D-4 D.1.5 Programming Sheets The remaining figures describe major programmable registers on the DSP56366. Internal I/O Memory Map DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
X:$FFFFE4 DMA3 X:$FFFFE3 X:$FFFFE2 X:$FFFFE1 X:$FFFFE0 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Table D-1. Internal I/O Memory Map Register Name INTERRUPT PRIORITY REGISTER CORE (IPR-C) INTERRUPT PRIORITY REGISTER PERIPHERAL (IPR-P) PLL CONTROL REGISTER (PCTL) ONCE GDB REGISTER (OGDB)
Page 311
X:$FFFFC2 X:$FFFFC1 X:$FFFFC0 PORT C X:$FFFFBF X:$FFFFBE X:$FFFFBD DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Register Name DMA SOURCE ADDRESS REGISTER (DSR4) DMA DESTINATION ADDRESS REGISTER (DDR4) DMA COUNTER (DCO4) DMA CONTROL REGISTER (DCR4) DMA SOURCE ADDRESS REGISTER (DSR5)
Page 312
X:$FFFF9E X:$FFFF9D X:$FFFF9C X:$FFFF9B X:$FFFF9A DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Register Name ESAI RECEIVE SLOT MASK REGISTER B (RSMB) ESAI RECEIVE SLOT MASK REGISTER A (RSMA) ESAI TRANSMIT SLOT MASK REGISTER B (TSMB) ESAI TRANSMIT SLOT MASK REGISTER A (TSMA)
Page 313
ESAI MUX PIN Y:$FFFFAF CONTROL Y:$FFFFAE Y:$FFFFAD Y:$FFFFAC Y:$FFFFAB Y:$FFFFAA Y:$FFFFA9 Y:$FFFFA8 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Register Name Reserved Reserved Reserved Reserved Reserved SHI RECEIVE FIFO (HRX) SHI TRANSMIT REGISTER (HTX) SHI I...
Page 314
Y:$FFFFA6 Y:$FFFFA5 Y:$FFFFA4 Y:$FFFFA3 Y:$FFFFA2 Y:$FFFFA1 Y:$FFFFA0 PORT E Y:$FFFF9F Y:$FFFF9E Y:$FFFF9D DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Register Name Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved PORT E CONTROL REGISTER (PCRE) PORT E DIRECTION REGISTER(PRRE)
Page 315
Y:$FFFF85 Y:$FFFF84 Y:$FFFF83 Y:$FFFF82 Y:$FFFF81 Y:$FFFF80 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Register Name ESAI_1 RECEIVE SLOT MASK REGISTER B (RSMB_1) ESAI_1 RECEIVE SLOT MASK REGISTER A (RSMA_1) ESAI_1 TRANSMIT SLOT MASK REGISTER B (TSMB_1)
Page 317
VBA:$7E 0 - 2 VBA:$80 0 - 2 VBA:$FE 0 - 2 DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor SHI Transmit Underrun Error SHI Receive FIFO Not Empty Reserved SHI Receive FIFO Full SHI Receive Overrun Error...
Table D-3. Interrupt Sources Priorities Within an IPL Priority Level 3 (Nonmaskable) Highest Lowest Levels 0, 1, 2 (Maskable) Highest DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 D-10 Interrupt Source Hardware RESET Stack Error Illegal Instruction Debug Request Interrupt...
Page 319
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 Lowest ESAI_1 Transmit Data DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor D-11...
HCIE Host Command Interrupt Enable Host Flag 2 Host Flag 3 HDM[2:0] Host DMA Mode DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 D-12 Table D-4. HDI08 Programming Model Name Function DSP SIDE HRRQ interrupt disabled HRRQ interrupt enabled...
Page 321
Host Multiplxed Bus HDDS Host Dual Data Strobe HCSP Host Chip Select Polarity Host Request polarity Host Acknowledge Polarity DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor Name Function GPIO pin disconnected GPIO pins active HA8/HA1 = GPIO...
Page 322
Host Flag 1 HLEND Host Little Endian HM1-HM0 Host Mode Control INIT Initialize DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 D-14 Name Function no receive data to be read receive data register is full transmit data register empty transmit data reg.
Host Transmit Data Register IV7-IV0 Interrupt Register Programming Sheets The worksheets shown on the following pages contain listings of major programmable registers for the DSP56366. The programming sheets are grouped into the following order: • Central Processor • Host Interface (HDI08) •...
Register (HPCR) X:$FFFFC4 Read/Write Reset = $0 = Reserved, Program as 0 Figure D-8. Host Base Address and Host Port Control DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor DSP Side BA10 X:$FFFFC5 Reset = $80 Host GPIO Port Enable...
Programming Sheets Date: Application: Programmer: Sheet 1 of 3 Figure D-12. SHI Slave Address and Clock Control Registers DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor D-27...
Programming Sheets Application: Figure D-13. SHI Transmit and Receive Data Registers DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 D-28 Date: Programmer: Sheet 2 of 3 Freescale Semiconductor...
Programming Sheets Application: Figure D-19. ESAI Common Control Register DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 D-34 Date: Programmer: Freescale Semiconductor...
Programming Sheets Date: Application: Programmer: Figure D-26. ESAI_1 Common Control Register DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor D-41...
Programming Sheets Application: Figure D-29. DAX Control and Status Registers DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 D-44 Date: Programmer: Freescale Semiconductor...
Dx holds value of corresponding HDI08 GPIO pin. Function depends on HDDR. See the HDI08 HPCR Register (Figure D-8) for additional Port B GPIO control bits. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 D-48 Port B (HDI08) DR12...
If port pin n is GPIO input, then PDn reflects the value on port pin n if port pin n is GPIO output, then value written to PDn is reflected on port pin n DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
If port pin n is GPIO input, then PDn reflects the value on port pin n if port pin n is GPIO output, then value written to PDn is reflected on port pin n DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 D-50...
If port pin n is GPIO input, then PDn reflects the value on port pin n if port pin n is GPIO output, then value written to PDn is reflected on port pin n DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 Freescale Semiconductor...
Page 360
Programming Sheets NOTES DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 D-52 Freescale Semiconductor...
DAX Status Register (XSTR) 7 DAX Transmit Underrun error (XAUR) status flag DI 10 Digital Audio Transmitter 1, 21 Digital Audio Transmitter (DAX) 10, 1 DIR 10 Divide Factor (DF) 7 DMA 6 DSP56366 24-Bit Digital Signal Processor, Rev. 4 Index-1...
Page 362
Master Mode 23 Protocol for Host Write Cycle 18 Receive Data In Master Mode 24 Receive Data In Slave Mode 21 Slave Mode 21 Start and Stop Events 17 DSP56366 24-Bit Digital Signal Processor, Rev. 4 C/SPI Selec- Freescale Semiconductor...
Page 363
Program Counter register (PC) 6 Program Data Bus (PDB) 6 Program Decode Controller (PDC) 5 Program Interrupt Controller (PIC) 5 Program Memory Expansion Bus 6 Programming Model SHI—DSP Side 4 SHI—Host Side 3 DSP56366 24-Bit Digital Signal Processor, Rev. 4 Index-3...
Page 364
Stack Pointer (SP) 6 Status Register (SR) 6 System Stack (SS) 6 SZ register 6 TAP 7 DSP56366 24-Bit Digital Signal Processor, Rev. 4 Bus Error 16 Host Busy 16 Host Receive FIFO Full 15 Host Receive FIFO Not Empty 15...
Page 365
X Memory Expansion Bus 6 XAB 6 XDB 6 Y Memory Address Bus (YAB) 6 Y Memory Data Bus (YDB) 6 Y Memory Expansion Bus 6 YAB 6 YDB 6 DSP56366 24-Bit Digital Signal Processor, Rev. 4 0-20—Prescaler Load Value (PL0-PL20) 5 bits Index-5...
Page 366
DSP56366 24-Bit Digital Signal Processor, Rev. 4 Index-6 Freescale Semiconductor...
Need help?
Do you have a question about the DSP56366 and is the answer not in the manual?
Questions and answers