Page 1
DSP56305 24-Bit Digital Signal Processor User’s Manual Motorola, Incorporated Semiconductor Products Sector DSP Division 6501 William Cannon Drive West Austin, TX 78735-8598...
Page 2
Motorola products are not authorized for use as components in life support devices or systems intended for surgical implant into the body or intended to support or sustain life. Buyer agrees to notify Motorola of any such intended end use whereupon Motorola shall determine availability and suitability of its product or products for the use intended.
Page 30
Figure 11-2 TAP Controller State Machine ......11-6 xxviii DSP56305 User’s Manual MOTOROLA...
Page 31
Block Diagram of a Typical Data Communication System ..13-3 Figure 13-2 Ungerboeck Form of MLSE Channel Equalizer....13-4 MOTOROLA DSP56305 User’s Manual xxix...
Page 32
Step Function Table B Register (CSFTB) ....14-13 Figure 14-8 CCOP Control Status Register (CCSR) ..... 14-15 DSP56305 User’s Manual MOTOROLA...
These documents, as well as Motorola’s DSP development tools, can be obtained through a local Motorola Semiconductor Sales Office or authorized distributor. To receive the latest information on this DSP, access the Motorola DSP home page at the address given on the back cover of this document.
Page 44
– Describes the On-Chip Emulation (OnCE™) module, accessed through the JTAG port SECTION 11—JTAG PORT – Describes the specifics of the JTAG port on the DSP56305 APPENDIX A—BOOTSTRAP PROGRAM – Lists the bootstrap code used for the DSP56305 APPENDIX B—EQUATES –...
– In code examples, have a tilde in front of their names. In the example on the following page, 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, for instance HA1–HA8. MOTOROLA DSP56305 User’s Manual...
– the reset function, written as reset. DSP56305 FEATURES The DSP56305 is a member of the DSP56300 family of programmable CMOS DSPs. The DSP56305 uses the DSP56300 core, a high performance, single clock cycle per instruction engine. It provides up to twice the performance of Motorola's popular DSP56000 core family, while retaining code compatibility with that family.
DSP56305 Overview DSP56305 Core Description DSP56305 CORE DESCRIPTION Core features are described fully in the . Pinout, memory, and DSP56300 Family Manual peripheral features are described in this manual. 1.5.1 General Features • 80 Million Instructions Per Second (MIPS) with an 80 MHz clock at 3.3 V •...
• Program Control Unit (PCU) • PLL and Clock Oscillator • JTAG Test Access Port (TAP) and On-Chip Emulation (OnCE) module • Memory In addition, the DSP56305 provides a set of on-chip peripherals, described in Section 1.8 1.6.1 Data ALU The Data ALU performs all the arithmetic and logical operations on data operands in the DSP56300 core.
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. MOTOROLA DSP56305 User’s Manual...
Architecture. Problems associated with testing high density circuit boards have led to development of this standard under the sponsorship of the Test Technology Committee of IEEE and the Joint Test Action Group (JTAG). The DSP56300 core implementation supports circuit-board test strategies based on this standard. MOTOROLA DSP56305 User’s Manual 1-11...
2.75 K × 24-bit 2 K × 24-bit enabled enabled There are on-chip ROMs for program memory (6 K x 24-bit), bootstrap memory (192 words x 24-bit), and Y data memory (3 K x 24-bit). 1-12 DSP56305 User’s Manual MOTOROLA...
• 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 MOTOROLA DSP56305 User’s Manual 1-13...
MODC/IRQB RESET MODB/IRQC PINIT/NMI MODA/IRQD AA1366 Figure 1-1 DSP56305 Block Diagram Note: Memory sizes in the block diagram are default sizes, except for the I-Cache, which is disabled by default. See (On-Chip Memories) for more Section 1.6.6 details about memory size.
• Triggering from interrupt lines and all peripherals 1.10 DSP56305 ARCHITECTURE OVERVIEW The DSP56305 is designed to perform a wide variety of fixed-point digital signal processing functions. In addition to the core features previously discussed, the DSP56305 provides the following peripherals: •...
1.10.3 Enhanced Synchronous Serial Interface (ESSI) The DSP56305 provides two independent and identical Enhanced Synchronous Serial Interfaces (ESSI0 and ESSI1). Each ESSI provides a full-duplex serial port for communication with a variety of serial devices, including one or more industry-standard codecs, other DSPs, microprocessors, and peripherals that implement the Motorola SPI.
MHz clock). The asynchronous protocols supported by the SCI include a Multidrop mode for master/slave operation with Wakeup On Idle Line and Wakeup On Address Bit capability. This mode allows the DSP56305 to share a single serial line efficiently with other peripherals.
Table 2-1 and as illustrated in Figure 2-1. The DSP56305 is operated from a 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.
The ESSI0, ESSI1, and SCI signals are multiplexed with the Port C GPIO signals (PC0–PC5), Port D GPIO signals (PD0–PD5), and Port E GPIO signals (PE0–PE2), respectively. TIO0–TIO2 can be configured as GPIO signals. AA0355 Figure 2-1 Signals Identified by Functional Group DSP56305 User’s Manual MOTOROLA...
Leave unconnected PVCL Note: HPxx is a reference only and is not a signal name. GPIO references formerly designated as HIOxx have been renamed PBxx for consistency with other Motorola DSPs. AA1407 Figure 2-2 Host Interface/Port B Detail Signal Diagram MOTOROLA...
V to each other internally. On those packages, all power input, except V , are labeled V . The number of connections indicated in this table are minimum values; the total V connections are package-dependent. DSP56305 User’s Manual MOTOROLA...
These designations are package-dependent. Some packages connect all GND inputs except GND to each other internally. On those packages, all power input, except GND and GND , are labeled GND. The number of connections indicated in this table are minimum values; the total GND connections are package-dependent. MOTOROLA DSP56305 User’s Manual...
If the PLL is enabled and both the multiplication and division factors equal one, then CLKOUT is also synchronized to EXTAL. If the PLL is disabled, the CLKOUT frequency is half the frequency of EXTAL. DSP56305 User’s Manual MOTOROLA...
Table 2-8, External Bus Control Signals on the following pages detail the signals relevant to Port A, the external memory expansion port. When the DSP56305 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–AA3/RAS3, RD, WR, BS, CAS, BCLK, and BCLK.
Signal Description Name Reset, Wait, or Stop D0–D23 Input/ Tri-stated Data Bus—When the DSP is the bus master, Output D0–D23 provide the bidirectional data bus for external program and data memory accesses. Otherwise, D0–D23 are tri-stated. 2-10 DSP56305 User’s Manual MOTOROLA...
“early bus start” signal for a bus controller. If the external bus is not used during an instruction cycle, BS remains deasserted until the next external bus cycle. MOTOROLA DSP56305 User’s Manual 2-11...
Page 70
Transfer Acknowledge—If the DSP56305 is the bus Input master and there is no external bus activity, or if the DSP56305 is not the bus master, TA is ignored. TA 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...
Page 71
DSP or the DMA no longer needs the bus. BR may be asserted or deasserted independent of whether the DSP56305 is a bus master or a bus slave. Bus “parking” allows BR to be deasserted even though the DSP56305 is the bus master (see the description of bus “parking”...
Page 72
Column Address Strobe—When the DSP is the bus master, CAS is 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. 2-14 DSP56305 User’s Manual MOTOROLA...
INTERRUPT 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. MOTOROLA DSP56305 User’s Manual 2-15...
WAIT instruction and asserting IRQA to exit the Wait state. If the processor is in the Stop standby state and IRQA is asserted, the processor will exit the Stop state. These inputs are 5 V tolerant. 2-16 DSP56305 User’s Manual MOTOROLA...
Page 75
WAIT instruction and asserting IRQC to exit the Wait state. If the processor is in the Stop standby state and IRQC is asserted, the processor will exit the Stop state. These inputs are 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-17...
The functions of the signals associated with the HI32 vary according to the programmed configuration of the interface as determined by the 24-bit DSP Control Register (DCTR). Refer to the DSP56305 User’s Manual for detailed descriptions of this and the other configuration registers used with the HI32.
PB8–PB15 Input or Port B 8–15—When the HI32 is configured as Output GPIO through the DCTR, these signals are individually programmed as inputs or outputs through the HI32 DIRH. These inputs are 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-19...
Page 78
Input or Port B 20—When the HI32 is configured as GPIO Output through the DCTR, this signal is individually programmed as an input or output through the HI32 DIRH. This input is 5 V tolerant. 2-20 DSP56305 User’s Manual MOTOROLA...
Page 79
Input or Port B 22—When the HI32 is configured as GPIO Output through the DCTR, this signal is individually programmed as an input or output through the HI32 DIRH. This input is 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-21...
Page 80
HI function is selected, this signal is Host DMA Acknowledge Schmitt-trigger input. Port B—When the HI32 is configured as GPIO through the DCTR, this signal is internally disconnected. This input is 5 V tolerant. 2-22 DSP56305 User’s Manual MOTOROLA...
Page 81
HI function is selected, this signal is Host Address Enable input. Port B—When the HI32 is configured as GPIO through the DCTR, this signal is internally disconnected. This input is 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-23...
Page 82
HI function is selected, this signal is Host Interrupt Request output. Port B—When the HI32 is configured as GPIO through the DCTR, this signal is internally disconnected. This input is 5 V tolerant. 2-24 DSP56305 User’s Manual MOTOROLA...
Page 83
HI function is selected, this signal is Host Data Read/Host Data Strobe Schmitt-trigger input. Port B—When the HI32 is configured as GPIO through the DCTR, this signal is internally disconnected. This input is 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-25...
Page 84
V Port B—When the HI32 is configured as GPIO through the DCTR, this signal is internally disconnected. This input is 5 V tolerant. 2-26 DSP56305 User’s Manual MOTOROLA...
Page 85
Host Interrupt A—When the HI function is open selected, this signal is the Interrupt A open-drain drain output. Port B—When the HI32 is configured as GPIO through the DCTR, this signal is internally disconnected. This input is 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-27...
Page 86
There are two synchronous serial interfaces (ESSI0 and ESSI1) that provide 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 which implement the Motorola Serial Peripheral Interface (SPI). 2-28 DSP56305 User’s Manual...
Port C 1—The default configuration following Output reset is GPIO input PC1. When configured as PC1, signal direction is controlled through PRR0. The signal can be configured as an ESSI signal SC01 through PCR0. This input is 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-29...
Page 88
Port C 2—The default configuration following Output reset is GPIO input PC2. When configured as PC2, signal direction is controlled through PRR0. The signal can be configured as an ESSI signal SC02 through PCR0. This input is 5 V tolerant. 2-30 DSP56305 User’s Manual MOTOROLA...
Page 89
Port C 4—The default configuration following Output reset is GPIO input PC4. When configured as PC4, signal direction is controlled through PRR0. The signal can be configured as an ESSI signal SRD0 through PCR0. This input is 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-31...
GPIO input PD0. When configured as PD0, signal direction is controlled through the Port Directions Register (PRR1). The signal can be configured as an ESSI signal SC10 through the Port Control Register (PCR1). This input is 5 V tolerant. 2-32 DSP56305 User’s Manual MOTOROLA...
Page 91
Port D 2—The default configuration following reset is GPIO input PD2. When configured as Output PD2, signal direction is controlled through PRR1. The signal can be configured as an ESSI signal SC12 through PCR1. This input is 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-33...
Page 92
Port D 4—The default configuration following reset is GPIO input PD4. When configured as Output PD4, signal direction is controlled through PRR1. The signal can be configured as an ESSI signal SRD1 through PCR1. This input is 5 V tolerant. 2-34 DSP56305 User’s Manual MOTOROLA...
PE0, signal direction is controlled through the SCI Port Directions Register (PRR). The signal can be configured as an SCI signal RXD through the SCI Port Control Register (PCR). This input is 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-35...
Three identical and independent timers are implemented in the DSP56305. Each timer can use internal or external clocking, and can interrupt the DSP56305 after a specified number of events (clocks), or can signal an external device after counting a specific number of internal events.
The default mode after reset is GPIO input. This can be changed to output or configured as a Timer Input/Output through the Timer 2 Control/Status Register (TCSR2). This input is 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-37...
Schmitt-trigger input signal used to asynchronously initialize the test controller. TRST has an internal pull-up resistor. TRST must be asserted after power up. Always assert TRST immediately after power-up. This input is 5 V tolerant. 2-38 DSP56305 User’s Manual MOTOROLA...
Page 97
Debug mode directly or to provide a direct external indication that the chip has entered the Debug mode. All other interface with the OnCE module must occur through the JTAG port. This input is 5 V tolerant. MOTOROLA DSP56305 User’s Manual 2-39...
0s in the most significant byte of the usual (24-bit) program and data word, and ignores the zeroed byte, thus effectively using 16-bit program and data words. The Sixteen-bit Compatibility mode allows the DSP56305 to use 56000 object code without change (thus minimizing system cost for applications that use the smaller address space).
The Program ROM usually contains the Real Time Operating System (RTOS), but may contain customer-supplied code. For further information on supplying code for a customized DSP56305 Program ROM, please contact your Motorola regional sales office. Program memory space at locations $FF00C0–$FF07FF and $FF2000–$FFFFFF is reserved and should not be accessed.
Data memory space is divided into X data memory and Y data memory to match the natural partitioning of DSP algorithms. The data memory partitioning allows the DSP56305 to feed two operands to the Data ALU simultaneously, enabling it to perform a multiply-accumulate operation in one clock cycle.
3.1.3 Memory Space Configuration Memory space addressing is for 24-bit words by default. The DSP56305 switches to Sixteen-bit Address Compatibility mode by setting the Sixteen-bit Compatibility (SC) bit in the Status Register (SR). Table 3-1 Memory Space Configuration Bit Settings for the DSP56305...
Memory Configuration RAM Configuration RAM CONFIGURATION The DSP56305 contains 12.25 K of RAM, divided by default into: • Program RAM (6.5 K) • X data RAM (3.75 K) • Y data RAM (2.0 K) RAM configuration depends on two bits: the Cache Enable (CE) of the SR and the Memory Select (MS) of the OMR.
5. write the desired replacement data to the (virtual) patch locations 6. reading (or fetching) the location to be replaced will then return the replacement data instead of the ROM data 3.2.1.1 Sample Code for DSP56305 Patch Mechanism M_PROMS $ff0800 ; ROM area Start...
16 M words $000000–$FFFFFF 64 K words $0000–$FFFF 3.3.2 RAM Configurations The RAM configurations for the DSP56305 are listed in Table 3-4. Table 3-4 RAM Configurations for the DSP56305 Bit Settings Memory Sizes (in K) Program X data Y data Cache 3.75...
The following figures describe each of the memory space and RAM configurations defined by the settings of the SC, MS, and CE bits. The figures show the configuration and the table describes the bit settings, memory sizes, and memory locations. MOTOROLA DSP56305 User’s Manual 3-11...
RAM: 3.75 K RAM: 2 K None 16 M $000000–$0019FF $000000–$000EFF $000000–$0007FF ROM: 6 K ROM: 3 K $FF0800–$FF1FFF $FF0000–$FF0BFF Note: This column gives the maximum memory addressable in the memory space. Figure 3-1 Default Memory Configuration 3-12 DSP56305 User’s Manual MOTOROLA...
RAM: 2 K 16 M $000000–$0015FF $000000–$000EFF $000000–$0007FF $001600– $0019FF ROM: 6 K ROM: 3 K $FF0800–$FF1FFF $FF0000–$FF0BFF Note: This column gives the maximum memory addressable in the memory space. Figure 3-2 Instruction Cache Enabled MOTOROLA DSP56305 User’s Manual 3-13...
RAM: 2.75 K RAM: 2 K None 16 M $000000–$001DFF $000000–$000AFF $000000–$0007FF ROM: 6 K ROM: 3 K $FF0800–$FF1FFF $FF0000–$FF0BFF Note: This column gives the maximum memory addressable in the memory space. Figure 3-3 Memory Switch Enabled 3-14 DSP56305 User’s Manual MOTOROLA...
16 M $000000–$0019FF $000000–$000AFF $000000–$0007FF $001A00– $001DFF ROM: 6 K ROM: 3 K $FF0800–$FF1FFF $FF0000–$FF0BFF Note: This column gives the maximum memory addressable in the memory space. Figure 3-4 Memory Switch Enabled, Instruction Cache Enabled MOTOROLA DSP56305 User’s Manual 3-15...
Y Data Cache Mem. RAM: 6.5 K RAM: 3.75 K RAM: 2 K None 64 K $0000–$19FF $0000–$0EFF $0000–$07FF Note: This column gives the maximum memory addressable in the memory space. Figure 3-5 Sixteen-Bit Compatibility Mode 3-16 DSP56305 User’s Manual MOTOROLA...
RAM: 5.5 K RAM: 3.75 K RAM: 2 K 64 K $0000–$15FF $0000–$0EFF $0000–$07FF $1600–$19FF Note: This column gives the maximum memory addressable in the memory space. Figure 3-6 Sixteen-Bit Compatibility Mode, Instruction Cache Enabled MOTOROLA DSP56305 User’s Manual 3-17...
RAM: 7.5 K RAM: 2.75 K RAM: 2 K None 64 K $0000–$1DFF $0000–$0AFF $0000–$07FF Note: This column gives the maximum memory addressable in the memory space. Figure 3-7 Sixteen-Bit Compatibility Mode, Memory Switch Enabled 3-18 DSP56305 User’s Manual MOTOROLA...
RAM: 2.75 K RAM: 2 K 64 K $0000–$19FF $0000–$0AFF $0000–$07FF $1A00–$1DFF Note: This column gives the maximum memory addressable in the memory space. Figure 3-8 Sixteen-Bit Compatibility Mode, Memory Switch Enabled, Instruction Cache Enabled MOTOROLA DSP56305 User’s Manual 3-19...
Internal and External I/O Memory Map INTERNAL AND EXTERNAL I/O MEMORY MAP The DSP56305 internal I/O space (the top 128 locations of the X data memory space and 64 high Y data memory space locations) and external I/O space (the top 64 locations of Y data memory space) are listed in Appendix D, Table D-2.
The DSP56305 begins operations by leaving Reset and going into one of eight operating modes. As the DSP56305 exits the Reset state it loads the values of MODA, MODB, MODC, and MODD into bits MA, MB, MC, and MD of the Operating Mode Register (OMR).
3. Otherwise, the DSP56305 jumps to the bootstrap program entry point at $FF0000. If the bootstrap program is loading via the Host Interface (HI32), setting the HF0 bit in the HSR causes the DSP56305 to stop loading and begin execution of the loaded program at the specified start address.
Vector $C00000 Expanded mode The bootstrap ROM is bypassed and the DSP56305 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. DSP56305 User’s Manual...
Description Vector $008000 Expanded mode The bootstrap ROM is bypassed and the DSP56305 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. 4.3.5 Mode 9: Bootstrap From Byte-Wide External Memory...
MODD, bootstraps through HI32 in 24-bit wide UB slave mode, in a configuration that allows glueless connection to Port A of a DSP563xx device. The DSP56305 is written with 24-bit wide words reflecting the 24-bit wide host bus transfers. This mode may be used for booting a slave DSP56305 from Port A of a master DSP563xx device with glueless connection.
The DSP56305 is written with 24-bit wide words broken into 8-bit wide host bus transfers. This mode may be used for booting from various microprocessors or microcontrollers, as for booting a slave DSP56305 from Port A of a master DSP563xx device.
OMR to determine the program flow. INTERRUPT SOURCES AND PRIORITIES Interrupt handling by the DSP56305, like that of all DSP56300 family members, has been optimized for DSP applications. Refer to Section 7 of the DSP56300 Family Manual. The interrupt table is located in the 256 locations of program memory pointed to by the Vector Base Address (VBA) register in the Program Control Unit.
The DSP56305 initialization program loads the table entry for each interrupt serviced with two interrupt servicing instructions. In the DSP56305, not all of the 128 vector addresses are used for specific interrupt sources. The remaining addresses are reserved. If it is known that certain interrupts will not be used, those interrupt vector locations may be used for program or data storage.
ESSI0 Receive Data VBA:$32 0–2 ESSI0 Receive Data With Exception Status VBA:$34 0–2 ESSI0 Receive last slot VBA:$36 0–2 ESSI0 Transmit Data VBA:$38 0–2 ESSI0 Transmit Data with Exception Status VBA:$3A 0–2 ESSI0 Transmit last slot MOTOROLA DSP56305 User’s Manual 4-13...
4.5.2 Interrupt Priority Levels The DSP56305 has a four level interrupt priority structure. Each interrupt has two Interrupt Priority Level bits (IPL[1:0]) that determine its interrupt priority level. Level 0 is the lowest priority level. Level 3 is the highest level priority and is non-maskable.
0, 1 0, 1, 2 There are two interrupt priority registers in the DSP56305. The IPR-C is dedicated to DSP56300 core interrupt sources and IPR-P is dedicated to DSP56305 peripheral interrupt sources. IPR-C is shown on Figure 4-1 on page 4-16 and IPR-P is shown in Figure 4-2 on page 4-17.
IPL is serviced first. When several interrupt requests having the same IPL are pending, another fixed-priority structure within that IPL determines which interrupt source is serviced first. The fixed priority of interrupt sources within an IPL is listed in Table 4-4. MOTOROLA DSP56305 User’s Manual 4-17...
DMA requests used to trigger DMA transfers. DMA request sources may be internal peripherals or external devices requesting service through the IRQA, IRQB, IRQC, or IRQD signals. Table 4-5 describes the meanings of the DRS bits. 4-20 DSP56305 User’s Manual MOTOROLA...
The Address Tracing Enable bit (ATE) is used to enable the Address Tracing mode, which allows the core to reflect the addresses of internal fetches and program space moves to the Address bus, providing assistance in software development. 4-22 DSP56305 User’s Manual MOTOROLA...
PLL Multiplication Factor (MF11:0)—PCTL Bits 0–11 The Multiplication Factor bits (MF[11:0]) define the Multiplication Factor (MF) that is applied to the PLL input frequency. The MF bits are cleared during DSP56305 hardware reset, which corresponds to an MF of one.
Figure 4-5 gives the contents of the IDR for the DSP56305 Revision 0. The IDR for a specific mask can be found on the silicon errata sheet on the Motorola DSP Web page. Revision numbers are assigned as follows: $0 is revision 0, $1 is revision A, $2 is revision B, and so on.
(0000000101) b. The design center number, in bits 27–22, which for MSIL is $6 (000110) 4. The revision number, in bits 28–31, which for the DSP56305 Revision 0 is $0 (0000). The JTAG ID register value for the DSP56305 Revision 0 is $0180501D.
Introduction INTRODUCTION The DSP56305 provides forty-two bidirectional signals that can be configured as General Purpose Input/Output (GPIO) signals or as peripheral dedicated signals. No dedicated GPIO signals are provided. All of these signals are GPIO by default after reset. The control register settings of the DSP56305’s peripherals determine whether these signals...
Each of the three Triple Timer Interface signals (TIO0–TIO2) not used as a timer signal can be configured individually as a GPIO signal. Each signal is controlled by the appropriate Timer Control Status register (TCSR0–TCSR2). These registers are described in Section 9 of this document. DSP56305 User’s Manual MOTOROLA...
In the General Purpose I/O (GPIO) mode, 24 of the HI32 signals may be programmed as GPIO signals. Host port signal functionality and polarity are controlled by the DSP56300 core programming the DSP Control Register (DCTR). MOTOROLA DSP56305 User’s Manual...
HOST INTERFACE (HI32) HI32 Features HI32 FEATURES The DSP56305 host interface features are discussed below as they apply to the Core Interface, the Host Interface, the PCI mode, and the UB mode. 6.2.1 Interface - DSP56300 Core Side • Mapping — 11 internal I/O data space memory locations •...
Page 153
• Instructions – Memory mapped registers allow standard MOVE instruction for data transfer between DSP56305 and external hosts – Special MOVEP instruction provides for I/O service capability using fast interrupts, and provides faster execution with fewer instruction words –...
• Supports an external data buffer for drive and voltage level compatibility with the external bus (e.g. ISA bus) • Generates interrupt requests: hardware driven (HIRQ) and software driven (HINTA) • Generates vectored DSP56300 core interrupts separately for receive and transmit events and host commands DSP56305 User’s Manual MOTOROLA...
All host port signals, except HRST/HRST, are forced to the disconnected state: all outputs are high impedance, inputs are electrically disconnected. The DSP side state machines are not affected. The HRST/HRST signal is ignored in the self configuration mode. MOTOROLA DSP56305 User’s Manual...
PCI Configuration Space CDID CVID CSTR CCMR HCVR HSTR HCTR HTXR HRXM HRXS CCCR CRID CHTY CLAT CBMA CILP data transfer format converter HOST Bus Note: Five words in UBM Figure 6-1 HI32 Block Diagram 6-10 DSP56305 User’s Manual MOTOROLA...
The following paragraphs describe the purpose and operation of each bit in each register of the HI32 visible to the DSP56300 core. The effects of different reset types on these registers are shown. The HI32 host side programming model is described in Section 6.6. MOTOROLA DSP56305 User’s Manual 6-11...
All reserved bits are read as zeros and should be programmed as zeros for future compatibility. The bit manipulation instructions are useful for accessing individual bits in the DCTR. The DCTR bits are described in the following paragraphs. 6-12 DSP56305 User’s Manual MOTOROLA...
The HINT bit controls the HINTA signal. When HINT is set by the DSP56300 core, the HINTA signal is driven low. When HINT is cleared by the DSP56300 core, the HINTA signal is released. Hardware and software resets clear HINT. MOTOROLA DSP56305 User’s Manual 6-13...
The value of HRWP may be changed only when HACT = 0. HRWP is ignored when not in a Universal Bus mode or double-strobe host port mode is ≠ selected (HM $2 or $3, or HDSM = 0). Hardware and software resets clear HRWP. 6-14 DSP56305 User’s Manual MOTOROLA...
HRST signal is active low and the HI32 will be reset if HRST signal is low (i.e. asserted). The value of HRSP may be changed only when HACT = 0. HRSP is ignored in the PCI mode (HM = $1). Hardware and software resets clear HRSP. MOTOROLA DSP56305 User’s Manual 6-15...
To assure proper operation, these signals may be changed only when HACT = 0. The HM2-HM0 bits must not be changed together with these bits (i.e. in the same core write). 6-16 DSP56305 User’s Manual MOTOROLA...
Configuration space transactions are affected by clearing the HM bits. CSID must be loaded, due to self configuration mode before the host can configure the DSP56305. In the personal software reset the HI32 consumes very little current. This is a low-power state.
Vcc or to GND respectively. For example: when operating with a 16-bit bus (e.g. ISA bus), HP48-HP41 must be forced or pulled up to Vcc or pulled down to GND. 6-18 DSP56305 User’s Manual MOTOROLA...
(i.e. in the same core write) with any of the following bits: HDSM, HRWP, HTAP, HDRP, HRSP, HIRH, or HIRD. The combinations HM = $6, HM = $7 are reserved for future expansion and should not be used. Hardware and software resets clear the HM bits. MOTOROLA DSP56305 User’s Manual 6-19...
Vcc or to GND. b. Must be forced or pulled to Vcc or GND. HBS/HDAK should be forced or pulled up to Vcc if not used. d. Must be forced or pulled up to Vcc. 6-20 DSP56305 User’s Manual MOTOROLA...
All reserved bits are read as zeros and should be programmed as zeros for future compatibility. The bit manipulation instructions are useful for accessing individual bits in the DPCR. The DPCR bits are described in the following paragraphs. MOTOROLA DSP56305 User’s Manual 6-21...
If TAIE is set, a transaction abort interrupt request will be generated if a transaction was terminated due to master-abort (MAB is set in the DPSR) or target-abort (TAB is set). Hardware and software resets clear TAIE. 6-22 DSP56305 User’s Manual MOTOROLA...
• No DSP56300 core DMA channel is enabled to service HI32 master transmit data DMA requests. CLRT is ignored when the HI32 is not in the PCI mode (HM≠$1). Hardware and software resets clear CLRT. MOTOROLA DSP56305 User’s Manual 6-23...
SERF is ignored when the SERE bit is cleared or when the HI32 is not an active PCI agent (i.e. HM≠$1 or the HI32 is not the current PCI bus master or a selected target). Hardware and software resets clear SERF. 6-24 DSP56305 User’s Manual MOTOROLA...
MWSD is ignored when the HI32 is not in the PCI mode (HM≠$1). The value of MWSD may be changed only when HACT = 0. Hardware and software resets clear MWSD. MOTOROLA DSP56305 User’s Manual 6-25...
RBLE is ignored when the HI32 is not in the PCI mode (HM≠$1). The value of RBLE may be changed only when HACT = 0 or HDTC = 1. Hardware and software resets clear RBLE. 6-26 DSP56305 User’s Manual MOTOROLA...
Hardware and software resets clear IAE. 6.5.2.15 DPCR Reserved Control Bits 23, 22,17,13,11,10, 8, 6, 3, 0 These bits are reserved for future expansion, they are read as zeros and should be written with zeros for upward compatibility. MOTOROLA DSP56305 User’s Manual 6-27...
HI32 will initiate a PCI transaction. The full 32-bit address (AR31-AR16 from the DPMC and AR15-AR0 from the DPAR) is driven to the HAD31-HAD0 signals during the PCI address phase. Hardware and software resets clear AR31-AR16. 6-28 DSP56305 User’s Manual MOTOROLA...
The two least significant bytes of two HRXM locations All 32 PCI data bits are written to the HTXR as two are output. zero-extended 16-bit words. GDB/MDDB GDB/MDDB HI32 HI32 DTXM DRXR HRXM HTXR HDTFC HDTFC PCI bus PCI bus MOTOROLA DSP56305 User’s Manual 6-29...
Page 178
The three least significant HRXM bytes are output left The three most significant PCI data bytes are written aligned and zero filled. to the HTXR. GDB/MDDB GDB/MDDB HI32 HI32 DTXM DRXR HRXM HTXR HDTFC HDTFC PCI bus PCI bus 6-30 DSP56305 User’s Manual MOTOROLA...
32-bit word. 6.5.3.5.2 If FC = $1 or $2: The three least significant PCI data bytes from the HAD23-HAD0 signals are transferred to the DRXR to be read by the DSP56300 core. MOTOROLA DSP56305 User’s Manual 6-31...
PCI bus byte enables. The DPAR cannot be accessed by the host processor. The two most significant bytes of the PCI transaction address are located in the DSP PCI master control register (DPMC, see Section 6.5.3). 6-32 DSP56305 User’s Manual MOTOROLA...
HI32 is in the PCI mode (HM=$1), ownership of the PCI bus is requested and, when granted, the address is driven to the HAD31-HAD0 signals and the bus command is driven to the HC3/HBE3-HC0/HBE0 signals during the PCI address phase. MOTOROLA DSP56305 User’s Manual 6-33...
The HI32, as master, drives all the HRXM data to the HAD31-HAD0 signals during write transactions, and writes the HAD31-HAD0 signals to the HTXR (in accordance with the FC1-FC0 bits) in read transactions, regardless of the BE3-BE0 value. Hardware and software resets clear BE3-BE0. 6-34 DSP56305 User’s Manual MOTOROLA...
HI32. In the Pre-Fetch mode: the HI32 requests data from the DSP56300 core (by enabling the STRQ status bit and generating core interrupt requests or DMA requests if enabled) whenever the DTXS is not full. MOTOROLA DSP56305 User’s Manual 6-35...
• if SRIE is set, a slave receive data interrupt request is generated • if enabled by an DSP56300 core DMA channel, a slave receive data DMA request will be generated. Hardware, software and personal software resets clear SRRQ. 6-36 DSP56305 User’s Manual MOTOROLA...
When HACT is set, the HI32 is active, and the DCTR mode and polarity bits must NOT be changed. Hardware and software resets clear HACT. 6.5.5.6 DSR Reserved Status Bits 22-6 These bits are reserved for future expansion and read as zeros. MOTOROLA DSP56305 User’s Manual 6-37...
The DPSR is a 24-bit read-only status register used by the DSP56300 core to examine the status and flags of the HI32, when in the PCI mode (HM=$1). The DPSR cannot be accessed by the host processor. The DPSR bits are described in the following paragraphs. 6-38 DSP56305 User’s Manual MOTOROLA...
• if enabled by an DSP56300 core DMA channel, a master transmit data DMA request will be generated. Hardware, software and personal software resets set MTRQ. In the personal software reset state MTRQ = 0. MOTOROLA DSP56305 User’s Manual 6-39...
(SSE) bit is set in the CSTR/CCMR. • the detected parity error bit (DPE) in the CSTR is set. APER is cleared when it is written one by the DSP56300 core. 6-40 DSP56305 User’s Manual MOTOROLA...
When a PCI transaction initiated by the HI32 is terminated with disconnect, TDIS is set and, if TTIE is set, a transaction termination interrupt request is generated. TDIS is cleared when written one by the DSP56300 core. Hardware and software resets clear TDIS. MOTOROLA DSP56305 User’s Manual 6-41...
BSET command. The proper way to clear these bits is to write (MOVE(P) instruction) ones to the bits to be cleared and zeros to all the others. 6-42 DSP56305 User’s Manual MOTOROLA...
24-bit wide FIFO. The host writes 24-bit words to the HTXR, and the DSP56300 core reads 24-bit words from the DRXR. The DSP side of the host-to-DSP data FIFO is described below. For a detailed description of the host side see Section 6.2.2. MOTOROLA DSP56305 User’s Manual 6-43...
HRXM, the 32-bits of significant data located in two words written to the DTXM are output. In PCI target data transfers (HM = $1) with HRF≠$0 and in Universal Bus mode data transfers, the slave DSP-to-host data path (DTXS-HRXS) is a six word deep FIFO. The 6-44 DSP56305 User’s Manual MOTOROLA...
In the 32-bit mode (HM = $1 with FC = $0), only the two least significant bytes of the DTXM are transferred. (See Section 6.5.9, above, and Table 6-5). Hardware, software and personal software resets empty the DTXM. MOTOROLA DSP56305 User’s Manual 6-45...
DAT23-DAT0 are used to read or write data from/to the corresponding GPIO signal. The functionality of the DAT23-DAT0 bits is defined in Table 6-10. Hardware and software resets clear all DATH bits. 6-46 DSP56305 User’s Manual MOTOROLA...
Read/write bit. The value written is the Read/write bit. The value written is the value read. The corresponding signal is value read. configured as an output, and is driven with the data written to DATx. defined by the selected mode MOTOROLA DSP56305 User’s Manual 6-47...
Vcc or to GND respectively. For example: when operating with a 16-bit bus (e.g. ISA bus), HP48-HP41 must be forced or pulled up to Vcc or pulled down to GND. 6-48 DSP56305 User’s Manual MOTOROLA...
Page 197
• The HI32 will not reach dead-lock due to illegal PCI events. Illegal PCI events bring the HI32 Master and Target state machines to the IDLE state. • As a PCI target the HI32 executes the PCI bus command as described in Table 6-12: MOTOROLA DSP56305 User’s Manual 6-49...
CBMA HI32 configuration registers can also be accessed, indirectly, by the DSP56300 core in the Self Configuration mode (HM = $5 - see Section 6.5.1.13). Reserved addresses are read as zeros, and should be written with zeroes for future compatibility. 6-50 DSP56305 User’s Manual MOTOROLA...
Page 199
IRQA, IRQB exception routines), and perform control and debugging operations if exception routines are implemented in the DSP to perform these tasks. The host processor can also generate non-maskable interrupt requests to the DSP56300 core using the host commands. MOTOROLA DSP56305 User’s Manual 6-51...
Header Type (CHTY) Latency Timer (CLAT) $10(CBMA) Memory Space Base Address (CBMA) Reserved(58 Dwords) $FC(CILP) MAX_LAT MIN_GNT Interrupt Line Interrupt Signal Addresses shown are in bytes. The base address is defined by the CBMA register Addresses shown are in bytes. 6-52 DSP56305 User’s Manual MOTOROLA...
Base Address: $6 Host Command Vector Register (HCVR) Base Address: $7 Host Transmit/Slave Receive Data FIFO (HTXR/HRXS) Addresses shown are in words (locations). The base address is defined by eight bits of the CBMA register. MOTOROLA DSP56305 User’s Manual 6-53...
HD15-HD0 signals are driven with the two least significant bytes of the HCTR in a read access; HD15-HD0 are written to the two least significant bytes of the HCTR, the most significant portion is zero filled during the HCTR write. 6-54 DSP56305 User’s Manual MOTOROLA...
DMA requests are disabled. If TREQ is set, the host DMA request HDRQ signal will be asserted if HTRQ is set. HIRQ is deasserted (high impedance if HIRD = 0 in the DCTR). The personal hardware reset clears TREQ. MOTOROLA DSP56305 User’s Manual 6-55...
If the HAEN signal is high: • If DMAE is cleared the HI32 cannot be accessed. • If DMAE is set, the HI32 responds to ISA/EISA DMA-type accesses. If DMAE is cleared, the HDRQ signal is deasserted, HIRQ is active. MOTOROLA DSP56305 User’s Manual 6-57...
DTXS; HRRQ is cleared if the HRXS is empty, and set if it contains data to be read by an external host. If the host is not executing a read transaction from the HRXS, the DSP-to-host data path is forced to the reset state and STRQ and HRRQ are cleared. 6-58 DSP56305 User’s Manual MOTOROLA...
Page 207
32-bit word written to the HTXR, the two least significant bytes of the second word read contain the two most significant bytes of the 32-bit word. MOTOROLA DSP56305 User’s Manual 6-59...
Page 208
• If the HTF1-HTF0 value is not equal to the value of the FC1-FC0 bits in the DPMC: PCI transactions that start in the non-data address space (i.e. the PCI address is less than HI32_base_address:$007) should not extend into the data address space. The personal hardware reset clears HTF1-HTF0. 6-60 DSP56305 User’s Manual MOTOROLA...
All 32 PCI data bits are written to the HTXR as All HD23-HD0 data are written to the HTXR. two zero-extended 16-bit words. GDB/MDDB GDB/MDDB HI32 HI32 DRXR DRXR HTXR HTXR HDTFC HDTFC PCI bus Host bus MOTOROLA DSP56305 User’s Manual 6-61...
Page 210
The three most significant PCI data bytes are HD15-HD0 are written to the HTXR, left written to the HTXR. aligned, and zero filled. GDB/MDDB GDB/MDDB HI32 HI32 DRXR DRXR HTXR HTXR HDTFC HDTFC PCI bus Host bus 6-62 DSP56305 User’s Manual MOTOROLA...
Page 211
HRXS and output to the HI32 data signals HD15-HD0. • If HRF = $3: The two most significant bytes of the data written to the DTXS is transferred to the HRXS and output to the HI32 data signals HD15-HD0. MOTOROLA DSP56305 User’s Manual 6-63...
Up to eight wait states may be inserted before a target initiated transaction termination (disconnect-C/Retry) will be generated. If TWSD is set and the HI32 is in the PCI mode (HM=$1): 6-64 DSP56305 User’s Manual MOTOROLA...
The two least significant bytes of two HRXS The three least significant HRXS bytes locations are output. are output to HD23-HD0. GDB/MDDB GDB/MDDB HI32 HI32 DTXS DTXS HRXS HRXS HDTFC HDTFC PCI bus Host bus MOTOROLA DSP56305 User’s Manual 6-65...
Page 214
The three least significant HRXS bytes are The two middle HRXS bytes are output output left aligned and zero filled. to HD15-HD0. GDB/MDDB GDB/MDDB HI32 HI32 DTXS DTXS HRXS HRXS HDTFC HDTFC PCI bus Host bus 6-66 DSP56305 User’s Manual MOTOROLA...
The personal hardware reset clears TWSD. 6.6.1.10 HCTR Reserved Control Bits 31-20, 18-17, 13, 10, and 0 These bits are reserved for future expansion, they are read as zeros and should be written with zeros for upward compatibility. MOTOROLA DSP56305 User’s Manual 6-67...
When in a Universal Bus mode (HM=$2 or $3), the HSTR is accessed if the HA10-HA3 value matches the HI32 base address (CBMA, see Section 6.6.11) and the HA2-HA0 value is $5. The status bits are described in the following paragraphs. 6-68 DSP56305 User’s Manual MOTOROLA...
HTRQ is cleared. HTRQ may be used to assert the external HIRQ signal if the TREQ bit is set. Regardless of whether the HTRQ host interrupt request is enabled, HTRQ provides valid status so that polling techniques may be used by the host processor. Hardware, software and personal software resets set HTRQ. MOTOROLA DSP56305 User’s Manual 6-69...
HINTA signal. HINT is set if the host interrupt A bit is set in the DCTR, and the HINTA signal is driven low. HINT is cleared if the host interrupt A is cleared in the DCTR, and the HINTA signal is driven low. HINT is cleared by a hardware or software reset. 6-70 DSP56305 User’s Manual MOTOROLA...
HTRQ = 1 or HRRQ = 1 otherwise cleared The personal hardware reset clears HREQ. 6.6.2.7 HSTR Reserved Status Bits 31-8 These status bits are reserved for future expansion and read as zeros during host read operations. MOTOROLA DSP56305 User’s Manual 6-71...
HD15-HD0 are written to the two least significant bytes of the HCVR, the most significant portion is zero filled during the HCVR write. In PCI mode (HM = $1) memory space transactions, the HCVR is accessed if the PCI address is HI32_base_address: $018. 6-72 DSP56305 User’s Manual MOTOROLA...
PCI wait cycles, until HC is cleared. • In a Universal Bus mode: In a write transaction to the HCVR, the HI32 slave will deassert HTA, until HC is cleared. The personal software reset clears HC. MOTOROLA DSP56305 User’s Manual 6-73...
The personal hardware reset clears HNMI. 6.6.3.4 HCVR Reserved Bits 31-16, 14-8 These unused bits are reserved for future expansion and should be written with zeros for upward compatibility. They are read by the host processor as zeros. 6-74 DSP56305 User’s Manual MOTOROLA...
• the HREQ status bit will be set in the HSTR. • the HIRQ signal will be asserted - if DMAE is cleared (in the Universal Bus modes) • the HDRQ signal will be asserted - if DMAE is set (in the Universal Bus modes) MOTOROLA DSP56305 User’s Manual 6-75...
The HTXR may be written if the HTRQ bit in the HSTR is set. Data should not be written to the HTXR until HTRQ is set to prevent previous data from being overwritten. Filling the HTXR by host processor writes, clears HTRQ. 6-76 DSP56305 User’s Manual MOTOROLA...
Page 225
In a Universal Bus mode write to the HTXR the HI32 will insert wait states if the HTXR is full (HTRQ = 0). Wait states will be inserted until the data is transferred from the HTXR to the DSP side. Hardware, software and personal software resets empty the HTXR (HTRQ is set). MOTOROLA DSP56305 User’s Manual 6-77...
The CDID/CVID cannot be accessed by the host when not in the PCI mode (HM≠$1). 6.6.8 Status/Command Configuration Register (CSTR/CCMR) DST1 DST0 FBBC SERE PERR Not implemented, read as zero, should be written zero Reserved, read as zero and should be written zero 6-78 DSP56305 User’s Manual MOTOROLA...
Page 227
FBBC Fast Back-to-Back Capable (hardwired to one) Data Parity Reported 26-25 DST1-DST0 DEVSEL Timing (hardwired to $1) Signaled Target Abort Received Target Abort Received Master Abort Signaled System Error Detected Parity Error 22-16 reserved MOTOROLA DSP56305 User’s Manual 6-79...
PEIE, in the DPCR, is set. The personal hardware reset clears PERE. 6.6.8.4 Wait Cycle Control (WCC) Bit 7 The WCC bit is hardwired to zero, as the HI32 never executes address stepping. 6-80 DSP56305 User’s Manual MOTOROLA...
(HM=$1) and the HI32, as a master device, detects that its transaction is terminated with target-abort, the RTA is set. The RTA bit is cleared when it is written with one by the host processor. The personal hardware reset clears RTA. MOTOROLA DSP56305 User’s Manual 6-81...
They are read by the host processor as zeros. 6.6.8.16 CCMR Not Implemented Bits 9, 5-3 These not implemented bits are reserved for future expansion and should be written with zeros for upward compatibility. They are read by the host processor as zeros. 6-82 DSP56305 User’s Manual MOTOROLA...
Page 231
The RID7-RID0 bits specify the DSP specific identifier (as an extension of Device ID). The CCCR/CRID cannot be accessed by the host when not in the PCI mode (HM≠$1) The contents of CCCR/CRID are hardwired and not affected by any type of reset. MOTOROLA DSP56305 User’s Manual 6-83...
Header Type (HT7-HT0) Bits 23-16 The read-only bits HT7-HT0 identify the layout of bytes $10-$3F in the configuration space and also whether or not the device contains multiple functions. This byte is hardwired to the value $00. 6-84 DSP56305 User’s Manual MOTOROLA...
The personal hardware reset clears LT7-LT0. 6.6.10.3 CHTY/CLAT Not Implemented Bits 31-24,7-0 These not implemented bits are reserved for future expansion and should be written with zeros for upward compatibility. They are read by the host processor as zeros. MOTOROLA DSP56305 User’s Manual 6-85...
Memory Space Indicator (MSI) Bit 0 The MSI determines that CBMA register maps the HI32 into the PCI memory space. The MSI bit is hardwired to zero and is not affected by any type of reset. 6-86 DSP56305 User’s Manual MOTOROLA...
HA2-HA0 are used to select the HI32 registers on the host side. All reserved register addresses are read as zeros and should be written with zeros for upward compatibility (see Figure 6-4). The personal hardware reset clears GB10-GB3. MOTOROLA DSP56305 User’s Manual 6-87...
Page 236
HI32 has no major requirements for the settings of Latency Timers, these bits are hardwired to zero. IP7-IP0: The Interrupt Signal bits specify which interrupt the device uses. A value of 1 corresponds to PCI INTA. 6-88 DSP56305 User’s Manual MOTOROLA...
Configuration mode (HM2-HM0 = $5) and first write to the DPAR if the first write is a one DSP clock cycle instruction. (e.g. move immediate and move from external memory are more than one clock cycle) MOTOROLA DSP56305 User’s Manual 6-89...
Page 240
5. Should be pulled to Vcc or GND if not used Should be forced or pulled to Vcc or GND if not used Output is high impedance if HRF ≠ $0. Input is disconnected if HTF ≠ $0. 6-92 DSP56305 User’s Manual MOTOROLA...
Table 6-18 Host Port Signals - Detailed Description (Sheet 1 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HP7-HP0 HAD15-HAD0 HA10-HA3 PB15-PB0 Address/Data Multiplexed Bus Address Bus Tri-state, bidirectional bus. Input signal. During the first clock cycle of a This bus selects the HI32 register to be accessed.
Page 242
Table 6-18 Host Port Signals - Detailed Description (Sheet 2 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HP18-HP16 HC3/ HBE3 HBE0 HA2-HA0 PB18-PB16 -HC0/ Address Bus Bus Command/Byte Enables Input signal. Tri-state, bidirectional bus. This bus selects the HI32 register to be accessed. During the address phase of a HA10-HA3 select the HI32 and HA2-HA0 select the HBE3...
Page 243
Table 6-18 Host Port Signals - Detailed Description (Sheet 3 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HTRDY HDBEN PB20 Host Data Bus Enable Target Ready Output signal. Sustained tri-state bidirectional signal. Asserted during HI32 accesses. Indicates the target agent’s ability to When asserted the external (optional) data complete the current data phase of transceiver outputs are enabled.
Page 244
Table 6-18 Host Port Signals - Detailed Description (Sheet 4 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HIRDY HDBDR Host Data Bus Direction Initiator Ready Output signal. Sustained tri-state bidirectional HDBDR is driven high on write data signal.
Page 245
Table 6-18 Host Port Signals - Detailed Description (Sheet 5 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HLOCK Lock (Bus Strobe) Sustained tri-state bidirectional Schmitt trigger input signal. Asserted at the start of a bus cycle (for half of a clock cycle) signal.
Page 246
Table 6-18 Host Port Signals - Detailed Description (Sheet 6 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HPERR HDRQ Disconnected Parity Error DMA Request Sustained tri-state bidirectional Output Signal. Used to support ISA/EISA-type DMA data transfers. signal. HDRQ is asserted by the HI32 when a DMA request Used for reporting of data parity (receive and/or transmit) is generated in the HI32.
Page 247
Table 6-18 Host Port Signals - Detailed Description (Sheet 7 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HREQ Disconnected Bus Request Host Transfer Acknowledge Tri-state, Output signal. Tri-state, Output signal. Indicates to the arbiter that the HI32 Used for high speed data transfer between the HI32 and desires use of the bus.
Page 248
Table 6-18 Host Port Signals - Detailed Description (Sheet 8 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HSERR HIRQ Disconnected System Error Host Interrupt Request Active low, open drain output Active low, output signal signal Used by the HI32 to request service from the host Used for reporting address parity processor.
Page 249
Table 6-18 Host Port Signals - Detailed Description (Sheet 9 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HSTOP HWR/HRW Disconnected Stop Host Write/Read-Write Sustained tri-state bidirectional Schmitt trigger input signal. When in the double-strobe mode of the HI32 (HDSM = 0), signal.
Page 250
Table 6-18 Host Port Signals - Detailed Description (Sheet 10 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HIDSEL HRD/HDS Disconnected Initialization Device Select Host Read/Data Strobe Input signal. Schmitt trigger input signal. Used as a chip select in lieu of the When in the double-strobe mode of the HI32 (HDSM = 0), upper 21 address lines during this signal functions as the host read strobe (HRD).
Page 251
Table 6-18 Host Port Signals - Detailed Description (Sheet 11 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HCLK UNUSED Bus Clock Must be forced or pulled up to Vcc. Input signal. Provides timing for all transactions on PCI. All other PCI signals are sampled on the HCLK rising edge.
Page 252
Table 6-18 Host Port Signals - Detailed Description (Sheet 12 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HP48-HP41 HD23-HD16 Disconnected Data Bus Tri-state, bidirectional bus. Used to transfer data between the host processor and the HI32. This bus is released (disconnected) when the HI32 is not selected by HA10-HA0.
Page 253
Table 6-18 Host Port Signals - Detailed Description (Sheet 13 of 13) HI32 HI32 Mode Port Enhanced Universal Universal GPIO HINTA Host Interrupt A Active low, open drain output signal Used by the HI32 to request service from the host processor. HINTA may be connected to an interrupt request signal of a host processor, a control input of external circuitry, or be used as a general purpose open-drain output.
MTRQ (DPSR) Via Programmable Base + 7 Slave Transmit STRQ (DSR) Lowest Via Programmable Base + 8 PCI Master Address MARQ (DPSR) 6.10 VIA PROGRAMMING Below is a table of the DSP56305 via-programmable registers: Register Bits Value Meaning CDID CDID15-CDID0 $1802...
HI32 may be externally buffered to drive the current required by the ISA/EISA standard. HI32 inputs should be externally buffered if the other ISA/EISA agents are not “3 Volt friendly” as defined in the PCI specifications. 6-108 DSP56305 User’s Manual MOTOROLA...
If the HI32’s DSP and the host DSP use the same EXTAL clock, the HI32 can operate synchronously at its maximum throughput of three clock cycles/word (e.g. for a 66MHz clock the HI32 throughput is 22 Mwords/sec = 66 Mbytes/sec) MOTOROLA DSP56305 User’s Manual 6-109...
Page 258
HOST INTERFACE (HI32) EXAMPLES OF HOST TO HI32 CONNECTIONS 6-110 DSP56305 User’s Manual MOTOROLA...
There are two independent and identical Enhanced Synchronous Serial Interfaces in the DSP56305: ESSI0 and ESSI1. For the sake of simplicity, a single generic ESSI is described. Each ESSI can be accessed through a port, as indicated in Figure 7-2. Any unused ESSI pins may be used as GPIO pins.
STD signal does not assume a high-impedance state. The STD signal may be programmed as a General Purpose Input/Output (GPIO) signal (P5) when the ESSI STD function is not being used. DSP56305 User’s Manual MOTOROLA...
DSP system clock, the external ESSI clock frequency must not exceed /3, and each ESSI phase must exceed the minimum of 1.5 CLKOUT core cycles. 2. The internally sourced ESSI clock frequency must not exceed F core DSP56305 User’s Manual MOTOROLA...
If SC0 is configured as a serial flag signal, its direction is determined by the Serial Control Direction 0 (SCD0) bit in the ESSI Control Register B (CRB). When configured as an output, its direction is determined by the value of the serial Output Flag 0 (OF0) bit in the CRB. DSP56305 User’s Manual MOTOROLA...
Page 267
(STD and SC1). SC0 may be programmed as a GPIO signal (P0) when the ESSI SC0 function is not being used. Note: The ESSI can operate with more than one active transmitter only in Synchronous mode. MOTOROLA DSP56305 User’s Manual...
SCD1 bit value. As an output, it is fully synchronized with the other ESSI transmit data signals (STD and SC0). SC1 may be programmed as a GPIO signal (P1) when the ESSI SC1 function is not being used. 7-10 DSP56305 User’s Manual MOTOROLA...
Flag 1 Flag 1 TD0 Drive SCn1 pin is... Frame Sync Frame Sync Enable Out Note: “n” in SCn1 is ESSI (0 or 1) TDm = Transmit Data Signal m AA1456 Figure 7-4 SCn1 Pin Configuration MOTOROLA DSP56305 User’s Manual 7-11...
The Transmit and Receive Slot Mask registers are each 24-bit, of which only the lower 16 bits are significant, so TSMA/TSMB and RSMA/RSMB can function as the bottom and top halves of a 32-bit register. 7-14 DSP56305 User’s Manual MOTOROLA...
(see Figure 7-13). Note: This definition is reversed from that of the 560xx SSI. The maximum allowed internally generated bit clock frequency is the DSP56305 internal clock frequency divided by 4 (F /4); the minimum possible internally generated bit...
This can occur if one or both of these clocks are externally sourced. If this is the case, then the RX and TX frame clock rates will differ accordingly. DC[4:0] are cleared by hardware and software reset. 7-16 DSP56305 User’s Manual MOTOROLA...
ESSI transmit register, and one word is shifted in (width set by CRA(WL[2:0])) on the ESSI serial input pin as a result of a receive frame sync being input to the DSP. For overview information about On-demand mode, see Section 7.5.3.3. MOTOROLA DSP56305 User’s Manual 7-17...
Note: If the ALC bit is set, only 8-, 12-, or 16-bit words should be used. The use of 24- or 32-bit words leads to unpredictable results. 7-18 DSP56305 User’s Manual MOTOROLA...
(TE2 = 0), and the SC1 signal is configured as output (SCD1 = 1), then the SC1 signal is the serial I/O flag. The reset value is cleared. 7.4.1.9 Reserved CRA Bit 23 This bit is reserved. It is read as 0 and should be written with 0. MOTOROLA DSP56305 User’s Manual 7-19...
Data present in bit OF0 is written to SC0 at the beginning of the frame in Normal mode or at the beginning of the next time slot in Network mode. Bit OF0 is cleared by a hardware reset signal or by a software reset instruction. 7-20 DSP56305 User’s Manual MOTOROLA...
7.4.2.7 Frame Sync Length FSL[1:0] CRB Bits 8-7 These bits select the length of frame sync to be generated or recognized (see Figure 7-16). The meaning of the FSL[1:0] values is described in Table 7-3. 7-22 DSP56305 User’s Manual MOTOROLA...
When FSP is set, the frame sync signal polarity is negative (i.e., the frame start is indicated by the frame sync signal going low). Either a hardware reset signal or a software reset instruction clears FRB. MOTOROLA DSP56305 User’s Manual 7-23...
Page 282
Synchronous mode and the transmit and receive sections use common clock and frame sync signals. Only in the Synchronous mode can more than one transmitter can be enabled. Either a hardware reset signal or a software reset instruction clears SYN. 7-24 DSP56305 User’s Manual MOTOROLA...
Data Mixed Frame Length: FSL[1:0] = 11, (SYN = 0) Serial Clock RX Frame SYNC RX Serial Data Data Data TX Frame SYNC TX Serial Data Data Data AA0681 Figure 7-16 CRB FSL[1:0] Bit Operation MOTOROLA DSP56305 User’s Manual 7-25...
External Clock External Frame SYNC Internal Clock Internal Frame SYNC ESSI Bit Clock Clock Frame SYNC Receiver NOTE: Transmitter and receiver may have the same clock frame syncs. AA0682 Figure 7-17 CRB SYN Bit Operation 7-26 DSP56305 User’s Manual MOTOROLA...
Page 285
Enhanced Synchronous Serial Interface (ESSI) ESSI Programming Model MOTOROLA DSP56305 User’s Manual 7-27...
TE2 bit can be left enabled. The TE2 bit is cleared by either a hardware reset signal or a software reset instruction. The setting of the TE2 bit does not affect the generation of frame sync or Note: output flags. 7-28 DSP56305 User’s Manual MOTOROLA...
TE1 bit can be left enabled. The TE1 bit is cleared by either a hardware reset signal or a software reset instruction. The setting of the TE1 bit does not affect the generation of frame sync or Note: output flags. MOTOROLA DSP56305 User’s Manual 7-29...
The On-demand mode transmit enable sequence can be the same as the Normal mode, or TE0 can be left enabled. Note: Transmitter 0 is the only transmitter that can operate in Asynchronous mode (SYN = 0). TE0 does not affect the generation of frame sync or output flags. 7-30 DSP56305 User’s Manual MOTOROLA...
The receiver remains disabled until the beginning of the next data frame. RE is cleared by either a hardware reset signal or a software reset instruction. Note: The RE bit value does not affect frame sync generation. 7-32 DSP56305 User’s Manual MOTOROLA...
Section 7.5.2. RLIE is cleared by either a hardware reset signal or a software reset instruction. RLIE is disabled when the ESSI is in On-demand mode (DC [4:0]= 00000, in CRA Bits 16-12). MOTOROLA DSP56305 User’s Manual 7-33...
The IF0 bit is updated with this data when the data in the Receive Shift Register is transferred into the Receive Data Register. If it is not enabled, the IF0 bit is cleared. Hardware, software, ESSI individual, and stop reset clear the IF0 bit. 7-34 DSP56305 User’s Manual MOTOROLA...
RFS is cleared by hardware, software, ESSI individual, or stop reset. Note: In Normal mode, RFS is always read as 1 when reading data because there is only one time slot per frame, the ‘frame sync’ time slot. MOTOROLA DSP56305 User’s Manual 7-35...
Receive Data Register. The RDF bit is cleared when the DSP reads the Receive Data Register. If RIE is set, a DSP receive data interrupt request is issued when RDF is set. Hardware, software, ESSI individual, and stop reset clear the RDF bit. 7-36 DSP56305 User’s Manual MOTOROLA...
NOTES: (b) Transmit Registers •Data is received MSB first if SHFD = 0 •24-bit fractional format (ALC = 0) •32-bit mode is not shown AA0687 Figure 7-20 ESSI Data Path Programming Model (SHFD = 1) 7-38 DSP56305 User’s Manual MOTOROLA...
MSB is Bit 15 and the most significant byte is unused. Unused bits are read as 0s. Data is shifted out of these registers MSB first if the SHFD bit is cleared and LSB first if the SHFD bit is set. MOTOROLA DSP56305 User’s Manual 7-39...
TSM. Bit k in TSM (TSMk) is an enable/disable control bit for transmission in slot number K. When TSMk is cleared, all the transmit data signals of the enabled transmitters are tri-stated during transmit time slot number K. The data is still 7-40 DSP56305 User’s Manual MOTOROLA...
RDF flag is set. Changing the bits in the RSM affects the next frame transmission. The frame currently being received is not affected by the new RSM value. If the RSM is read, it shows the current value. MOTOROLA DSP56305 User’s Manual 7-41...
DMA accesses to the data registers of the ESSI are not valid and data read is undefined. To ensure proper operation of the ESSI, use an ESSI individual reset when changing the ESSI Control Registers (except for bits TEIE, REIE, TLIE, RLIE, TIE, RIE, TE2, TE1, TE0, and RE). 7-42 DSP56305 User’s Manual MOTOROLA...
Page 301
(either internally or externally generated) only when the Receive Enable (RE) bit is set. • Data will be transmitted after the occurrence of a frame sync signal (either internally or externally generated) only when the Transmitter Enable (TE[2:0]) bit is set. MOTOROLA DSP56305 User’s Manual 7-43...
This exception sets the TUE bit. The TUE bit is cleared by first reading the SSISR and then writing to all the Transmit Data Registers of the enabled transmitters, or by writing to the TSR to clear the pending interrupt. 7-44 DSP56305 User’s Manual MOTOROLA...
Write data to all enabled transmit registers. TX00 c. Enable peripheral interrupt-generating function. CRB(TE0) d. Enable specific peripheral interrupt. CRB0(TIE) e. Enable peripheral and associated signals. PCRC(PC5:0) f. Unmask interrupts at global level. SR(I1:0) MOTOROLA DSP56305 User’s Manual 7-45...
Page 304
(the event will not be queued in this case). 5. If interrupts derived from the core or other peripherals need to be enabled at the same time as ESSI interrupts, step 2f should be done last. 7-46 DSP56305 User’s Manual MOTOROLA...
24 ESSI clock periods (“bit times”). An edge on the receive or transmit frame sync signal (rising or falling edge, but never both) indicates the beginning of a new data frame. MOTOROLA DSP56305 User’s Manual 7-47...
Page 306
Various solutions are possible, such as multiple DMA channels, software counters, or input/output buffers with a known data interleaving scheme. Details on programming the ESSI in network mode are given in subsequent sections. 7-48 DSP56305 User’s Manual MOTOROLA...
The ESSI receive timing may be independent of the transmit timing. In the Normal and Network modes, the receive channel may be asynchronous with respect to the transmit channel(s); i.e., the receive clock rate may not match the transmit clock rate. As a result, MOTOROLA DSP56305 User’s Manual 7-49...
• If the FSL1 bit is cleared, the RX frame sync is asserted during the entire data transfer period. This frame sync length is compatible with Motorola codecs, serial peripherals that conform to the Motorola SPI, serial A/D and D/A converters, shift registers, and telecommunication Pulse Code Modulation (PCM) serial I/O.
Transmit Shift Register MSB first. • If the SHFD bit is set, data is shifted into the Receive Shift Register LSB first and shifted out of the Transmit Shift Register LSB first. MOTOROLA DSP56305 User’s Manual 7-51...
The OF[1:0] values can be set directly by software. This allows the DSP56305 to control data transmission by indirectly controlling the value of the SC[1:0] flags.
0 = GPIO, 1 = ESSI PCRC: ESSI0, X:$FFFFBF STDn SRDn SCKn SCKn2 SCKn1 SCKn0 PCRD: ESSI1, X:$FFFFAF Reserved Bit, Read As Zero, Should Be Written With Zero For Future Compatibility AA0688 Figure 7-23 Port Control Register (PCR) MOTOROLA DSP56305 User’s Manual 7-53...
The following table describes the port signal configurations. Table 7-5 Port Control Register and Port Direction Register Bits Functionality PC[i] PDC[i] Port Signal[i] Function ESSI GPIO input GPIO output Note: X: The signal setting is irrelevant to Port Signal[i] function. 7-54 DSP56305 User’s Manual MOTOROLA...
Reserved Bit, Read As Zero, Should Be Written With Zero For Future Compatibility AA0690 Figure 7-25 Port Data Register (PDR) Note: Either a hardware reset signal or a software reset instruction clear all PDR bits. MOTOROLA DSP56305 User’s Manual 7-55...
Page 314
Enhanced Synchronous Serial Interface (ESSI) GPIO/ESSI Selection and GPIO Usage 7-56 DSP56305 User’s Manual MOTOROLA...
80 MHz clock). The asynchronous protocols supported by the SCI include a Multidrop mode for master/slave operation with Wakeup On Idle Line and Wakeup On Address Bit capability. This mode allows the DSP56305 to share a single serial line efficiently with other peripherals.
TXD, since the clock does not need to be transmitted in the Asynchronous mode. Because SCLK is independent of SCI data I/O, there is no connection between programming the PE2 signal as SCLK and data coming out the TXD signal. DSP56305 User’s Manual MOTOROLA...
– SCI Transmit Data Registers (STX) in Figure 8-8 – SCI Transmit Data Address Register (STXA) in Figure 8-8 The SCI also contains GPIO functionality, as described in Section 8.5. The following paragraphs describe each bit in the programming model. MOTOROLA DSP56305 User’s Manual...
Figure 8-1 SCI Control Register (SCR) IDLE RDRF TDRE TRNE AA0855 Figure 8-2 SCI Status Register (SSR) CD11 CD10 Reserved bit - read as 0 should be written with 0 for future compatibility AA0856 Figure 8-3 SCI Clock Control Register (SCCR) DSP56305 User’s Manual MOTOROLA...
0 = Data Byte 2. D0 = LSB; D7 = MSB 3. Data is transmitted and received LSB first if SSFTD = 0, or MSB first if SSFTD = 1 AA0691a Figure 8-4 SCI Data Word Formats (SSFTD=0) MOTOROLA DSP56305 User’s Manual...
0 = Data Byte 2. D0 = LSB; D7 = MSB 3. Data is transmitted and received LSB first if SSFTD = 0, or MSB first if SSFTD = 1 AA0691b Figure 8-5 SCI Data Word Formats (SSFTD=1) DSP56305 User’s Manual MOTOROLA...
The Synchronous data mode is essentially a high-speed shift register used for I/O expansion and stream-mode channel interfaces. Data synchronization is accomplished by the use of a gated transmit and receive clock that is compatible with the Intel 8051 serial interface mode 0. MOTOROLA DSP56305 User’s Manual...
If RE is cleared while a character is being received, the reception of the character is completed before the receiver is disabled. RE does not inhibit RDRF or receive interrupts. RE is cleared by hardware and software reset. MOTOROLA DSP56305 User’s Manual 8-11...
The results are as follows: 1. The IDLE bit shows the real status of the receive line at all times. 2. An idle interrupt is generated once for each idle state, no matter how long the idle state lasts. 8-12 DSP56305 User’s Manual MOTOROLA...
This bit is cleared by hardware and software reset. To ensure proper operation of the timer, STIR must not be changed during timer operation (i.e., if TMIE = 1). MOTOROLA DSP56305 User’s Manual 8-13...
The TDRE flag bit is set when the SCI Transmit Data Register is empty. When TDRE is set, new data can be written to one of the SCI Transmit Data Registers (STX) or the Transmit Data Address Register (STXA). TDRE is cleared when the SCI Transmit Data 8-14 DSP56305 User’s Manual MOTOROLA...
OR is cleared when the SCI status Register (SSR) is read, followed by a read of SRX. The OR bit clears the FE and PE bits—that is, overrun error has higher priority than FE or PE. OR is cleared by the hardware, software, SCI individual, and stop resets. MOTOROLA DSP56305 User’s Manual 8-15...
R8 is set for addresses and is cleared for data. R8 is not affected by reading the SRX or SSR. The hardware, software, SCI individual, and stop resets clear R8. 8-16 DSP56305 User’s Manual MOTOROLA...
SCI peripheral block is the oscillator frequency divided by 4. With an 80 MHz DSP56305 processor, this gives a maximum data rate of 1.25 Mbps for asynchronous data and 10.0 Mbps for synchronous data. These maximum rates are the same for internally or externally supplied clocks.
The SCP bit selects a divide by 1 (SCP is cleared) or divide by 8 (SCP is set) prescaler for the clock divider. The output of the prescaler is further divided by 2 to form the SCI clock. Hardware and software reset clear SCP. 8-18 DSP56305 User’s Manual MOTOROLA...
SCI Transmit Data Address Register (Write Only) STXA Note: 1. Bytes are masked on the fly. 2. STX is the same register decoded at four different addresses. (b) Transmit Data Register AA0694 Figure 8-8 SCI Programming Model - Data Registers 8-20 DSP56305 User’s Manual MOTOROLA...
(the address bit) be set. When STXA is written, the data from the low byte on the data bus is stored in it. The address data bit is cleared in the 11-bit Asynchronous Multidrop mode when any of MOTOROLA DSP56305 User’s Manual 8-21...
Page 336
If the user reads any of those status bits within the next two cycles, the bit will not reflect its current status. See the DSP56300 Family Manual, Appendix B, “Polling a Peripheral Device for Write,” for further details. 8-22 DSP56305 User’s Manual MOTOROLA...
• 11-bit Multidrop Asynchronous (1 start, 8 data, 1 data type, 1 stop) This mode is used for master/slave operation with Wakeup On Idle Line and Wakeup On Address Bit capability. It allows the DSP56305 to share a single serial line efficiently with other peripherals.
Executing the STOP instruction halts operation of the SCI until the DSP is restarted, causing the SSR to be reset. No other SCI registers are affected by the STOP instruction. Table 8-3 illustrates how each type of reset affects each register in the SCI. 8-24 DSP56305 User’s Manual MOTOROLA...
Page 340
IR—Individual reset is caused by clearing PCRE (bits 0–2) (configured for ST—Stop reset is caused by executing the STOP instruction. 1—The bit is set during this reset. 0—The bit is cleared during this reset. — — The bit is not changed during this reset 8-26 DSP56305 User’s Manual MOTOROLA...
The SCI transmit request is serviced by a DMA channel if it is programmed to service the SCI transmitter. 5. Enable the transmitters (TE = 1) and receiver (RE = 1), according to usage. MOTOROLA DSP56305 User’s Manual 8-27...
3. Data for transmission available (TDRE is cleared.) After the current character transmission, if two or more of these commands are set, the transmitter executes them in the following order: 1. Preamble 2. Break 3. Data Available 8-28 DSP56305 User’s Manual MOTOROLA...
PC[2:0] bits controls the functionality of the corresponding port signal. When a PC[i] bit is set, the corresponding port signal is configured as a SCI signal. When a PC[i] bit is cleared, the corresponding port signal is configured as a GPIO signal. MOTOROLA DSP56305 User’s Manual 8-29...
Direction Control Bits: 1 = Output 0 = Input Reserved Bit, Read as 0, Should be Written with 0 for Future Compatibility AA0696 Figure 8-10 Port E Direction Register (PRRE) Note: Hardware and software reset clear all PRRE bits. 8-30 DSP56305 User’s Manual MOTOROLA...
GPIO output, then the value of the corresponding PD[i] bit is reflected on this signal. Data Value Bits Reserved Bit, Read as 0, Should be Written with 0 for Future Compatibility AA0697 Figure 8-11 Port E Data Register (PDRE) Note: Hardware and software reset clear all PDRE bits. MOTOROLA DSP56305 User’s Manual 8-31...
Page 346
Serial Communication Interface (SCI) GPIO Signals and Registers 8-32 DSP56305 User’s Manual MOTOROLA...
Timer/Event Counter Introduction to the Timer/Event Counter INTRODUCTION TO THE TIMER/EVENT COUNTER This section describes the internal Timer/Event Counter module (TEC) in the DSP56305. The TEC comprises: • a 21-bit prescaler counter • a 24-bit Timer Prescaler Load Register (TPLR) •...
Timer/Event Counter Programming Model The programming model for the TEC consists of the 21-bit prescaler counter, the 24-bit Timer Prescaler Load Register (TPLR), and the 24-bit Timer Prescaler Count Register (TPCR). Figure 9-3 shows the TEC programming model. DSP56305 User’s Manual MOTOROLA...
If the prescaler source clock is external, the prescaler counter is incremented by signal transitions on the TIO signal. The external clock is internally synchronized to the internal clock. The external clock frequency must be less than the DSP56305 internal operating frequency divided by 4 (CLK/4).
These reserved bits are read as 0 and should be written with 0 for future compatibility. TIMER ARCHITECTURE The DSP56305 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.
Page 354
TIOn becomes the timer pulse. Timer modes are controlled by the TC[3:0] bits of the Timer Control/Status Register (TCSR). For a listing of the timer modes, see Section 9.4. For a description of their operation, see Section 9.4.1. DSP56305 User’s Manual MOTOROLA...
Control and Status Register (TCSR), a 24-bit write-only Timer Load Register (TLR), a 24-bit read/write Timer Compare Register (TCPR), and a 24-bit read-only Timer Count Register (TCR). The timers are functionally identical. Figure 9-6 shows the timer programming model. MOTOROLA DSP56305 User’s Manual...
Figure 9-6 Timer Programming Model 9.3.3 Timer Control/Status Register (TCSR) The Timer Control/Status Register (TCSR) is a 24-bit read/write register controlling the timer and reflecting its status. The control and status bits are described below. 9-10 DSP56305 User’s Manual MOTOROLA...
The TC bits are cleared by a hardware RESET signal or a software RESET instruction. If the clock is external, the counter is incremented by the transitions on the Note: TIO signal. The DSP56305 synchronizes the external clock to the internal clock. MOTOROLA DSP56305 User’s Manual...
Output Internal Watchdog Toggle Output Internal Reserved — — Reserved — — Reserved — — Reserved — — Reserved — — Note: The GPIO function is enabled only if the TC[3:0] bits are all 0. 9-12 DSP56305 User’s Manual MOTOROLA...
Width of the low — — input pulse is input pulse is measured. measured. Period is Period is — — measured measured between the between the rising edges of falling edges of the input signal. the input signal. MOTOROLA DSP56305 User’s Manual 9-13...
• In Timer (0–3) and Watchdog (9–10) modes, the counter is reloaded each time after it reaches the value contained by the TCPR. Initially, the counter is preloaded with the TLR value after the TE bit is set and the first internal or external clock signal is received. 9-14 DSP56305 User’s Manual MOTOROLA...
DO bit is written directly to the TIO signal. When GPIO mode is disabled, writing the DO bit has no effect. The DO bit is cleared by a hardware RESET signal or a software RESET instruction. MOTOROLA DSP56305 User’s Manual 9-15...
0 to the other flag. 9.3.3.13 Reserved Bits — TCSR Bits 3, 10, 14, 16-19, 22, 23 These reserved bits are read as 0 and should be written with 0 for future compatibility. 9-16 DSP56305 User’s Manual MOTOROLA...
(when the TE bit (TCSR Bit 0) is cleared). To enable the timer, set the TE bit. If the TE bit is cleared, the TIO (timer) signal acts as a GPIO signal. 9-18 DSP56305 User’s Manual MOTOROLA...
TOF bit (TCSR Bit 20) is set; if the TOIE bit (TCSR Bit 1) is set, an overflow interrupt is generated and the counter is reloaded with the TLR value. The counter contents can be read at any time by reading the TCR. MOTOROLA DSP56305 User’s Manual 9-19...
The TIO bit polarity is dependent on the INV bit value. When TE is set, the TIO signal output value is put equal to the INV bit value to guarantee the first signal transition is correct. 9-20 DSP56305 User’s Manual MOTOROLA...
The TIO bit polarity is dependent on the INV bit value. When TE is set, the TIO signal output value is put equal to the INV bit value to guarantee the first signal transition is correct. MOTOROLA DSP56305 User’s Manual 9-21...
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 DSP56305 internal operating frequency divided by four (i.e., CLK/4).
(as determined by the INV bit) occurs on the TIO input signal, the counter is loaded with the TLR value on the first timer clock signal received either from the DSP56305 clock divided by two (CLK/2) or from the prescaler clock input. Each subsequent clock signal increments the counter.
TIO input signal, the counter is loaded with the TLR value on the first timer clock signal received from either the DSP56305 clock divided by two (CLK/2), or the prescaler clock output. Each subsequent clock signal increments the counter.
TLR. When the first timer clock signal is received, the counter is loaded with the TLR value. The timer clock signal can be taken from either the DSP56305 clock divided by two (CLK/2) or from the prescaler clock output. Each subsequent clock signal increments the counter.
Set the TE bit to clear the counter and enable the timer. When first timer clock is received from either the DSP56305 internal clock divided by two (CLK/2) or the prescaler clock output, the counter is loaded with the TLR value. Each subsequent timer clock increments the counter.
TCPR. The counter is loaded with the TLR value on the first timer clock received from either the DSP56305 internal clock divided by two (CLK/2) or the prescaler clock output. Each subsequent timer clock increments the counter.
TCPR. The counter is loaded with the TLR value on the first timer clock received from either the DSP56305 internal clock divided by two (CLK/2) or the prescaler clock output. Each subsequent timer clock increments the counter. The TIO signal is set to the value of the INV bit.
9.4.6.1 Timer Behavior during Wait Timer clocks are active during the execution of the WAIT instruction, and timer activity is undisturbed. If a timer interrupt is generated, the DSP56305 leaves the Wait state and services the interrupt. 9.4.6.2 Timer Behavior during Stop During the execution of the STOP instruction, the timer clocks are disabled, timer activity is stopped, and the TIO signals are disconnected.
The JTAG signals TCK, TDI, and TDO are used to shift data and instructions in and out. See JTAG Signals on page 11-5 for the description of the JTAG signals. To facilitate emulation-specific functions, one additional signal, called DE, is provided on the DSP56305. MOTOROLA DSP56305 User’s Manual 10-3...
Figure 10-2 OnCE Module Multiprocessor Configuration The user can stop all the devices in the system when one of the devices enters the Debug mode. The user can also stop all the devices synchronously by asserting the DE line. 10-4 DSP56305 User’s Manual MOTOROLA...
TDI signal. It holds the 8-bit commands to be used as input for the OnCE Decoder. The OCR is shown in Figure 10-4. OnCE Command Register RS4 RS3 RS2 RS1 RS0 Reset = $00 Write Only AA0106 Figure 10-4 OnCE Command Register MOTOROLA DSP56305 User’s Manual 10-5...
The R/W bit specifies the direction of data transfer. Table 10-3 R/W Bit Definition Action Write the data associated with the command into the register specified by RS4–RS0. Read the data contained in the register specified by RS4–RS0. 10-6 DSP56305 User’s Manual MOTOROLA...
10.4.3.2 Interrupt Mode Enable (IME) Bit 1 The Interrupt Mode Enable (IME) control bit, when set, causes the chip to execute a vectored interrupt to the address VBA:$06 instead of entering the Debug mode. 10-8 DSP56305 User’s Manual MOTOROLA...
OSCR. See Table 10-5 for the definition of the OS0–OS1 bits. Table 10-5 Core Status Bits Description Description DSP56300 core is executing instructions DSP56300 core is in Wait or Stop DSP56300 core is waiting for bus DSP56300 core is in Debug mode MOTOROLA DSP56305 User’s Manual 10-9...
OMLR1 must be loaded by the external command controller. 10.5.5 OnCE Memory Address Comparator 1 (OMAC1) The OnCE Memory Address Comparator 1 (OMAC1) compares the current memory address (stored in OMAL0) with the OMLR1 contents. MOTOROLA DSP56305 User’s Manual 10-11...
The Breakpoint 0 Read/Write Select bits (RW00–RW01) define the memory breakpoints 0 to occur when a memory address accesses is performed for read, write or both. See Table 10-7 for the definition of the RW00–RW01 bits. 10-12 DSP56305 User’s Manual MOTOROLA...
See Table 10-9 for the definition of the RW10–RW11 bits. Table 10-9 Breakpoint 1 Read/Write Select Table RW11 RW10 Description Breakpoint disabled Breakpoint on write access Breakpoint on read access Breakpoint read or write access MOTOROLA DSP56305 User’s Manual 10-13...
OBCR, the breakpoint counter must be written afterwards. This ensures that the OnCE breakpoint logic is reset and that no previous events can affect the new breakpoint event selected. The breakpoint counter is cleared by hardware reset. 10-14 DSP56305 User’s Manual MOTOROLA...
TME bit is set in the OSCR, and the DSP56300 core exits the Debug mode by executing the appropriate command issued by the external command controller. MOTOROLA DSP56305 User’s Manual 10-15...
Debug mode. After receiving the acknowledge, the external command controller must negate the DE line before sending the first command. This process is the same for any newly fetched instruction, including 10-16 DSP56305 User’s Manual MOTOROLA...
Debug mode. After receiving the acknowledge, the external command controller must negate DE before sending the first command. Note: In this case, the chip completes the execution of the WAIT instruction and halts after the next instruction enters the instruction latch. MOTOROLA DSP56305 User’s Manual 10-17...
Debug mode, a number of on-chip registers store the chip pipeline status. Figure 10-9 shows the block diagram of the Pipeline Information Registers, with the exception of the PAB registers, which are shown in Figure 10-10 on page 10-22. 10-18 DSP56305 User’s Manual MOTOROLA...
Normal mode. Since there is no direct write access to the Instruction Latch, the task of restoring is accomplished by writing to OPDBR with no-GO and no-EX. In this case the data written on PDB is transferred into the Instruction Latch. MOTOROLA DSP56305 User’s Manual 10-19...
PDB. This is the instruction whose fetch was completed before the chip has entered the Debug mode. The OPABDR can only be read through the JTAG port. This register is not affected by the operations performed during the Debug mode. 10-20 DSP56305 User’s Manual MOTOROLA...
‘invalid bit’ (the 25th bit). If a conditional change of flow instruction has a ‘condition false’, the invalid bit is set, thus marking this instruction as not taken. Therefore, it is imperative to read seventeen bits of MOTOROLA DSP56305 User’s Manual 10-21...
The external command controller circuit acts as a JTAG port driver and host computer command interpreter. The controller issues commands based on the host computer inputs from a user interface program that communicates with the user. MOTOROLA DSP56305 User’s Manual 10-23...
1. Select shift-IR. Passing through capture-IR loads the core status bits into the instruction shift register. 2. Shift in ENABLE_ONCE. While shifting-in the new instruction the captured status information is shifted-out. Pass through update-IR. 3. Return to Run-Test/Idle. 10-24 DSP56305 User’s Manual MOTOROLA...
2. Select shift-DR. Shift out the 16-bit OPABFR register. Pass through update-DR. 3. Select shift-DR. Shift in the “Read PABDR”. Pass through update-DR. 4. Select shift-DR. Shift out the 16-bit OPABDR register. Pass through update-DR. 5. Select shift-DR. Shift in the “Read PABEX”. Pass through update-DR. MOTOROLA DSP56305 User’s Manual 10-25...
4. Select shift-DR and shift in “READ GDB REGISTER”. Pass through update-DR (this selects OGDBR as the data register for read). 5. Select shift-DR. Shift out the OGDBR contents. Pass through update-DR. Wait for next command. 10-26 DSP56305 User’s Manual MOTOROLA...
13. Wait for DSP to reenter Debug mode (wait for DE or poll core status). 14. Select shift-DR and shift in “READ GDB REGISTER”. Pass through update-DR (this selects OGDBR as the data register for read). MOTOROLA DSP56305 User’s Manual 10-27...
Therefore, the user must force a “change of flow” to the starting address of the new program ($xxxx). The sequence of actions is: 1. Select shift-DR. Shift in the “Write PDB with no-GO no-EX”. Pass through update-DR. 10-28 DSP56305 User’s Manual MOTOROLA...
After executing the JTAG instructions DEBUG_REQUEST and ENABLE_ONCE and after the core status was polled to verify that the chip is in Debug mode, the pipeline saving procedure must take place. The TMS sequencing for this procedure is depicted in Table 10-12. MOTOROLA DSP56305 User’s Manual 10-29...
Page 406
11, indicating that the chip has entered the Debug mode. If the chip has not yet entered the Debug mode, the external command controller goes to “step b”, “step c” etc. until the Debug mode is acknowledged. 10-30 DSP56305 User’s Manual MOTOROLA...
Table 10-14 TMS Sequencing for Reading Pipeline Registers Step JTAG Port OnCE Module Note Run-Test/Idle Idle Select-DR-Scan Idle Capture-DR Idle Shift-DR Idle The eight bits of the OnCE command “Read PIL” ..............(10001011) are shifted in. Shift-DR Idle Exit1-DR Idle MOTOROLA DSP56305 User’s Manual 10-31...
Page 408
Idle Update-DR Execute “Read PDB” PDB value is loaded in shifter Select-DR-Scan Idle Capture-DR Idle Shift-DR Idle The 24 bits of the PDB are shifted out (24 steps)..............Shift-DR Idle Exit1-DR Idle Update-DR Idle 10-32 DSP56305 User’s Manual MOTOROLA...
Page 409
..........command controller to analyze the information. Run-Test/Idle Idle During “step v” the external command controller stores the pipeline information and afterwards it can proceed with the debug activities as requested by the user. MOTOROLA DSP56305 User’s Manual 10-33...
Page 410
On-Chip Emulation Module Examples of JTAG and OnCE interaction 10-34 DSP56305 User’s Manual MOTOROLA...
DSP56300 core implementation. For internal details and applications of the standard, refer to the IEEE 1149.1 document. Figure 11-1 shows a block diagram of the TAP port. MOTOROLA DSP56305 User’s Manual 11-3...
As described in the IEEE 1149.1 document, the JTAG port requires a minimum of four signals to support TDI, TDO, TCK, and TMS signals. The DSP56300 family also provides the optional TRST signal. On the DSP56305, the Debug Event (DE) signal is provided for use by the OnCE module; it is described in .
TMS signal sampled on the rising edge of TCK signal. For a description of the TAP controller states, please refer to the IEEE 1149.1 document. Test-Logic-Reset Select-IR-Scan Run-Test/Idle Select-DR-Scan Capture-DR Capture-IR Shift-DR Shift-IR Exit1-DR Exit1-IR Pause-IR Pause-DR Exit2-DR Exit2-IR Update-DR Update-IR AA0114 Figure 11-2 TAP Controller State Machine 11-6 DSP56305 User’s Manual MOTOROLA...
All DSP56305 bidirectional signals have a single register bit in the BSR for signal data, and are controlled by an associated control bit in the BSR. The DSP56305 BSR bit definitions are described in Table 11-2.
01 in the Least Significant Bits as required by the standard. The two Most Significant Bits are loaded with the values of the core status bits OS1 and OS0 from the OnCE controller. See , for a description of the Section 10, On-Chip Emulation Module status bits. 11-8 DSP56305 User’s Manual MOTOROLA...
The IDCODE instruction selects the ID register. This instruction is provided as a public instruction to allow the manufacturer, part number, and version of a component to be determined through the TAP. Figure 11-4 shows the ID register configuration. MOTOROLA DSP56305 User’s Manual 11-9...
21:12). The sequence number is divided into two parts: Core Number (bits 21:17) and Chip Derivative Number (bits 16:12). Motorola Semiconductor IsraeL (MSIL) Design Center Number is 000110 and DSP56300 core number is 00001. For the DSP56305, the chip derivative number is 00011.
(acknowledged by the combination 11 on OS1–OS0). After acknowledgment of the Debug mode is received, the external JTAG controller must issue the ENABLE_ONCE instruction to allow the user to perform system debug functions. MOTOROLA DSP56305 User’s Manual 11-11...
After power-up is concluded, TMS must be sampled as a logic 1 for five consecutive TCK rising edges. If TMS either remains unconnected or is connected to , then the TAP controller cannot leave the Test-Logic-Reset state, regardless of the state of TCK. 11-12 DSP56305 User’s Manual MOTOROLA...
V achieve minimal power consumption. Since during Stop mode all DSP56305 core clocks are disabled, the JTAG interface provides the means of polling the device status (sampled in the Capture-IR state).
Page 424
JTAG Port DSP56305 Boundary Scan Register Table 11-2 DSP56305 Boundary Scan Register (BSR) Bit Definitions (Continued) Bit # Pin Name Pin Type BSR Cell Type Input/Output Data Input/Output Data Input/Output Data D[23:13] — Control Input/Output Data Input/Output Data Input/Output Data...
Page 425
JTAG Port DSP56305 Boundary Scan Register Table 11-2 DSP56305 Boundary Scan Register (BSR) Bit Definitions (Continued) Bit # Pin Name Pin Type BSR Cell Type Tri-State Data Tri-State Data Tri-State Data Tri-State Data Tri-State Data Tri-State Data Tri-State Data Tri-State...
Page 426
JTAG Port DSP56305 Boundary Scan Register Table 11-2 DSP56305 Boundary Scan Register (BSR) Bit Definitions (Continued) Bit # Pin Name Pin Type BSR Cell Type Input/Output Data Output Data Input Data BCLK Tri-State Data BCLK Tri-State Data CLKOUT Output Data RD, WR, —...
Page 427
JTAG Port DSP56305 Boundary Scan Register Table 11-2 DSP56305 Boundary Scan Register (BSR) Bit Definitions (Continued) Bit # Pin Name Pin Type BSR Cell Type HAD4 — Control HAD4 Input/Output Data HAD5 — Control HAD5 Input/Output Data HAD6 — Control...
Page 428
JTAG Port DSP56305 Boundary Scan Register Table 11-2 DSP56305 Boundary Scan Register (BSR) Bit Definitions (Continued) Bit # Pin Name Pin Type BSR Cell Type HREQ/TR Input/Output Data HACK/R — Control HACK/R Input/Output Data HRW/RD — Control HRW/RD Input/Output Data HDS/WR —...
Page 429
JTAG Port DSP56305 Boundary Scan Register Table 11-2 DSP56305 Boundary Scan Register (BSR) Bit Definitions (Continued) Bit # Pin Name Pin Type BSR Cell Type STD0 Input/Output Data SRD0 — Control SRD0 Input/Output Data PINIT Input Data — Control Input/Output...
• Special optimized mode (Mode 2) for performing matched filtering required for channel equalization using the Ungerboeck scheme • Internal data and coefficient memory banks supports GSM normal burst, as well as GSM access burst. MOTOROLA DSP56305 User’s Manual 12-3...
Data Input Buffer, Coefficients Input Buffer, Output Buffer, and Filter Counter (FCNT)—, FCOP Data Memory Bank (FDM), FCOP Coefficients Memory Bank (FCM), FCOP MAC machine (FMAC), Address Generator, and Control Logic. The block diagram is presented in Figure 12-1. 12-4 DSP56305 User’s Manual MOTOROLA...
The block generates the interrupt and DMA trigger signals, whenever data transfer is required. The control and status registers in the PMB are described in detail in the programming model (see Section 12.4). The interface registers are accessible to the DSP56300 core through the PMB. MOTOROLA DSP56305 User’s Manual 12-5...
16-bit result from FMAC is stored in the FDOR to be read by the DSP56300 core. 12.4 PROGRAMMING MODEL The programming model discusses the FCOP registers available to the programmer, and interrupts and DMA access. 12-6 DSP56305 User’s Manual MOTOROLA...
DMA requests to trigger the DSP56300 core for data transfers. FDOR can be read by the DSP56300 core and DMA. FDOR is also referred to as the FCOP Data Output Buffer. 12-8 DSP56305 User’s Manual MOTOROLA...
DSP56300 core to control the main operation modes and to monitor the status of the module. The FCSR bits are described in the following paragraphs. All FCSR bits are cleared after hardware and software reset. MOTOROLA DSP56305 User’s Manual 12-9...
FCOP operation in the various modes, refer to Figure 12.5. Table 12-4 FCOP Operation Modes FOM1 FOM0 Mode Mode Function Real FIR Filter Full Complex FIR Filter Complex FIR filter with alternate Pure Real/Imaginary outputs Optimized Complex Correlation 12-10 DSP56305 User’s Manual MOTOROLA...
Input Buffer Empty (FDIBE is set). FDIR should be written either by the interrupt routine or the DMA transfer, but not both, so it is highly recommended to enable either the interrupt or DMA, but not both. MOTOROLA DSP56305 User’s Manual 12-11...
FCOP individual reset. When overflow occurs, the result will be saturated to the most positive number $7FFF. When underflow occurs, the result will be saturated to the most negative number $8000. MOTOROLA DSP56305 User’s Manual 12-12...
These bits are reserved and unused. They read as zeroes and should be written with zero for future compatibility. 12.4.6.10 FCOP Reserved Used Bits—FCSR Bits 2, 6, 7 These bits are reserved for internal testing and debugging. They must be written with zeroes for proper operation. MOTOROLA DSP56305 User’s Manual 12-13...
The following sections describe the operation of FCOP in each mode, either with no decimation or with decimation by two. The description includes: equation of the implemented filter, initialization and processing steps, data and coefficients input scheme, output data scheme. MOTOROLA DSP56305 User’s Manual 12-14...
A good practice is to program the input data DMA channel for single word transfer or line of 2, 3, or 4 word transfer (since the input buffer FIFO depth is 4), triggered by the FDIBE bit in FCSR. MOTOROLA DSP56305 User’s Manual 12-15...
FDM and then performs the FIR calculation on the second input data items only. This is equivalent to performing the full FIR filter but reading only every second FIR result, thus saving half the calculations. MOTOROLA DSP56305 User’s Manual 12-16...
DMA to transfer up to four new data words to FDM via FDIR • Compute F(n) and store result in FDOR • FCOP triggers core or DMA for output data transfer • Get new data word • FCOP increments data memory pointer MOTOROLA DSP56305 User’s Manual 12-17...
D(4) H(4) Bank Bank Output Data D(5) H(3) (FDM) (FCM) Stream — — F(0) — F(1) F(2) F(3) F(4) F(5) — — AA1122 Figure 12-3 Input and Output Stream for Real FIR Filter without Decimation MOTOROLA DSP56305 User’s Manual 12-18...
• Compute F(n) and store result in FDOR • FCOP triggers core or DMA for output data transfer • Get new data word • FCOP increments data memory pointer • Get new data word • FCOP increments data memory pointer MOTOROLA DSP56305 User’s Manual 12-19...
Bank Bank Output Data D(5) H(3) (FDM) (FCM) Stream — — F(0) — F(2) F(4) F(6) F(8) F(10) — — AA1123 Figure 12-4 Input and Output Stream for Real FIR Filter with Decimation by 2 MOTOROLA DSP56305 User’s Manual 12-20...
• Compute F(n) and store result in FDOR • FCOP triggers core or DMA for output data transfer • Get new data word • FCOP increments data memory pointer • Get new data word • FCOP increments data memory pointer MOTOROLA DSP56305 User’s Manual 12-21...
• Compute FI(n) and store result in FDOR • FCOP triggers core or DMA for output data transfer • Get new data word (DR) • FCOP increments data memory pointer • Get new data word (DI) • FCOP increments data memory pointer MOTOROLA DSP56305 User’s Manual 12-23...
HR(6) Bank Bank Output Data DI(2) HI(6) (FDM) (FCM) Stream — — FR(0) — FI(0) FR(1) FI(1) FR(2) FI(2) — — AA1125 Figure 12-6 Input and Output Stream for Full Complex FIR Filter without Decimation MOTOROLA DSP56305 User’s Manual 12-24...
• Compute FI(n) and store result in FDOR • FCOP triggers core or DMA for output data transfer • Get new data word (DR) • FCOP increments data memory pointer • Get new data word (DI) • FCOP increments data memory pointer MOTOROLA DSP56305 User’s Manual 12-25...
• Get new data word (DI) • FCOP increments data memory pointer • Get new data word (DR) • FCOP increments data memory pointer • Get new data word (DI) • FCOP increments data memory pointer MOTOROLA DSP56305 User’s Manual 12-27...
FCOP (FEN = 1) • Core initializes coefficients in FCM in reverse order by executing Initialization #filter_count writes to FCIR • Core or DMA initializes data in FDM in direct order by executing #filter_count writes to FDIR MOTOROLA DSP56305 User’s Manual 12-29...
(FDM) (FCM) Stream — — FR(0) — FI(1) FR(2) FI(3) FR(4) FI(5) — — AA1128 Figure 12-9 Input and Output Stream for Complex FIR Filter Generating Pure Real or Pure Imaginary Outputs Alternately without Decimation MOTOROLA DSP56305 User’s Manual 12-30...
FR n – , , , 0 4 8 etc – ∑ HR i ( ) DI n i – ⋅ HI i ( ) DR n i – ⋅ FI n 2 6 10 etc MOTOROLA DSP56305 User’s Manual 12-31...
Page 462
• Get new data word (DI) • FCOP increments data memory pointer • Get new data word (DR) • FCOP increments data memory pointer • Get new data word (DI) • FCOP increments data memory pointer 12-32 DSP56305 User’s Manual MOTOROLA...
Stream — — FR(0) — FI(2) FR(4) FI(6) FR(8) FI(10) — — AA1129 Figure 12-10 Input and Output Stream for Complex FIR Filter Generating Pure Real and Pure Imaginary Outputs Alternately with Decimation by 2 MOTOROLA DSP56305 User’s Manual 12-33...
Decimation The received training sequence is complex (one pair of I&Q samples per bit). The midamble sequence consists of alternate pure real/pure imaginary values (one pure complex value per bit). Refer to the following table: 12-34 DSP56305 User’s Manual MOTOROLA...
Bank Bank Output Data DI(2) HI(5) (FDM) (FCM) Stream — — FR(0) — FI(0) FR(1) FI(1) FR(2) FI(2) — — AA1130 Figure 12-11 Input and Output Stream for Complex Correlation of Non-Oversampled Data without Decimation 12-36 DSP56305 User’s Manual MOTOROLA...
When n is even, the filter outputs are independent of the odd input samples, and when n is odd, the filter outputs are independent of the even input samples. As a result, even and odd outputs can be calculated separately, requiring half of the data memory bank size. MOTOROLA DSP56305 User’s Manual 12-37...
Page 468
• Compute FI(n) and store result in FDOR. • FCOP triggers core or DMA for output data transfer. • Get new data word (DR). • FCOP increments data memory pointer. • Get new data word (DI). • FCOP increments data memory pointer. 12-38 DSP56305 User’s Manual MOTOROLA...
9 x 2 1474 38.5 µs Normal Correlation 26 x 2 52 x 2 3078 11.6 µs Access Match Filter 36 x 2 9 x 2 91.5 µs Access Correlation 41 x 2 82 x 2 7308 12-40 DSP56305 User’s Manual MOTOROLA...
Figure 13-1 Block Diagram of a Typical Data Communication System The blocks using the VCOP (framed in bold, above) are convolutional encoding, convolutional decoding, and channel equalization. The next section gives an example of using the Viterbi algorithm for channel equalization. MOTOROLA DSP56305 User’s Manual 13-3...
3. Koch, Wolfgang, and Baier, Alfred 1990. “Optimum and Sub-optimum Detection of Coded Data Disturbed by Time-varying Intersymbol Interference,” in Communications: Connecting the Future, vol. 3:1679–1684. Global Telecommunications Conference and Exhibition, San Diego, Dec. 2–5, 1990. (IEEE catalog number 90CH2827–4). MOTOROLA DSP56305 User’s Manual 13-5...
For every ACS butterfly there are two associated VP values. When performing equalization, the calculation is based on demodulated symbol data which is the output of a Matched Filter (MF). The MF value is stored in the VDR as a 16-bit value. MOTOROLA DSP56305 User’s Manual 13-7...
The BER value is true only if the data was successfully decoded, so the decoding should be checked using CRC. Soft Symbol Viterbi Encoder Algorithm Hard Symbol Delay BER Count AA1315 Figure 13-5 Bit Error Count Function MOTOROLA DSP56305 User’s Manual 13-9...
The equalizer should be supplied with the Viterbi parameters (VP) - the state transition metrics for the equalization scheme, based on the linear combination of the channel impulse response coefficients. 13-10 DSP56305 User’s Manual MOTOROLA...
In this stage, there are no more MF inputs and only the remaining bits in the trellis memory are left to process. The trellis path is selected according to the Flush Control mode (ending state or best metric), and the remaining bits are shifted out. MOTOROLA DSP56305 User’s Manual 13-11...
The Manhattan metric system is used. The decoder provides the Bit Error count (BER), the number of bits corrected by the decoder. The BER is available to the DSP56300 core as the contents of the (read-only) VBER. 13-12 DSP56305 User’s Manual MOTOROLA...
The survivor is found by the ACS block and a decoded bit is delivered from the Trellis block to the output buffer. The decoded data is re-encoded by the BER block to be compared with the original input symbol. MOTOROLA DSP56305 User’s Manual 13-13...
DECEN or EQEN and setting the FLEN bit in VCRA. In this case the VCOP will suspend the current processing and start the flush operation as described above. 13-14 DSP56305 User’s Manual MOTOROLA...
That is. the registers are read zero padded ($00DDDD) and written with the eight MSBs ignored ($XXDDDD). When writing the control registers from a 24-bit resource, the 8 MSBs must be written with 0 for future compatibility. 13-16 DSP56305 User’s Manual MOTOROLA...
In decoding, the VDOR holds the decoded bit in the same hard value format ($800000 for ‘1’ or $7FFF00 for ‘0’) and should be written with 16-bit words of packed decoded bits. In equalization, the VDOR holds a hard value. Consecutive single cycle reads of VDOR are not allowed. MOTOROLA DSP56305 User’s Manual 13-17...
RAMs. The VBER contains the address of the memory access while VMEM contains the data. This mode is used when setting the SP and VP values for channel equalization. After setting these parameters, the MAEN bit must be cleared by the DSP56300 core. 13-18 DSP56305 User’s Manual MOTOROLA...
Trellis RAM. The path to be flushed is defined by the VTSR register. At the end of the flush operation the FLEN bit is cleared by the internal logic. MOTOROLA DSP56305 User’s Manual 13-19...
The bit settings defining constraint length and number of trellis states are given in Table 13-3. Table 13-3 Trellis States CNST[1:0] Number of trellis states Constraint length 13.5.3.9 VCRA Reserved—VCRA Bits 6–7, 10–11, 14–15 These bits are reserved and should be written with zero. 13-20 DSP56305 User’s Manual MOTOROLA...
When CME is set, the VCNT contents are ignored and the VCOP operates continuously upon receiving new data words. When CME is set, the flush operation does not take place as part of the decoding and equalization process, and bits ENCEN, MOTOROLA DSP56305 User’s Manual 13-21...
Data Mode (HD[0])—VCRB Bits 4–5 The Data Mode bit (HD[0]) defines whether hard decision data bits are available for performing channel equalization. In the current revision of the DSP56305, only hard decision data bits are available. Table 13-5 Data Modes...
(MAEN, DECEN, ENCEN, EQEN, and FLEN) is set. When OPC and OCIE are set, an interrupt request is generated and OPC is cleared upon servicing that interrupt request. This bit is disabled when CME (VCRB Bit 3) is set. MOTOROLA DSP56305 User’s Manual 13-23...
(VDOR) is full, causing processing to stop at the end of the current stage. The DOBF is cleared by reading the VDOR register, thus enabling further processing. 13.5.5.9 Reserved Bits—VSTR Bits 2, 3, 10–15 These bits are reserved and should be written with zero. 13-24 DSP56305 User’s Manual MOTOROLA...
Tap Vector C (TAPC[4:0])—VTPA Bits 14–10 The Tap Vector C (TAPC[4:0]) bits contain the vector 2 taps (G ), excluding its MSB and LSB. 13.5.7.4 Reserved Bit—VTPA Bit 15 This bit is reserved and should be written with zero. MOTOROLA DSP56305 User’s Manual 13-25...
Tap Vector F (TAPF[4:0])—VTPB Bits 14–10 The Tap Vector F (TAPF[4:0]) bits contain the vector 5 taps (G ), excluding its MSB and LSB. 13.5.8.4 Reserved Bit—VTPB Bit 15 This bit is reserved and should be written with zero. 13-26 DSP56305 User’s Manual MOTOROLA...
BER value is the number of symbol-bits corrected so far by the decoding process. The register value is valid at the end of decoding. In Memory Access mode, the VBER is a read/write address register/counter for accessing memory modules of the VCOP. Bits 7–6 select the accessed RAM module MOTOROLA DSP56305 User’s Manual 13-27...
The WED function is operational for block sizes of up to 256 decoded bits, that is, ≤ if VCNT 256. WLEN7 WLEN6 WLEN5 WLEN4 WLEN3 WLEN2 WLEN1 WLEN0 WSTR7 WSTR6 WSTR5 WSTR4 WSTR3 WSTR2 WSTR1 WSTR0 AA1324 Figure 13-15 Viterbi WED Setup Register (VWES) 13-28 DSP56305 User’s Manual MOTOROLA...
VBER, see Table 13-7 on page 30. WED accuracy, (as given in the VWED register), is plus or minus one of the correct minimal difference decision along the surviving path. MOTOROLA DSP56305 User’s Manual 13-29...
VITERBI CO-PROCESSOR Chip Description 13.6 CHIP DESCRIPTION This section describes the memory, interrupts, DMA source, and soft decision formats of the VCOP of the DSP56305. 13.6.1 Memory description Table 13-7 Memory modules usage and access Operation Modes Using the Module...
Symbol-Bit, Soft Value VDOR DOIE DRDY Hard Decoded Value Encoding DIIE DREQ Hard Input to Encoder VDOR DOIE DRDY Symbol-Bit Output Note: A sequential write of all symbol-bits to VDR-FIFO is required for each request. MOTOROLA DSP56305 User’s Manual 13-31...
L-metric table in the VP RAM. For a 64-state trellis (constraint length equals 7), the VP values for each state are calculated in an analogous way making use of S parameters S to S MOTOROLA DSP56305 User’s Manual 13-33...
The VCOP processing time for other codes can be estimated using the following equations, where values are as shown in Table 13-12 : Table 13-12 Variables for Calculating Processing Time Symbol Number Meaning Trellis_States Bits_to_Process 13-34 DSP56305 User’s Manual MOTOROLA...
Page 505
The equations for processing time are derived from the following: • Total processing time (T TotalProcess × Bits_to_Process TotalProcess stage flush readbuff • Time to perform one stage (T stage × --------- - Trellis_States stage MOTOROLA DSP56305 User’s Manual 13-35...
Page 506
This equation has not been verified, and may be inaccurate. Note: – In decoding, the time for BER calculation time at flush is: × 576T flush • Time required for reading data out of the VCOP (T readbuff × Bits_Left_in_Buffer readbuff 13-36 DSP56305 User’s Manual MOTOROLA...
; Memory access to initialize the SP memory (not necessary) ;************************************ movep #$0040,y:M_VBER ; SP memory address rep #7 movep x:(r4)+,y:M_VMEM ; Load SP ;************************************ ; Example of memory access to read the VP memory in VCOP (not necessary) ;************************************ MOTOROLA DSP56305 User’s Manual 13-45...
Page 516
; wait till OPC ;************************************ ; Process Second Half of Normal Burst ;************************************ ; Initialize input DMA channel movep #$200,x:M_DSR0 ; source address movep #M_VDR,x:M_DDR0 ; destination address movep #60,x:M_DCO0 ; 61 bits (61 transfers) 13-46 DSP56305 User’s Manual MOTOROLA...
Page 517
$f33100 dc $f47f00 dc $fad600 dc $135700 dc $fc4800 dc $f30000 dc $076800 dc $0be400 dc $03db00 dc $115000 dc $062b00 dc $f2ed00 dc $052600 dc $f40f00 dc $071500 dc $0a8400 dc $ee7300 dc $0ac800 MOTOROLA DSP56305 User’s Manual 13-47...
Page 518
$ffca00 dc $003500 dc $003500 dc $ffca00 dc $ffca00 dc $003500 dc $003500 org x:$200 ; Second half Input data (output of Match Filter) dc $f73200 dc $edfc00 dc $f0b200 dc $063500 dc $f57a00 13-48 DSP56305 User’s Manual MOTOROLA...
Page 519
$049100 dc $05fc00 dc $150c00 dc $efcd00 dc $05f000 dc $013700 dc $f87400 dc $0c1e00 dc $f0f500 dc $f1a700 dc $f51e00 dc $f50a00 dc $f3c700 dc $0b5300 dc $f7b300 dc $0c8d00 dc $f87c00 dc $09c800 MOTOROLA DSP56305 User’s Manual 13-49...
Page 520
VITERBI CO-PROCESSOR Programming Examples dc $05d900 dc $000000 dc $000000 13-50 DSP56305 User’s Manual MOTOROLA...
3. Koch, Wolfgang, and Baier, Alfred 1990. “Optimum and Sub-optimum Detection of Coded Data Disturbed by Time-varying Intersymbol Interference,” in Communications: Connecting the Future, vol. 3:1679–1684. Global Telecommunications Conference and Exhibition, San Diego, Dec. 2–5, 1990. (IEEE catalog number 90CH2827–4). MOTOROLA DSP56305 User’s Manual 13-51...
48 • Generates Cyclic Redundancy Code (CRC) syndrome using any generator polynomial of any degree up to 48 • Provides a 5 × 24-bit word input/output FIFO accessible via core or DMA MOTOROLA DSP56305 User’s Manual 14-3...
Step Run Counter Function Table Output Counter Control AA1300 Figure 14-1 CCOP Block Diagram 14.3.1 Cipher Mode Register Configuration Figure 14-2 shows how the control register contents relate to CFSR configuration in the Cipher modes. 14-4 DSP56305 User’s Manual MOTOROLA...
The registers are discussed in the following sections by functional block: • Input/Output – CCOP Data FIFO Register (CDFR) • Count Register – CCOP Count Register (CCNT) • Step Function – CCOP Step Function Select Register (CSFS), – CCOP Step Function Table A (CSFTA), 14-6 DSP56305 User’s Manual MOTOROLA...
CCOP Control Status Register CCSR CCOP Linear FeedBack Shift Register A CFSRA CCOP FeedBack Tap Register A CFBTA CCOP FeedForward Tap Register A CFFTA CCOP Bit Select Register A CBSRA CCOP Mask Register A CMSKA MOTOROLA DSP56305 User’s Manual 14-7...
Data is clocked from the CDFR into the any or all of the CFSRs under the control of the Input Counter of the CCNT (IC[7:0], CCNT bits 0–7). They are shifted in Least Significant Bit (LSB) first. 14-8 DSP56305 User’s Manual MOTOROLA...
CFSRs are to be shifted for the run phase, without any new data being input (i.e. the data in the CFSRs will be modified only by the action of the feedback taps MOTOROLA DSP56305 User’s Manual 14-9...
The Step Function Select Register (CSFS) is a 24-bit read/write register used to select three bits from anywhere in the CFSRs. These bits form the address to the 8 × 4-bit Step Function Table. The register is composed of three bit-sized subregisters (lettered A, B, 14-10 DSP56305 User’s Manual MOTOROLA...
SBB[4:0]) is connected to the second (middle byte) address line of the Step Function Table. The combination of SBB[4:0] and SRB[1:0] determine which bit of which CFSR is used as the second address line of the Step Function Table. MOTOROLA DSP56305 User’s Manual 14-11...
4-bit words of the Step Function Table. In addition, CSFTB is used to enable the data input into the CFSRs during the input phase (using INE[3:0], CSFTB Bits 19–16), and to enable the data output data from the CFSRs during the output phase (using OUT[3:0], CSFTB Bits 23–20). 14-12 DSP56305 User’s Manual MOTOROLA...
When the INEx bit is cleared, data input to CFSRz is disabled for the input phase. When the INEx bit is set, data input to CFSRz is enabled for the input phase. Table 14-3 lists the bit numbers and their corresponding registers. MOTOROLA DSP56305 User’s Manual 14-13...
CCOP is operating, except for the interrupt enable bits, otherwise improper operation may result. The control bits OPM[1:0] and LRC (which select the CFSR configuration) should only be changed when CCOP is in the CCOP individual 14-14 DSP56305 User’s Manual MOTOROLA...
The Operating Mode bits (OPM[1:0]) are used to determine the CFSR’s mode of operation. The operating modes supported in CCOP are shown in Table . OPM[1:0] should be changed only when CCOP is in CCOP individual reset. MOTOROLA DSP56305 User’s Manual 14-15...
HOZD is set, Parity Coding processing terminates when any of the following are zero in the run phase: • the Run Counter • the bits specified by the Bit Select register CBSRA in Parity Coding Mode using one CFSR (OPM[1:0] = 10) 14-16 DSP56305 User’s Manual MOTOROLA...
14.4.4.10 Parity Coding Done Interrupt Enable bit (PDIE)—CCSR Bit 15 The Parity Coding Done Interrupt Enable bit (PDIE), when set, enables the interrupt caused by terminating the CCOP Parity Coding mode processing (when PCDN, CCSR MOTOROLA DSP56305 User’s Manual 14-17...
CCOP has completed all phases of the processing (i.e Input, Run, and Output phases) and all output data has been transferred to the FIFO. If CIDN and CDIE are set, a Cipher Done interrupt is generated. CIDN is cleared after reading (via CDFR) all the 14-18 DSP56305 User’s Manual MOTOROLA...
(for instance as CFSR) instead of individually (for instance as CFSRA, CFSRB, CFSRC, or CFSRD). In programming these registers, it is necessary to specify which of the register sets are being programmed (A, B, C, or D). MOTOROLA DSP56305 User’s Manual 14-19...
CFSRz drives the feedback line. In the Parity Coding modes, CMSKz should have only one bit set, specifying the CFSR bit from which the feedback line is driven (i.e. the degree of the generator polynomial). 14-20 DSP56305 User’s Manual MOTOROLA...
CPU-time overhead. 14.5.1.2 Step-by-step Cipher Mode When OPM[1:0] equals 01, the CCOP operates in the Step-by-step Cipher mode. In this mode the Cipher processing session halts after each step. This mode of operation enables MOTOROLA DSP56305 User’s Manual 14-21...
CFSR. CFSRB and CFSRA are positioned on the left and right sides respectively, while the LSB of CFSRB drives the MSB of CFSRA. In this mode, cyclic parity codes using generator polynomials of up to 48 14-22 DSP56305 User’s Manual MOTOROLA...
CCOP operates in Parity Mode (OPM1 = 1) and HOZD is set. In this condition the Zero Detect function is enabled on selected bits, and when zero is detected the run phase is terminated and the Run Counter is frozen. It is therefore possible for a run phase to be MOTOROLA DSP56305 User’s Manual 14-23...
PREN and returns to the Idle state after executing one shift. Every shift must then be explicitly activated (by re-setting PREN). Step-by-step mode thus allows the programmer more intervention during Cipher processing than Normal mode. 14-24 DSP56305 User’s Manual MOTOROLA...
After Cipher processing is completed (i.e., CIDN is set), the DSP56300 core should read the output data sequence from the Data FIFO Register (CDFR). CIDN is cleared after all expected data words were read from CDFR. MOTOROLA DSP56305 User’s Manual 14-25...
Table summarizes the operations being conducted at the input and run phases in every (enabled) CFSR during a Parity Coding processing session. Table 14-8 Operations During Parity Coding Processing Input Phase Run Phase Input Data Enabled if INEx in CSFTB set Disabled Shifts Enabled Enabled 14-26 DSP56305 User’s Manual MOTOROLA...
G x ( ) ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ . This circuit is commonly used – for implementing shortened cyclic codes, the kind of code to which Fire codes for burst error correction belong. MOTOROLA DSP56305 User’s Manual 14-27...
Page 550
22 of CFBTB and CFFTB, respectively, and so on. The twenty- fourth coefficients, g , are input into bit 0 (the least significant bit) of CFBTB and CFFTB, respectively. The twenty-fifth coefficients, g and m , are input into bit 23 (the most significant bit) of 14-28 DSP56305 User’s Manual MOTOROLA...
If the number of shifts exceeds 224 without D1 – D28 = 0 detection, data is uncorrectable. This is determined by process termination (PCDN set) while Run Counter equals zero (224 shifts done). The CFSR configuration for GSM Fire decode is shown in Figure 14-11. 14-30 DSP56305 User’s Manual MOTOROLA...
Bootstrap Code BOOTSTRAP CODE FOR THE DSP56305 This is a listing of the default bootstrap code for the DSP56305, which is normally contained in the Bootstrap ROM. The user may modify or replace this with customized code. Contact your Motorola representative for more information.
Page 557
; the status register (HSTR) and confirm that its value is $3. ; Suggested 56301-to-56301 connection: slave master 56301/HI32 56301/PortA HA[10:3] <- A[10:3] ; selects HI32 (base address 00000000) HA[2:0] <- A[2:0] ; selects HTXR registers MOTOROLA DSP56305 User’s Manual...
Page 558
HCTR HTF1-HTF0 bits and then ; correspondingly drive the 24-bit data mapped into 32-bit PCI bus word. ; Note that for the synchronization purposes, the DSP to PCI clock ratio ; should be more then 5/3. DSP56305 User’s Manual MOTOROLA...
Page 559
; 24-bit wide 56301 opcodes in the following format: | H0 | | L0 | | H1 | | L1 | ; The Host Processor must program the Host Interface to operate in the ; zero fill mode (HTF1-HTF0 = 01 in HCTR). MOTOROLA DSP56305 User’s Manual...
Page 560
Host Interface, it is recommended that ; HOST Processor’s boot program will verify that the Host Interface is ; ready, by reading the status register (HSTR) and confirm that TRDY=1 ; or HTRQ=1. DSP56305 User’s Manual MOTOROLA...
Page 561
; MD:MC:MB:MA=110x, load from PCI/ISA HOST jclr #0,omr,UB2HOSTLD ; MD:MC:MB:MA=1110, load double-strob UB Host ; MD:MC:MB:MA=1111, load single-strob UB Host ;======================================================================== ; This is the routine that loads from the Host Interface in UB (UNIVERSAL) mode, MOTOROLA DSP56305 User’s Manual...
Page 562
; MD:MC:MB:MA=1101 - Host ISA ; Using self configuration mode, the base address in CBMA is written with ; $2f which corresponds to an ISA HTXR address of $2fe (Serial Port 2 Modem ; Status read only register). ISAHOSTLD DSP56305 User’s Manual MOTOROLA...
Page 563
; (also as replacment to NOP after sw reset!) movep #$3a0010,x:M_DCTR ; HM=$3 (UB) ; HIRD=1 (HIRQ_ pin - drive high enabled) ; HIRH=0 (HIRQ_ pin - handshake disabled) ; HRSP=1 (HRST pin - active low) ; HDRP=0 (HDRQ pin - active high) MOTOROLA DSP56305 User’s Manual...
Page 564
; This is the routine that loads from the Host Interface in PCI mode. ; MD:MC:MB:MA=1100 - Host PCI PCIHOSTLD bset #20,X:M_DCTR ; Configure HI32 as PCI UB3_CONT jclr #2,X:M_DSR,* ; Wait for SRRQ to go high (i.e. data ready) A-10 DSP56305 User’s Manual MOTOROLA...
Page 565
; get 3 bytes for number of ; program words and 3 bytes ; for the starting address jclr #2,X:M_SSR,* ; Wait for RDRF to go high movep X:M_SRXL,A2 ; Put 8 bits in A2 MOTOROLA DSP56305 User’s Manual A-11...
Page 566
; and go get another 24-bit word. bra <FINISH ; Boot from EPROM done ;======================================================================== TERMINATE enddo ; End the loop before exit. FINISH ; This is the exit handler that returns execution to normal A-12 DSP56305 User’s Manual MOTOROLA...
Page 567
; expanded mode and jumps to the RESET vector. andi #$0,ccr ; Clear CCR as if RESET to 0. jmp (r1) ; Then go to starting Prog addr. ; End of bootstrap code. Number of program words: 191. dup (START+192-*) endm MOTOROLA DSP56305 User’s Manual A-13...
Page 581
; Mask register A M_CFSRB $FFFF90 ; Feedback shift register B M_CFTBB $FFFF91 ; Feedback tap register B M_CFFTB $FFFF92 ; Feedforward tap register B M_CBSRB $FFFF93 ; Bit select register B M_CMSKB $FFFF94 ; Mask register B MOTOROLA DSP56305 User’s Manual B-13...
Page 582
; Filter data out register M_FCIR $FFFFB2 ; Filter coefficient input register M_FCNT $FFFFB3 ; Filter counter register M_FCSR $FFFFB4 ; Filter control status register ;----------------------------------------------------------------------- EQUATES for Phase Locked Loop (PLL) ;---------------------------------------------------------------------- Register Addresses Of PLL B-14 DSP56305 User’s Manual MOTOROLA...
Page 584
; mask for CORE-DMA priority bits in OMR M_MA ; Operating Mode A M_MB ; Operating Mode B M_MC ; Operating Mode C M_MD ; Operating Mode D M_EBD ; External Bus Disable bit in OMR M_SD ; Stop Delay B-16 DSP56305 User’s Manual MOTOROLA...
Page 585
; Stack Extension space select bit in OMR. M_EUN ; Extensed stack UNderflow flag in OMR. M_EOV ; Extended stack OVerflow flag in OMR. M_WRP ; Extended WRaP flag in OMR. M_SEN ; Stack Extension Enable bit in OMR. MOTOROLA DSP56305 User’s Manual B-17...
S S D T J T A G S O F T W A R E -- BSDL File Generated: Sun Jun 23 14:42:45 1996 -- Revision History: entity DSP56305 is generic (PHYSICAL_PIN_MAP : string := "PBGA252"); port ( DE_: inout bit;...
Page 594
TMS : signal is true; attribute TAP_SCAN_RESET of TRST_ : signal is true; attribute TAP_SCAN_CLOCK of TCK : signal is (20.0e6, BOTH); attribute INSTRUCTION_LENGTH of DSP56305 : entity is 4; attribute INSTRUCTION_OPCODE of DSP56305 : entity is "EXTEST (0000)," & "SAMPLE (0001),"...
Page 595
JTAG BSDL "ENABLE_ONCE (0110)," & "DEBUG_REQUEST (0111)," & "BYPASS (1111)"; attribute INSTRUCTION_CAPTURE of DSP56305 : entity is "0001"; attribute IDCODE_REGISTER of DSP56305 : entity is "0000" & -- version "000110" & -- manufacturer’s use "0000000101" & -- sequence number "00000001110"...
D.1.4 DMA Requests Table D-4 lists the DMA requests. D.1.5 Programming Sheets Figures describing the major programmable registers on the DSP56305. D.1.6 HI32 Registers — Quick Reference Tables Table D-5 provides a handy reference tool for the HI32 Registers. MOTOROLA...
Page 607
$FFFFB1 ESSI 0 Receive Slot Mask Register B (RSMB0) $FFB0 $FFFFB0 Reserved PORT D $FFAF $FFFFAF Port D Control Register (PCRD) $FFAE $FFFFAE Port D Direction Register (PRRD) $FFAD $FFFFAD Port C GPIO Data Register (PDRD) MOTOROLA DSP56305 User’s Manual...
Page 608
$FFFFA1 ESSI 1 Receive Slot Mask Register B (RSMB1) $FFA0 $FFFFA0 Reserved PORT E $FF9F $FFFF9F Port E Control Register (PCRE) $FF9E $FFFF9E Port E Direction Register (PRRE) $FF9D $FFFF9D Port E GPIO Data Register (PDRE) DSP56305 User’s Manual MOTOROLA...
Host Master Transmit Data (MTRQ=1) PROGRAMMING REFERENCE SHEETS On the following pages, Figure D-1, Status Register (SR) through Figure D-25, Port E Registers (PCRE, PRRE, PDRE) provide a set of programming reference sheets for the DSP56305 registers. D-16 DSP56305 User’s Manual MOTOROLA...
HMUX HASP HDSP HROD HAEN HREN HCSEN HA9EN HA8EN HGEN Host Port Control Register (HPCR) X:$FFFFC4 Read/Write Reset = $0 = Reserved, Program as 0 Figure D-8 Host Base Address and Host Port Control Registers D-24 DSP56305 User’s Manual MOTOROLA...
Page 625
0 = ÷ HREQ Deasserted 1 = ÷ HREQ Asserted HREQ TRDY TXDE RXDF Interrupt Status Register (ISR) $2 Read/Write Reset = $06 = Reserved, Program as 0 Figure D-9 Interrupt Control and Interrupt Status Registers MOTOROLA DSP56305 User’s Manual D-25...
Page 632
15 14 13 12 11 10 9 REIE SCKP STIR TMIE ILIE WOMS WAKE SBK SSFTD WDS2 WDS1 WDS0 SCI Control Register (SCR) Address X:$FFFF9C Read/Write = Reserved, Program as 0 SCI Control Register (SCR) Figure D-16 SCI Control Register (SCR) D-32 DSP56305 User’s Manual MOTOROLA...
Page 633
0 = ÷1 1 = ÷ 8 15 14 13 12 11 10 TCM RCM COD CD11 CD10 CD9 = Reserved, Program as 0 SCI Clock Control Register (SCCR) Figure D-17 SCI Status and Clock Control Registers (SSR, SCCR) MOTOROLA DSP56305 User’s Manual D-33...
Page 634
X:$FFFF99 Read Reset = xxxxxx X:$FFFF98 Packing “A” “B” “C” Note: STX is the same register decoded at three different addresses SCI Receive Data Registers Figure D-18 SCI Receive and Transmit Data Registers (SRX, TRX) D-34 DSP56305 User’s Manual MOTOROLA...
Page 635
15 14 13 12 11 10 9 Current Value of Prescaler Counter (PC [0:20]) Timer Prescaler Count Register = Reserved, Program as 0 TPCR:$FFFF82 Read Only Reset = $000000 Figure D-19 Timer Prescaler Load/Count Register (TPLR, TPCR) MOTOROLA DSP56305 User’s Manual D-35...
Page 638
DRx = 0 → HIx is Input Host Data Register (HDR) X:$FFFFC9 Write Reset = Undefined DRx holds value of corresponding HI08 GPIO pin. Function depends on HDDR. Figure D-22 Host Data Direction and Host Data Registers (HDDR, HDR) D-38 DSP56305 User’s Manual MOTOROLA...
Page 639
GPIO output, then value written to PDn is reflected on port pin n = Reserved, Program as 0 Figure D-23 Port C Registers (PCRC, PRRC, PDRC) MOTOROLA DSP56305 User’s Manual D-39...
Page 640
GPIO output, then value written to PDn is reflected on port pin n = Reserved, Program as 0 Figure D-24 Port D Registers (PCRD, PRRD, PDRD) D-40 DSP56305 User’s Manual MOTOROLA...
Page 641
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 = Reserved, Program as 0 Figure D-25 Port E Registers MOTOROLA DSP56305 User’s Manual D-41...
PROGRAMMING REFERENCE QUICK REFERENCE TABLES (See Table D-5 HI32 Programming Model - Quick Reference on page D-43.) D-42 DSP56305 User’s Manual MOTOROLA...
Page 643
HIRQ - open drain may be Control HIRQ - driven changed only in PS reset HM2-HM0 HI32 Mode Terminate and Reset may be changed to GenBus non-zero Enhanced GenBus value only in GPIO PS reset Self Configuration Reserved MOTOROLA DSP56305 User’s Manual D-43...
Page 644
HI32 retries accesses after in PS reset write accesses Insert Address Enable HI32 does not insert address may be HI32 inserts address in changed only incoming data in PS reset D-44 DSP56305 User’s Manual MOTOROLA...
Page 645
FIFO is not DRXR is empty emptied by core reads; or the data to be read from the DRXR is master data. HF2-HF0 Host Flags HACT HI32 Active HI32 is in personal reset (PS) HI32 is active MOTOROLA DSP56305 User’s Manual D-45...
Page 646
Complete core writing 1 HI32 has completed transfer of may be data to the core, and will written 1 only disconnect write accesses to if HDTC = 1 the HTXR 21-16 RDC5-RDC Remaining Data Count D-46 DSP56305 User’s Manual MOTOROLA...
Page 647
3 Right, zero ext.2 LSBs 3 Right, sign ext.2 LSBs 3 Left, zero filled2 middle bytes HS2-HS0 Host Semaphores TWSD Target Wait State Disable HI32 target will insert up to 8 w.s. HI32 target will not insert wait states MOTOROLA DSP56305 User’s Manual D-47...
Page 648
Host Master Receive Data empty FIFO HRXS 31- Host Slave Receive Data empty FIFO HTXR 31- Host Transmit Data FIFO empty CVID VID15-VID0 Vendor ID hardwired CDID $1057 DID15-DID0 Device ID via programm able (Section 6.10) D-48 DSP56305 User’s Manual MOTOROLA...
Page 649
1 CRID RID7-RID0 Revision ID via programm CCCR able (Section PI7-PI0 PCI Device Program 6.10) Interface SC7-SC0 PCI Device Sub-Class BC7-BC0 PCI Device Base Class MOTOROLA DSP56305 User’s Manual D-49...
Page 650
PCI interrupt line routing information IL7-IL0 Interrupt Line $01 INTA is supported hardwired MG7-MG0 MAX_GNT $00 Min Grant hardwired ML7-ML0 MAX_LAT $00 Max Latency hardwired STRQ. MTRQ are zero in the personal software reset state. D-50 DSP56305 User’s Manual MOTOROLA...
Page 651
11—Clock Polarity bit (CKP) 7-24 CC00–CC01 bits 10-13 bit 12—Asynchronous/Synchronous bit CC10–CC11 bits 10-14 (SYN) 7-24 CD0–CD11 bits 8-18 bit 13—ESSI Mode Select bit (MOD) 7-27 Central Processing Unit (CPU) 1-3 bit 14—ESSI Transmit 2 Enable bit (TE2) 7-29 MOTOROLA DSP56305 User’s Manual Index-1...
Page 652
ESSI Transmit Slot Mask Registers (TSMA, TSMB) 7-41 ESSI0 (GPIO) 5-3 ENABLE_ONCE instruction 11-11 ESSI1 (GPIO) 5-4 Enhanced Synchronous Serial Interface 2-3 2-29 EX bit 10-6 2-32 Exit Command bit (EX) 10-6 Enhanced Synchronous Serial Interface (ESSI) 1-16 Index-2 DSP56305 User’s Manual MOTOROLA...
Page 654
8–9—Breakpoint 1 Condition Code Select OnCE PAB Register for Decode Register bits (CC10–CC11) 10-14 (OPABDR) 10-20 bits 10–11—Breakpoint 0 and 1 Event Select OnCE PAB Register for Execute (OPABEX) 10-21 bits (BT0–BT1) 10-14 reserved bits—bits 12–15 10-15 Index-4 DSP56305 User’s Manual MOTOROLA...
Page 655
Port E Direction Register (PRRE) 8-30 Power 2-6 PAB 1-13 power PAG 1-10 low 1-7 Parity Error bit (PE) 8-16 management 1-7 Patch Mode standby modes 1-7 PEN bit 4-23 PreDivider Factor bits (PD) 4-24 MOTOROLA DSP56305 User’s Manual Index-5...
Page 656
Receiver Overrun Error Flag bit (ROE) 7-37 exceptions 8-29 Receiver Wakeup Enable bit (SBK) 8-11 Idle Line 8-29 Register Select bits (RS0–RS4) 10-6 Receive Data 8-29 REIE bit 7-35 8-14 Receive Data with Exception Status 8-29 reserved bits Timer 8-29 Index-6 DSP56305 User’s Manual MOTOROLA...
Page 657
7—Wired-OR Mode Select bit (WOMS) 8-11 SSFTD bit 8-10 bit 8—Receiver Enable bit (RE) 8-11 SSISR register 7-35 bit 9—Transmitter Enable bit (TE) 8-12 bit 0—Serial Input Flag 0 bit (IF0) 7-35 bit 1—Serial Input Flag 1 bit (IF1) 7-36 MOTOROLA DSP56305 User’s Manual Index-7...
Page 658
Timer Enable bit (TE) 9-10 TCIE bit 9-11 Timer Interrupt Enable bit (TMIE) 8-13 TCK pin 11-5 Timer Interrupt Rate bit (STIR) 8-13 TCM bit 8-20 Timer Load Register (TLR) 9-17 TCPR register 9-17 timer mode Index-8 DSP56305 User’s Manual MOTOROLA...
Page 659
X Memory Data Bus (XDB) 1-13 Trace Mode Enable bit (TME) 10-8 X Memory Expansion Bus 1-13 Trace Occurrence bit (TO) 10-9 XAB 1-13 Transmit 0 Enable bit (TE0) 7-31 XDB 1-13 Transmit 1 Enable bit (TE1) 7-30 MOTOROLA DSP56305 User’s Manual Index-9...
Page 660
XTAL Disable bit (XTLD) 4-24 XTLD bit 4-24 Y data RAM 3-6 Y Memory Address Bus (YAB) 1-13 Y Memory Data Bus (YDB) 1-13 Y Memory Expansion Bus 1-13 YAB 1-13 YDB 1-13 Index-10 DSP56305 User’s Manual MOTOROLA...