Texas Instruments TMS320C6000 DSP Manuale utente

Application Report
SPRA545A - September 2001
1
TMS320C6000 Host Port to MC68360 Interface
Zoran Nikolic Digital Signal Processing Solutions
ABSTRACT
This application report describes an interface between the Motorola MC68360 quad
integrated communication controller (QUICC) and the host port interface (HPI) of a
TMS320C6000(C6000) digital signal processor (DSP) device. This includes a schematic
showing connections between the two devices and verification that timing requirements are
met for each device (tables and timing diagrams).
NOTE: This application report has not been verified in a board design.
Contents
1 MC68360 Processor Interface 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.1 Configuration 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 MC68360 to HPI Timing Verification 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 References 12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Appendix A TMS320C6x Timing Requirements 13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Appendix B MC68360 Timing Requirements 16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
List of Figures
Figure 1 MC68360 to TMS320C62x/C67x/C64x (HPI16) HPI Interface Block Diagram 2. . . . . . . . .
Figure 2 MC68360 to TMS320C64x (HPI32) HPI Interface Block Diagram 3. . . . . . . . . . . . . . . . . . . .
Figure 3 MC68360 Reads Internal Memory of TMS320C62x/C67x/C64x (HPI16 Mode)
Using HPI (Read Without Auto-Increment) 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Figure 4 MC68360 Write to TMS320C62x/C67x/C64x (HPI16 Mode) HPI 8. . . . . . . . . . . . . . . . . . . .
Figure 5 MC68360 Reads Internal Memory of TMS320C64x (HPI32 Mode)
Using HPI (Read Without Auto-Increment) 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Figure 6 MC68360 Write to TMS320C64x (HPI32 Mode) HPI 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
List of Tables
Table 1. MC68360 to HPI Pin Connections 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table 2. Base Register 0 (BR0) Relevant Bits (MC68360) 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table 3. Option Register (OR) Relevant Bits (MC68360) 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table 4. Timing Requirements for the C6201/C6701 HPI 11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Trademarks are the property of their respective owners.
TMS320C6000 and C6000 are trademarks of Texas Instruments.

SPRA545A
2TMS320C6000 Host Port to MC68360 Interface
Table 5. Timing Requirements for MC68360 Interfaced to the C6201/C6701 HPI 11. . . . . . . . . . . . . . . . .
Table 6. Timing Requirements for the C6211/C6711 HPI 11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table 7. Timing Requirements for MC68360 Interfaced to the C6211/C6711 HPI 12. . . . . . . . . . . . . . . . .
Table 8. Timing Requirements for the C64x HPI 12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table 9. Timing Requirements for MC68360 Interfaced to the C64x HPI 12. . . . . . . . . . . . . . . . . . . . . . . . .
Table A–1. TMS320C6201/C6701 Host Port Timing Specifications 13. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table A–2. TMS320C6211/C6711 Host Port Timing Specifications 14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table A–3. TMS320C64x Host Port Timing Specifications 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table B–1. Motorola MC68360 Timing Parameters NIL 16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1 MC68360 Processor Interface
The MC68360 QUICC is 32-bit controller that is an extension of other members of the Motorola
M68300 family. The MC68360 QUICC is a one-chip integrated microprocessor and peripheral
combination that can be used in controller applications (particularly in communications
activities). Figure 1 and Figure 2 show diagrams of the host (MC68360) interface to
TMS320C62x/C67x/C64xHPIs.
D[31:16]
R/W
A[3:2]
A[1]
DSACK1
DSACK0
CSx
IRQx
MC68360 (Host) (HPI16 mode) HPI
HD[15:0]
HR/W
HCNTL[1:0]
HHWIL
HRDY
HBE0
HBE1
HCS
HDS1
HDS2
HINT
16
2
GND
Vcc
GND
GNDVcc
HASVcc
CONFIG2
CONFIG1
CONFIG0
AVEC
Vcc
GND
GND
Vcc
*
*
*TMS320C6201/C6701 Only
TMS320C62x/C67x/C64x
Figure 1. MC68360 to TMS320C62x/C67x/C64x (HPI16) HPI Interface Block Diagram
TMS320C62x, TMS320C67x, TMS320C64x, C62x, C67x and C64x are trademarks of Texas Instruments.

SPRA545A
3
TMS320C6000 Host Port to MC68360 Interface
GND
GND
VCC
D[31:0]
A[3:2]
MC68360 (Host) TMS320C64x
(HPI132 mode) HPI
HD[31:0]
HCNTL[1:0]
32
2
GND
CONFIG2
CONFIG1
CONFIG0
GND
HR/W
R/W
HRDY
HCS
HDS1
HDS2
HAS
HINT
VCC
VC
C
VC
C
AVEC
IRQx
CSx
DSACK1
DSACK0
Figure 2. MC68360 to TMS320C64x (HPI32) HPI Interface Block Diagram
Table 1. MC68360 to HPI Pin Connections
HPI Pin MC68360 Pin Comments
HCNTL[1:0] A[3:2] Address bits of MC68360 are used as control signals.
HHWIL A[1] A[1] identifies the first or second halfword of transfer. Unused for HPI32 mode transfers.
HR/W R/W Indicates a read or write access
HD[15:0]
HD[31:0] D[31:16]
D[31:0] MC68360 uses D[31:16] for 16-bit port interface and D[31:0] for 32-bit port interface.
HDS1 GND HDS1 and HDS2 are internally exclusively-NORed. HDS1 and HDS2 are tied logic low
and high, respectively, to enable data strobe at all time.
HDS2 VCC See above.
HAS VCC Because host device MC68360 has separate address and data bus, HAS does not need
to be used. HAS is tied inactive high.
HCS CSx Any one of the chip-selects of MC68360 can be connected to HCS as the chip-select
signal. This also serves as the data-strobe signal in this case (because DS of MC68360
is not used as data strobe).
HBE0 GND MC68360 does not have byte write enable signals that have the same timing as other
control signals. Therefore, HBE1 and HBE0 of HPI are tied low to enable host access
to both lower and upper bytes of the half-word during a write. TMS320C6211 does not
have HBE[1:0] signals.
HBE1 GND See above.
- CONFIG[2:0] Because CONFIG[2:1] is set to 10, the CPU is enabled and the MBAR register is at
0x003FF00.
16-bit interface
CONFIG[2:0]=’101’32-bit interface
CONFIG[2:0]=’100’

SPRA545A
4TMS320C6000 Host Port to MC68360 Interface
Table 1. MC68360 to HPI Pin Connections (Continued)
CommentsMC68360 PinHPI Pin
- AVEC=’0’The Auto Vector input function is selected in normal operation.
HRDY DSACK1 The SPS bits in the MC68360 option registers need to be set to indicate that DSACK1
is generated externally by HPI. (See the MC68360 User’s Manual for details)
HINT IRQx User can select interrupt level (IRQ1 to IRQ7). Priority level 7 interrupt is a special case.
Level 7 interrupts are non-maskable interrupts (NMI). IRQ7 is a level-sensitive input and
must remain low until the second instruction processing module (CPU32+) returns an
interrupt acknowledge cycle for interrupt 7. (See the MC68360 Quad Integrated
Communications Controller User’s Manual for a detailed description.)
DS (data strobe) of the MC68360 is not used in this interface because the MC68360 asserts DS
only after it latches a DSACK low. However, the HPI of the C6000 does not assert HRDY
(DSACK1) until after DS is asserted. Because of this timing conflict, HDS1 and HDS2 of the
TMS320C6000 HPI are tied logic low and high, respectively, to enable data strobe at all times.
The HPI must keep DSACKx asserted until it detects the negation of AS or DS (whichever it
detects first). The C6000 must negate DSACKx within approximately one clock period after
sampling negation of AS or DS. DSACKx signals that remain asserted beyond this limit may be
prematurely detected for the next bus cycle. This is avoided by using an OR combination of the
HRDY and CSx signals.
HBE1 and HBE2 of the HPI are tied low to enable host access to both lower and upper bytes of
the halfword during a write in the TMS320C6201/6701. Although the MC68360 has byte write
enable signals WE1 and WE0, they are not used in this interface because of timing issues. The
HPI expects control signals, including HBE1 and HBE0, to be ready before data strobe (which is
HCS in this case) is asserted. However, MC68360 asserts chip-select and write-enable signals
at the same time. Therefore, WE1 and WE0 cannot be used.
The auto-vector (AVEC) signal is used to terminate interrupt acknowledge cycles, indicating that
the QUICC should internally generate a vector (auto-vector) number to locate an interrupt
handler routine. AVEC is ignored during all other bus cycles.
1.1 Configuration
The QUICC is comprised of three modules:
•CPU32+ core
•System integration module (SIM60)
•Communication processor module (CPM)
The memory controller is a sub-block of the SIM60 that is responsible for up to eight
general-purpose chip-select lines. The general-purpose chip-selects are available on lines
CS0-CS7. CS0 also functions as the global (boot) chip-select for accessing the boot EPROM.
The SIM60 supports a glue-less interface to HPI.

SPRA545A
5
TMS320C6000 Host Port to MC68360 Interface
All internal memory and registers of the MC68360 occupy a single 8K-byte memory block that
can be relocated along 8K-byte boundaries. The location is fixed by writing the desired base
address of the 8K-byte memory block to the MBAR. The 8K-byte block is divided into two
4K-byte sections. The RAM occupies the first section; the internal registers occupy the second
section. The LSB (least significant bit) of the MBAR register indicates when the contents of the
MBAR are valid (if the bit is equal to one the content is valid).
The MC68360’s general-purpose chip-selects are controlled by the global memory register
(GMR) and the memory controller status register (MSTAT). There is one GMR and MSTAT in the
memory controller. The MSTAT reports write-protect violations and parity errors for all banks.
The 32-bit read-write GMR contains selections that are common to the entire memory controller.
The GMR is used to control global parameters for memory banks. The DPS bit field of the GMR
register must be set to DPS[1:0] = 11 to enable external DSACKx response. The PBEE bit of the
GMR register should be set to zero to disable parity bus error detection.
The 32-bit read-write GMR contains selections that are common to the entire memory controller.
The GMR is used to control global parameters for memory banks.
The MSTAT reports write-protect violations and parity errors for all banks.
The configuration of the BR and OR registers is shown in Table 2 and Table 3.
Table 2. Base Register 0 (BR0) Relevant Bits (MC68360)
Bit Field Description Value
CSNTQ CS negate timing
This bit is used to determine when CS is negated
during an internal QUICC or external
QUICC/MC68030-type bus-master write cycle.
Set to 0 (CS negated normally).
TRLXQ Timing relax
This bit delays the beginning of the internal QUICC
or external QUICC/MC68030-type bus-master cycle
to relax the timing constraints on the user.
Set to 0 (do not relax timing).
VValid bit 1 = content of BR0 and OR0 pair is valid
PAREN Parity checking enable 0 = parity checking disabled
BA31-BA11 Base address
The base address field, the upper 21 bits of each BR,
and the function field are compared to the address on
address bus to determine if a DRAM/SRAM region is
being accessed by an internal QUICC master.
The option register is 32-bit read-write register that may be accessed at any time.

SPRA545A
6TMS320C6000 Host Port to MC68360 Interface
Table 3. Option Register (OR) Relevant Bits (MC68360)
Bit Field Description Value
DSSEL Dynamic RAM select
This bit determines if the bank is SRAM or DRAM. For HPI, set to 0.
SPS1-SPS0 SRAM port size
Because external DSACKx is used, SPS[1:0] = 11 SPS0 = 1
SPS1 = 1
AM27-AM11 Address mask
Mask any of the corresponding bits in the associated
BR. By masking the address bits independently,
external devices of different address range sizes can
be used.
All base address and function code bits will be used
in the bank hit comparison (all bits of the AM bit field
are set to one).
TCYC3-TCYC0 Cycle length in clocks Because external DSACKx is selected with SPS,
TCYC should not be set to zero.
2 MC68360 to HPI Timing Verification
To verify proper operation, two functions have been examined: 1) an MC68360 write to HPI and
2) an MC68360 read from HPI. In each instance, timing requirements were compared for each
of the devices. The results are shown in Figure 3 through Figure 6 and the timing requirements
tables immediately following these figures. In all figures and tables, timing parameters are
named in the same way as those in the data sheets for the TMS320C6000 and MC68360
devices. Actual timing parameter values are listed in Appendix A and Appendix B.
Figure 3 through Figure 6 and the timing requirement tables show that the timing parameters for
both devices are met in all interfaces between the MC68360 and HPI. These interfaces are
based on a MC68360/25-MHz device and TMS320C6xdevices operating at any frequency
range.
TMS320C6x is a trademark of Texas Instruments.

SPRA545A
7
TMS320C6000 Host Port to MC68360 Interface
0ns 50ns 100ns 150ns 200ns 250ns 300ns 350ns
S5 S0 S2S1 S3 Sw Sw S2S1S0S5S4 S4S3 S0S5 S1
tCHAV tsu(SEL–HSTBL)th(HSTBK–SEL)
tSNAI tsu(SEL–HSTBL)
tCHAV th(HSTBL–SEL)
tCHAV
tCHAV tCHAV
tSNAI tCHAV
tCHRH tRWA tCHRL
tCHRH tRWA tCHRL
tDICL tDICL
tAVSA
tCLSA
tRAAA tSWA
tw(HSTBL) tSNDI
tSN tw(HSTBH)
tRAAA
tAVSA
tCLSN tCLSA
tw(HSTBL)
tSWA
tCLSN
tSNDI
td(HCS–HRDY)
th(HSTBL–HDLZ)
td(HDV–HRDYL)
tPLD
tPLD
tPLD tPLD
th(HSTBH–HDV) td(HSTBL–HDV)
th(HSTBH–HDV)
td(HSTBH–HDHZ)
CLKO1
HCNTL[1:0]/
A[3:2]
HHWIL/A[1]
HR/W/RW
HCS/CS
HRDY
DSACK1
HD[15:0]/
D[31:16] 1st 2nd
Figure 3. MC68360 Reads Internal Memory of TMS320C62x/C67x/C64x (HPI16 Mode)
Using HPI (Read Without Auto-Increment)

