![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 1 post office box 1443 ? houston, texas 772511443 advanced multibus architecture with three separate 16-bit data memory buses and one program memory bus 40-bit arithmetic logic unit (alu), including a 40-bit barrel shifter and two independent 40-bit accumulators 17- 17-bit parallel multiplier coupled to a 40-bit dedicated adder for non-pipelined single-cycle multiply/accumulate (mac) operation compare, select, and store unit (cssu) for the add/compare selection of the viterbi operator exponent encoder to compute an exponent value of a 40-bit accumulator value in a single cycle two address generators with eight auxiliary registers and two auxiliary register arithmetic units (araus) data bus with a bus-holder feature extended addressing mode for 8m 16-bit maximum addressable external program space 16k x 16-bit on-chip rom 32k x 16-bit dual-access on-chip ram single-instruction-repeat and block-repeat operations for program code block-memory-move instructions for better program and data management instructions with a 32-bit long word operand instructions with two- or three-operand reads arithmetic instructions with parallel store and parallel load conditional store instructions fast return from interrupt on-chip peripherals software-programmable wait-state generator and programmable bank switching on-chip phase-locked loop (pll) clock generator with internal oscillator or external clock source three multichannel buffered serial ports (mcbsps) enhanced 8-bit parallel host-port interface with 16-bit data/addressing one 16-bit timer six-channel direct memory access (dma) controller power consumption control with idle1, idle2, and idle3 instructions with power-down modes clkout off control to disable clkout on-chip scan-based emulation logic, ieee std 1149.1 2 (jtag) boundary scan logic 12.5-ns single-cycle fixed-point instruction execution time (80 mips) for 3.3-v power supply (1.8-v core) 10-ns single-cycle fixed-point instruction execution time (100 mips) for 3.3-v power supply (1.8-v core) available in a 144-pin plastic thin quad flatpack (tqfp) (pge suffix) and a 144-pin ball grid array (bga) (ggu suffix) note: this data sheet is designed to be used in conjunction with the tms320c5000 dsp family functional overview (literature number spru307). please be aware that an important notice concerning availability, standard warranty, and use in critical applications of texas instruments semiconductor products and disclaimers thereto appears at the end of this data sheet. copyright ? 2000, texas instruments incorporated 2 ieee standard 1149.1-1990 standard-test-access port and boundary scan architecture. production data information is current as of publication date. products conform to specifications per the terms of texas instruments standard warranty. production processing does not necessarily include testing of all parameters.
tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 2 post office box 1443 ? houston, texas 772511443 table of contents internal oscillator with external crystal 40 . . . . . . . . divide-by-two/divide-by-four clock option 41 . . . . multiply-by-n clock option 42 . . . . . . . . . . . . . . . . . . . memory and parallel i/o interface timing 43 . . . . . . timing for externally generated wait states 49 . . . hold and holda timings 53 . . . . . . . . . . . . . . . . . . reset, bio , interrupt, and mp/mc timings 55 . . . . . instruction acquisition (iaq ), interrupt acknowledge (iack ), external flag (xf), and tout timings 57 . . . . . . . . . . . . . . . . . . . . . multichannel buffered serial port timing 59 . . . . . . . hpi8 timing 67 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . hpi16 timing 72 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . mechanical data 76 . . . . . . . . . . . . . . . . . . . . . . . . . . . description 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . pin assignments 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . terminal functions 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . memory 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . on-chip peripherals 15 . . . . . . . . . . . . . . . . . . . . . . . . . . memory-mapped registers 30 . . . . . . . . . . . . . . . . . . . . mcbsp control registers and subaddresses 33 . . . . dma subbank addressed registers 33 . . . . . . . . . . . . interrupts 35 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . documentation support 37 . . . . . . . . . . . . . . . . . . . . . . . absolute maximum ratings 38 . . . . . . . . . . . . . . . . . . . recommended operating conditions 38 . . . . . . . . . . . electrical characteristics 39 . . . . . . . . . . . . . . . . . . . . . . parameter measurement information 39 . . . . . . . . . . . . description the tms320vc5409 fixed-point, digital signal processor (dsp) (hereafter referred to as the '5409 unless otherwise specified) is based on an advanced modified harvard architecture that has one program memory bus and three data memory buses. this processor provides an arithmetic logic unit (alu) with a high degree of parallelism, application-specific hardware logic, on-chip memory, and additional on-chip peripherals. the basis of the operational flexibility and speed of this dsp is a highly specialized instruction set. separate program and data spaces allow simultaneous access to program instructions and data, providing the high degree of parallelism. two read operations and one write operation can be performed in a single cycle. instructions with parallel store and application-specific instructions can fully utilize this architecture. in addition, data can be transferred between data and program spaces. such parallelism supports a powerful set of arithmetic, logic, and bit-manipulation operations that can all be performed in a single machine cycle. in addition, the '5409 includes the control mechanisms to manage interrupts, repeated operations, and function calls. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 3 post office box 1443 ? houston, texas 772511443 cv hds1 a18 a17 v ss a16 d5 d4 d3 d2 d1 d0 rs x2/clkin x1 hd3 clkout v ss hpiena cv dd v ss tms tck trst tdi tdo emu1/off emu0 tout hd2 hpi16 clkmd3 clkmd2 clkmd1 v ss dv dd bdx1 bfsx1 v ss a22 v ss dv dd a10 hd7 a11 a12 a13 a14 a15 cv dd has v ss v ss cv dd hcs hr/w ready ps ds is r/w mstrb iostrb msc xf holda iaq hold bio mp/mc dv dd v ss bdr1 bfsr1 144 a21 cv 143 142 141 a8 140 a7 139 a6 138 a5 137 a4 136 hd6 135 a3 134 a2 133 a1 132 a0 131 dv 130 129 128 127 126 125 hd5 124 d15 123 d14 122 d13 121 hd4 120 d12 119 d11 118 117 d9 116 d8 115 d7 114 d6 113 112 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 bclkr1 hcntl0 ss bclkr0 bclkr2 bfsr0 bfsr2 bdr0 hcntl1 bdr2 bclkx0 bclkx2 ss dd ss hd0 bdx0 bdx2 iack hbil nmi int0 int1 int2 int3 dd hd1 ss hrdy hint 111 v 110 a19 109 70 71 72 bclkx1 d10 a20 dv dd cv hds2 ss v v v dv v cv v dd dd dd dd ss tms320vc5409 pge package 23 (top view) bfsx0 a9 bfsx2 ss v v ss ss v ss v note: dv dd is the power supply for the i/o pins while cv dd is the power supply for the core cpu. v ss is the ground for both the i/o pins and the core cpu. the tms320vc5409pge (144-pin tqfp) package is footprint-compatible with the 'lc548, 'lc/vc549, and 'vc5410 devices. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 4 post office box 1443 ? houston, texas 772511443 tms320vc5409 ggu package (bottom view) a b d c e f h j l m k n g 1 2 3 4 5 6 7 8 10 12 11 13 9 the pin assignments table to follow lists each signal quadrant and bga ball number for the tms320vc5409ggu (144-pin bga package) which is footprint-compatible with the 'lc548, 'lc/vc549, and 'vc5410 devices. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 5 post office box 1443 ? houston, texas 772511443 pin assignments for the tms320vc5409ggu (144-pin bga package) 2 signal quadrant 1 bga ball # signal quadrant 2 bga ball # signal quadrant 3 bga ball # signal quadrant 4 bga ball # v ss a1 bfsx1 n13 v ss n1 a19 a13 a22 b1 bdx1 m13 bclkr1 n2 a20 a12 v ss c2 dv dd l12 hcntl0 m3 v ss b11 dv dd c1 v ss l13 v ss n3 dv dd a11 a10 d4 clkmd1 k10 bclkr0 k4 d6 d10 hd7 d3 clkmd2 k11 bclkr2 l4 d7 c10 a11 d2 clkmd3 k12 bfsr0 m4 d8 b10 a12 d1 hpi16 k13 bfsr2 n4 d9 a10 a13 e4 hd2 j10 bdr0 k5 d10 d9 a14 e3 tout j11 hcntl1 l5 d11 c9 a15 e2 emu0 j12 bdr2 m5 d12 b9 cv dd e1 emu1/off j13 bclkx0 n5 hd4 a9 has f4 tdo h10 bclkx2 k6 d13 d8 v ss f3 tdi h11 v ss l6 d14 c8 v ss f2 trst h12 hint m6 d15 b8 cv dd f1 tck h13 cv dd n6 hd5 a8 hcs g2 tms g12 bfsx0 m7 cv dd b7 hr/w g1 v ss g13 bfsx2 n7 v ss a7 ready g3 cv dd g11 hrdy l7 hds1 c7 ps g4 hpiena g10 dv dd k7 v ss d7 ds h1 v ss f13 v ss n8 hds2 a6 is h2 clkout f12 hd0 m8 dv dd b6 r/w h3 hd3 f11 bdx0 l8 a0 c6 mstrb h4 x1 f10 bdx2 k8 a1 d6 iostrb j1 x2/clkin e13 iack n9 a2 a5 msc j2 rs e12 hbil m9 a3 b5 xf j3 d0 e11 nmi l9 hd6 c5 holda j4 d1 e10 int0 k9 a4 d5 iaq k1 d2 d13 int1 n10 a5 a4 hold k2 d3 d12 int2 m10 a6 b4 bio k3 d4 d11 int3 l10 a7 c4 mp/mc l1 d5 c13 cv dd n11 a8 a3 dv dd l2 a16 c12 hd1 m11 a9 b3 v ss l3 v ss c11 v ss l11 cv dd c3 bdr1 m1 a17 b13 bclkx1 n12 a21 a2 bfsr1 m2 a18 b12 v ss m12 v ss b2 2 dv dd is the power supply for the i/o pins while cv dd is the power supply for the core cpu. v ss is the ground for both the i/o pins and the core cpu. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 6 post office box 1443 ? houston, texas 772511443 terminal functions the '5409 signal descriptions table lists each pin name, function, and operating mode(s) for the '5409 device. some of the '5409 pins can be configured for one of two functions; a primary function and a secondary function. the names of these pins in secondary mode are shaded in grey in the following table. terminal functions terminal internal i/o 2 description terminal name pin state i/o 2 description data signals a22 (msb) a21 a20 a19 a18 a17 a16 a15 a14 a13 a12 a11 a10 a9 a8 a7 a6 a5 a4 a3 a2 a1 a0 (lsb) bus holders available (a15a0) o/z parallel address bus a22 [most significant bit (msb)] through a0 [least significant bit (lsb)]. the lower sixteen address pins (a15 to a0) are multiplexed to address all external memory (program, data) or i/o while the upper seven address pins (a22 to a16) are only used to address external program space. these pins are placed in the high-impedance state when the hold mode is enabled, or when off is low. d15 (msb) d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 (lsb) bus holders available i/o/z parallel data bus d15 (msb) through d0 (lsb). the sixteen data pins (d15 to d0) are multiplexed to transfer data between the core cpu and external data/program memory or i/o devices. the data bus is placed in the high-impedance state when not outputting or when rs or hold is asserted. the data bus also goes into the high-impedance state when off is low. the data bus has bus holders to reduce the static power dissipation caused by floating, unused pins. these bus holders also eliminate the need for external bias resistors on unused pins. when the data bus is not being driven by the '5409, the bus holders keep the pins at the previous logic level. the data bus holders on the '5409 are disabled at reset and can be enabled/disabled via the bh bit of the bank-switching control register (bscr). initialization, interrupt, and reset operations iack o/z interrupt acknowledge signal. iack indicates receipt of an interrupt and that the program counter is fetching the interrupt vector location designated by a15a0. iack also goes into the high-impedance state when off is low. int0 int1 int2 int3 schmitt trigger i external user interrupts. int0 int3 are prioritized and are maskable by the interrupt mask register and the interrupt mode bit. int0 int3 can be polled and reset by way of the interrupt flag register. 2 i = input, o = output, z = high-impedance, s = supply tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 7 post office box 1443 ? houston, texas 772511443 terminal functions (continued) terminal name description i/o 2 internal terminal name description i/o 2 pin state initialization, interrupt, and reset operations (continued) nmi schmitt trigger i nonmaskable interrupt. nmi is an external interrupt that cannot be masked by way of the intm or the imr. when nmi is activated, the processor traps to the appropriate vector location. rs schmitt trigger i reset. rs causes the dsp to terminate execution and causes a reinitialization of the cpu and peripherals. when rs is brought to a high level, execution begins at location 0ff80h of program memory. rs affects various registers and status bits. mp/mc i microprocessor/microcomputer mode select. if active low at reset, microcomputer mode is selected, and the internal program rom is mapped into the upper program memory space. if the pin is driven high during reset, microprocessor mode is selected, and the on-chip rom is removed from program space. mp/mc is only sampled at reset, and the mp/mc bit of the pmst register can override the mode that is selected at reset. multiprocessing signals bio schmitt trigger i branch control. a branch can be conditionally executed when bio is active. if low, the processor executes the conditional instruction. for the xc instruction, the bio condition is sampled during the decode phase of the pipeline; all other instructions sample bio during the read phase of the pipeline. xf o/z external flag output (latched software-programmable signal). xf is set high by the ssbx xf instruction, set low by the rsbx xf instruction or by loading st1. xf is used for signaling other processors in multiprocessor configurations or used as a general-purpose output pin. xf goes into the high-impedance state when off is low, and is set high at reset. memory control signals ds ps is o/z data, program, and i/o space select signals. ds , ps , and is are always high unless driven low for accessing a particular external memory space. active period corresponds to valid address information. ds , ps , and is are placed into the high-impedance state in the hold mode; the signals also go into the high-impedance state when off is low. mstrb o/z memory strobe signal. mstrb is always high unless low-level asserted to indicate an external bus access to data or program memory. mstrb is placed in the high-impedance state in the hold mode; it also goes into the high-impedance state when off is low. ready i data ready. ready indicates that an external device is prepared for a bus transaction to be completed. if the device is not ready (ready is low), the processor waits one cycle and checks ready again. note that the processor performs ready detection if at least two software wait states are programmed. the ready signal is not sampled until the completion of the software wait states. r/w o/z read/write signal. r/w indicates transfer direction during communication to an external device. r/w is normally in the read mode (high), unless it is asserted low when the dsp performs a write operation. r/w is placed in the high-impedance state in hold mode; it also goes into the high-impedance state when off is low. iostrb o/z i/o strobe signal. iostrb is always high unless low-level asserted to indicate an external bus access to an i/o device. iostrb is placed in the high-impedance state in the hold mode; it also goes into the high-impedance state when off is low. hold i hold. hold is asserted to request control of the address, data, and control lines. when acknowledged by the 'c54x, these lines go into the high-impedance state. holda o/z hold acknowledge. holda indicates that the '5409 is in a hold state and that the address, data, and control lines are in the high-impedance state, allowing the external memory interface to be accessed by other devices. holda also goes into the high-impedance state when off is low. msc o/z microstate complete. msc indicates completion of all software wait states. when two or more software wait states are enabled, the msc pin goes low during the last of these wait states. if connected to the ready input, msc forces one external wait state after the last internal wait state is completed. msc also goes into the high-impedance state when off is low. iaq o/z instruction acquisition signal. iaq is asserted (active low) when there is an instruction address on the address bus. iaq goes into the high-impedance state when off is low. 2 i = input, o = output, z = high-impedance, s = supply tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 8 post office box 1443 ? houston, texas 772511443 terminal functions (continued) terminal name description i/o 2 internal terminal name description i/o 2 pin state oscillator/timer signals clkout o/z master clock output signal. clkout cycles at the machine-cycle rate of the cpu. the internal machine cycle is bounded by rising edges of this signal. clkout also goes into the high-impedance state when off is low. clkmd1 clkmd2 clkmd3 schmitt trigger i clock mode select signals. these inputs select the mode that the clock generator is initialized to after reset. the logic levels of clkmd1clkmd3 are latched when the reset pin is low, and the clock mode register is initialized to the selected mode. after reset, the clock mode can be changed through software, but the clock mode select signals have no effect until the device is reset again. x2/clkin schmitt trigger i clock/oscillator input. if the internal oscillator is not being used, x2/clkin functions as the clock input. x1 o output pin from the internal oscillator for the crystal. if the internal oscillator is not used, x1 should be left unconnected. x1 does not go into the high-impedance state when off is low. tout o/z timer output. tout signals a pulse when the on-chip timer counts down past zero. the pulse is one clkout cycle wide. tout also goes into the high-impedance state when off is low. multichannel buffered serial port signals bclkr0 bclkr1 bclkr2 schmitt trigger i/o/z receive clocks. bclkr serves as the serial shift clock for the buffered serial-port receiver. input from an external clock source for clocking data into the mcbsp. when not being used as a clock, these pins can be used as general-purpose i/o by setting rioen = 1. bclkr can be configured as an output by the way of the clkrm bit in the pcr register. bdr0 bdr1 bdr2 i buffered serial data receive (input) pin. when not being used as data-receive pins, these pins can be used as general-purpose i/o by setting rioen = 1. bfsr0 bfsr1 bfsr2 i/o/z frame synchronization pin for buffered serial-port input data. the bfsr pulse initiates the receive-data process over the bdr pin. when not being used as data-receive synchronization pins, these pins can be used as general-purpose i/o by setting rioen = 1. bclkx0 bclkx1 bclkx2 schmitt trigger i/o/z transmit clocks. clock signal used to clock data from the transmit register. this pin can also be configured as an input by setting the clkxm = 0 in the pcr register. when not being used as a clock, these pins can be used as general-purpose i/o by setting xioen = 1. these pins are placed into the high-impedance state when off is low. bdx0 bdx1 bdx2 o/z buffered serial-port transmit (output) pin. when not being used as data-transmit pins, these pins can be used as general-purpose i/o by setting xioen = 1. these pins are placed into the high-impedance state when off is low. bfsx0 bfsx1 bfsx2 i/o/z buffered serial-port frame synchronization pin for transmitting data. the bfsx pulse initiates the transmit-data process over bdx pin. if rs is asserted when bfsx is configured as output, then bfsx is turned into input mode by the reset operation. when not being used as data-transmit synchronization pins, these pins can be used as general-purpose i/o by setting xioen = 1. these pins are placed into the high-impedance state when off is low. 2 i = input, o = output, z = high-impedance, s = supply tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 9 post office box 1443 ? houston, texas 772511443 terminal functions (continued) terminal name description i/o 2 internal terminal name description i/o 2 pin state host-port interface signals secondary primary ha15 ha0 bus holders available i/o/z a15 a0 o/z these pins can be used to address internal memory via the hpi when the hpi16 pin is high. the sixteen address pins, a15 to a0, are multiplexed to transfer address between the core cpu and external data/program memory, i/o devices, or hpi in 16-bit mode. the address bus includes bus holders to reduce the static power dissipation caused by floating, unused pins. the bus holders also eliminate the need for external bias resistors on unused pins. when the address bus is not being driven by the '5409, the bus holders keep the pins at the logic level that was most recently driven. the address bus holders of the '5409 are disabled at reset, and can be enabled/disabled via the hbh bit of the bscr. hd15 hd0 bus holders available i/o/z d15 d0 o/z these pins can be used to read/write internal memory via the hpi when the hpi16 pin is high. the sixteen data pins, d15 to d0, are multiplexed to transfer data between the core cpu and external data/program memory, i/o devices, or hpi in 16-bit mode. the data bus is placed in the high-impedance state when not outputting or when rs or hold is asserted. the data bus also goes into the high-impedance state when off is low. the data bus includes bus holders to reduce the static power dissipation caused by floating, unused pins. the bus holders also eliminate the need for external bias resistors on unused pins. when the data bus is not being driven by the '5409, the bus holders keep the pins at the logic level that was most recently driven. the data bus holders of the '5409 are disabled at reset, and can be enabled/disabled via the bh bit of the bscr. hd7 hd0 bus holders available i/o/z parallel bidirectional data bus. when the hpi is disabled or when the hpi16 pin is high, these pins can also be used as general-purpose i/o pins. hd7hd0 are placed in the high-impedance state when not outputting data or when off is low. the hpi data bus includes bus holders to reduce the static power dissipation caused by floating, unused pins. when the hpi data bus is not being driven by the '5409, the bus holders keep the pins at the logic level that was most recently driven. the hpi data bus holders are disabled at reset. in 8-bit mode the bus holders can be enabled/disabled via the hbh bit of the bscr. in 16-bit mode the bus holders are always active on the hd7hd0 pins. hcntl0 hcntl1 pullup resistor i control. hcntl0 and hcntl1 select a host access to one of the three hpi registers. the control inputs have internal pullup resistors that are only enabled when hpiena = 0. hbil pullup resistor i byte identification. hbil identifies the first or second byte of transfer. the hbil input has an internal pullup resistor that is only enabled when hpiena = 0. hcs schmitt trigger/pullup resistor i chip select. hcs is the select input for the hpi and must be driven low during accesses. the chip-select input has an internal pullup resistor that is only enabled when hpiena = 0. hds1 hds2 schmitt trigger/pullup resistor i data strobe. hds1 and hds2 are driven by the host read and write strobes to control transfers. the strobe inputs have internal pullup resistors that are only enabled when hpiena = 0. has schmitt trigger/pullup resistor i address strobe. hosts with multiplexed address and data pins require has to latch the address in the hpia register. has has an internal pullup resistor that is only enabled when hpiena = 0. 2 i = input, o = output, z = high-impedance, s = supply tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 10 post office box 1443 ? houston, texas 772511443 terminal functions (continued) terminal name description i/o 2 internal terminal name description i/o 2 pin state host-port interface signals (continued) hr/w pullup resistor i read/write. hr/w controls the direction of an hpi transfer. r/w has an internal pullup resistor that is only enabled when hpiena = 0. hrdy o/z ready. the ready output informs the host when the hpi is ready for the next transfer. hrdy goes into the high-impedance state when off is low. hint o/z interrupt. this output is used to interrupt the host. when the dsp is in reset, hint is driven high . the signal goes into the high-impedance state when off is low. hpiena pulldown resistor i hpi module select. hpiena must be driven high during reset to enable the hpi. an internal pulldown resistor is always active and the hpiena pin is sampled on the rising edge of rs . if hpiena is left open or is driven low during reset, the hpi module is disabled. once the hpi is disabled, the hpiena pin has no effect until the '5409 is reset. hpi16 pulldown resistor i hpi 16-bit select pin (internal pulldown, default hpi8). hpi16 = 1 selects the non-multiplexed mode. the non-multiplexed mode allows hosts with separate address/data buses to access the hpi address range via the 16 address pins (a15a0). 16-bit data is also accessible through pins d0 through d15. host-to-dsp and dsp-to-host interrupts are not supported. there are no hpic and hpia register accesses in the non-multiplexed mode. the hpi16 pin is sampled at reset. the user should never change the value of the hpi16 pin while the reset signal is high. supply pins cv dd s +v dd . dedicated 1.8-v power supply for the core cpu dv dd s +v dd . dedicated 3.3-v power supply for the i/o pins v ss s ground test pins tck schmitt trigger/pullup resistor i ieee standard 1149.1 test clock. tck is normally a free-running clock signal with a 50% duty cycle. the changes on the test access port (tap) of input signals tms and tdi are clocked into the tap controller, instruction register, or selected test data register on the rising edge of tck. changes at the tap output signal (tdo) occur on the falling edge of tck. tdi pullup resistor i ieee standard 1149.1 test data input pin with internal pullup device. tdi is clocked into the selected register (instruction or data) on a rising edge of tck. tdo o/z ieee standard 1149.1 test data output. the contents of the selected register (instruction or data) are shifted out of tdo on the falling edge of tck. tdo is in the high-impedance state except when the scanning of data is in progress. tdo also goes into the high-impedance state when off is low. tms pullup resistor i ieee standard 1149.1 test mode select. pin with internal pullup device. this serial control input is clocked into the tap controller on the rising edge of tck. trst pulldown resistor i ieee standard 1149.1 test reset. trst , when high, gives the ieee standard 1149.1 scan system control of the operations of the device. if trst is not connected or is driven low, the device operates in its functional mode, and the ieee standard 1149.1 signals are ignored. pin with internal pulldown device. 2 i = input, o = output, z = high-impedance, s = supply tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 11 post office box 1443 ? houston, texas 772511443 terminal functions (continued) terminal name description i/o 2 internal terminal name description i/o 2 pin state test pins (continued) emu0 i/o/z emulator 0 pin. when trst is driven low, emu0 must be high for activation of the off condition. when trst is driven high, emu0 is used as an interrupt to or from the emulator system and is defined as input/output by way of the ieee standard 1149.1 scan system. emu1/off i/o/z emulator 1 pin/disable all outputs. when trst is driven high, emu1/off is used as an interrupt to or from the emulator system and is defined as input/output by way of the ieee standard 1149.1 scan system. when trst is driven low, emu1/off is configured as off . the emu1/off signal, when active low, puts all output drivers into the high-impedance state. note that off is used exclusively for testing and emulation purposes (not for multiprocessing applications). therefore, for the off feature, the following apply: trst = low emu0 = high emu1/off = low 2 i = input, o = output, z = high-impedance, s = supply memory the '5409 device provides both on-chip rom and ram memories to aid in system performance and integration. on-chip rom with bootloader a bootloader is available in the standard '5409 on-chip rom. this bootloader can be used to automatically transfer user code from an external source to anywhere in the program memory at power up. if the mp/mc pin is sampled low during a hardware reset, execution begins at location ff80h of the on-chip rom. this location contains a branch instruction to the start of the bootloader program. the standard '5409 bootloader provides different ways to download the code to accommodate various system requirements: parallel from 8-bit or 16-bit-wide eprom parallel from i/o space 8-bit or 16-bit mode serial boot from serial ports 8-bit or 16-bit mode host-port interface boot spi serial eeprom 8-bit boot mode the standard on-chip rom layout is shown in table 1. on-chip memory security the '5409 features a 16k-word 16-bit on-chip maskable rom. customers can arrange to have the rom of the '5409 programmed with contents unique to any particular application. a security option is available to protect a custom rom. the rom and rom/ram security options are available on the '5409. these security options are described in the tms320c54x dsp cpu and peripherals reference set, volume 1 (literature number spru131). when the security options are enabled, jtag emulation is inhibited or nonfunctional. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 12 post office box 1443 ? houston, texas 772511443 on-chip rom with bootloader (continued) table 1. standard on-chip rom layout 2 address range description 0x0000h 0xbfffh external program space 0xc000h 0xf7ffh reserved 0xf800h 0xfbffh bootloader 0xfc00h 0xfeffh reserved 0xff00h 0xff7fh reserved 2 0xff80h 0xffffh interrupt vector table 2 in the 'vc5409 rom, 128 words are reserved for factory device-testing purposes. application code to be implemented in on-chip rom must reserve these 128 words at addresses ff00hff7fh in program space. on-chip ram the '5409 device contains 32k 16-bit of on-chip dual-access ram (daram). the daram is composed of four blocks of 8k words each. each block in the daram can support two reads in one cycle, or a read and a write in one cycle. the daram is located in the address range 0080h7fffh in data space, and can be mapped into program/data space by setting the ovly bit to one. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 13 post office box 1443 ? houston, texas 772511443 memory map page 0 program hex data on-chip daram 2 (ovly = 1) external (ovly = 0) mp/mc = 0 (microcomputer mode) mp/mc = 1 (microprocessor mode) 0000 007f 0080 ffff reserved (ovly = 1) external (ovly = 0) interrupts (external) ff80 memory- mapped registers on-chip daram 2 (32k words) rom (drom=1) or external (drom=0) 0080 ffff hex 0000 ff7f ff00 feff bfff c000 ffff 0060 007f 0000 hex page 0 program external external scratch-pad ram reserved (drom=1) or external (drom=0) 005f reserved (ovly = 1) external (ovly = 0) 007f 0080 on-chip daram 2 (ovly = 1) external (ovly = 0) ff80 feff bfff c000 external on-chip rom (16k words) interrupts (on-chip) 7fff 7fff 7fff 8000 8000 8000 ff00 ff7f reserved 2 daram0= 0060h 1fffh , daram1= 2000h 3fffh daram2= 4000h 5fffh, daram3= 6000h 7fffh figure 1. memory map relocatable interrupt vector table the reset, interrupt, and trap vectors are addressed in program space. these vectors are soft e meaning that the processor, when taking the trap, loads the program counter (pc) with the trap address and executes the code at the vector location. four words are reserved at each vector location to accommodate a delayed branch instruction, either two 1-word instructions or one 2-word instruction, which allows branching to the appropriate interrupt service routine with minimal overhead. at device reset, the reset, interrupt, and trap vectors are mapped to address ff80h in program space. however, these vectors can be remapped to the beginning of any 128-word page in program space after device reset. this is done by loading the interrupt vector pointer (iptr) bits in the pmst register with the appropriate 128-word page boundary address. after loading iptr, any user interrupt or trap vector is mapped to the new 128-word page. note: the hardware reset (rs ) vector cannot be remapped because a hardware reset loads the iptr with 1s. therefore, the reset vector is always fetched at location ff80h in program space. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 14 post office box 1443 ? houston, texas 772511443 extended program memory the '5409 cpu uses a paged extended memory scheme in program space to allow access of up to 8m program memory locations. in order to implement this scheme, the '5409 includes several features that are also present on the '548/'549 devices: twenty-three address lines, instead of sixteen an extra memory-mapped register, the xpc register defines the page selection. this register is memory-mapped into data space to address 001eh. at a hardware reset, the xpc is initialized to 0. six extra instructions for addressing extended program space. these six instructions affect the xpc. fb[d] pmad (23 bits) far branch fbacc[d] accu[22:0] far branch to the location specified by the value in accumulator a or accumulator b fcall[d] pmad (23 bits) far call fcala[d] accu[22:0] far call to the location specified by the value in accumulator a or accumulator b fret[d] far return frete[d] far return with interrupts enabled in addition to these new instructions, two '54x instructions are extended to use 23 bits in the '5409: reada data_memory (using 23-bit accumulator address) writa data_memory (using 23-bit accumulator address) all other instructions, software interrupts, and hardware interrupts do not modify the xpc register and access only memory within the current page. program memory in the '5409 is organized into 127 pages that are each 64k in length, as shown in figure 2. 00 0000 page 0 64k 2 1 0000 1 7fff page 1 lower 32k 3 external 2 0000 2 7fff page 2 lower 32k 3 external . . . . . . 7f 0000 7f 7fff page 127 lower 32k 3 external 0 ffff 1 8000 1 ffff page 1 upper 32k external 2 8000 2 ffff page 2 upper 32k external . . . . . . 7f 8000 7f ffff page 127 upper 32k external 2 refer to figure 1. 5409 memory map. 3 the lower 32k words of pages 1 through 126 are available only when the ovly bit is cleared to 0. if the ovly bit is set to 1, the on-chip ram is mapped to the lower 32k words of all program space pages. figure 2. extended program memory tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 15 post office box 1443 ? houston, texas 772511443 on-chip peripherals the '5409 device has the following peripherals: software-programmable wait-state generator with programmable bank-switching wait states an enhanced 8-bit host-port interface (hpi8/16) with 16-bit data/addressing three multichannel buffered serial ports (mcbsps) one hardware timer a clock generator with a phase-locked loop (pll) a direct memory access (dma) controller software-programmable wait-state generator the software wait-state generator of the '5409 is similar to that of the '5410 and it can extend external bus cycles by up to fourteen machine cycles. devices that require more than fourteen wait states can be interfaced using the hardware ready line. when all external accesses are configured for zero wait states, the internal clocks to the wait-state generator are automatically disabled. disabling the wait-state generator clocks reduces the power consumption of the '5409. the software wait-state register (swwsr) controls the operation of the wait-state generator. the 14 lsbs of the swwsr specify the number of wait states (0 to 7) to be inserted for external memory accesses to five separate address ranges. this allows a different number of wait states for each of the five address ranges. additionally, the software wait-state multiplier (swsm) bit of the system configuration register (scr) defines a multiplication factor of 1 or 2 for the number of wait states. at reset, the wait-state generator is initialized to provide seven wait states on all external memory accesses. the swwsr bit fields are shown in figure 3 and described in table 2. xpa i/o data data program program 14 12 11 9 8 6 5 3 2 0 15 r/w-111 r/w-0 r/w-111 r/w-111 r/w-111 r/w-111 legend: r = read, w = write figure 3. software wait-state register (swwsr) [memory-mapped register (mmr) address 0028h] tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 16 post office box 1443 ? houston, texas 772511443 software-programmable wait-state generator (continued) table 2. software wait-state register (swwsr) bit fields bit reset function no. name reset value function 15 xpa 0 extended program address control bit. xpa is used in conjunction with the program space fields (bits 0 through 5) to select the address range for program space wait states. 1412 i/o 1 i/o space. the field value (07) corresponds to the base number of wait states for i/o space accesses within addresses 0000ffffh. the swsm bit of the swcr defines a multiplication factor of 1 or 2 for the base number of wait states. 119 data 1 upper data space. the field value (07) corresponds to the base number of wait states for external data space accesses within addresses 8000ffffh. the swsm bit of the swcr defines a multiplication factor of 1 or 2 for the base number of wait states. 86 data 1 lower data space. the field value (07) corresponds to the base number of wait states for external data space accesses within addresses 00007fffh. the swsm bit of the swcr defines a multiplication factor of 1 or 2 for the base number of wait states. 53 program 1 upper program space. the field value (07) corresponds to the base number of wait states for external program space accesses within the following addresses: xpa = 0: x8000 xffffh xpa = 1: the upper program space bit field has no effect on wait states. the swsm bit of the swcr defines a multiplication factor of 1 or 2 for the base number of wait states. 20 program 1 program space. the field value (07) corresponds to the base number of wait states for external program space accesses within the following addresses: xpa = 0: x0000x7fffh xpa = 1: 00000fffffh the swsm bit of the swcr defines a multiplication factor of 1 or 2 for the base number of wait states. the software wait-state multiplier bit of the software wait-state configuration register is used to extend the base number of wait states selected by the swwsr. the swcr bit fields are shown in figure 4 and described in table 3. reserved 1 15 r/w-0 swsm 0 r/w-0 legend: r = read, w = write figure 4. software wait-state configuration register (swcr) [mmr address 002bh] table 3. software wait-state configuration register (swcr) bit fields pin reset function no. name reset value function 151 reserved 0 these bits are reserved and are unaffected by writes. 0 swsm 0 software wait-state multiplier. used to multiply the number of wait states defined in the swwsr by a factor of 1 or 2. swsm = 0: wait-state base values are unchanged (multiplied by 1). swsm = 1: wait-state base values are multiplied by 2 for a maximum of 14 wait states. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 17 post office box 1443 ? houston, texas 772511443 programmable bank-switching wait states the programmable bank-switching logic of the '5409 is functionally equivalent to that of the '548/'549 devices. this feature automatically inserts one cycle when accesses cross memory-bank boundaries within program or data memory space. a bank-switching wait state can also be automatically inserted when accesses cross the data space boundary into program space. the bank-switching control register (bscr) defines the bank size for bank-switching wait-states. figure 5 shows the bscr and its bits are described in table 4. bnkcmp ps-ds reserved hbh 12 11 3 2 1 15 r/w-0 r-0 r/w-1 r/w-1111 bh exio 0 10 r/w-0 r/w-0 legend: r = read, w = write figure 5. bank-switching control register (bscr) [mmr address 0029h] table 4. bank-switching control register fields bit reset function no. name reset value function 1512 bnkcmp 1111 bank compare. bnkcmp determines the external memory-bank size. bnkcmp is used to mask the four msbs of an address. for example, if bnkcmp = 1111b, the four msbs (bits 1215) are compared, resulting in a bank size of 4k words. bank sizes of 4k words to 64k words are allowed. 11 ps-ds 1 program read data read access. ps-ds inserts an extra cycle between consecutive accesses of program read and data read or data read and program read. ps-ds = 0 no extra cycles are inserted by this feature. ps-ds = 1 one extra cycle is inserted between consecutive data and program reads. 103 reserved 0 these bits are reserved and are unaffected by writes. hpi bus holder. hbh controls the hpi bus holder feature. hbh is cleared to 0 at reset . 8-bit mode hbh = 0 the bus holder is disabled for the hpi data bus (hd[7:0]). hbh = 1 the bus holders are enabled on hd[7:0]. when not driven, the hpi data bus (hd[7:0]) is held in the previous logic level. 2 hbh 0 hpi bus holder. hbh controls the hpi bus holder feature. hbh is cleared to 0 at reset . 16-bit mode hbh = 0 the bus holder is disabled for the hpi address bus (ha[15:0]). the hpi gpio pins (hd[7:0]) are held in the previous logic level. hbh = 1 the bus holders are enabled on ha[15:0]. when not driven, the hpi address bus (a[15:0]) and hpi gpio pins (hd[7:0]) are held in the previous logic level. 1 bh 0 bus holder. bh controls the data bus holder feature. bh is cleared to 0 at reset. bh = 0 the bus holder is disabled. bh = 1 the bus holder is enabled. when not driven, the data bus (d[15:0]) is held in the previous logic level. 0 exio 0 external bus interface off. the exio bit controls the external bus-off function. exio = 0 the external bus interface functions as usual. exio = 1 the address bus, data bus, and control signals become inactive after completing the current bus cycle. note that the drom, mp/mc , and ovly bits in the pmst and the hm bit of st1 cannot be modified when the interface is disabled. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 18 post office box 1443 ? houston, texas 772511443 parallel i/o ports the '5409 cpu has a total of 64k i/o ports. these ports can be addressed by the portr instruction or the portw instruction. the is signal indicates a read/write operation through an i/o port. the '5409 can interface easily with external devices through the i/o ports while requiring minimal off-chip address-decoding circuits. enhanced 8-bit host-port interface (hpi8/16) the '5409 host-port interface, also referred to as the hpi8/16, is an enhanced version of the standard 8-bit hpi found on earlier '54x dsps ('542, '545, '548, and '549). the hpi8/16 is an 8-bit parallel port for interprocessor communication. the features of the hpi8/16 include: standard features: sequential transfers (with autoincrement) or random-access transfers host interrupt and '54x interrupt capability multiple data strobes and control pins for interface flexibility enhanced features of the '5409 hpi8/16: access to entire on-chip ram through dma bus capability to continue transferring during emulation stop capability to transfer 16-bit address and 16-bit data (non-multiplexed mode) the hpi8/16 functions as a slave and enables the host processor to access the on-chip memory of the '5409. a major enhancement to the '5409 hpi over previous versions is that it allows host access to the entire on-chip memory range of the dsp. the hpi8/16 does not have access to external memory. the host and the dsp both have access to the on-chip ram at all times and host accesses are always synchronized to the dsp clock. if the host and the dsp contend for access to the same location, the host has priority, and the dsp waits for one hpi8/16 cycle. note that since host accesses are always synchronized to the '5409 clock, an active input clock (clkin) is required for hpi8/16 accesses during idle states, and host accesses are not allowed while the '5409 reset pin is asserted. 0000h 005fh reserved 0060h 007fh scratch-pad ram 0080h 7fffh on-chip ram (32k x 16 bits) 8000h ffffh reserved figure 6. '5409 hpi memory map standard 8-bit mode the hpi8/16 interface consists of an 8-bit bidirectional data bus and various control signals. sixteen-bit transfers are accomplished in two parts with the hbil input designating high or low byte. the host communicates with the hpi8 through three dedicated registers e hpi address register (hpia), hpi data register (hpid), and an hpi control register (hpic). the hpia and hpid registers are only accessible by the host, and the hpic register is accessible by both the host and the '5409. if the hpi is disabled (hpiena = 0) or in hpi16 mode (hpi16 = 1), the 8-bit bidirectional data pins hd0hd7 can be used as general-purpose input/output (gpio). tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 19 post office box 1443 ? houston, texas 772511443 16-bit nonmultiplexed mode in nonmultiplexed mode, a host with separate address/data buses can access the hpi16 data register (hpid) via the hd 16-bit bidirectional data bus, and the address register (hpia) via the 16-bit ha address bus, external address and data pins, a0a15 and d0d15, respectively. the host initiates an access with the strobe signals (hds1 , hds2 , hcs ) and controls the direction of the access with the hr/w signal. the hpi16 can stall host accesses via the hrdy signal. note that the hpic register is not available in nonmultiplexed mode since there are no hcntl signals available. all host accesses initiate a dma read or write access. the hpi16 nonmultiplexed mode does not support host-to-dsp and dsp-to-host interrupts. when the hpi is disabled or in hpi16 mode, hd0hd7 can be configured as general-purpose input/output (gpio). the hpi16 pin is sampled at reset. the hpi16 pin should never be changed while the device reset is high. host bus holder configuration the '5409 has two bus holder control bits, bh (bscr[1]) and hbh (bscr[2]), to control the bus keepers of the address bus (a[150]), data bus (d[150]) and the hpi data bus (hd[70]). the bus keeper enabling/disabling is described in table 5. table 5. bus holder control bits hpi16 pin bh hbh d[150] a[150] hd[70] 0 0 0 off off off 0 0 1 off off on 0 1 0 on off off 0 1 1 on off on 1 0 0 off off on 1 0 1 off on on 1 1 0 on off on 1 1 1 on on on the hpi bus holders are activated via the hbh bit in the bank switch control register (bscr). the hbh bit can control bus holder behavior for both the 8-bit and 16-bit modes. in the 8-bit mode, the hbh bit controls the bus holders on the host data pins hd7hd0. when hbh = 1, the host data bus holders are active. when hbh = 0 the host data bus holders are inactive. in the 16-bit nonmultiplexed mode, the bus holders for pins hd7hd0 are always active; however, the hbh bit controls the host address pins a15a0. when hbh = 1, the host address bus holders are active. when hbh = 0, the host address bus holders are inactive. operation during idle2 the hpi can continue to operate during idle1 or idle2 by using special clock management logic that turns on relevant clocks to perform a synchronous memory access, and then turns the clocks back off to save power. the dsp cpu does not wake up from the idle mode during this process. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 20 post office box 1443 ? houston, texas 772511443 multichannel buffered serial ports (mcbsps) the '5409 device has three high-speed, full-duplex multichannel buffered serial ports (mcbsps) that allow direct interface to other 'c54x/'lc54x devices, codecs, and other devices in a system. the mcbsps are based on the standard serial port interface found on other '54x devices. like its predecessors, the mcbsp provides: full-duplex communication double-buffer data registers, which allow a continuous data stream independent framing and clocking for receive and transmit in addition, the mcbsp has the following capabilities: direct interface to: t1/e1 framers mvip switching-compatible and st-bus compliant devices iom-2 compliant devices ac97-compliant devices serial peripheral interface (spi ) devices multichannel transmit and receive of up to 32 channels in a 128 channel stream. a wide selection of data sizes including 8, 12, 16, 20, 24, or 32 bits m -law and a-law companding programmable polarity for both frame synchronization and data clocks programmable internal clock and frame generation for detailed information on the standard features of the mcbsp, refer to the tms320c54x dsp enhanced peripherals reference set , literature number spru302. although the bclks pin is not available on the '5409 pge and ggu packages, the '5409 is capable of synchronization to external clock sources. bclkx or bclkr can be used by the sample rate generator for external synchronization. the sample rate clock mode extended (sclkme) bit field is located in the pcr to accommodate this option. 15 14 13 12 11 10 9 8 reserved xioen rioen fsxm fsrm clkxm clkrm rw rw rw rw rw rw rw 76543210 sclkme clks stat dx stat dr stat fsxp fsrp clkxp clkrp rw rw rw rw rw rw rw rw legend: r = read, w = write figure 7. pin control register (pcr) spi is a trademark of motorola inc. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 21 post office box 1443 ? houston, texas 772511443 multichannel buffered serial ports (mcbsps) (continued) table 6. pin control register (pcr) bit field description bit name function 15 14 reserved reserved. pins are not used. 13 xioen transmit/receive general-purpose i/o mode only when xrst =0 in the spcr(1/2) xioen = 0 dx pin is not a general-purpose output. fsx and clkx are not general-purpose i/os. xioen = 1 dx pin is a general-purpose output. fsx and clkx are general-purpose i/os. these serial port pins do not perform serial port operations. 12 rioen transmit/receive general-purpose i/o mode only when rrst =0 in the spcr(1/2) rioen = 0 dr and clks pins are not general-purpose inputs. fsr and clkr are not general-purpose i/os. rioen = 1 dr and clks pins are general-purpose inputs. fsr and clkr are general-purpose i/os. these serial port pins do not perform serial port operations. the clks pin is affected by a combination of rrst and rioen signals of the receiver. 11 fsxm transmit frame synchronization mode fsrm = 0 frame synchronization signal derived from an external source. fsrm = 1 frame synchronization is determined by the sample rate generator frame synchronization mode bit (fsgm) in the srgr2. 10 fsrm receive frame synchronization mode fsrm = 0 frame synchronization pulses generated by an external device. fsr is an input pin. fsrm = 1 frame synchronization generated internally by the sample rate generator. fsr is an output pin except when gsync=1 in the srgr. 9 clkrm receiver clock mode case 1: digital loop-back mode is not set (dlb=0) in spcr1. clkrm = 0 receive clock (clkr) is an input pin driven by an external clock. clkrm= 1 clkr is an output pin and is driven by the internal sample rate generator case 2: digital loop-back mode set (dlb=1) in spcr1 clkrm = 0 receive clock ( not the clkr pin) is driven by transmit clock (clkx), which is based on clkxm bit in the pcr. clkr pin is in high-impedance mode. clkrm= 1 clkr is an output pin and is driven by the transmit clock. the transmit clock is derived based on the clkxm bit in the pcr. 8 clkxm transmitter clock mode clkxm = 0 receiver/transmitter clock is driven by an external clock with clk(r/x) as an input pin clkxm= 1 clk(r/x) is an output pin and is driven by the internal sample rate generator during spi mode (clkstp is a non-zero value): clkxm = 0 mcbsp is a slave and clock (clkx) is driven by the spi master in the system. clkr is internally driven by clkx. clkxm= 1 mcbsp is a master and generates the clock (clkx) to drive its receive clock (clkr) and the shift clock of the spi-compliant slaves in the system. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 22 post office box 1443 ? houston, texas 772511443 table 6. pin control register (pcr) bit field description (continued) bit function name 7 sclkme sample rate clock mode extended sclkme = 0 external clock via clks or cpu clock is used as a reference by the sample rate generator. sclkme = 1 external clock via clkr or clkx clock is used as a reference by the sample rate generator. 6 clks stat clks pin status. clks stat reflects value on clks pin when selected as a general-purpose input. 5 dx stat dx pin status. dx stat reflects value on dx pin when it is selected as a general-purpose output. 4 dr stat dr pin status. dr stat reflects value on dr pin when it is selected as a general-purpose input. 32 fsxp receive/transmit frame synchronization polarity. 3 2 fsxp fsrp fs(r/x)p = 0 frame synchronization pulse fs(r/x) is active high fs(r/x)p = 1 frame synchronization pulse fs(r/x) is active low 1 clkxp transmit clock polarity clkxp = 0 transmit data sampled on rising edge of clkr clkxp = 1 transmit data sampled on falling edge of clkr 0 clkrp receive clock polarity clkrp = 0 receive data sampled on falling edge of clkr clkrp = 1 receive data sampled on rising edge of clkr the '5409 sample rate generator has four clock input options that are only available when both the pcr and srgr2 are used. table 7 shows the sample rate generator clock input options. table 7. sample rate generator clock input options mode sclkme (pcr.7) clksm (srgr2.13) clks pin 0 0 cpu 0 1 clkr pin 1 0 clkx pin 1 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 gsync clksp clksm fsgm fper rw rw rw rw rw legend: r = read, w = write figure 8. sample rate generator register 2 (srgr2) multichannel buffered serial ports (mcbsps) (continued) tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 23 post office box 1443 ? houston, texas 772511443 multichannel buffered serial ports (mcbsps) (continued) table 8. sample rate generator register 2 (srgr2) bit field descriptions bit name function bit name function 15 gsync sample rate generator clock synchronization. only used when the external clock (clks) drives the sample rate generator clock (clksm=0) gsync = 0 the sample rate generator clock (clkg) is free-running. gsync = 1 the sample rate generator clock (clkg) is running. but clkg is resynchronized and frame sync signal (fsg) is generated only after detecting the receive frame synchronization signal (fsr). also, frame period (fper) is a don't care because the period is dictated by the external frame sync pulse. 14 clksp clks polarity clock edge select. only used when the external clock (clks) drives the sample rate generator clock (clksm=0). clksp = 0 rising edge of clks generates clkg and fsg. clksp = 1 falling edge of clks generates clkg and fsg. 13 clksm mcbsp sample rate generator clock mode sclkme = 0 clksm = 0 sample rate generator clock derived from the clks pin (in pcr) clksm = 1 sample rate generator clock derived from cpu clock sclkme = 1 clksm = 0 sample rate generator clock derived from clkr pin (in pcr) clksm = 1 sample rate generator clock derived from clkx pin 12 fsgm sample rate generator transmit frame synchronization mode. used when fsxm=1 in the pcr. fsgm = 0 transmit frame sync signal (fsx) due to dxr(1/2) copy fsgn = 1 transmit frame sync signal driven by the sample rate generator frame sync signal (fsg) 11 0 fper frame period. this determines when the next frame sycn signal should become active. range: up to 2 12 ; 1 to 4096 clkg periods. hardware timer the '5409 device features one 16-bit timing circuit with a 4-bit prescaler. the main counter of each timer is decremented by one every clkout cycle. each time the counter decrements to 0, a timer interrupt is generated. the timer can be stopped, restarted, reset, or disabled by specific control bits. clock generator the clock generator provides clocks to the '5409 device, and consists of an internal oscillator and a phase-locked loop (pll) circuit. the clock generator requires a reference clock input, which can be provided by using a crystal resonator with the internal oscillator, or from an external clock source. the reference clock input is then divided by two (div mode) to generate clocks for the '5409 device, or the pll circuit can be used (pll mode) to generate the device clock by multiplying the reference clock frequency by a scale factor, allowing use of a clock source with a lower frequency than that of the cpu.the pll is an adaptive circuit that, once synchronized, locks onto and tracks an input clock signal. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 24 post office box 1443 ? houston, texas 772511443 clock generator (continued) when the pll is initially started, it enters a transitional mode during which the pll acquires lock with the input signal. once the pll is locked, it continues to track and maintain synchronization with the input signal. then, other internal clock circuitry allows the synthesis of new clock frequencies for use as master clock for the '5409 device. this clock generator allows system designers to select the clock source. the sources that drive the clock generator are: a crystal resonator circuit. the crystal resonator circuit is connected across the x1 and x2/clkin pins of the '5409 to enable the internal oscillator. an external clock. the external clock source is directly connected to the x2/clkin pin, and x1 is left unconnected. the software-programmable pll features a high level of flexibility, and includes a clock scaler that provides various clock multiplier ratios, capability to directly enable and disable the pll, and a pll lock timer that can be used to delay switching to pll clocking mode of the device until lock is achieved. devices that have a built-in software-programmable pll can be configured in one of two clock modes: pll mode. the input clock (x2/clkin) is multiplied by 1 of 31 possible ratios. these ratios are achieved using the pll circuitry. div (divider) mode. the input clock is divided by 2 or 4. note that when div mode is used, the pll can be completely disabled in order to minimize power dissipation. the software-programmable pll is controlled using the 16-bit memory-mapped (address 0058h) clock mode register (clkmd). the clkmd register is used to define the clock configuration of the pll clock module. upon reset, the clkmd register is initialized with a predetermined value dependent only upon the state of the clkmd1 clkmd3 pins as shown in table 9. table 9. clock mode settings at reset clkmd1 clkmd2 clkmd3 clkmd reset value clock mode clkmd1 clkmd2 clkmd3 reset value clock mode 0 0 0 e007h pll x 15 0 0 1 9007h pll x 10 0 1 0 4007h pll x 5 1 0 0 1007h pll x 2 1 1 0 f007h pll x 1 1 1 1 0000h 1/2 (pll disabled) 1 0 1 f000h 1/4 (pll disabled) 0 1 1 e reserved tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 25 post office box 1443 ? houston, texas 772511443 dma controller the '5409 direct memory access (dma) controller transfers data between points in the memory map without intervention by the cpu. the dma controller allows movements of data to and from internal program/data memory, internal peripherals (such as the mcbsps), and external program/data memory to occur in the background of cpu operation. the dma has six independent programmable channels allowing six different contexts for dma operation. features the dma has the following features: the dma has external memory access. the dma operates independently of the cpu. the dma has six channels. the dma can keep track of the contexts of six independent block transfers. the dma has higher priority than the cpu for internal accesses. each channel has independently programmable priorities. each channel's source and destination address registers can have configurable indexes through memory on each read and write transfer, respectively. the address may remain constant, be post-incremented, post-decremented, or be adjusted by a programmable value. each internal read or write transfer may be initialized by selected sync events. each dma channel is capable of sending interrupts to the cpu. the dma can perform double-word transfers (a 32-bit transfer of two 16-bit words). (internally only) dma external access the '5409 dma supports external accesses to extended program, extended data, and extended i/o memory. these overlay pages are only visible to the dma controller. a maximum of two dma channels can be used for external memory accesses. the dma external accesses require 9 cycle minimums for external writes and 13 cycle minimums for external reads. the control of the bus is arbitrated between the cpu and the dma. while the dma or cpu is in control of the external bus the other will be heldoff via wait states until the current transfer is complete. the dma takes precedence over xio requests. the hold /holda feature of the '5409 affects external cpu transfers as well as external dma transfers. when an external processor asserts the hold pin to gain control of the memory interface, the holda signal is not asserted until all pending dma transfers are complete. to prevent the dma from blocking out the cpu or hold /holda feature from accessing the external bus, uninterrupted burst transfers are not supported by the dma. subsequently, cpu and dma arbitration testing is performed for each external bus cycle, regardless of the bus activity. only two channels are available for external accesses. (one for external reads/one for external writes.) single-word (16-bit) transfers are supported for external accesses. the dma does not support transfers from peripherals to external memory. the dma does not support transfers from external memory to the peripherals. the dma does not support external to external transfers. the dma does not support synchronized external transfers. the hm bit in the st1 register indicates whether the processor continues internal execution when acknowledging an active hold signal. hm = 0, the processor continues execution from internal program memory but places its external interface in the high impedance state. hm = 1, the processor halts internal execution. to ensure that proper arbitration occurs, the hm bit should be set to 0 in the memory-mapped st1 register. if the hm is set to 1 the processor will halt during dma external transfers. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 26 post office box 1443 ? houston, texas 772511443 dma external transfer unlike the '5410, the '5409 dma mode control register (dmmcrx) has two additional bits; dlaxs (dmmcrn[5]) and slaxs (dmmcrn[11]). these new bits specify the on/off-chip memory for the source and destination of the program/data/io spaces. when dlaxs is set to 0 (default), the dma does not perform an external access for the destination. when dlaxs is set to 1, the dma performs an external access to the destination location. when slaxs is set to 0 (default), the dma does not perform an external access for the source. when dlaxs is set to 1, the dma performs an external access from the source location. two new registers are added to the '5409 dma to support dma accesses to/from dma extended data memory, page 1 to page 127. the dma extended source data page register (xsrcdp[6:0]) is located at subbank address 028h. the dma extended destination data page register (xdstdp[6:0]) is located at subbank address 029h. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 27 post office box 1443 ? houston, texas 772511443 dma memory map the dma memory map, as shown in figure 9, allows dma transfers to be unaffected by the status of the mp/mc , drom, and ovly bits. program data program ffff 0021 0060 002f 0030 reserved c000 017fff 018000 0037 0038 xxffff 003f 0040 ffff hex 010000 hex 0000 bfff external 01ffff xx0000 hex program page 0 page 5, 6, ... page n external daram internal 32k hex 0000 007f 0080 external on-chip rom reserved 001f 0023 0024 0033 0034 0035 0036 0039 003a 0049 7fff 8000 004a 004b 003b 003c 005f 004c drr20 drr10 dxr20 dxr10 reserved drr22 drr12 dxr22 dxr12 reserved rcera2 xcera2 reserved drr21 drr11 dxr21 dxr11 reserved rcera0 xcera0 reserved scratch- pad ram daram external 0080 007f 0044 0043 0042 0041 0022 0020 0031 0032 reserved rcera1 xcera1 data xx0000 page 1, 2, ... 127 external i/o 0000 external hex hex xxffff ffff 7fff 8000 page 0, 1, ... 127 note: n = 1, 2, 3, or 4 figure 9. tms320vc5409 dma memory map dma priority level each dma channel can be independently assigned high priority or low priority relative to each other. multiple dma channels that are assigned to the same priority level are handled in a round-robin manner. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 28 post office box 1443 ? houston, texas 772511443 dma source/destination address modification the dma provides flexible address-indexing modes for easy implementation of data management schemes such as autobuffering and circular buffers. source and destination addresses can be indexed separately and can be post-incremented, post-decremented, or post-incremented with a specified index offset. dma in autoinitialization mode the dma can automatically reinitialize itself after completion of a block transfer. some of the dma registers can be preloaded for the next block transfer through the dma global reload registers (dmgsa, dmgda, and dmgcr). autoinitialization allows: continuous operation: normally, the cpu would have to reinitialize the dma immediately after the completion of the current block transfer; but with the global reload registers, it can reinitialize these values for the next block transfer any time after the current block transfer begins. repetitive operation: the cpu does not preload the global reload register with new values for each block transfer but only loads them on the first block transfer. dma transfer counting the dma channel element count register (dmctrx) and the frame count register (dmfrcx) contain bit fields that represent the number of frames and the number of elements per frame to be transferred. frame count. this 8-bit value defines the total number of frames in the block transfer. the maximum number of frames per block transfer is 128 (frame count= 0ffh). the counter is decremented upon the last read transfer in a frame transfer. once the last frame is transferred, the selected 8-bit counter is reloaded with the dma global frame reload register (dmgfr) if the autoinit bit is set to 1. a frame count of 0 (default value) means the block transfer contains a single frame. element count. this 16-bit value defines the number of elements per frame. this counter is decremented after the read transfer of each element. the maximum number of elements per frame is 65536 (dmctrn = 0ffffh). in autoinitialization mode, once the last frame is transferred, the counter is reloaded with the dma global count reload register (dmgcr). dma transfers in double-word mode (internal only) double-word mode allows the dma to transfer 32-bit words in any index mode. in double-word mode, two consecutive 16-bit transfers are initiated and the source and destination addresses are automatically updated following each transfer. in this mode, each 32-bit word is considered to be one element. dma channel index registers the particular dma channel index register is selected by way of the sind and dind field in the dma mode control register (dmmcrx). unlike basic address adjustment, in conjunction with the frame index dmfri0 and dmfri1, the dma allows different adjustment amounts depending on whether or not the element transfer is the last in the current frame. the normal adjustment value (element index) is contained in the element index registers dmidx0 and dmidx1. the adjustment value (frame index) for the end of the frame is determined by the selected dma frame index register (either dmfri0 or dmfri1). the element index and the frame index affect address adjustment as follows: element index: for all except the last transfer in the frame, the element index determines the amount to be added to the dma channel for the source/destination address register (dmsrcx/dmdstx) as selected by the sind/dind bits. frame index: if the transfer is the last in a frame, the frame index is used for address adjustment as selected by the sind/dind bits. this occurs in both single-frame and multi-frame transfer. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 29 post office box 1443 ? houston, texas 772511443 dma interrupts the ability of the dma to interrupt the cpu based on the status of the data transfer is configurable and is determined by the imod and dinm bits in the dma channel mode control register (dmmcrn). the available modes are shown in table 10. table 10. dma interrupts mode dinm imod interrupt abu (non-decrement) 1 0 at full buffer only abu (non-decrement) 1 1 at half buffer and full buffer multi-frame 1 0 at block-transfer complete (dmctrn = dmsefcn[7:0] = 0) multi-frame 1 1 at end of frame and end of block (dmctrn = 0) either 0 x no interrupt generated either 0 x no interrupt generated dma controller synchronization events the internal transfers associated with each dma channel can be synchronized to one of several events. the dsyn bit field of the dmsefcn register selects the synchronization event for a channel. the list of possible events and the dsyn values are shown in table 11. table 11. dma synchronization events dsyn value dma synchronization event 0000b no synchronization used 0001b mcbsp0 receive event 0010b mcbsp0 transmit event 0011b mcbsp2 receive event 0100b mcbsp2 transmit event 0101b mcbsp1 receive event 0110b mcbsp1 transmit event 0111b reserved 1000b reserved 1001b reserved 1010b reserved 1011b reserved 1100b reserved 1101b timer interrupt event 1110b external interrupt 3 1111b reserved tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 30 post office box 1443 ? houston, texas 772511443 dma channel interrupt selection the dma controller can generate a cpu interrupt for each of the six channels. however, due to a limit on the number of internal cpu interrupt inputs, channels 0, 1, 2, and 3 are multiplexed with other interrupt sources. dma channels 0, 1, 2, and 3 share an interrupt line with the receive and transmit portions of the mcbsp. when the '5409 is reset, the interrupts from these three dma channels are deselected. the intsel bit field in the dmprec register can be used to select these interrupts, as shown in table 12. table 12. dma channel interrupt selection intsel value imr/ifr[6] imr/ifr[7] imr/ifr[10] imr/ifr[11] 00b (reset) brint2 bxint2 brint1 bxint1 01b brint2 bxint2 dmac2 dmac3 10b dmac0 dmac1 dmac2 dmac3 11b reserved memory-mapped registers the '5409 has 27 memory-mapped cpu registers, which are mapped in data memory space addresses 0h to 1fh. the device also has a set of memory-mapped registers associated with peripherals. table 13 gives a list of cpu memory-mapped registers (mmrs) available on '5409. table 14 shows additional peripheral mmrs associated with the '5409. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 31 post office box 1443 ? houston, texas 772511443 memory-mapped registers (continued) table 13. cpu memory-mapped registers name address description name dec hex description imr 0 0 interrupt mask register ifr 1 1 interrupt flag register 25 25 reserved for testing st0 6 6 status register 0 st1 7 7 status register 1 al 8 8 accumulator a low word (150) ah 9 9 accumulator a high word (3116) ag 10 a accumulator a guard bits (3932) bl 11 b accumulator b low word (150) bh 12 c accumulator b high word (3116) bg 13 d accumulator b guard bits (3932) treg 14 e temporary register trn 15 f transition register ar0 16 10 auxiliary register 0 ar1 17 11 auxiliary register 1 ar2 18 12 auxiliary register 2 ar3 19 13 auxiliary register 3 ar4 20 14 auxiliary register 4 ar5 21 15 auxiliary register 5 ar6 22 16 auxiliary register 6 ar7 23 17 auxiliary register 7 sp 24 18 stack pointer register bk 25 19 circular buffer size register brc 26 1a block repeat counter rsa 27 1b block repeat start address rea 28 1c block repeat end address pmst 29 1d processor mode status (pmst) register xpc 30 1e extended program page register 31 1f reserved tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 32 post office box 1443 ? houston, texas 772511443 memory-mapped registers (continued) table 14. peripheral memory-mapped registers name address description type drr20 20h data receive register 2 mcbsp #0 drr10 21h data receive register 1 mcbsp #0 dxr20 22h data transmit register 2 mcbsp #0 dxr10 23h data transmit register 1 mcbsp #0 tim 24h timer register timer prd 25h timer period counter timer tcr 26h timer control register timer 27h reserved swwsr 28h software wait-state register external bus bscr 29h bank-switching control register external bus 2ah reserved swcr 2bh software wait-state control register external bus hpic 2ch hpi control register hpi 2dh2fh reserved drr22 30h data receive register 2 mcbsp #2 drr12 31h data receive register 1 mcbsp #2 dxr22 32h data transmit register 2 mcbsp #2 dxr12 33h data transmit register 2 mcbsp #2 spsa2 34h mcbsp2 subbank address register mcbsp #2 spsd2 35h mcbsp2 subbank data register mcbsp #2 3637h reserved spsa0 38h mcbsp0 subbank address register mcbsp #0 spcd0 39h mcbsp0 subbank data register mcbsp #0 3ah3bh reserved gpiocr 3c general-purpose i/o pins control register gpio gpiosr 3d general-purpose i/o pins status register gpio 3e3f reserved drr21 40h data receive register 1 mcbsp #1 drr11 41h data receive register 2 mcbsp #1 dxr21 42h data transmit register 1 mcbsp #1 dxr11 43h data transmit register 2 mcbsp #1 44h47h reserved spsa1 48h mcbsp1 subbank address register mcbsp #1 spcd1 49h mcbsp1 subbank data register mcbsp #1 4ah53h reserved dmprec 54h dma channel priority and enable control register dma dmsa 55h dma subbank address register dma dmsdi 56h dma subbank data register with autoincrement dma dmsdn 57h dma subbank data registrer dma clkmd 58h clock mode register pll 59h5fh reserved tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 33 post office box 1443 ? houston, texas 772511443 mcbsp control registers and subaddresses the control registers for the multichannel buffered serial port (mcbsp) are accessed using the subbank addressing scheme. this allows a set or subbank of registers to be accessed through a single memory location. the serial port subbank address (spsa) register is used as a pointer to select a particular register within the subbank. the serial port subbank data (spsd) register is used to access (read or write) the selected register. table 15 shows the mcbsp control registers and their corresponding subaddresses. table 15. mcbsp control registers and subaddresses mcbsp0 mcbsp1 mcbsp2 sub description name address name address name address sub address description spcr10 39h spcr11 49h spcr12 35h 00h serial port control register 1 spcr20 39h spcr21 49h spcr22 35h 01h serial port control register 2 rcr10 39h rcr11 49h rcr12 35h 02h receive control register 1 rcr20 39h rcr21 49h rcr22 35h 03h receive control register 2 xcr10 39h xcr11 49h xcr12 35h 04h transmit control register 1 xcr20 39h xcr21 49h xcr22 35h 05h transmit control register 2 srgr10 39h srgr11 49h srgr12 35h 06h sample rate generator register 1 srgr20 39h srgr21 49h srgr22 35h 07h sample rate generator register 2 mcr10 39h mcr11 49h mcr12 35h 08h multichannel register 1 mcr20 39h mcr21 49h mcr22 35h 09h multichannel register 2 rcera0 39h rcera1 49h rcera2 35h 0ah receive channel enable register partition a rcerb0 39h rcerb1 49h rcerb2 35h 0bh receive channel enable register partition b xcera0 39h xcera1 49h xcera2 35h 0ch transmit channel enable register partition a xcerb0 39h xcerb1 49h xcerb2 35h 0dh transmit channel enable register partition b pcr0 39h pcr1 49h pcr2 35h 0eh pin control register dma subbank addressed registers the direct memory access (dma) controller has several control registers associated with it. the main control register (dmprec) is a standard memory mapped register. however, the other registers are accessed using the subbank addressing scheme. this allows a set, or subbank of registers to be accessed through a single memory location. the dma subbank address (dmsa) register is used as a pointer to select a particular register within the subbank, while the dma subbank data (dmsdn) register or the dma subbank data register with autoincrement (dmsdi) is used to access (read or write) the selected register. when the dmsdi register is used to access the subbank, the subbank address is automatically postincremented so that a subsequent access affects the next register within the subbank. this autoincrement feature is intended for efficient, successive accesses to several control registers. if the auto-increment feature is not required, the dmsdn register should be used to access the subbank. table 16 shows the dma controller subbank addressed registers and their corresponding subaddresses. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 34 post office box 1443 ? houston, texas 772511443 dma subbank addressed registers (continued) table 16. dma subbank addressed registers dma sub description name address sub address description dmsrc0 56h/57h 00h dma channel 0 source address register dmdst0 56h/57h 01h dma channel 0 destination address register dmctr0 56h/57h 02h dma channel 0 element count register dmsfc0 56h/57h 03h dma channel 0 sync select and frame count register dmmcr0 56h/57h 04h dma channel 0 transfer mode control register dmsrc1 56h/57h 05h dma channel 1 source address register dmdst1 56h/57h 06h dma channel 1 destination address register dmctr1 56h/57h 07h dma channel 1 element count register dmsfc1 56h/57h 08h dma channel 1 sync select and frame count register dmmcr1 56h/57h 09h dma channel 1 transfer mode control register dmsrc2 56h/57h 0ah dma channel 2 source address register dmdst2 56h/57h 0bh dma channel 2 destination address register dmctr2 56h/57h 0ch dma channel 2 element count register dmsfc2 56h/57h 0dh dma channel 2 sync select and frame count register dmmcr2 56h/57h 0eh dma channel 2 transfer mode control register dmsrc3 56h/57h 0fh dma channel 3 source address register dmdst3 56h/57h 10h dma channel 3 destination address register dmctr3 56h/57h 11h dma channel 3 element count register dmsfc3 56h/57h 12h dma channel 3 sync select and frame count register dmmcr3 56h/57h 13h dma channel 3 transfer mode control register dmsrc4 56h/57h 14h dma channel 4 source address register dmdst4 56h/57h 15h dma channel 4 destination address register dmctr4 56h/57h 16h dma channel 4 element count register dmsfc4 56h/57h 17h dma channel 4 sync select and frame count register dmmcr4 56h/57h 18h dma channel 4 transfer mode control register dmsrc5 56h/57h 19h dma channel 5 source address register dmdst5 56h/57h 1ah dma channel 5 destination address register dmctr5 56h/57h 1bh dma channel 5 element count register dmsfc5 56h/57h 1ch dma channel 5 sync select and frame count register dmmcr5 56h/57h 1dh dma channel 5 transfer mode control register dmsrcp 56h/57h 1eh dma source program page address (common channel) dmdstp 56h/57h 1fh dma destination program page address (common channel) dmidx0 56h/57h 20h dma element index address register 0 dmidx1 56h/57h 21h dma element index address register 1 dmfri0 56h/57h 22h dma frame index register 0 dmfri1 56h/57h 23h dma frame index register 1 dmgsa 56h/57h 24h dma global source address reload register dmgda 56h/57h 25h dma global destination address reload register dmgcr 56h/57h 26h dma global count reload register dmgfr 56h/57h 27h dma global frame count reload register xsrcdp 56h/57h 28h dma global extended source register xdstdp 56h/57h 29h dma global extended destination register tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 35 post office box 1443 ? houston, texas 772511443 interrupts vector-relative locations and priorities for all internal and external interrupts are shown in table 17. table 17. interrupt locations and priorities name location decimal hex priority function rs , sintr 0 00 1 reset (hardware and software reset) nmi , sint16 4 04 2 nonmaskable interrupt sint17 8 08 e software interrupt #17 sint18 12 0c e software interrupt #18 sint19 16 10 e software interrupt #19 sint20 20 14 e software interrupt #20 sint21 24 18 e software interrupt #21 sint22 28 1c e software interrupt #22 sint23 32 20 e software interrupt #23 sint24 36 24 e software interrupt #24 sint25 40 28 e software interrupt #25 sint26 44 2c e software interrupt #26 sint27 48 30 e software interrupt #27 sint28 52 34 e software interrupt #28 sint29 56 38 e software interrupt #29 sint30 60 3c e software interrupt #30 int0 , sint0 64 40 3 external user interrupt #0 int1 , sint1 68 44 4 external user interrupt #1 int2 , sint2 72 48 5 external user interrupt #2 tint, sint3 76 4c 6 timer interrupt brint0, sint4 80 50 7 mcbsp #0 receive interrupt (default) bxint0, sint5 84 54 8 mcbsp #0 transmit interrupt (default) brint2, sint7, dmac0 88 58 9 mcbsp #2 receive interrupt (default) bxint2, sint6, dmac1 92 5c 10 mcbsp #2 transmit interrupt (default) int3 , sint8 96 60 11 external user interrupt #3 hint, sint9 100 64 12 hpi interrupt brint1, sint10, dmac2 104 68 13 mcbsp #1 receive interrupt (default) bxint1, sint11, dmac3 108 6c 14 mcbsp #1 transmit interrupt (default) dmac4,sint12 112 70 15 dma channel 4 interrupt (default) dmac5,sint13 116 74 16 dma channel 5 interrupt (default) reserved 120127 787f e reserved tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 36 post office box 1443 ? houston, texas 772511443 interrupts (continued) the bits of the interrupt flag register (ifr) and interrupt mask register (imr) are arranged as shown in figure 10. the function of each bit is described in table 18. 1514 13 12 11 10 9 8 7 6 5 4 3 2 1 0 res dmac5 dmac4 bxint1 dmac3 brint1 dmac2 hint int3 bxint2 dmac1 brint2 dmac0 bxint0 brint0 tint int2 int1 int0 figure 10. ifr and imr registers table 18. ifr and imr register bit fields bit function number name function 1514 reserved for future expansion 13 dmac5 dma channel 5 interrupt flag/mask bit 12 dmac4 dma channel 4 interrupt flag/mask bit 11 bxint1/dmac3 mcbsp1 transmit interrupt flag/mask bit 10 brint1/dmac2 mcbsp1 receive interrupt flag/mask bit 9 hint host to '54x interrupt flag/mask 8 int3 external interrupt 3 flag/mask 7 bxint2/dmac1 mcbsp2 transmit interrupt flag/mask bit 6 brint2/dmac0 mcbsp2 receive interrupt flag/mask bit 5 bxint0 mcbsp0 transmit interrupt flag/mask bit 4 brint0 mcbsp0 receive interrupt flag/mask bit 3 tint timer interrupt flag/mask bit 2 int2 external interrupt 2 flag/mask bit 1 int1 external interrupt 1 flag/mask bit 0 int0 external interrupt 0 flag/mask bit tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 37 post office box 1443 ? houston, texas 772511443 documentation support extensive documentation supports all tms320 family generations of devices from product announcement through applications development. the following types of documentation are available to support the design and use of the 'c5000 family of dsps: tms320c5000 dsp family functional overview (literature number spru307) device-specific data sheets (such as this document) complete user guides development-support tools hardware and software application reports the five-volume tms320c54x dsp reference set (literature number spru210) consists of: volume 1: cpu and peripherals (literature number spru131) volume 2: mnemonic instruction set (literature number spru172) volume 3: algebraic instruction set (literature number spru179) volume 4: applications guide (literature number spru173) volume 5: enhanced peripherals (literature number spru302) the reference set describes in detail the tms320c54x products currently available, and the hardware and software applications, including algorithms, for fixed-point tms320 devices. for general background information on dsps and texas instruments (ti ) devices, see the three-volume publication digital signal processing applications with the tms320 family (literature numbers spra012, spra016, and spra017). a series of dsp textbooks is published by prentice-hall and john wiley & sons to support digital signal processing research and education. the tms320 newsletter, details on signal processing , is published quarterly and distributed to update tms320 customers on product information. information regarding ti dsp products is also available on the worldwide web at http://www.ti.com uniform resource locator (url). ti is a trademark of texas instruments incorporated. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 38 post office box 1443 ? houston, texas 772511443 absolute maximum ratings over specified temperature range (unless otherwise noted) 2 supply voltage i/o range, dv dd 3 0.3 v to 4.0 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . supply voltage core range, cv dd 3 0.3 v to 2.4 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . input voltage range, v i 0.3 v to 4.5 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . output voltage range, v o 0.3 v to 4.5 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . operating case temperature range, t c 40 c to 100 c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . storage temperature range, t stg 55 c to 150 c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 stresses beyond those listed under aabsolute maximum ratingso may cause permanent damage to the device. these are stress rating s only, and functional operation of the device at these or any other conditions beyond those indicated under arecommended operating conditi onso is not implied. exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. 3 all voltage values are with respect to v ss . recommended operating conditions min nom max unit dv dd device supply voltage, i/o 3 3.3 3.6 v cv dd device supply voltage, core 1.71 1.8 1.98 v v ss supply voltage, gnd 0 v v high level input voltage i/o rs , intn , nmi , bio , bclkr0, bclkr1, bclkr2, bclkx0, bclkx1, bclkx2, has , hcs , hds1 , hds2 , tck, clkmdn, dv dd = 3.3 0.3 v 2.2 dv dd + 0.3 v v ih high-level input voltage, i/o trst 2.5 dv dd + 0.3 v x2/clkin 1.4 cv dd + 0.3 all other inputs 2.0 dv dd + 0.3 v il low-level input voltage rs , intn , nmi , x2/clkin, bio , bclkr0, bclkr1, bclkr2, bclkx0, bclkx1, bclkx2, has , hcs , hds1 , hds2 , tck, clkmdn, dv dd = 3.3 0.3 v 0.3 0.6 v all other inputs 0.3 0.8 i oh high-level output current 300 m a i ol low-level output current 1.5 ma t c operating case temperature 40 100 c texas instrument dsps do not require specific power sequencing between the core supply and the i/o supply. however, systems sho uld be designed to ensure that neither supply is powered up for extended periods of time if the other supply is below the proper opera ting voltage. excessive exposure to these conditions can adversely affect the long-term reliability of the devices. system-level concerns suc h as bus contention may require supply sequencing to be implemented. in this case, the core supply should be powered up at the same time as or prior to the i/o buffers, and then powered down after the i/o buffers. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 39 post office box 1443 ? houston, texas 772511443 electrical characteristics over recommended operating case temperature range (unless otherwise noted) parameter test conditions min typ 2 max unit v oh high-level output voltage i oh = max 2.4 v v ol low-level output voltage i ol = max 0.4 v i iz input current for outputs in high d[15:0], hd[7:0], a[15:0] bus holders enabled, dv dd = max, v i = v ss to dv dd 200 200 m a i iz out uts in high impedance all other inputs dv dd = max, v o = v ss to dv dd 5 5 m a x2/clkin 40 40 trst with internal pulldown 5 200 i i input current hpiena, hpi16 with internal pulldown (v i = v ss 5 200 m a i i tms, tck, tdi, hpi with internal pullups, hpiena = 0 ( iss to dv dd ) 200 5 m a all other input only pins 5 5 all other input-only pins 5 5 i ddc supply current, core cpu cv dd = 1.8 v, f clock = 100 mhz, t c = 25 c ? 37 ma i ddp supply current, pins dv dd = 3.3 v, f clock = 100 mhz, t c = 25 c # 45 ma i dd supply current, idle2 pll 2 mode, 50 mhz input 2 ma i dd su ly current, standby idle3 divide-by-two mode, clkin stopped 20 m a c i input capacitance 5 pf c o output capacitance 5 pf 2 all values are typical unless otherwise specified. 3 hpi input signals except for hpiena. clock mode: pll 1 with external source ? this value represents the current consumption of the cpu, on-chip memory, and on-chip peripherals. conditions include: program execution from on-chip ram, with 50% usage of mac and 50% usage of nop instructions. actual operating current varies with program being e xecuted. # this value was obtained using the following conditions: external memory writes at a rate of 20 million writes per second, clkof f=0, full-duplex operation of all three mcbsps at a rate of 10 million bits per second each, and 15-pf loads on all outputs. for more details on how this calculation is performed, refer to the calculation of tms320c54x power dissipation application report (literature number spra164). parameter measurement information the following load circuit in figure 11 was used on all outputs pins and i/o pins in input mode. all timing measurements in this data sheet were measured from the '5409 connection to the following load circuit. tester pin electronics v load i ol c t i oh output under test 50 w where: i ol = 1.5 ma (all outputs) i oh = 300 m a (all outputs) v load = 1.5 v c t = 40-pf typical load circuit capacitance figure 11. 3.3-v test load circuit tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 40 post office box 1443 ? houston, texas 772511443 internal oscillator with external crystal the internal oscillator is enabled by connecting a crystal across x1 and x2/clkin. the frequency of clkout is a multiple of the oscillator frequency. the multiply ratio is determined by the bit settings in the clkmd register. the crystal should be in fundamental-mode operation, and parallel resonant, with an effective series resistance of 30 w and power dissipation of 1 mw. the connection of the required circuit, consisting of the crystal and two load capacitors, is shown in figure 12. the load capacitors, c 1 and c 2 , should be chosen such that the equation below is satisfied. c l in the equation is the load specified for the crystal. c l c 1 c 2 ( c 1 c 2 ) recommended operating conditions of internal oscillator with external crystal (see figure 12) '5409-80, -100 unit min nom max unit f clock input clock frequency 10 20 mhz x1 x2/clkin c1 c2 crystal figure 12. internal oscillator with external crystal tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 41 post office box 1443 ? houston, texas 772511443 divide-by-two/divide-by-four clock option (pll disabled) the frequency of the reference clock provided at the x2/clkin pin can be divided by a factor of two or four to generate the internal machine cycle. the selection of the clock mode is described in the clock generator section. when an external clock source is used, the frequency injected must conform to specifications listed in the timing requirements table. switching characteristics over recommended operating conditions [h = 0.5t c(co) ] 2 (see figure 12, figure 13, and the recommended operating conditions table) parameter '5409-80,-100 unit parameter min typ max unit t c(co) cycle time, clkout 40 2t c(ci) 2 ns t d(cih-co) delay time, x2/clkin high to clkout high/low 4 10 17 ns t f(co) fall time, clkout 2 ns t r(co) rise time, clkout 2 ns t w(col) pulse duration, clkout low h2 h1 h ns t w(coh) pulse duration, clkout high h2 h1 h ns 2 this device utilizes a fully static design and therefore can operate with t c(ci) approaching . the device is characterized at frequencies approaching 0 hz. timing requirements (see figure 13) '5409-80,-100 unit min max unit t c(ci) cycle time, x2/clkin 20 2 ns t f(ci) fall time, x2/clkin 8 ns t r(ci) rise time, x2/clkin 8 ns tw(cil) pulse duration, x2/clkin low 5 ns tw(cih) pulse duration, x2/clkin high 5 ns 2 this device utilizes a fully static design and therefore can operate with t c(ci) approaching . the device is characterized at frequencies approaching 0 hz. t r(co) t f(co) clkout x2/clkin t w(col) t d(cih-co) t f(ci) t r(ci) t c(co) t c(ci) t w(coh) t w(cih) t w(cil) figure 13. external divide-by-two clock timing tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 42 post office box 1443 ? houston, texas 772511443 multiply-by-n clock option (pll enabled) the frequency of the reference clock provided at the x2/clkin pin can be multiplied by a factor of n to generate the internal machine cycle. the selection of the clock mode and the value of n is described in the clock generator section. when an external clock source is used, the external frequency injected must conform to specifications listed in the timing requirements table. switching characteristics over recommended operating conditions [h = 0.5t c(co) ] (see figure 12 and figure 14) parameter '5409-80 '5409-100 unit parameter min typ max min typ max unit t c(co) cycle time, clkout 12.5 t c(ci) /n 2 10 t c(ci) /n 2 ns t d(ci-co) delay time, x2/clkin high/low to clkout high/low 4 10 17 4 10 17 ns t f(co) fall time, clkout 2 2 ns t r(co) rise time, clkout 2 2 ns t w(col) pulse duration, clkout low h3 h1 h h2 h1 h ns t w(coh) pulse duration, clkout high h3 h1 h h2 h1 h ns t p transitory phase, pll lock up time 30 30 s 2 n = multiplication factor timing requirements (see figure 14) 2 '5409-80,-100 unit min max unit integer pll multiplier n (n = 115) 20 3 200 t c ( ci ) cycle time, x2/clkin pll multiplier n = x.5 20 3 100 ns t c(ci) cycle time, x2/clkin pll multiplier n = x.25, x.75 20 3 50 ns t f(ci) fall time, x2/clkin 8 ns t r(ci) rise time, x2/clkin 8 ns tw(cil) pulse duration, x2/clkin low 5 ns tw(cih) pulse duration, x2/clkin high 5 ns 2 n = multiplication factor 3 the multiplication factor and minimum x2/clkin cycle time should be chosen such that the resulting clkout cycle time is within the specified range (tc(co)) t c(co) t c(ci) t w(coh) t f(co) t r(co) t f(ci) x2/clkin clkout t d(ci-co) t w(col) t r(ci) tp unstable t w(cih) t w(cil) figure 14. external multiply-by-one clock timing tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 43 post office box 1443 ? houston, texas 772511443 memory and parallel i/o interface timing switching characteristics over recommended operating conditions for a memory read (mstrb = 0) 2 (see figure 15) parameter '5409-80,-100 unit parameter min max unit t d(clkl-a) delay time, clkout low to address valid 3 0 3 ns t d(clkh-a) delay time, clkout high (transition) to address valid 0 3 ns t d(clkl-msl) delay time, clkout low to mstrb low 0 3 ns t d(clkl-msh) delay time, clkout low to mstrb high 0 3 ns t h(clkl-a)r hold time, address valid after clkout low 3 0 3 ns t h(clkh-a)r hold time, address valid after clkout high 0 3 ns 2 address, ps , and ds timings are all included in timings referenced as address. 3 in the case of a memory read preceded by a memory read in the case of a memory read preceded by a memory write timing requirements for a memory read (mstrb = 0 ) [h = 0.5 t c(co) ] 2 (see figure 15) '5409-80,-100 unit min max unit t a(a)m access time, read data access from address valid 2h10 ? ns t a(mstrbl) access time, read data access from mstrb low 2h10 ? ns t su(d)r setup time, read data before clkout low 8 ns t h(d)r hold time, read data after clkout low 0 ns t h(a-d)r hold time, read data after address invalid 0 ns t h(d)mstrbh hold time, read data after mstrb high 1 ns 2 address, ps , and ds timings are all included in timings referenced as address. ? this access timing reflects a zero wait-state timing. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 44 post office box 1443 ? houston, texas 772511443 memory and parallel i/o interface timing (continued) ps , ds r/w mstrb d[15:0] a[22:0] clkout t h(d)r t h(clkl-a)r t d(clkl-msh) t d(clkl-a) t d(clkl-msl) t su(d)r t a(a)m t a(mstrbl) t h(a-d)r t h(d)mstrbh note a: a[22:16] apply to dma accesses to extended i/o, data, program memory. the cpu has access to only extended program memory. figure 15. memory read (mstrb = 0) tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 45 post office box 1443 ? houston, texas 772511443 memory and parallel i/o interface timing (continued) switching characteristics over recommended operating conditions for a memory write (mstrb = 0 ) [h = 0.5 t c(co) ] 2 (see figure 16) parameter '5409-80,-100 unit parameter min max unit t d(clkh-a) delay time, clkout high to address valid 3 0 3 ns t d(clkl-a) delay time, clkout low to address valid 0 3 ns t d(clkl-msl) delay time, clkout low to mstrb low 0 3 ns t d(clkl-d)w delay time, clkout low to data valid 0 8 ns t d(clkl-msh) delay time, clkout low to mstrb high 0 3 ns t d(clkh-rwl) delay time, clkout high to r/w low 0 4 ns t d(clkh-rwh) delay time, clkout high to r/w high 0 4 ns t d(rwl-mstrbl) delay time, r/w low to mstrb low h 2 h + 1 ns t h(a)w hold time, address valid after clkout high 3 0 3 ns t h(d)msh hold time, write data valid after mstrb high h3 h+6 ns t w(sl)ms pulse duration, mstrb low 2h2 ns t su(a)w setup time, address valid before mstrb low 2h2 ns t su(d)msh setup time, write data valid before mstrb high 2h6 2h+6 ns t en(drwl) enable time, data bus driven after r/w low h5 ns t dis(rwhd) disable time, r/w high to data bus high impedance 0 ns 2 address, ps , and ds timings are all included in timings referenced as address. 3 in the case of a memory write preceded by a memory write in the case of a memory write preceded by an i/o cycle tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 46 post office box 1443 ? houston, texas 772511443 memory and parallel i/o interface timing (continued) ps , ds r/w mstrb d[15:0] a[22:0] clkout t d(clkh-rwh) t h(a)w t d(clkl-msh) t su(d)msh t d(clkl-d)w t w(sl)ms t su(a)w t d(clkl-msl) t h(d)msh t d(clkl-a) t d(clkh-rwl) t d(rwl-mstrbl) t d(clkh-a) t en(d-rwl) t dis(rwh-d) note a: a[22:16] apply to dma accesses to extended i/o, data, program memory. the cpu has access to only extended program memory. figure 16. memory write (mstrb = 0) tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 47 post office box 1443 ? houston, texas 772511443 memory and parallel i/o interface timing (continued) switching characteristics over recommended operating conditions for a parallel i/o port read (iostrb = 0) 2 (see figure 17) parameter '5409-80,-100 unit parameter min max unit t d(clkl-a) delay time, clkout low to address valid 0 3 ns t d(clkh-istrbl) delay time, clkout high to iostrb low 0 3 ns t d(clkh-istrbh) delay time, clkout high to iostrb high 0 3 ns t h(a)ior hold time, address after clkout low 0 3 ns 2 address and is timings are included in timings referenced as address. timing requirements for a parallel i/o port read (iostrb = 0 ) [h = 0.5 t c(co) ] 2 (see figure 17) '5409-80,-100 unit min max unit t a(a)io access time, read data access from address valid 3 3h9 ns t a(istrbl)io access time, read data access from iostrb low 3 2h8 ns t su(d)ior setup time, read data before clkout high 8 ns t h(d)ior hold time, read data after clkout high 0 ns t h(istrbh-d)r hold time, read data after iostrb high 0 ns 2 address and is timings are included in timings referenced as address. 3 this access timing reflects a zero wait-state timing. is r/w iostrb d[15:0] a[22:0] clkout t h(a)ior t d(clkh-istrbh) t h(d)ior t su(d)ior t a(a)io t d(clkh-istrbl) t d(clkl-a) t a(istrbl)io t h(istrbh-d)r note a: a[22:16] apply to dma accesses to extended i/o, data, program memory. the cpu has access to only extended program memory. figure 17. parallel i/o port read (iostrb = 0) tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 48 post office box 1443 ? houston, texas 772511443 memory and parallel i/o interface timing (continued) switching characteristics over recommended operating conditions for a parallel i/o port write (iostrb = 0) [h = 0.5 t c(co) ] 2 (see figure 18) parameter '5409-80,-100 unit parameter min max unit t d(clkl-a) delay time, clkout low to address valid 0 3 ns t d(clkh-istrbl) delay time, clkout high to iostrb low 0 3 ns t d(clkh-d)iow delay time, clkout high to write data valid h5 h+8 ns t d(clkh-istrbh) delay time, clkout high to iostrb high 0 3 ns t d(clkl-rwl) delay time, clkout low to r/w low 0 3 ns t d(clkl-rwh) delay time, clkout low to r/w high 0 3 ns t h(a)iow hold time, address valid after clkout low 0 3 ns t h(d)iow hold time, write data after iostrb high h3 h+7 ns t su(d)iostrbh setup time, write data before iostrb high h7 h+1 ns t su(a)iostrbl setup time, address valid before iostrb low h2 h+2 ns 2 address and is timings are included in timings referenced as address. is r/w iostrb d[15:0] a[22:0] clkout t d(clkh-istrbh) t h(a)iow t h(d)iow t d(clkh-d)iow t d(clkh-istrbl) t d(clkl-a) t d(clkl-rwl) t d(clkl-rwh) t su(a)iostrbl t su(d)iostrbh note a: a[22:16] apply to dma accesses to extended i/o, data, program memory. the cpu has access to only extended program memory. figure 18. parallel i/o port write (iostrb = 0) tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 49 post office box 1443 ? houston, texas 772511443 ready timing for externally generated wait states timing requirements for externally generated wait states [h = 0.5 t c(co) ] 2 (see figure 19, figure 20, figure 21, and figure 22) '5409-80,-100 unit min max unit t su(rdy) setup time, ready before clkout low 7 ns t h(rdy) hold time, ready after clkout low 0 ns t v(rdy)mstrb valid time, ready after mstrb low 3 4h9 ns t h(rdy)mstrb hold time, ready after mstrb low 3 4h ns t v(rdy)iostrb valid time, ready after iostrb low 3 5h9 ns t h(rdy)iostrb hold time, ready after iostrb low 3 5h ns t v(mscl) valid time, msc low after clkout low 0 3 ns t v(msch) valid time, msc high after clkout low 0 3 ns 2 the hardware wait states can be used only in conjunction with the software wait states to extend the bus cycles. to generate wa it states using ready, at least two software wait states must be programmed. 3 these timings are included for reference only. the critical timings for ready are those referenced to clkout. msc mstrb ready a[22:0] clkout t v(msch) t v(mscl) t h(rdy) t h(rdy)mstrb t v(rdy)mstrb wait state generated by ready wait states generated internally t su(rdy) note a: a[22:16] apply to dma accesses to extended i/o, data, program memory. the cpu has access to only extended program memory. figure 19. memory read with externally generated wait states tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 50 post office box 1443 ? houston, texas 772511443 ready timing for externally generated wait states (continued) msc mstrb ready d[15:0] a[22:0] clkout t v(msch) t h(rdy) wait state generated by ready wait states generated internally t h(rdy)mstrb t v(rdy)mstrb t v(mscl) t su(rdy) note a: a[22:16] apply to dma accesses to extended i/o, data, program memory. the cpu has access to only extended program memory. figure 20. memory write with externally generated wait states tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 51 post office box 1443 ? houston, texas 772511443 ready timing for externally generated wait states (continued) t su(rdy) msc iostrb ready a[22:0] clkout t v(msch) t h(rdy) wait state generated by ready wait states generated internally t v(rdy)iostrb t v(mscl) t h(rdy)iostrb note a: a[22:16] apply to dma accesses to extended i/o, data, program memory. the cpu has access to only extended program memory. figure 21. i/o read with externally generated wait states tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 52 post office box 1443 ? houston, texas 772511443 ready timing for externally generated wait states (continued) iostrb msc ready d[15:0] a[22:0] clkout t h(rdy) wait state generated by ready wait states generated internally t v(rdy)iostrb t su(rdy) t v(msch) t v(mscl) t h(rdy)iostrb note a: a[22:16] apply to dma accesses to extended i/o, data, program memory. the cpu has access to only extended program memory. figure 22. i/o write with externally generated wait states tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 53 post office box 1443 ? houston, texas 772511443 hold and holda timings switching characteristics over recommended operating conditions for memory control signals and holda , [h = 0.5 t c(co) ] (see figure 23) parameter '5409-80, -100 unit parameter min max unit t dis(clkl-a) disable time, address, ps , ds , is high impedance from clkout low 5 ns t dis(clkl-rw) disable time, r/w high impedance from clkout low 5 ns t dis(clkl-s) disable time, mstrb , iostrb high impedance from clkout low 5 ns t en(clkl-a) enable time, address, ps , ds , is from clkout low 2h+5 ns t en(clkl-rw) enable time, r/w enabled from clkout low 2h+5 ns t en(clkl-s) enable time, mstrb , iostrb enabled from clkout low 1 2h+5 ns t valid time, holda low after clkout low 0 4 ns t v(holda) valid time, holda high after clkout low 0 4 ns t w(holda) pulse duration, holda low duration 2h1 ns timing requirements for memory control signals and hold , [h = 0.5 t c(co) ] (see figure 23) '5409-80, -100 unit min max unit t w(hold) pulse duration, hold low 4h+8 ns t su(hold) setup time, hold low/high before clkout low 8 ns tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 54 post office box 1443 ? houston, texas 772511443 hold and holda timings (continued) iostrb mstrb r/w d[15:0] ps , ds , is a[22:0] holda hold clkout t en(clkl-s) t en(clkl-s) t en(clkl-rw) t dis(clkl-s) t dis(clkl-s) t dis(clkl-rw) t dis(clkl-a) t v(holda) t v(holda) t w(holda) t w(hold) t su(hold) t su(hold) t en(clkl-a) note a: a[22:16] apply to dma accesses to extended i/o, data, program memory. the cpu has access to only extended program memory. figure 23. hold and holda timings (hm = 1) tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 55 post office box 1443 ? houston, texas 772511443 reset, bio , interrupt, and mp/mc timings timing requirements for reset, bio , interrupt, and mp/mc [h = 0.5 t c(co) ] (see figure 24, figure 25, and figure 26) '5409-80, -100 unit min max unit t h(rs) hold time, rs after clkout low 0 ns t h(bio) hold time, bio after clkout low 0 ns t h(int) hold time, intn , nmi , after clkout low 2 0 ns t h(mpmc) hold time, mp/mc after clkout low 0 ns t w(rsl) pulse duration, rs low 3 4h+4 ns t w(bio)s pulse duration, bio low, synchronous 2h+1 ns t w(bio)a pulse duration, bio low, asynchronous 4h ns t w(inth)s pulse duration, intn , nmi high (synchronous) 2h+1 ns t w(inth)a pulse duration, intn , nmi high (asynchronous) 4h ns t w(intl)s pulse duration, intn , nmi low (synchronous) 2h+1 ns t w(intl)a pulse duration, intn , nmi low (asynchronous) 4h ns t w(intl)wkp pulse duration, intn , nmi low for idle2/idle3 wakeup 8 ns t su(rs) setup time, rs before x2/clkin low ? 6 ns t su(bio) setup time, bio before clkout low 7 10 ns t su(int) setup time, intn , nmi , rs before clkout low 8 10 ns t su(mpmc) setup time, mp/mc before clkout low 8 ns 2 the external interrupts (int0 int3 , nmi ) are synchronized to the core cpu by way of a two-flip-flop synchronizer which samples these inputs with consecutive falling edges of clkout. the input to the interrupt pins is required to represent a 1-0-0 sequence at the timi ng that is corresponding to three clkout sampling sequences. 3 if the pll mode is selected, then at power-on sequence, or at wakeup from idle3, rs must be held low for at least 50 m s to ensure synchronization and lock-in of the pll. note that rs may cause a change in clock frequency, therefore changing the value of h. ? divide-by-two mode tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 56 post office box 1443 ? houston, texas 772511443 reset, bio , interrupt, and mp/mc timings (continued) bio clkout rs , intn , nmi x2/clkin t h(bio) t h(rs) t su(int) t w(bio)s t su(bio) t w(rsl) t su(rs) figure 24. reset and bio timings intn , nmi clkout t h(int) t su(int) t su(int) t w(intl)a t w(inth)a figure 25. interrupt timing mp/mc rs clkout t su(mpmc) t h(mpmc) figure 26. mp/mc timing tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 57 post office box 1443 ? houston, texas 772511443 instruction acquisition (iaq ), interrupt acknowledge (iack ), external flag (xf), and tout timings switching characteristics over recommended operating conditions for iaq and iack [h = 0.5 t c(co) ] (see figure 27) parameter '5409-80, -100 unit parameter min max unit t d(clkl-iaql) delay time, clkout low to iaq low 0 3 ns t d(clkl-iaqh) delay time, clkout low to iaq high 0 3 ns t d(a)iaq delay time, address valid to iaq low 1 ns t d(clkl-iackl) delay time, clkout low to iack low 0 3 ns t d(clkl-iackh) delay time , clkout low to iack high 0 3 ns t d(a)iack delay time, address valid to iack low 1 ns t h(a)iaq hold time, iaq high after address invalid 2 ns t h(a)iack hold time, iack high after address invalid 2 ns t w(iaql) pulse duration, iaq low 2h2 ns t w(iackl) pulse duration, iack low 2h2 ns mstrb iack iaq a[22:0] clkout t d(a)iack t d(a)iaq t w(iackl) t h(a)iack t d(clkl-iackl) t w(iaql) t h(a)iaq t d(clkl-iaql) t d(clkl-iackh) t d(clkl-iaqh) note a: a[22:16] apply to dma accesses to extended i/o, data, program memory. the cpu has access to only extended program memory. figure 27. iaq and iack timings tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 58 post office box 1443 ? houston, texas 772511443 instruction acquisition (iaq ), interrupt acknowledge (iack ), external flag (xf), and tout timings (continued) switching characteristics over recommended operating conditions for xf and tout [h = 0.5 t c(co) ] (see figure 28 and figure 29) parameter '5409-80, -100 unit parameter min max unit t delay time, clkout low to xf high 0 2 ns t d(xf) delay time, clkout low to xf low 0 2 ns t d(touth) delay time, clkout low to tout high 0 4 ns t d(toutl) delay time, clkout low to tout low 0 4 ns t w(tout) pulse duration, tout 2h ns xf clkout t d(xf) figure 28. xf timing tout clkout t w(tout) t d(toutl) t d(touth) figure 29. tout timing tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 59 post office box 1443 ? houston, texas 772511443 multichannel buffered serial port timing timing requirements for the mcbsp 2 [h=0.5t c(co) ] (see figure 30 and figure 31) min max unit t c(bckrx) cycle time, bclkr/x bclkr/x ext 4h ns t w(bckrx) pulse duration, bclkr/x or bclkr/x high bclkr/x ext 2h1 ns t hold time external bfsr high after bclkr low bclkr int 0 ns t h(bckrl-bfrh) hold time, external bfsr high after bclkr low bclkr ext 4 ns t hold time bdr valid after bclkr low bclkr int 0 ns t h(bckrl-bdrv) hold time, bdr valid after bclkr low bclkr ext 4 ns t hold time external bfsx high after bclkx low bclkx int 0 ns t h(bckxl-bfxh) hold time, external bfsx high after bclkx low bclkx ext 4 ns t setup time external bfsr high before bclkr low bclkr int 7 ns t su(bfrh-bckrl) setup time, external bfsr high before bclkr low bclkr ext 2 ns t setup time bdr valid before bclkr low bclkr int 7 ns t su(bdrv-bckrl) setup time, bdr valid before bclkr low bclkr ext 2 ns t setup time external bfsx high before bclkx low bclkx int 7 ns t su(bfxh-bckxl) setup time, external bfsx high before bclkx low bclkx ext 2 ns t r(bckrx) rise time, bckr/x bclkr/x ext 8 ns t f(bckrx) fall time, bckr/x bclkr/x ext 8 ns 2 polarity bits clkrp = clkxp = fsrp = fsxp = 0. if the polarity of any of the signals is inverted, then the timing references of that signal are also inverted. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 60 post office box 1443 ? houston, texas 772511443 multichannel buffered serial port timing (continued) switching characteristics for the mcbsp 2 [h=0.5t c(co) ] (see figure 30 and figure 31) parameter min max unit t c(bckrx) cycle time, bclkr/x bclkr/x int 4h ns t w(bckrxh) pulse duration, bclkr/x high bclkr/x int d3 3 d+1 3 ns t w(bckrxl) pulse duration, bclkr/x low bclkr/x int c3 3 c+1 3 ns t d(bckrh-bfrv) delay time, bclkr high to internal bfsr valid bclkr int 2 2 ns t delay time bclkx high to internal bfsx valid bclkx int 0 6 ns t d(bckxh-bfxv) delay time, bclkx high to internal bfsx valid bclkx ext 4 12 ns t disable time bclkx high to bdx high impedance following last data bit bclkx int 4 7 ns t dis(bckxh-bdxhz) disable time, bclkx high to bdx high impedance following last data bit bclkx ext 3 9 ns delay time, bclkx high to bdx valid. this applies to all bits except the first bclkx int 0 7 delay time , bclkx high to bdx valid . this a lies to all bits exce t the first bit transmitted. bclkx ext 4 12 t d(bckxh-bdxv) delay time, bclkx high to bdx valid. ? only a pp lies to first bit transmitted when in data delay 1 dxena 0 bclkx int 7 ns only applies to first bit transmitted when in data delay 1 or 2 (xdatdly=01b or 10b) modes dxena = 0 bclkx ext 12 t enable time, bclkx high to bdx driven. ? only a pp lies to first bit transmitted when in data delay 1 dxena 0 bclkx int 4 ns t e(bckxh-bdx) only applies to first bit transmitted when in data delay 1 or 2 (xdatdly=01b or 10b) modes dxena = 0 bclkx ext 2 ns t delay time, bfsx high to bdx valid. ? only a pp lies to first bit transmitted when in data delay 0 dxena 0 bfsx int 2 ns t d(bfxh-bdxv) only applies to first bit transmitted when in data delay 0 (xdatdly=00b) mode. dxena = 0 bfsx ext 12 ns t enable time, bfsx high to bdx driven. ? only a pp lies to first bit transmitted when in data delay 0 dxena 0 bfsx int 1 ns t e(bfxh-bdx) only applies to first bit transmitted when in data delay 0 (xdatdly=00b) mode dxena = 0 bfsx ext 2 ns 2 polarity bits clkrp = clkxp = fsrp = fsxp = 0. if the polarity of any of the signals is inverted, then the timing references of that signal are also inverted. 3 t=bclkrx period = (1 + clkgdv) * 2h c=bclkrx low pulse width = t/2 when clkgdv is odd or zero and = (clkgdv/2) * 2h when clkgdv is even d=bclkrx high pulse width = t/2 when clkgdv is odd or zero and = (clkgdv/2 + 1) * 2h when clkgdv is even see the tms320c54x enhanced peripherals reference set, volume 5 (literature number spru302) for a description of the dx enable (dxena) and data delay features of the mcbsp. ? the transmit delay enable (dxena) and a-bis mode (abis) features of the mcbsp are not implemented on the tms320vc5409. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 61 post office box 1443 ? houston, texas 772511443 multichannel buffered serial port timing (continued) (n2) bit (n1) (n3) (n2) bit (n1) (n4) (n3) (n2) bit (n1) t h(bckrlbdrv) t su(bdrvbckrl) t h(bckrlbdrv) t su(bdrvbckrl) t su(bdrvbckrl) t h(bckrlbdrv) t h(bckrlbfrh) t su(bfrhbckrl) t d(bckrhbfrv) t d(bckrhbfrv) t r(bckrx) t r(bckrx) t w(bckrxl) t c(bckrx) t w(bckrxh) (rdatdly=10b) bdr (rdatdly=01b) bdr (rdatdly=00b) bdr bfsr (ext) bfsr (int) bclkr figure 30. mcbsp receive timings t e(bckxhbdx) t d(bckxhbdxv) t d(bckxhbdxv) t e(bckxhbdx) t dis(bckxhbdxhz) t d(bckxhbdxv) t d(bdfxhbdxv) t e(bdfxhbdx) (xdatdly=10b) bdx (xdatdly=01b) bdx (xdatdly=00b) bdx (n2) bit (n1) bit 0 (n4) bit (n1) (n3) (n2) bit 0 (n3) (n2) bit (n1) bit 0 t h(bckxlbfxh) t f(bckrx) t r(bckrx) t w(bckrxl) t c(bckrx) t w(bckrxh) bfsx (ext) bfsx (int) bclkx t d(bckxhbfxv) t d(bckxhbfxv) t su(bfxhbckxl) figure 31. mcbsp transmit timings tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 62 post office box 1443 ? houston, texas 772511443 multichannel buffered serial port timing (continued) timing requirements for mcbsp general-purpose i/o (see figure 32) '5409-80, -100 unit min max unit t su(bgpio-coh) setup time, bgpiox input mode before clkout high 2 9 ns t h(coh-bgpio) hold time, bgpiox input mode after clkout high 2 0 ns 2 bgpiox refers to bclkrx, bfsrx, bdrx, bclkxx, or bfsxx when configured as a general-purpose input. switching characteristics for mcbsp general-purpose i/o (see figure 32) parameter '5409-80, -100 unit parameter min max unit t d(coh-bgpio) delay time, clkout high to bgpiox output mode 3 10 10 ns 3 bgpiox refers to bclkrx, bfsrx, bclkxx, bfsxx, or bdxx when configured as a general-purpose output. t su(bgpio-coh) t h(coh-bgpio) t d(coh-bgpio) clkout bgpiox input mode 2 bgpiox output mode 3 2 bgpiox refers to bclkrx, bfsrx, bdrx, bclkxx, or bfsxx when configured as a general-purpose input. 3 bgpiox refers to bclkrx, bfsrx, bclkxx, bfsxx, or bdxx when configured as a general-purpose output. figure 32. mcbsp general-purpose i/o timings tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 63 post office box 1443 ? houston, texas 772511443 multichannel buffered serial port timing (continued) timing requirements for mcbsp as spi master or slave: [h=0.5t c(co) ] clkstp = 10b, clkxp = 0 2 (see figure 33) '5409-80, -100 master slave unit min max min max t su(bdrv-bckxl) setup time, bdr valid before bclkx low 10 12h ns t h(bckxl-bdrv) hold time, bdr valid after bclkx low 0 5 + 12h ns t su(bfxl-bckxh) setup time, bfsx low before bclkx high 10 ns t c(bckx) cycle time, bclkx 12h 32h ns 2 for all spi slave modes, clkg is programmed as 1/2 of the cpu clock by setting clksm = clkgdv = 1. switching characteristics for mcbsp as spi master or slave: [h=0.5t c(co) ] clkstp = 10b, clkxp = 0 2 (see figure 33) '5409-80, -100 parameter master 3 slave unit min max min max t h(bckxl-bfxl) hold time, bfsx low after bclkx low t 4 t + 4 ns t d(bfxl-bckxh) delay time, bfsx low to bclkx high ? c 5 c + 3 ns t d(bckxh-bdxv) delay time, bclkx high to bdx valid 3 7 6h + 5 10h + 14 ns t dis(bckxl-bdxhz) disable time, bdx high impedance following last data bit from bclkx low c 2 c + 3 ns t dis(bfxh-bdxhz) disable time, bdx high impedance following last data bit from bfsx high 2h+ 3 6h + 17 ns t d(bfxl-bdxv) delay time, bfsx low to bdx valid 4h + 2 8h + 17 ns 2 for all spi slave modes, clkg is programmed as 1/2 of the cpu clock by setting clksm = clkgdv = 1. 3 t = bclkx period = (1 + clkgdv) * 2h c = bclkx low pulse width = t/2 when clkgdv is odd or zero and = (clkgdv/2) * 2h when clkgdv is even fsrp = fsxp = 1. as a spi master, bfsx is inverted to provide active-low slave-enable output. as a slave, the active-low signal input on bfsx and bfsr is inverted before being used internally. clkxm = fsxm = 1, clkrm = fsrm = 0 for master mcbsp clkxm = clkrm = fsxm = fsrm = 0 for slave mcbsp ? bfsx should be low before the rising edge of clock to enable slave devices and then begin a spi transfer at the rising edge of the master clock (bclkx). bit 0 bit(n-1) (n-2) (n-3) (n-4) bit 0 bit(n-1) (n-2) (n-3) (n-4) bclkx bfsx bdx bdr t su(bdrv-bclxl) t d(bckxh-bdxv) t h(bckxl-bdrv) t dis(bfxh-bdxhz) t dis(bckxl-bdxhz) t h(bckxl-bfxl) t d(bfxl-bdxv) t d(bfxl-bckxh) lsb msb t su(bfxl-bckxh) t c(bckx) figure 33. mcbsp timing as spi master or slave: clkstp = 10b, clkxp = 0 tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 64 post office box 1443 ? houston, texas 772511443 multichannel buffered serial port timing (continued) timing requirements for mcbsp as spi master or slave: [h=0.5t c(co) ] clkstp = 11b, clkxp = 0 2 (see figure 34) '5409-80, -100 master slave unit min max min max t su(bdrv-bckxl) setup time, bdr valid before bclkx low 10 12h ns t h(bckxh-bdrv) hold time, bdr valid after bclkx high 0 5 + 12h ns t su(bfxl-bckxh) setup time, bfsx low before bclkx high 10 ns t c(bckx) cycle time, bclkx 32h ns 2 for all spi slave modes, clkg is programmed as 1/2 of the cpu clock by setting clksm = clkgdv = 1. switching characteristics for mcbsp as spi master or slave: [h=0.5t c(co) ] clkstp = 11b, clkxp = 0 2 (see figure 34) '5409-80, -100 parameter master 3 slave unit min max min max t h(bckxl-bfxl) hold time, bfsx low after bclkx low c 4 c + 4 ns t d(bfxl-bckxh) delay time, bfsx low to bclkx high ? t 5 t + 3 ns t d(bckxl-bdxv) delay time, bclkx low to bdx valid 3 7 6h + 5 10h + 14 ns t dis(bckxl-bdxhz) disable time, bdx high impedance following last data bit from bclkx low 2 4 6h + 3 10h + 17 ns t d(bfxl-bdxv) delay time, bfsx low to bdx valid d 1 d + 4 4h 2 8h + 17 ns 2 for all spi slave modes, clkg is programmed as 1/2 of the cpu clock by setting clksm = clkgdv = 1. 3 t = bclkx period = (1 + clkgdv) * 2h c = bclkx low pulse width = t/2 when clkgdv is odd or zero and = (clkgdv/2) * 2h when clkgdv is even d = bclkx high pulse width = t/2 when clkgdv is odd or zero and = (clkgdv/2 + 1) * 2h when clkgdv is even fsrp = fsxp = 1. as a spi master, bfsx is inverted to provide active-low slave-enable output. as a slave, the active-low signal input on bfsx and bfsr is inverted before being used internally. clkxm = fsxm = 1, clkrm = fsrm = 0 for master mcbsp clkxm = clkrm = fsxm = fsrm = 0 for slave mcbsp ? bfsx should be low before the rising edge of clock to enable slave devices and then begin a spi transfer at the rising edge of the master clock (bclkx). bit 0 bit(n-1) (n-2) (n-3) (n-4) bit 0 bit(n-1) (n-2) (n-3) (n-4) bclkx bfsx bdx bdr t d(bfxl-bckxh) t dis(bckxl-bdxhz) t d(bckxl-bdxv) t h(bckxh-bdrv) t su(bdrv-bckxh) t d(bfxl-bdxv) t h(bckxl-bfxl) lsb msb t su(bfxl-bckxh) t c(bckx) figure 34. mcbsp timing as spi master or slave: clkstp = 11b, clkxp = 0 tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 65 post office box 1443 ? houston, texas 772511443 multichannel buffered serial port timing (continued) timing requirements for mcbsp as spi master or slave: [h=0.5t c(co) ] clkstp = 10b, clkxp = 1 2 (see figure 35) '5409-80, -100 master slave unit min max min max t su(bdrv-bckxh) setup time, bdr valid before bclkx high 10 12h ns t h(bckxh-bdrv) hold time, bdr valid after bclkx high 0 5 + 12h ns t su(bfxl-bckxl) setup time, bfsx low before bclkx low 10 ns t c(bckx) cycle time, bclkx 32h ns 2 for all spi slave modes, clkg is programmed as 1/2 of the cpu clock by setting clksm = clkgdv = 1. switching characteristics for mcbsp as spi master or slave: [h=0.5t c(co) ] clkstp = 10b, clkxp = 1 2 (see figure 35) '5409-80, -100 parameter master 3 slave unit min max min max t h(bckxh-bfxl) hold time, bfsx low after bclkx high t 4 t + 4 ns t d(bfxl-bckxl) delay time, bfsx low to bclkx low ? d 5 d + 3 ns t d(bckxl-bdxv) delay time, bclkx low to bdx valid 3 7 6h + 5 10h + 14 ns t dis(bckxh-bdxhz) disable time, bdx high impedance following last data bit from bclkx high d 2 d + 3 ns t dis(bfxh-bdxhz) disable time, bdx high impedance following last data bit from bfsx high 2h + 3 6h + 17 ns t d(bfxl-bdxv) delay time, bfsx low to bdx valid 4h 2 8h + 17 ns 2 for all spi slave modes, clkg is programmed as 1/2 of the cpu clock by setting clksm = clkgdv = 1. 3 t = bclkx period = (1 + clkgdv) * 2h d = bclkx high pulse width = t/2 when clkgdv is odd or zero and = (clkgdv/2 + 1) * 2h when clkgdv is even fsrp = fsxp = 1. as a spi master, bfsx is inverted to provide active-low slave-enable output. as a slave, the active-low signal input on bfsx and bfsr is inverted before being used internally. clkxm = fsxm = 1, clkrm = fsrm = 0 for master mcbsp clkxm = clkrm = fsxm = fsrm = 0 for slave mcbsp ? bfsx should be low before the rising edge of clock to enable slave devices and then begin a spi transfer at the rising edge of the master clock (bclkx). t su(bfxl-bckxl) t h(bckxh-bdrv) t dis(bfxh-bdxhz) t dis(bckxh-bdxhz) bit 0 bit(n-1) (n-2) (n-3) (n-4) bit 0 bit(n-1) (n-2) (n-3) (n-4) bclkx bfsx bdx bdr t d(bfxl-bckxl) t d(bfxl-bdxv) t d(bckxl-bdxv) t su(bdrv-bckxh) t h(bckxh-bfxl) lsb msb t c(bckx) figure 35. mcbsp timing as spi master or slave: clkstp = 10b, clkxp = 1 tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 66 post office box 1443 ? houston, texas 772511443 multichannel buffered serial port timing (continued) timing requirements for mcbsp as spi master or slave: [h=0.5t c(co) ] clkstp = 11b, clkxp = 1 2 (see figure 36) '5409-80, -100 master slave unit min max min max t su(bdrv-bckxl) setup time, bdr valid before bclkx low 10 12h ns t h(bckxl-bdrv) hold time, bdr valid after bclkx low 0 5 + 12h ns t su(bfxl-bckxl) setup time, bfsx low before bclkx low 10 ns t c(bckx) cycle time, bclkx 32h ns 2 for all spi slave modes, clkg is programmed as 1/2 of the cpu clock by setting clksm = clkgdv = 1. switching characteristics for mcbsp as spi master or slave: [h=0.5t c(co) ] clkstp = 11b, clkxp = 1 2 (see figure 36) '5409-80, -100 parameter master 3 slave unit min max min max t h(bckxh-bfxl) hold time, bfsx low after bclkx high d 4 d + 4 ns t d(bfxl-bckxl) delay time, bfsx low to bclkx low ? t 5 t + 3 ns t d(bckxh-bdxv) delay time, bclkx high to bdx valid 3 7 6h + 5 10h + 14 ns t dis(bckxh-bdxhz) disable time, bdx high impedance following last data bit from bclkx high 2 4 6h + 3 10h + 17 ns t d(bfxl-bdxv) delay time, bfsx low to bdx valid c 1 c + 4 4h 2 8h + 17 ns 2 for all spi slave modes, clkg is programmed as 1/2 of the cpu clock by setting clksm = clkgdv = 1. 3 t = bclkx period = (1 + clkgdv) * 2h c = bclkx low pulse width = t/2 when clkgdv is odd or zero and = (clkgdv/2) * 2h when clkgdv is even d = bclkx high pulse width = t/2 when clkgdv is odd or zero and = (clkgdv/2 + 1) * 2h when clkgdv is even fsrp = fsxp = 1. as a spi master, bfsx is inverted to provide active-low slave-enable output. as a slave, the active-low signal input on bfsx and bfsr is inverted before being used internally. clkxm = fsxm = 1, clkrm = fsrm = 0 for master mcbsp clkxm = clkrm = fsxm = fsrm = 0 for slave mcbsp ? bfsx should be low before the rising edge of clock to enable slave devices and then begin a spi transfer at the rising edge of the master clock (bclkx). bit 0 bit(n-1) (n-2) (n-3) (n-4) bit 0 bit(n-1) (n-2) (n-3) (n-4) bclkx bfsx bdx bdr t d(bfxl-bckxl) t su(bdrv-bckxl) t dis(bckxh-bdxhz) t h(bckxh-bfxl) t d(bckxh-bdxv) t h(bckxl-bdrv) t d(bfxl-bdxv) lsb msb t su(bfxl-bckxl) t c(bckx) figure 36. mcbsp timing as spi master or slave: clkstp = 11b, clkxp = 1 tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 67 post office box 1443 ? houston, texas 772511443 hpi8 timing switching characteristics over recommended operating conditions 23? [h = 0.5t c(co) ] (see figure 37, figure 38, figure 40, and figure 41) parameter '5409-80, -100 unit parameter min max unit t en(dsl-hd) enable time, hd driven from ds low 2 19 ns case 1a: memory accesses when dmac is active in 16-bit mode and t w(dsh) < 18h 18h+19 t w(dsh) case 1b: memory accesses when dmac is active in 16-bit mode and t w(dsh) 18h 19 t d(dsl hdv1) delay time, ds low to hdx valid for case 1c: memory access when dmac is active in 32-bit mode and t w(dsh) < 26h 26h+19 t w(dsh) ns t d(dsl-hdv1) delay time, ds low to hdx valid for first byte of an hpi read case 1d: memory access when dmac is active in 32-bit mode and t w(dsh) 26h 19 ns case 2a: memory accesses when dmac is inactive and t w(dsh) < 10h 10h+19 t w(dsh) case 2b: memory accesses when dmac is inactive and t w(dsh) 10h 19 case 3: register accesses 19 t d(dsl-hdv2) delay time, ds low to hdx valid for second byte of an hpi read 19 ns t h(dsh-hdv)r hold time, hdx valid after ds high, for a hpi read 3 5 ns t v(hyh-hdv) valid time, hdx valid after hrdy high 5 t d(dsh-hyl) delay time, ds high to hrdy low (see note 1) 10 ns case 1a: memory accesses when dmac is active in 16-bit mode 18h+10 ns t delay time ds high to hrdy high case 1b: memory accesses when dmac is active in 32-bit mode 26h+10 ns t d(dsh-hyh) delay time, ds high to hrdy high case 2: memory accesses when dmac is inactive 10h+10 ns case 3: write accesses to hpic register (see note 2) 6h+10 ns t d(hcs-hrdy) delay time, hcs low/high to hrdy low/high 15 ns t d(coh-hyh ) delay time, clkout high to hrdy high 2 ns t d(coh-htx) delay time, clkout high to hint change 5 ns notes: 1. the hrdy output is always high when the hcs input is high, regardless of ds timings. 2. this timing applies when writing a one to the dspint bit or hint bit of the hpic register. all other writes to the hpic occur asynchronously, and do not cause hrdy to be deasserted. 2 ds refers to the logical or of hcs , hds1 , and hds2 . 3 hdx refers to any of the hpi data bus pins (hd0, hd1, hd2, etc.). dmac stands for direct memory access (dma) controller. the hpi8 shares the internal dma bus with the dmac, thus hpi8 access tim es are affected by dmac activity. ? gpio refers to the hd pins when they are configured as general-purpose input/outputs. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 68 post office box 1443 ? houston, texas 772511443 hpi8 timing (continued) timing requirements 23 (see figure 37, figure 38, figure 40, and figure 41) '5409-80, -100 unit min max unit t su(hbv-dsl) setup time, hbil valid before ds low 5 ns t h(dsl-hbv) hold time, hbil valid after ds low 5 ns t su(hsl-dsl) setup time, has low before ds low 5 ns t w(dsl) pulse duration, ds low 20 ns t w(dsh) pulse duration, ds high 10 ns t su(hdv-dsh) setup time, hdx valid before ds high, hpi write 5 ns t h(dsh-hdv)w hold time, hdx valid after ds high, hpi write 5 ns 2 ds refers to the logical or of hcs , hds1 , and hds2 . 3 hdx refers to any of the hpi data bus pins (hd0, hd1, hd2, etc.). gpio refers to the hd pins when they are configured as general-purpose input/outputs. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 69 post office box 1443 ? houston, texas 772511443 hpi8 timing (continued) valid t su(hsl-dsl) valid t su(hbv-dsl) t su(hbv-dsl) 3 has hbil t h(dsl-hbv) t h(dsl-hbv) 3 t d(dsh-hyh) t w(dsl) t d(dsl-hdv1) t v(hyh-hdv) valid valid valid t d(coh-hyh) valid t w(dsh) t d(dsh-hyl) t h(dsh-hdv)r t h(dsh-hdv)w valid t su(hdv-dsh) t d(dsl-hdv2) t en(dsl-hd) hcs hds hrdy hd read valid hd write clkout second byte first byte second byte had 2 2 had refers to hcntl0, hcntl1, and hr/w . 3 when has is not used (has always high) figure 37. using hds to control accesses (hcs always low) tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 70 post office box 1443 ? houston, texas 772511443 hpi8 timing (continued) second byte first byte second byte t d(hcs-hrdy) hcs hds hrdy figure 38. using hcs to control accesses clkout hrdy t d(cohhyh) figure 39. hrdy relative to clkout hint clkout t d(coh-htx) figure 40. hint timing tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 71 post office box 1443 ? houston, texas 772511443 timing requirements for gpio (see figure 41) min max unit t su(gpio-coh) setup time, gpiox input valid before clkout high, gpiox configured as general-purpose input. 7 ns t h(gpio-coh) hold time, gpiox input valid after clkout high, gpiox configured as general-purpose input. 0 ns switching characteristics for gpio (see figure 41) parameter min max unit t d(coh-gpio) delay time, clkout high to gpiox output change. gpiox configured as general-purpose output. 0 6 ns gpiox input mode 2 clkout t h(gpio-coh) gpiox output mode 2 t su(gpio-coh) t d(coh-gpio) 2 gpiox refers to hd0, hd1, hd2, ...hd7, when the hd bus is configured for general-purpose input/output (i/o). figure 41. gpiox 2 timings tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 72 post office box 1443 ? houston, texas 772511443 hpi16 timing switching characteristics over recommended operating conditions 23 ? [h = 0.5t c(co) ] (see figure 42 and figure 43) parameter min max unit t en(dsl-hd) enable time, dx driven from ds low 6 19 ns case 1a: memory accesses when dmac is active in 16-bit mode and t w(dsh) < 18h 18h+19 t w(dsh) t d(dsl hdv1) delay time, ds low to dx valid for an case 1b: memory accesses when dmac is active in 16-bit mode and t w(dsh) 18h 19 ns t d(dsl-hdv1) y, hpi read case 2a: memory accesses when dmac is inactive and t w(dsh) < 10h 10h+19 t w(dsh) ns case 2b: memory accesses when dmac is inactive and t w(dsh) 10h 19 case 3: register accesses 19 t h(dsh-hdv)r hold time, dx valid after ds rising edge, read 1 8 ns tv (hyh-hdv) valid time, dx valid before hrdy rising edge 0 6 ns t d(dsh-hyl) delay time, ds or hcs high to hrdy low 3 10 ns t delay time, ds high to hrdy high case 1: memory access when dmac is active in 16-bit mode 18h+10 ns t d(dsh-hyh) delay time , ds high to hrdy high (writes and autoincrement reads) case 2: memory access when dmac is inactive 10h+10 ns t d(dsl-hyl) delay time, hds or hcs low/high to hrdy low/high 10 ns t d(cohhyh) delay time, clkout high to hrdy high 2 ns note: the hrdy output is always high when the hcs input is high, regardless of ds timings. 2 ds refers to the logical or of hcs , hds1 , or hds2 . 3 dx refers to any of the dpi data bus pins (d0, d1, d2, etc.). dmac stands for direct memory access (dma) controller. the hpi16 shares the internal dma bus with the dmac, thus hpi16 access t imes are affected by dmac activity. ? gpio refers to the hd pins when they are configured as general-purpose input/outputs. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 73 post office box 1443 ? houston, texas 772511443 hpi16 timing (continued) timing requirements 23 [h = 0.5t c(co) ] (see note 1, figure 42, and figure 43) min max unit t su(hbv-dsl) setup time, had valid before ds falling edge 23 5 ns t h(dsl-hbv) hold time, had valid after ds falling edge 23 5 ns t su(hav-dsl) setup time, had valid before ds falling edge 2 4h+3 ns t h(dsh-hav) hold time, address valid after ds rising edge 2 1 ns t su(hdv-dsh) setup time, dx valid before ds high (hpi write) 3 ns t h(dsh-hdv)w hold time, dx valid after ds high (hpi write) 2 ns t w(dsl) pulse duration, ds low 3 20 ns t w(dsh) pulse duration, ds high 3 10 ns t (dsh dsh) cycle time, ds rising edge to next ds rising edge 3 nonmultiplexed mode (no increment) with no dma activity. 12h ns t c(dsh-dsh) (minimum timings represent writes while maximum timings represent reads) nonmultiplexed mode (no increment) with 16-bit dma activity. 20h ns 2 ds refers to the logical or of hcs and hds1 and hds2 . 3 dx refers to any of the hpi data bus pins (d0, d1, d2, etc.). gpio refers to the hd pins when they are configured as general-purpose input/outputs. tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 74 post office box 1443 ? houston, texas 772511443 hpi16 timing (continued) t d(dslhyh) t v(hyhhdv) t h(dshhdv)r t d(dslhdv1) t en(dslhd) t h(dshhav) t su(havdsl) t h(dslhbv) t w(dsl) t su(hbvdsl) t w(dsh) t c(dshdsh) hrdy ha[15:0] hr/w hds hcs data valid data valid valid address valid address (a[15:0]) d[15:0] figure 42. nonmultiplexed read timings tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 75 post office box 1443 ? houston, texas 772511443 hpi16 timing (continued) hrdy d[15:0] ha[15:0] hr/w hds hcs data valid data valid t h(dshhdv)w t su(hdvdsh) valid address valid address t h(dshhav) t h(dslhbv) t w(dsl) t su(hbvdsl) t w(dsh) t c(dshdsh) t su(havdsh) t d(dshhyh) t d(dslhyl) a[15:0] figure 43. nonmultiplexed write timings tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 76 post office box 1443 ? houston, texas 772511443 mechanical data pge (s-pqfp-g144) plastic quad flatpack 4040147 / c 10/96 0,27 72 0,17 37 73 0,13 nom 0,25 0,75 0,45 0,05 min 36 seating plane gage plane 108 109 144 sq sq 22,20 21,80 1 19,80 17,50 typ 20,20 1,35 1,45 1,60 max m 0,08 0 7 0,08 0,50 notes: a. all linear dimensions are in millimeters. b. this drawing is subject to change without notice. c. falls within jedec ms-026 thermal resistance characteristics parameter c/w r q ja 56 r q jc 5 tms320vc5409 fixed-point digital signal processor sprs082c april 1999 revised march 2000 77 post office box 1443 ? houston, texas 772511443 mechanical data ggu (s-pbga-n144) plastic ball grid array package 0,80 0,10 m 0,08 0,80 9,60 typ 12 13 10 11 89 67 n m k l j h 4 2 3 f e c b d a 1 g 5 seating plane 4073221/a 11/96 sq 11,90 12,10 0,95 0,35 0,45 0,45 0,55 0,85 0,08 0,12 1,40 max notes: a. all linear dimensions are in millimeters. b. this drawing is subject to change without notice. c. microstar bga ? configuration thermal resistance characteristics parameter c/w r q ja 38 r q jc 5 microstar bga is a trademark of texas instruments incorporated. important notice texas instruments and its subsidiaries (ti) reserve the right to make changes to their products or to discontinue any product or service without notice, and advise customers to obtain the latest version of relevant information to verify, before placing orders, that information being relied on is current and complete. all products are sold subject to the terms and conditions of sale supplied at the time of order acknowledgment, including those pertaining to warranty, patent infringement, and limitation of liability. ti warrants performance of its semiconductor products to the specifications applicable at the time of sale in accordance with ti's standard warranty. testing and other quality control techniques are utilized to the extent ti deems necessary to support this warranty. specific testing of all parameters of each device is not necessarily performed, except those mandated by government requirements. customers are responsible for their applications using ti components. in order to minimize risks associated with the customer's applications, adequate design and operating safeguards must be provided by the customer to minimize inherent or procedural hazards. ti assumes no liability for applications assistance or customer product design. ti does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right of ti covering or relating to any combination, machine, or process in which such semiconductor products or services might be or are used. ti's publication of information regarding any third party's products or services does not constitute ti's approval, warranty or endorsement thereof. copyright ? 2000, texas instruments incorporated |
Price & Availability of TMS320VC5409PGE-100
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |