Contents ............................Preface ......................... Introduction ....................Purpose of the Peripheral ........................Features ....................Functional Block Diagram ................ Industry Standard(s) Compliance Statement ................. Terminology Used in This Document ....................... Peripheral Architecture ......................Clock Control ......................Memory Map ...................... Signal Descriptions ......................Pin Multiplexing .....................
Page 4
www.ti.com List of Figures ......................HPI Block Diagram ............... Example of Host-Processor Signal Connections ....................HPI Strobe and Select Logic ................16-bit Multiplexed-Mode Host Read Cycle ................16-bit Multiplexed-Mode Host Write Cycle ............ Multiplexed-Mode Single-Halfword HPIC Cycle (Read or Write) ......
Page 5
www.ti.com List of Tables ........................HPI Pins .............. Options for Connecting Host and HPI Data Strobe Pins ..............Access Types Selectable With the HCNTL Signals ............Cycle Types Selectable With the HCNTL and HR/W Signals ..............HPI Registers Relative to Base Address 0200 0030h ............
SPRUF87A – October 2007 – Revised May 2008 Read This First About This Manual This document describes the features and operation of the host port interface (HPI) in the TMS320C6452 Digital Signal Processor (DSP). Notational Conventions This document uses the following conventions.
Page 7
— C6452 DSP Host Port Interface (UHPI) User's Guide describes the host port interface (HPI) in the TMS320C6452 Digital Signal Processor (DSP). The HPI is a parallel port through which a host processor can directly access the CPU memory space. The host device functions as a master to the interface, which increases ease of access.
Page 8
SPRUF97 — TMS320C6452 DSP 3 Port Switch (3PSW) Ethernet Subsystem User's Guide describes the operation of the 3 port switch (3PSW) ethernet subsystem in the TMS320C6452 Digital Signal Processor (DSP). The 3 port switch gigabit ethernet subsystem provides ethernet packet communication and can be configured as an ethernet switch.
The host port interface (HPI) provides a parallel port interface through which an external host processor can directly access the TMS320C6452 processor's resources (configuration and program/data memories). The external host device is asynchronous to the CPU clock and functions as a master to the HPI interface.
Introduction www.ti.com Functional Block Diagram Figure 1 is a high-level block diagram showing how the HPI connects a host (left side of figure) and the processor internal memory (right side of figure). Host activity is asynchronous to the internal processor clock that drives the HPI.
Introduction www.ti.com Figure 1. HPI Block Diagram Host Processor HD[15:0] Data HPID R/W FIFOs HHWIL Processor HCNTL0 Address memory Access or I/O HPIA HCNTL1 type Logic Increment high HPIC HR/W Chip select Data HDS1 , HDS2 strobes HINT Ready HRDY Industry Standard(s) Compliance Statement The HPI is not an industry standard interface that is developed and monitored by an international organization.
Peripheral Architecture www.ti.com Peripheral Architecture Clock Control The HPI clock is derived from SYSCLK2, which is the PLL1 clock divided by 6. For detailed information on the PLLs and clock distribution on the processor, see the Subsystem User's Guide. Memory Map The HPI can be used by the host to access the following processor resources: •...
Peripheral Architecture www.ti.com Table 1. HPI Pins Type Host Connection Function HCNTL[1:0] Address or control pins HPI access control inputs. The HPI latches the logic levels of these pins on the falling edge of internal HSTRB (for details about internal HSTRB, Section 2.7.4).
Peripheral Architecture www.ti.com Architecture and Operation 2.7.1 Using the Address Registers The HPI contains two 32-bit address registers: one for read operations (HPIAR) and one for write operations (HPIAW). These roles are unchanging from the viewpoint of the HPI logic. The HPI DMA logic gets the address from HPIAR when reading from processor resources (see Section 2.2) and gets the...
Peripheral Architecture www.ti.com 2.7.2 Host-HPI Signal Connections Figure 2 shows an example of a signal connection between the HPI and a host. Figure 2. Example of Host-Processor Signal Connections Host Processor Logic high HCNTL[1:0] Address or I/O HHWIL HR/W Read/Write Chip select Data strobe 1 HDS1...
Peripheral Architecture www.ti.com If the host wants to read data from processor resources (see Section 2.2), the HPI DMA logic reads the resource address from HPIAR and retrieves the data from the addressed memory location. When the data has been placed in HPID, the HPI drives the data onto its HD bus. The HRDY signal informs the host whether the data on the HD bus is valid (HRDY low) or not valid yet (HRDY high).
Peripheral Architecture www.ti.com Table 2. Options for Connecting Host and HPI Data Strobe Pins Available Host Data Strobe Pins Connections to HPI Data Strobe Pins Host has separate read and write strobe Connect one strobe pin to HDS1 and the other to HDS2 .
Peripheral Architecture www.ti.com Table 4. Cycle Types Selectable With the HCNTL and HR/W Signals HCNTL1 HCNTL0 HR/W Cycle Type HPIC write cycle HPIC read cycle HPID write cycle with auto-incrementing HPID read cycle with auto-incrementing HPIA write cycle HPIA read cycle HPID write cycle without auto-incrementing HPID read cycle without auto-incrementing Note that the encoding of HCNTL0 and HCNTL1 for the different types of HPI accesses varies on many TI DSPs;...
Peripheral Architecture www.ti.com 2.7.7 Performing a Multiplexed Access Figure 2 shows an example of signal connections for multiplexed transfers. Figure 4 Figure 5 show typical HPI signal activity when performing a read and write transfer, respectively. In these cases, the falling edge of internal HSTRB is used to latch the HCNTL[1:0], HR/W, and HHWIL states into the HPI.
Peripheral Architecture www.ti.com Figure 5. 16-bit Multiplexed-Mode Host Write Cycle Internal HSTRB HR/W HCNTL[1:0] HD[15:0] Data 1 Data 2 HRDY HHWIL HPI latches HPI latches control information control information HPI latches HPI latches data data NOTE: Depending on the type of write operation (HPID without auto-incrementing, HPIA, HPIC, or HPID with auto-incrementing) and the state of the FIFO, transitions on HRDY may or may not occur.
Peripheral Architecture www.ti.com 2.7.8 Single-Halfword HPIC Cycle in 16-bit Multiplexed Mode Figure 6 shows the special case (see Section 2.7.6) when the host performs a single-halfword cycle to access the HPIC. The state of HHWIL is ignored and if a dual-halfword access is performed, then the same HPIC register is accessed twice.
Peripheral Architecture www.ti.com 2.7.9.1 HRDY Behavior During 16-bit Multiplexed-Mode Read Operations Figure 7 shows an HPIC (HCNTL[1:0] = 00b) or HPIA (HCNTL[1:0] = 10b) read cycle. Neither an HPIC read cycle nor an HPIA read cycle causes HRDY to go low. For this type of access, the state of HHWIL is ignored, so if a dual halfword access is performed, the same register will be accessed twice.
Peripheral Architecture www.ti.com Figure 11. HRDY Behavior During a Data Write Operation in the 16-bit Multiplexed Mode (Case 1: No Auto-incrementing) HCNTL[1:0] HR/W HHWIL Internal HSTRB 1st halfword 2nd halfword 1st halfword 2nd halfword HD[15:0] HRDY Figure 12 shows auto-increment HPID write cycles when the write FIFO is empty prior to the HPIA write. The host writes the memory address while HCNTL[1:0] = 10b and writes the data while HCNTL[1:0] = 01b.
Peripheral Architecture www.ti.com 2.7.9.3 HRDY Behavior During 32-bit Multiplexed-Mode Read Operations Figure 14 shows an HPIC (HCNTL[1:0] = 00b) read or an HPIA (HCNTL[1:0] = 01b) read access for 32-bit multiplexed HPI operation. Note that neither an HPIC nor an HPIA read access causes HRDY to become active.
Peripheral Architecture www.ti.com Figure 18. HRDY Behavior During a Data Write Operation in the 32-Bit Multiplexed Mode (Case 1: No Auto-incrementing) HPIA Write HPID Write HCNTL[1:0] HR/W Internal HSTRB HD[31:0] HRDY Figure 19 shows an HPIA (HCNTL[1:0] = 10b) write access followed by several auto-incrementing HPID (HCNTL[1:0] = 01b) write accesses when the write FIFO is empty.
Peripheral Architecture www.ti.com Figure 20. HRDY Behavior During a Data Write Operation in the 32-Bit Multiplexed Mode (Case 3: Auto-incrementing Selected, FIFO Not Empty Before Write) HPIA Write HPID+ Writes HCNTL[1:0] HR/W Internal HSTRB HD[31:0] HRDY 2.7.10 FIFOs and Bursting The HPI data register (HPID) is a port through which the host accesses two first-in, first-out buffers (FIFOs).
Page 30
Peripheral Architecture www.ti.com Both types of continuous or burst reads described in the previous paragraphs begin with a write to the HPI address register, which causes a read FIFO flush. This is the typical way of initiating read cycles, because the initial read address needs to be specified.
Peripheral Architecture www.ti.com Similarly, when a write FIFO flush condition occurs, all current host accesses and DMAs to the write FIFO are allowed to complete. This includes DMAs that have been requested but not yet initiated. All posted writes in the FIFO are then forced to completion with a final burst or single-word write, as necessary. If the host initiates an HPID host cycle during a FIFO flush, the cycle is held off with the de-assertion of HRDY until the flush is complete and the FIFO is ready to be accessed.
Peripheral Architecture www.ti.com • If internal HSTRB is low (host cycle is active), HRDY is driven high, allowing the host to complete the cycle. When internal HSTRB goes high (cycle is complete), HRDY is driven low and remains low until the reset condition is over.
Peripheral Architecture www.ti.com 2. Write 1 to the DSPINT bit in HPIC. When the host sets the DSPINT bit, the HPI generates an interrupt pulse to the CPU. If this maskable interrupt is properly enabled in the CPU, the CPU executes the corresponding interrupt service routine (ISR).
Peripheral Architecture www.ti.com 2.10.3 Interrupt Multiplexing The HPI has a single interrupt source to the DSP CPU. This interrupt source is not multiplexed with any other interrupt source on the CPU. 2.11 EDMA Event Support The HPI does not provide synchronization events to the EDMA system. Memory accesses from the HPI are handled automatically, independent of the EDMA controller.
Registers www.ti.com Registers Table 5 lists the memory-mapped registers for the HPI. See the device-specific data manual for the memory addresses of these registers. Table 5. HPI Registers Relative to Base Address 0200 0030h Offset Acronym Register Description Section Peripheral Identification Register Section 3.1 PWREMU_MGMT Power and Emulation Management Register...
Registers www.ti.com Power and Emulation Management Register (PWREMU_MGMT) The power and emulation management register (PWREMU_MGMT) determines the emulation mode of the HPI. PWREMU_MGMT is shown in Figure 25 and described in Table Figure 25. Power and Emulation Management Register (PWREMU_MGMT) Reserved Reserved SOFT...
Registers www.ti.com Host Port Interface Control Register (HPIC) The host port interface control register (HPIC) stores configuration and control information for the HPI. As shown in Figure 26 Figure 27 and described in Table 8, the owner (Host) and non-owner (DSP) do not have the same access permissions.
Registers www.ti.com Table 8. Host Port Interface Control Register (HPIC) Field Descriptions Field Value Description 31-12 Reserved Reserved HPIASEL HPI address register select bit. When DUALHPIA = 1, the HPIASEL bit is used to select the HPI address register to be accessed. Selects the HPI write address register (HPIAW).
Registers www.ti.com Host Port Interface Write Address Register (HPIAW) The HPI contains two 32-bit address registers: one for read operations (HPIAR) and one for write operations (HPIAW). The host port interface write address register (HPIAW) is shown in Figure 28 described in Table 9.
Registers www.ti.com Host Port Interface Read Address Register (HPIAR) The HPI contains two 32-bit address registers: one for read operations (HPIAR) and one for write operations (HPIAW). The host port interface read address register (HPIAR) is shown in Figure 29 described in Table 10.
IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete.
Need help?
Do you have a question about the TMS320C6452 and is the answer not in the manual?
Questions and answers