SPRA545A
8TMS320C6000 Host Port to MC68360 Interface
0ns 50ns 100ns 150ns 200ns 250ns 300ns
S5 S0 S2S1 S3 S4S3 S0S5 S1
CLKO1
HCNTL[1:0]/
A[3:2]
HHWIL/A[1]
HR/W/RW
HCS/CS
HRDY
HD[15:0]/
D[31:16]
S4 S5 S0 S1 S2
DTACK1
tCHAV
tsu(SEL–HSTBL)
th(HSTBL–SEL)
tSNAI
tCHAV
tsu(SEL–HSTBL
th(HSTBL–SEL)
tSNAI
tCHAV
tCHRL
tAVSA
tCHAV
tSNAI
tCHRL
tCHRH
tSNRN
tRWA tRWA
tCHAV
tCHAV
tCHRH
tSNRN
tCLSA
tCLSA
tAVSA
tCLSAN
tSWA
tw(HSTBL)
tsu(HDV–HSTBH)
tSN
tw(HSTBH)
th(HSTBH–HDV)
tSWA
tsu(HDV–HSTBH)
tCLSN
th(HSTBH–HDV)
tPLD
tPLD
tPLD
tPLD
th(HRDY–HSTBL)
td(HCS–HRDY)
tCHDO
tRADC
tDOHC
tCHDH
tSNDOI
tRADC
tCHDO tDOHC
tCHDH
tSNDOI
1st 2nd
Figure 4. MC68360 Write to TMS320C62x/C67x/C64x (HPI16 Mode) HPI

SPRA545A
9
TMS320C6000 Host Port to MC68360 Interface
0ns 50ns 100ns 150ns 200ns 250ns
S5 S0 S2S1 S3 S0S5 S1
CLKO1
HCNTL[1:0]/
A[3:2]
HHWIL/A[1]
HR/W/RW
HCS/CS
DSACK1
HD[31:0]/
D[31:0]
Sw S4
HRDY
Sw
tCHAV
tsu(SELV–HSTBL) th(HSTBL–SELV)
tDICL
tCHAV
tCHRH tRWA
tCHAV
tSNAI
tCHAV
tSNAI
tCHRL
tRAAA
tCLSA tw(HSTBL)
tCLSN
tSWA tSNDItAVSA
td(HCS–HRDY) td(HDV–HRDYL)
tPLD
tPLD
th(HSTBH–HDV)
td(HSTBH–HDHZ)
th(HSTBL–HDLZ)
1st
Figure 5. MC68360 Reads Internal Memory of TMS320C64x (HPI32 Mode)
Using HPI (Read Without Auto-Increment)

SPRA545A
10 TMS320C6000 Host Port to MC68360 Interface
HCNTL[1:0]/
A[3:2]
HHWIL/A[1]
HR/W/RW
HCS/CS
HRDY
HD[31:0]/
D[31:0]
DTACK1
1st
0ns 25ns 50ns 75ns 100ns 150ns125ns 175ns
S5 S0 S1 S2 S3 S4 S5 S0 S1
tCHAV
tsu(SEL–HSTBL) th(HSTBL–SEL)
tSNAI
tCHAV
tCHAV
tAVSA
tCLSA tSWA
tCHAV
tSNAI
tSNRN
tw(HSTBL)
tsu(HDV–HSTBH)
tCLSN
th(HSTBH–HDV)
tPLDtPLD
td(HCS–HRDY)
tCHDO
tSNDOI
tCHDH
tDOHC
CLKO1
Figure 6. MC68360 Write to TMS320C64x (HPI32 Mode) HPI
Altri manuali per TMS320C6000 DSP
15
Indice
Altri manuali Texas Instruments Processore

Texas Instruments
Texas Instruments TMS320C2x Manuale utente

Texas Instruments
Texas Instruments OMAP5910 Manuale del prodotto

Texas Instruments
Texas Instruments SM320C6455-EP Manuale di installazione e d'uso

Texas Instruments
Texas Instruments TMS320C2XX Manuale utente

Texas Instruments
Texas Instruments Sitara AM3359 Manuale utente

Texas Instruments
Texas Instruments TMS320C6712D Manuale utente

Texas Instruments
Texas Instruments TMS320C6454 Manuale utente

Texas Instruments
Texas Instruments Sitara AM335x Manuale utente

Texas Instruments
Texas Instruments TMS3320C5515 Manuale utente

Texas Instruments
Texas Instruments TAS5026REF Manuale utente





















