SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Floating-Point Digital Signal Processor Check for Samples: SM320C6727B-EP 1 SM320C6727B DSP 1.1 Features 1 234 • C672x: 32-/64-Bit 250-MHz Floating-Point DSPs • Upgrades to C67x+ CPU From C67x™ DSP Generation: – 2X CPU Registers [64 General-Purpose] – New Audio-Specific Instructions – Compatible With the C67x CPU • Enhanced Memory System – 256K-Byte Unified Program/Data RAM – 384K-Byte Unified Program/Data ROM – Single-Cycle Data Access From CPU – Large Program Cache (32K Byte) Supports RAM, ROM, and External Memory • External Memory Interface (EMIF) Supports – 100-MHz SDRAM (16- or 32-Bit) – Asynchronous NOR Flash, SRAM (8-,16-, or 32-Bit) – NAND Flash (8- or 16-Bit) • Enhanced I/O System – High-Performance Crossbar Switch – Dedicated McASP DMA Bus – Deterministic I/O Performance • dMAX (Dual Data Movement Accelerator) Supports: – 16 Independent Channels – Concurrent Processing of Two Transfer Requests – 1-, 2-, and 3-Dimensional Memory-to-Memory and Memory-to-Peripheral Data Transfers – Circular Addressing Where the Size of a Circular Buffer (FIFO) is not Limited to 2n – Table-Based Multi-Tap Delay Read and Write Transfers From/To a Circular Buffer • Three Multichannel Audio Serial Ports – Transmit/Receive Clocks up to 50 MHz – Six Clock Zones and 16 Serial Data Pins – Supports TDM, I2S, and Similar Formats – DIT-Capable (McASP2) • Universal Host-Port Interface (UHPI) – 32-Bit-Wide Data Bus for High Bandwidth – Muxed and Non-Muxed Address and Data • Two 10-MHz SPI Ports With 3-, 4-, and 5-Pin Options • Two Inter-Integrated Circuit (I2C) Ports • Real-Time Interrupt Counter/Watchdog • Oscillator- and Software-Controlled PLL • 256-Terminal, 1.0-mm, 16x16 Array Plastic Ball Grid Array (PBGA) • Applications • Professional Audio – Mixers – Effects Boxes – Audio Synthesis – Instrument/Amp Modeling – Audio Conferencing – Audio Broadcast – Audio Encoder • Emerging Audio Applications • Biometrics • Medical • Industrial • Supports Defense, Aerospace, and Medical Applications – Controlled Baseline – One Assembly/Test Site – One Fabrication Site – Available in Military (-55°C/125°C) Temperature Range – Extended Product Life Cycle – Extended Product-Change Notification – Product Traceability 1 2 3 4 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. C67x, TMS320C6000, C6000, DSP/BIOS, XDS, TMS320 are trademarks of Texas Instruments. Philips is a registered trademark of Koninklijki Philips Electronics N.V. All other trademarks are the property of their respective owners. PRODUCTION DATA information is current as of publication date. Products conform to specifications per the terms of the Texas Instruments standard warranty. Production processing does not necessarily include testing of all parameters. Copyright © 2011, Texas Instruments Incorporated SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 1.2 www.ti.com Description The SM320C6727B is the next generation of Texas Instruments' C67x generation of high-performance 32-/64-bit floating-point digital signal processor. Enhanced C67x+ CPU. The C67x+ CPU is an enhanced version of the C67x CPU used on the C671x DSPs. It is compatible with the C67x CPU but offers significant improvements in speed, code density, and floating-point performance per clock cycle. At 300 MHz, the CPU is capable of a maximum performance of 2400 MIPS/1800 MFLOPS by executing up to eight instructions (six of which are floating-point instructions) in parallel each cycle. The CPU natively supports 32-bit fixed-point, 32-bit single-precision floating-point, and 64-bit double-precision floating-point arithmetic. Efficient Memory System. The memory controller maps the large on-chip 256K-byte RAM and 384K-byte ROM as unified program/data memory. Development is simplified since there is no fixed division between program and data memory size as on some other devices. The memory controller supports single-cycle data accesses from the C67x+ CPU to the RAM and ROM. Up to three parallel accesses to the internal RAM and ROM from three of the following four sources are supported: • Two 64-bit data accesses from the C67x+ CPU • One 256-bit program fetch from the core and program cache • One 32-bit data access from the peripheral system (either dMAX or UHPI) The large (32K-byte) program cache translates to a high hit rate for most applications. This prevents most program/data access conflicts to the on-chip memory. It also enables effective program execution from an off-chip memory such as an SDRAM. High-Performance Crossbar Switch. A high-performance crossbar switch acts as a central hub between the different bus masters (CPU, dMAX, UHPI) and different targets (peripherals and memory). The crossbar is partially connected; some connections are not supported (for example, UHPI-to-peripheral connections). Multiple transfers occur in parallel through the crossbar as long as there is no conflict between bus masters for a particular target. When a conflict does occur, the arbitration is a simple and deterministic fixed-priority scheme. The dMAX is given highest-priority since it is responsible for the most time-critical I/O transfers, followed next by the UHPI, and finally by the CPU. dMAX Dual Data Movement Accelerator. The dMAX is a module designed to perform Data Movement Acceleration. The Data Movement Accelerator (dMAX) controller handles user-programmed data transfers between the internal data memory controller and the device peripherals on the C672x DSP. The dMAX allows movement of data to/from any addressable memory space including internal memory, peripherals, and external memory. The dMAX controller includes features such as the capability to perform three-dimensional data transfers for advanced data sorting, and the capability to manage a section of the memory as a circular buffer/FIFO with delay-tap based reading and writing of data. The dMAX controller is capable of concurrently processing two transfer requests (provided that they are to/from different source/destinations). External Memory Interface (EMIF) for Flexibility and Expansion. The external memory interface on the C672x supports a single bank of SDRAM and a single bank of asynchronous memory. The EMIF data width is 16 bits wide on the C6726 and C6722, and 32 bits wide on the C6727. SDRAM support includes x16 and x32 SDRAM devices with 1, 2, or 4 banks. The C6726 and C6722 support SDRAM devices up to 128M bits. The C6727 extends SDRAM support to 256M-bit and 512M-bit devices. 2 SM320C6727B DSP Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Asynchronous memory support is typically used to boot from a parallel non-multiplexed NOR flash device that can be 8, 16, or 32 bits wide. Booting from larger flash devices than are natively supported by the dedicated EMIF address lines is accomplished by using general-purpose I/O pins for upper address lines. The asynchronous memory interface can also be configured to support 8- or 16-bit-wide NAND flash. It includes a hardware ECC calculation (for single-bit errors) that can operate on blocks of data up to 512 bytes. Universal Host-Port Interface (UHPI) for High-Speed Parallel I/O. The Universal Host-Port Interface (UHPI) is a parallel interface through which an external host CPU can access memories on the DSP. Three modes are supported by the C672x UHPI: • Multiplexed Address/Data - Half-Word (16-bit-wide) Mode (similar to C6713) • Multiplexed Address/Data - Full Word (32-bit-wide) Mode • Non-Multiplexed Mode - 16-bit Address and 32-bit Data Bus The UHPI can also be restricted to accessing a single page (64K bytes) of memory anywhere in the address space of the C672x; this page can be changed, but only by the C672x CPU. This feature allows the UHPI to be used for high-speed data transfers even in systems where security is an important requirement. The UHPI is only available on the C6727. Multichannel Audio Serial Ports (McASP0, McASP1, and McASP2) - Up to 16 Stereo Channels I2S. The multichannel audio serial port (McASP) seamlessly interfaces to CODECs, DACs, ADCs, and other devices. It supports the ubiquitous IIS format as well as many variations of this format, including time division multiplex (TDM) formats with up to 32 time slots. Each McASP includes a transmit and receive section which may operate independently or synchronously; furthermore, each section includes its own flexible clock generator and extensive error-checking logic. As data passes through the McASP, it can be realigned so that the fixed-point representation used by the application code can be independent of the representation used by the external devices without requiring any CPU overhead to make the conversion. The McASP is a configurable module and supports between 2 and 16 serial data pins. It also has the option of supporting a Digital Interface Transmitter (DIT) mode with a full 384 bits of channel status and user data memory. McASP2 is not available on the C6722. Inter-Integrated Circuit Serial Ports (I2C0, I2C1). The C672x includes two inter-integrated circuit (I2C) serial ports. A typical application is to configure one I2C serial port as a slave to an external user-interface microcontroller. The other I2C serial port may then be used by the C672x DSP to control external peripheral devices, such as a CODEC or network controller, which are functionally peripherals of the DSP device. The two I2C serial ports are pin-multiplexed with the SPI0 serial port. Serial Peripheral Interface Ports (SPI0, SPI1). As in the case of the I2C serial ports, the C672x DSP also includes two serial peripheral interface (SPI) serial ports. This allows one SPI port to be configured as a slave to control the DSP while the other SPI serial port is used by the DSP to control external peripherals. The SPI ports support a basic 3-pin mode as well as optional 4- and 5-pin modes. The optional pins include a slave chip-select pin and an enable pin which implements handshaking automatically in hardware for maximum SPI throughput. The SPI0 port is pin-multiplexed with the two I2C serial ports (I2C0 and I2C1). The SPI1 serial port is pin-multiplexed with five of the serial data pins from McASP0 and McASP1. Real-Time Interrupt Timer (RTI). The real-time interrupt timer module includes: SM320C6727B DSP Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 3 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 • • • • www.ti.com Two 32-bit counter/prescaler pairs Two input captures (tied to McASP direct memory access [DMA] events for sample rate measurement) Four compares with automatic update capability Digital Watchdog (optional) for enhanced system robustness Clock Generation (PLL and OSC). The C672x DSP includes an on-chip oscillator that supports crystals in the range of 12 MHz to 25 MHz. Alternatively, the clock can be provided externally through the CLKIN pin. The DSP includes a flexible, software-programmable phase-locked loop (PLL) clock generator. Three different clock domains (SYSCLK1, SYSCLK2, and SYSCLK3) are generated by dividing down the PLL output. SYSCLK1 is the clock used by the CPU, memory controller, and memories. SYSCLK2 is used by the peripheral subsystem and dMAX. SYSCLK3 is used exclusively for the EMIF. 1.2.1 Device Compatibility The SM320C6727B floating-point digital signal processor is based on the new C67x+ CPU. This core is code-compatible with the C67x CPU core used on the TMS320C671x DSPs, but with significant enhancements including additional floating-point instructions. See Section 2.2 4 SM320C6727B DSP Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 1.3 Functional Block Diagram Figure 1-1 shows the functional block diagram of the C672x device. 64 64 Program Fetch Program Cache 32K Bytes 256 256 32 Program/Data ROM Page0 256K Bytes Program/Data ROM Page1 128K Bytes CSP 32 32 256 PMP DMP 32 32 High-Performance Crossbar Switch I/O Interrupts Out McASP0 16 Serializers 32 32 32 MAX0 CONTROL MAX1 dMAX 32 32 32 32 McASP1 6 Serializers 32 McASP2 2 Serializers + DIT 32 SPI1 32 SPI0 32 I2C0 32 I2C1 32 RTI 32 Peripheral Configuration Bus INT Memory Controller 256 I/O JTAG EMU 32 C67x+ CPU D2 Data R/W Program/Data RAM 256K Bytes McASP DMA Bus D1 Data R/W 256 32 Events In UHPI 32 EMIF 32 PLL Peripheral Interrupt and DMA Events A. UHPI is available only on the C6727. McASP2 is not available on the C6722. Figure 1-1. C672x DSP Block Diagram SM320C6727B DSP Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 5 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 1 2 3 4 6 ..................................... 1 1.1 Features .............................................. 1 1.2 Description ........................................... 2 1.3 Functional Block Diagram ............................ 5 Device Overview ........................................ 7 2.1 Device Characteristics ............................... 7 2.2 Enhanced C67x+ CPU ............................... 8 2.3 CPU Interrupt Assignments .......................... 9 2.4 Internal Program/Data ROM and RAM ............. 10 2.5 Program Cache ..................................... 11 2.6 High-Performance Crossbar Switch ................ 13 2.7 Memory Map Summary ............................. 16 2.8 Boot Modes ......................................... 17 2.9 Pin Assignments .................................... 20 2.10 Development ........................................ 26 2.11 ORDERING INFORMATION ....................... 26 2.12 Documentation Support ............................ 27 Device Configurations ................................ 29 3.1 Device Configuration Registers .................... 29 3.2 Peripheral Pin Multiplexing Options ................ 29 3.3 Peripheral Pin Multiplexing Control ................. 30 Peripheral and Electrical Specifications .......... 32 4.1 Electrical Specifications ............................ 32 www.ti.com SM320C6727B DSP 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10 4.11 4.12 4.13 4.14 4.15 4.16 4.17 32 Recommended Operating Conditions 32 33 34 35 36 37 38 43 44 Universal Host-Port Interface (UHPI) [C6727 Only] ...................................................... 54 Multichannel Audio Serial Ports (McASP0, McASP1, and McASP2) ....................................... 67 Serial Peripheral Interface Ports (SPI0, SPI1) ..... 79 Inter-Integrated Circuit Serial Ports (I2C0, I2C1) ...................................................... 92 Real-Time Interrupt (RTI) Timer With Digital Watchdog ........................................... 97 External Clock Input From Oscillator or CLKIN Pin ..................................................... 100 ........................ Application Example ................................ Mechanical Data ...................................... 6.1 Package Thermal Resistance Characteristics .... 6.2 Packaging Information ............................ 4.18 5 6 ........................ .............. Electrical Characteristics ........................... Parameter Information .............................. Timing Parameter Symbology ...................... Power Supplies ..................................... Reset ............................................... Dual Data Movement Accelerator (dMAX) ......... External Interrupts .................................. External Memory Interface (EMIF) ................. Absolute Maximum Ratings Phase-Locked Loop (PLL) Contents 102 105 106 106 106 Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 2 Device Overview 2.1 Device Characteristics Table 2-1 provides an overview of the C672x DSP. The table shows significant features of each device, including the capacity of on-chip memory, the peripherals, the execution time, and the package type with pin count. Table 2-1. Characteristics of the C672x Processor HARDWARE FEATURES C6727B dMAX 1 EMIF 1 (32-bit) Peripherals UHPI 1 Not all peripheral pins are available at the same time. (For more details, see the Device Configurations section.) McASP 3 SPI 2 I2C 2 RTI 1 32KB Program Cache 256KB RAM 384KB ROM On-Chip Memory Size (kB) CPU ID + CPU Rev ID Control Status Register (CSR.[31:16]) Frequency MHz Cycle Time ns 4 ns Core (V) 1.2 V Voltage Clock Generator Options I/O (V) 250 3.3 V Prescaler /1, /2, /3, ..., /32 Multiplier x4, x5, x6, ..., x25 Postscaler Process Technology 0x0300 µm /1, /2, /3, ..., /32 0.13 µm Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 7 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 2.2 www.ti.com Enhanced C67x+ CPU The SM320C6727B floating-point digital signal processor is based on the new C67x+ CPU. This core is code-compatible with the C67x CPU core used on the TMS320C671x DSPs, but with significant enhancements including an increase in core operating frequency from 225 MHz to 300 MHz (1) while operating at 1.2 V. The CPU fetches 256-bit-wide advanced very-long instruction word (VLIW) fetch packets that are composed of variable-length execute packets. The execute packets can supply from one to eight 32-bit instructions to the eight functional units during every clock cycle. The variable-length execute packets are a key memory-saving feature, distinguishing the C67x CPU from other VLIW architectures. Additionally, execute packets can now span fetch packets, providing a code size improvement over the C67x CPU core. The CPU features two data paths, shown in Figure 2-1, each composed of four functional units (.D, .M, .S, and .L) and a register file. The .D unit in each data path is a data-addressing unit that is responsible for all data transfers between the register files and the memory. The .M functional units are dedicated for multiplies, and the .S and .L functional units perform a general set of arithmetic, logical, and branch functions. All instructions operate on registers as opposed to data in memory, but results stored in the 32-bit registers can be subsequently moved to memory as bytes, half-words, or words. Data Path A Data Path B Cross Paths Register File A .D1 .M1 .S1 .L1 Register File B .D2 .M2 .S2 .L2 Figure 2-1. CPU Data Paths The register file in each data path contains 32 32-bit registers for a total of 64 general-purpose registers. This doubles the number of registers found on the C67x CPU core, allowing the optimizing C compiler to pipeline more complex loops by decreasing register pressure significantly. The four functional units in each data path of the CPU can freely share the 32 registers belonging to that data path. Each data path also features a single cross path connected to the register file on the opposing data path. This allows each data path to source one cross-path operand per cycle from the opposing register file. On the C67x+ CPU, this single cross-path operand can be used by two functional units per cycle, an improvement over the C67x CPU in which only one functional unit could use the cross-path operand. In addition, the cross-path register read(s) are not counted as part of the limit of four reads of the same register in a single cycle. The C67x+ CPU executes all C67x instructions plus new floating-point instructions to improve performance specifically during audio processing. These new instructions are listed in Table 2-2. (1) 8 CPU speed is device-dependent. See Table 2-1. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 2-2. New Floating-Point Instructions for C67x+ CPU INSTRUCTION FLOATING-POINT OPERATION (1) IMPROVES MPYSPDP SP x DP → DP Faster than MPYDP. Improves high Q biquads (bass management) and FFT. MPYSP2DP SP x SP → DP Faster than MPYDP. Improves Long FIRs (EQ). ADDSP (new to CPU “S” Unit) SP + SP → SP ADDDP (new to CPU “S” Unit) DP + DP → DP SUBSP (new to CPU “S” Unit) SP – SP → SP SUBDP (new to CPU “S” Unit) DP – DP → DP (1) Now up to four floating-point add and subtract operations in parallel. Improves FFT performance and symmetric FIR. SP means IEEE Single-Precision (32-bit) operations and DP means IEEE Double-Precision (64-bit) operations. Finally, two new registers, which are dedicated to communication with the dMAX unit, have been added to the C67x+ CPU. These registers are the dMAX Event Trigger Register (DETR) and the dMAX Event Status Register (DESR). They allow the CPU and dMAX to communicate without requiring any accesses to the memory system. 2.3 CPU Interrupt Assignments Table 2-3 lists the interrupt channel assignments on the C672x device. If more than one source is listed, the interrupt channel is shared and an interrupt on this channel could have come from any of the enabled peripherals on that channel. The dMAX peripheral has two CPU interrupts dedicated to reporting FIFO status (INT7) and transfer completion (INT8). In addition, the dMAX can generate interrupts to the CPU on lines INT9–13 and INT15 in response to peripheral events. To enable this functionality, the associated Event Entry within the dMAX can be programmed so that a CPU interrupt is generated when the peripheral event is received. Table 2-3. CPU Interrupt Assignments CPU INTERRUPT INTERRUPT SOURCE INT0 RESET INT1 NMI (From dMAX or EMIF Interrupt) INT2 Reserved INT3 Reserved INT4 RTI Interrupt 0 INT5 RTI Interrupts 1, 2, 3, and RTI Overflow Interrupts 0 and 1. INT6 UHPI CPU Interrupt (from External Host MCU) INT7 FIFO status notification from dMAX INT8 Transfer completion notification from dMAX INT9 dMAX event (0x2 specified in the dMAX interrupt event entry) INT10 dMAX event (0x3 specified in the dMAX interrupt event entry) INT11 dMAX event (0x4 specified in the dMAX interrupt event entry) INT12 dMAX event (0x5 specified in the dMAX interrupt event entry) INT13 dMAX event (0x6 specified in the dMAX interrupt event entry) INT14 I2C0, I2C1, SPI0, SPI1 Interrupts INT15 dMAX event (0x7 specified in the dMAX interrupt event entry) Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 9 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 2.4 www.ti.com Internal Program/Data ROM and RAM The organization of program/data ROM and RAM on C672x is simple and efficient. ROM is organized as two 256-bit-wide pages with four 64-bit-wide banks. RAM is organized as a single 256-bit-wide page with eight 32-bit-wide banks. 38 3F 18 1F 3F 1F 37 17 38 18 30 10 37 17 2F 0F 30 10 28 08 2F 0F 27 07 28 08 20 27 07 00 20 00 Byte The internal memory organization is illustrated in Figure 2-2 (ROM) and Figure 2-3 (RAM). Bank 0 Bank 1 Bank 2 ROM Page 1 Base Address 0x0004 0000 ROM Page 0 Base Address 0x0000 0000 Bank 3 Bank 3 37 38 17 18 Bank 6 1F 3F 34 14 Bank 5 1C 3C 33 13 Bank 4 1B 3B 30 28 08 10 27 07 Bank 2 0F 2F 24 04 Bank 1 0C 2C 23 03 Bank 0 0B 2B 20 00 Byte Figure 2-2. Program/Data ROM Organization Bank 7 RAM Page 0 Base Address 0x1000 0000 Figure 2-3. Program/Data RAM Organization The C672x memory controller supports up to three parallel accesses to the internal RAM and ROM from three of the following four sources as long as there are no bank conflicts: • Two 64-bit data accesses from the C67x+ CPU • One 256-bit-wide program fetch from the program cache • One 32-bit data access from the peripheral system (either dMAX or UHPI) A program cache miss is 256 bits wide and conflicts only with data accesses to the same page. Multiple data accesses to different pages, or to the same page but different banks will occur without conflict. The organization of the C672x internal memory system into multiple pages (3 total) and a large number of banks (16 total) means that it is straightforward to optimize DSP code to avoid data conflicts. Several factors, including the large program cache and the partitioning of the memory system into multiple pages, minimize the number of program versus data conflicts. The result is an efficient memory system which allows easy tuning towards the maximum possible CPU performance. The C672x ROM consists of a software bootloader plus additional software. Please refer to the C9230C100 TMS320C672x Floating-Point Digital Signal Processors ROM Data Manual (literature number SPRS277) for more details on the ROM contents. 10 Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 2.5 Program Cache The C672x DSP executes code directly from a large on-chip 32K-byte program cache. The program cache has these key features: • Wide 256-bit path to internal ROM/RAM • Single-cycle access on cache hits • 2-cycle miss penalty to internal ROM/RAM • Caches external memory as well as ROM/RAM • Direct-mapped • Modes: Enable, Freeze, Bypass • Software invalidate to support code overlay The program cache line size is 256 bits wide and is matched with a 256-bit-wide path between cache and internal memory. This allows the program cache to fill an entire line (corresponding to eight C67x+ CPU instructions) with only a single miss penalty of 2 cycles. The program cache control registers are listed in Table 2-4. Table 2-4. Program Cache Control Registers REGISTER NAME BYTE ADDRESS DESCRIPTION L1PISAR 0x2000 0000 L1P Invalidate Start Address L1PICR 0x2000 0004 L1P Invalidate Control Register CAUTION Any application which modifies the contents of program RAM (for example, a program overlay) must invalidate the addresses from program cache to maintain coherency by explicitly writing to the L1PISAR and L1PICR registers. The Cache Mode (Enable, Freeze, Bypass) is configured through a CPU internal register (CSR, bits 7:5). These options are listed in Table 2-5. Typically, only the Cache Enable Mode is used. But advanced users may utilize Freeze and Bypass modes to tune performance. Table 2-5. Cache Modes Set Through PCC Field of CSR CPU Register on C672x CPU CSR[7:5] CACHE MODE 000b Enable (Deprecated - Means direct mapped RAM on some C6000 devices) 010b Enable - Cache is enabled, cache misses cause a line fill. 011b Freeze - Cache is enabled, but contents are unchanged by misses. 100b Bypass - Forces cache misses, cache contents frozen. Other Values Reserved - Not Supported CAUTION Although the reset value of CSR[7:5] (PCC field) is 000b, the value may be modified during the boot process by the ROM code. Refer to the appropriate ROM data sheet for more details. However, note that the cache may be disabled when control is actually passed to application code. Therefore, it may be necessary to write '010b' to the PCC field to explicitly enable the cache at the start of application code. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 11 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com CAUTION Changing the cache mode through CSR[7:5] does not invalidate any lines already in the cache. To invalidate the cache after modifications are made to program space, the control registers L1PISAR and L1PICR must be used. 12 Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 2.6 High-Performance Crossbar Switch The C672x DSP includes a high-performance crossbar switch that acts as a central hub between bus masters and targets. Figure 2-4 illustrates the connectivity of the crossbar switch. ROM RAM Program Cache CPU Memory Controller Data Master Port (DMP) CPU Slave Port (CSP) M1 T1 BR1 BR2 PLL EMIF External Memory SDRAM/ Flash T2 Program Master Port (PMP) 2 SPI1 I2C0 I2C1 Peripheral Configuration Bus 1 BR3 SPI0 T3 Priority M2 RTI McASP0 McASP1 McASP2 BR4 SYSCLK1 SYSCLK1 SYSCLK3 SYSCLK3 SYSCLK2 SYSCLK2 SYSCLK1 SYSCLK2 McASP DMA Bus T4 Priority 1 2 Priority Priority 3 1 2 3 4 2 1 Priority 3 1 2 dMAX MAX0 Unit Master Port − High Priority dMAX MAX1 Unit Master Port − Second Priority Memory Controller DMP − Data Read/Write by CPU UHPI Master Interface (External Host CPU) 1 Crossbar 2 3 Priority M5 External Host MCU Config UHPI Universal Host-Port Interface M3 MAX0 M4 T5 MAX1 Config dMAX Figure 2-4. Block Diagram of Crossbar Switch As shown in Figure 2-4, there are five bus masters: M1 Memory controller DMP for CPU data accesses to peripherals and EMIF. M2 Memory controller PMP for program cache fills from the EMIF. M3 dMAX HiMAX master port for high-priority DMA accesses. M4 dMAX LoMAX master port for lower-priority DMA accesses. M5 UHPI master port for an external MCU to access on-chip and off-chip memories. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 13 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com The five bus masters arbitrate for five different target groups: T1 On-chip memories through the CPU Slave Port (CSP). T2 Memories on the external memory interface (EMIF). T3 Peripheral registers through the peripheral configuration bus. T4 McASP serializers through the dedicated McASP DMA bus. T5 dMAX registers. The crossbar switch supports parallel accesses from different bus masters to different targets. When two or more bus masters contend for the same target beginning at the same cycle, then the highest-priority master is given ownership of the target while the other master(s) are stalled. However, once ownership of the target is given to a bus master, it is allowed to complete its access before ownership is arbitrated again. Following are two examples. Example 1: Simultaneous accesses without conflict • dMAX HiMAX accesses McASP Data Port for transfer of audio data. • dMAX LoMAX accesses SPI port for control processing. • UHPI accesses internal RAM through the CSP. • CPU fills program cache from EMIF. Example 2: Conflict over a shared resource • dMAX HiMAX accesses RTI port for McASP sample rate measurement. • dMAX LoMAX accesses SPI port for control processing. In Example 2, both masters contend for the same target, the peripheral configuration bus. The HiMAX access will be given priority over the LoMAX access. The master priority is illustrated in Figure 2-4 by the numbers 1 through 4 in the bus arbiter symbols. Note that the EMIF arbitration is distributed so that only one bridge crossing is necessary for PMP accesses. The effect is that PMP has 5th priority to the EMIF but lower latency. A bus bridge is needed between masters and targets which run at different clock rates. The bus bridge contains a small FIFO to allow the bridge to accept an incoming (burst) access at one clock rate and pass it through the bridge to a target running at a different rate. Table 2-6 lists the FIFO properties of the four bridges (BR1, BR2, BR3, and BR4) in Figure 2-4. Table 2-6. Bus Bridges LABEL 14 MASTER CLOCK TARGET CLOCK BR1 DMP Bridge to peripherals, dMAX, EMIF BRIDGE DESCRIPTION SYSCLK1 SYSCLK2 BR2 dMAX, UHPI to ROM/RAM (CSP) SYSCLK2 SYSCLK1 BR3 PMP to EMIF SYSCLK1 SYSCLK3 BR4 CPU, UHPI, and dMAX to EMIF SYSCLK2 SYSCLK3 Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Figure 2-5 shows the bit layout of the device-level bridge control register (CFGBRIDGE) and Table 2-7 contains a description of the bits. 31 16 Reserved 15 1 Reserved 0 CSPRST R/W, 1 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Figure 2-5. CFGBRIDGE Register Bit Layout (0x4000 0024) Table 2-7. CFGBRIDGE Register Bit Field Description (0x4000 0024) BIT NO. RESET VALUE READ WRITE 31:1 Reserved NAME N/A N/A Reads are indeterminate. Only 0s should be written to these bits. DESCRIPTION 0 CSPRST 1 R/W Resets the CSP Bridge (BR2 in Figure 2-4). 1 = Bridge Reset Asserted 0 = Bridge Reset Released CAUTION The CSPRST bit must be asserted after any change to the PLL that affects SYSCLK1 and SYSCLK2 and must be released before any accesses to the CSP bridge occur from either the dMAX or the UHPI. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 15 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 2.7 www.ti.com Memory Map Summary A high-level memory map of the C672x DSP appears in Table 2-8. The base address of each region is listed. Any address past the end address must not be read or written. The table also lists whether the regions are word-addressable or byte- and word-addressable. Table 2-8. C672x Memory Map BASE ADDRESS END ADDRESS BYTE- OR WORD-ADDRESSABLE Internal ROM Page 0 (256K Bytes) DESCRIPTION 0x0000 0000 0x0003 FFFF Byte and Word Internal ROM Page 1 (128K Bytes) 0x0004 0000 0x0005 FFFF Byte and Word Internal RAM Page 0 (256K Bytes) 0x1000 0000 0x1003 FFFF Byte and Word Memory and Cache Control Registers 0x2000 0000 0x2000 001F Word Only Emulation Control Registers (Do Not Access) 0x3000 0000 0x3FFF FFFF Word Only Device Configuration Registers 0x4000 0000 0x4000 0083 Word Only PLL Control Registers 0x4100 0000 0x4100 015F Word Only Real-time Interrupt (RTI) Control Registers 0x4200 0000 0x4200 00A3 Word Only Universal Host-Port Interface (UHPI) Registers 0x4300 0000 0x4300 0043 Word Only McASP0 Control Registers 0x4400 0000 0x4400 02BF Word Only McASP1 Control Registers 0x4500 0000 0x4500 02BF Word Only McASP2 Control Registers 0x4600 0000 0x4600 02BF Word Only SPI0 Control Registers 0x4700 0000 0x4700 007F Word Only SPI1 Control Registers 0x4800 0000 0x4800 007F Word Only I2C0 Control Registers 0x4900 0000 0x4900 007F Word Only I2C1 Control Registers 0x4A00 0000 0x4A00 007F Word Only McASP0 DMA Port (any address in this range) 0x5400 0000 0x54FF FFFF Word Only McASP1 DMA Port (any address in this range) 0x5500 0000 0x55FF FFFF Word Only McASP2 DMA Port (any address in this range) 0x5600 0000 0x56FF FFFF Word Only dMAX Control Registers 0x6000 0000 0x6000 008F Word Only MAX0 (HiMAX) Event Entry Table 0x6100 8000 0x6100 807F Byte and Word Reserved 0x6100 8080 0x6100 809F MAX0 (HiMAX) Transfer Entry Table 0x6100 80A0 0x6100 81FF Byte and Word MAX1 (LoMAX) Event Entry Table 0x6200 8000 0x6200 807F Byte and Word Reserved 0x6200 8080 0x6200 809F MAX1 (LoMAX) Transfer Entry Table 0x6200 80A0 0x6200 81FF Byte and Word External SDRAM space on EMIF 0x8000 0000 0x8FFF FFFF Byte and Word External Asynchronous / Flash space on EMIF 0x9000 0000 0x9FFF FFFF Byte and Word EMIF Control Registers 0xF000 0000 0xF000 00BF Word Only (1) (1) 16 The upper byte of the EMIF’s SDRAM Configuration Register (SDCR[31:24]) is byte-addressable to support placing the EMIF into the Self-Refresh State without triggering the SDRAM Initialization Sequence. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 2.8 Boot Modes The C672x DSP supports only one hardware bootmode option, this is to boot from the internal ROM starting at address 0x0000 0000. Other bootmode options are implemented by a software bootloader stored in ROM. The software bootloader uses the CFGPIN0 and CFGPIN1 registers, which capture the state of various device pins at reset, to determine which mode to enter. Note that in practice, only a few pins are used by the software. CAUTION Only an externally applied RESET causes the CFGPIN0 and CFGPIN1 registers to recapture their associated pin values. Neither an emulator reset nor a RTI reset causes these registers to update. The ROM bootmodes include: • Parallel Flash on EM_CS[2] • SPI0 or I2C1 master mode from serial EEPROM • SPI0 or I2C1 slave mode from external MCU • UHPI from an external MCU Table 2-9 describes the required boot pin settings at device reset for each bootmode. Table 2-9. Required Boot Pin Settings at Device Reset UHPI_HCS SPI0_SOMI SPI0_SIMO SPI0_CLK UHPI BOOT MODE 0 BYTEAD (1) FULL (1) NMUX (1) Parallel Flash 1 0 1 0 SPI0 Master 1 0 0 1 SPI0 Slave 1 0 1 1 I2C1 Master 1 1 0 1 I2C1 Slave 1 1 1 1 (1) When UHPI_HCS is 0, the state of the SPI0_SOMI, SPI0_SIMO, and SPI0_CLK pins is copied into the specified bits in the CFGHPI register described in Table 4-12. Refer to the C9230C100 TMS320C672x Floating-Point Digital Signal Processor ROM Data Manual (literature number SPRS277) for details on supported bootmodes and their implementation. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 17 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Figure 2-6 shows the bit layout of the CFGPIN0 register and Table 2-10 contains a description of the bits. 31 8 Reserved 7 6 5 4 3 2 1 0 PINCAP7 PINCAP6 PINCAP5 PINCAP4 PINCAP3 PINCAP2 PINCAP1 PINCAP0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Figure 2-6. CFGPIN0 Register Bit Layout (0x4000 0000) Table 2-10. CFGPIN0 Register Bit Field Description (0x4000 0000) BIT NO. 18 NAME DESCRIPTION 31:8 Reserved Reads are indeterminate. Only 0s should be written to these bits. 7 PINCAP7 SPI0_SOMI/I2C0_SDA pin state captured on rising edge of RESET pin. 6 PINCAP6 SPI0_SIMO pin state captured on rising edge of RESET pin. 5 PINCAP5 SPI0_CLK/I2C0_SCL pin state captured on rising edge of RESET pin. 4 PINCAP4 SPI0_SCS/I2C1_SCL pin state captured on rising edge of RESET pin. 3 PINCAP3 SPI0_ENA/I2C1_SDA pin state captured on rising edge of RESET pin. 2 PINCAP2 AXR0[8]/AXR1[5]/SPI1_SOMI pin state captured on rising edge of RESET pin. 1 PINCAP1 AXR0[9]/AXR1[4]/SPI1_SIMO pin state captured on rising edge of RESET pin. 0 PINCAP0 AXR0[7]/SPI1_CLK pin state captured on rising edge of RESET pin. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Figure 2-7 shows the bit layout of the CFGPIN1 register and Table 2-11 contains a description of the bits. 31 8 Reserved 7 6 5 4 3 2 1 0 PINCAP15 PINCAP14 PINCAP13 PINCAP12 PINCAP11 PINCAP10 PINCAP9 PINCAP8 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Figure 2-7. CFGPIN1 Register Bit Layout (0x4000 0004) Table 2-11. CFGPIN1 Register Bit Field Description (0x4000 0004) BIT NO. NAME DESCRIPTION 31:8 Reserved Reads are indeterminate. Only 0s should be written to these bits. 7 PINCAP15 AXR0[5]/SPI1_SCS pin state captured on rising edge of RESET pin. 6 PINCAP14 AXR0[6]/SPI1_ENA pin state captured on rising edge of RESET pin. 5 PINCAP13 UHPI_HCS pin state captured on rising edge of RESET pin. 4 PINCAP12 UHPI_HD[0] pin state captured on rising edge of RESET pin. 3 PINCAP11 EM_D[16]/UHPI_HA[0] pin state captured on rising edge of RESET pin. 2 PINCAP10 AFSX0 pin state captured on rising edge of RESET pin. 1 PINCAP9 AFSR0 pin state captured on rising edge of RESET pin. 0 PINCAP8 AXR0[0] pin state captured on rising edge of RESET pin. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 19 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 2.9 www.ti.com Pin Assignments 2.9.1 Pin Maps Figure 2-8 shows the pin assignments on the 256-terminal GDH package. T VSS R DVDD P TCK UHPI_ HD[24] N EMU[1] UHPI_ HD[25] UHPI_ HD[26] EM_D[22] /UHPI_ HA[6] DVDD M EMU[0] TDO UHPI_ HD[27] DVDD VSS CVDD CVDD CVDD CVDD CVDD L TDI UHPI_ HD[30] UHPI_ HD[28] UHPI_ HD[29] VSS VSS VSS VSS VSS K VSS PLLHV TMS TRST CVDD VSS VSS VSS J OSCVSS OSCIN OSCOUT OSCVDD CVDD VSS VSS H UHPI_ HD[16] /HHWIL CLKIN VSS UHPI_ HD[31] CVDD VSS G VSS RESET UHPI_ HD[17] UHPI_ HD[18] CVDD F AFSR1 AFSX1 UHPI_ HD[19] UHPI_ HD[20] E ACLKR1 ACLKX1 UHPI_ HD[21] D AHCLKX1 AMUTE1 DVDD EM_WE EM_D[7] EM_D[5] EM_D[3] VSS EM_D[23] /UHPI_ EM_CAS HA[7] EM_WE_ DQM[0] EM_D[6] EM_D[4] EM_D[2] EM_D[21] EM_D[20] EM_D[19] EM_D[17] /UHPI_ /UHPI_ /UHPI_ /UHPI_ HA[5] HA[4] HA[3] HA[1] EM_D[31] /UHPI_ HA[15] EM_D[0] EM_D[14] VSS EM_D[11] EM_D[9] EM_D[1] EM_D[15] EM_D[13] EM_D[12] EM_D[10] DVDD EM_WE_ EM_CKE DQM[1] EM_D[8] EM_D[28] EM_D[26] EM_D[24] EM_WE_ /UHPI_ /UHPI_ /UHPI_ EM_A[12] DQM[2] HA[12] HA[10] HA[8] EM_D[18] EM_D[16] EM_D[30] EM_D[29] EM_D[27] EM_D[25] /UHPI_ /UHPI_ /UHPI_ /UHPI_ /UHPI_ /UHPI_ HA[2] HA[0] HA[14] HA[13] HA[11] HA[9] DVDD VSS EM_CLK EM_WE_ DQM[3] DVDD UHPI_ HD[7] EM_A[11] EM_A[9] DVDD UHPI_ HD[5] UHPI_ HD[6] EM_A[8] EM_A[7] CVDD VSS DVDD UHPI_ HD[2] EM_A[6] EM_A[5] VSS VSS VSS UHPI_ HD[3] UHPI_ HD[4] EM_A[4] EM_A[3] VSS VSS VSS CVDD UHPI_ HD[0] UHPI_ HD[1] EM_A[2] VSS VSS VSS VSS VSS CVDD UHPI_ HD[15] DVDD EM_A[1] EM_A[0] VSS VSS VSS VSS VSS CVDD UHPI_ HD[14] UHPI_ HD[13] EM_A[10] EM_BA[1] VSS VSS VSS VSS VSS VSS CVDD UHPI_ HD[12] UHPI_ HD[11] EM_BA[0] VSS VSS VSS VSS VSS VSS VSS VSS UHPI_ HD[10] UHPI_ HD[9] EM_CS[0] EM_RAS DVDD VSS CVDD CVDD CVDD CVDD CVDD CVDD VSS DVDD UHPI_ HD[8] EM_CS[2] EM_RW UHPI_ HD[22] DVDD DVDD UHPI_ HRDY UHPI_ HDS[1] UHPI_ HRW ACLKX2 DVDD DVDD EM_WAIT EM_OE SPI0_ENA /I2C1_ SDA UHPI_ HBE[1] UHPI_ HBE[0] UHPI_ HDS[2] UHPI_ HCS C AMUTE0 AHCLKX0 /AHCLKX2 UHPI_ HD[23] UHPI_ HBE[2] B DVDD UHPI_ HBE[3] AHCLKR0 /AHCLKR1 AFSR0 AXR0[15] AXR0[13] AXR0[12] AXR0[10] /AXR2[0] /AXR1[0] /AXR1[1] /AXR1[3] A VSS DVDD AFSX0 ACLKX0 ACLKR0 AXR0[14] /AXR2[1] VSS AXR0[11] /AXR1[2] 1 2 3 4 5 6 7 8 UHPI_ AMUTE2/ HCNTL[0] HINT VSS SPI0_SCS SPI0_CLK /I2C1_ /I2C0_ SCL SCL UHPI_ HAS UHPI_ HCNTL[1] AFSX2 AFSR2 ACLKR2 AHCLKR2 AXR0[8] /AXR1[5] /SPI1_ SOMI AXR0[9] /AXR1[4] /SPI1_ SIMO 9 AXR0[7] /SPI1_ CLK AXR0[5] /SPI1_ SCS AXR0[3] AXR0[1] SPI0_ SOMI /I2C0_ SDA SPI0_ SIMO DVDD VSS AXR0[6] /SPI1_ ENA AXR0[4] AXR0[2] AXR0[0] DVDD VSS 10 11 12 13 14 15 16 Figure 2-8. 256-Terminal Ball Grid Array (GDH Suffix)—Bottom View 20 Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 2.9.2 Terminal Functions Table 2-12, the Terminal Functions table, identifies the external signal names, the associated pin/ball numbers along with the mechanical package designator, the pin type (I, O, IO, OZ, or PWR), whether the pin/ball has any internal pullup/pulldown resistors, whether the pin/ball is configurable as an IO in GPIO mode, and a functional pin description. Table 2-12. Terminal Functions SIGNAL NAME PIN TYPE (1) PULL (2) GPIO (3) DESCRIPTION External Memory Interface (EMIF) Address and Control EM_A[0] J16 O - N EM_A[1] J15 O - N EM_A[2] K15 O - N EM_A[3] L16 O - N EM_A[4] L15 O - N EM_A[5] M16 O - N EM_A[6] M15 O - N EM_A[7] N16 O - N EM_A[8] N15 O - N EM_A[9] P16 O - N EM_A[10] H15 O - N EM_A[11] P15 O - N EM_A[12] P12 O IPD N EM_BA[0] G15 O - N EM_BA[1] H16 O - N SDRAM Bank Address and Asynchronous Memory Low-Order Address EM_CS[0] F15 O - N SDRAM Chip Select EM_CS[2] E15 O - N Asynchronous Memory Chip Select EM_CAS R3 O - N SDRAM Column Address Strobe EM_RAS F16 O - N SDRAM Row Address Strobe EM_WE T3 O - N SDRAM/Asynchronous Write Enable EM_CKE T14 O - N SDRAM Clock Enable EM_CLK R14 O - N EMIF Output Clock EM_WE_DQM[0] R4 O - N Write Enable or Byte Enable for EM_D[7:0] EM_WE_DQM[1] T13 O - N Write Enable or Byte Enable for EM_D[15:8] EM_WE_DQM[2] P13 O IPU N Write Enable or Byte Enable for EM_D[23:16] EM_WE_DQM[3] R15 O IPU N Write Enable or Byte Enable for EM_D[31:24] EM_OE D15 O - N SDRAM/Asynchronous Output Enable EM_RW E16 O - N Asynchronous Memory Read/not Write EM_WAIT D14 I IPU N Asynchronous Wait Input (Programmable Polarity) or Interrupt (NAND) (1) (2) (3) EMIF Address Bus TYPE column refers to pin direction in functional mode. If a pin has more than one function with different directions, the functions are separated with a slash (/). PULL column: IPD = Internal Pulldown resistor IPU = Internal Pullup resistor If the GPIO column is 'Y', then in GPIO mode, the pin is configurable as an IO unless otherwise marked. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 21 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 2-12. Terminal Functions (continued) SIGNAL NAME PIN TYPE (1) PULL (2) GPIO (3) DESCRIPTION External Memory Interface (EMIF) Data Bus / Universal Host-Port Interface (UHPI) Address Bus Option EM_D[0] T8 IO - N EM_D[1] R8 IO - N EM_D[2] R7 IO - N EM_D[3] T6 IO - N EM_D[4] R6 IO - N EM_D[5] T5 IO - N EM_D[6] R5 IO - N EM_D[7] T4 IO - N EM_D[8] R13 IO - N EM_D[9] T12 IO - N EM_D[10] R12 IO - N EM_D[11] T11 IO - N EM_D[12] R11 IO - N EM_D[13] R10 IO - N EM_D[14] T9 IO - N EM_D[15] R9 IO - N EM_D[16]/UHPI_HA[0] N7 IO/I IPD N EM_D[17]/UHPI_HA[1] P6 IO/I IPD N EM_D[18]/UHPI_HA[2] N6 IO/I IPD N EM_D[19]/UHPI_HA[3] P5 IO/I IPD N EM_D[20]/UHPI_HA[4] P4 IO/I IPD N EM_D[21]/UHPI_HA[5] P3 IO/I IPD N EM_D[22]/UHPI_HA[6] N4 IO/I IPD N EM_D[23]/UHPI_HA[7] R2 IO/I IPD N EM_D[24]/UHPI_HA[8] P11 IO/I IPD N EM_D[25]/UHPI_HA[9] N11 IO/I IPD N EM_D[26]/UHPI_HA[10] P10 IO/I IPD N EM_D[27]/UHPI_HA[11] N10 IO/I IPD N EM_D[28]/UHPI_HA[12] P9 IO/I IPD N EM_D[29]/UHPI_HA[13] N9 IO/I IPD N EM_D[30]/UHPI_HA[14] N8 IO/I IPD N EM_D[31]/UHPI_HA[15] P7 IO/I IPD N 22 EMIF Data Bus [Lower 16 Bits] EMIF Data Bus [Upper 16 Bits (IO)] or UHPI Address Input (I) Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 2-12. Terminal Functions (continued) SIGNAL NAME PIN TYPE (1) PULL (2) GPIO (3) DESCRIPTION Universal Host-Port Interface (UHPI) Data and Control UHPI_HD[0] K13 IO IPD Y UHPI_HD[1] K14 IO IPD Y UHPI_HD[2] M14 IO IPD Y UHPI_HD[3] L13 IO IPD Y UHPI_HD[4] L14 IO IPD Y UHPI_HD[5] N13 IO IPD Y UHPI_HD[6] N14 IO IPD Y UHPI_HD[7] P14 IO IPD Y UHPI_HD[8] E14 IO IPD Y UHPI_HD[9] F14 IO IPD Y UHPI_HD[10] F13 IO IPD Y UHPI_HD[11] G14 IO IPD Y UHPI_HD[12] G13 IO IPD Y UHPI_HD[13] H14 IO IPD Y UHPI_HD[14] H13 IO IPD Y UHPI_HD[15] J13 IO IPD Y UHPI_HD[16]/HHWIL H1 IO/I IPD Y UHPI_HD[17] G3 IO IPD Y UHPI_HD[18] G4 IO IPD Y UHPI_HD[19] F3 IO IPD Y UHPI_HD[20] F4 IO IPD Y UHPI_HD[21] E3 IO IPD Y UHPI_HD[22] D3 IO IPD Y UHPI_HD[23] C3 IO IPD Y UHPI_HD[24] P2 IO IPD Y UHPI_HD[25] N2 IO IPD Y UHPI_HD[26] N3 IO IPD Y UHPI_HD[27] M3 IO IPD Y UHPI_HD[28] L3 IO IPD Y UHPI_HD[29] L4 IO IPD Y UHPI_HD[30] L2 IO IPD Y UHPI_HD[31] H4 IO IPD Y UHPI Data Bus [Lower 16 Bits] UHPI Data Bus [Upper 16 Bits (IO)] in the following modes: • Fullword Multiplexed Address and Data • Fullword Non-Multiplexed UHPI_HHWIL (I) on pin UHPI_HD[16]/HHWIL and GPIO on other pins in the following mode: • Half-word Multiplexed Address and Data In this mode, UHPI_HHWIL indicates whether the high or low half-word is being addressed. Universal Host-Port Interface (UHPI) Control UHPI_HBE[0] C6 I IPD Y UHPI Byte Enable for UHPI_HD[7:0] UHPI_HBE[1] C5 I IPD Y UHPI Byte Enable for UHPI_HD[15:8] UHPI_HBE[2] C4 I IPD Y UHPI Byte Enable for UHPI_HD[23:16] UHPI_HBE[3] B2 I IPD Y UHPI Byte Enable for UHPI_HD[31:24] UHPI_HCNTL[0] D9 I IPD Y UHPI_HCNTL[1] C10 I IPD Y UHPI_HAS C9 I IPD Y UHPI Host Address Strobe for Hosts with Multiplexed Address/Data bus UHPI_HRW D8 I IPD Y UHPI Read/not Write Input UHPI_HDS[1] D7 I IPU Y UHPI_HDS[2] C7 I IPU Y UHPI Select Signals which create the internal HSTROBE active when: UHPI_HCS C8 I IPU Y (UHPI_HCS == '0') & (UHPI_HDS[1] != UHPI_HDS[2]) UHPI_HRDY D6 O IPD Y UHPI Ready Output UHPI Control Inputs Select Access Mode Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 23 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 2-12. Terminal Functions (continued) SIGNAL NAME PIN TYPE (1) PULL (2) GPIO (3) DESCRIPTION McASP0, McASP1, McASP2, and SPI1 Serial Ports AHCLKR0/AHCLKR1 B3 IO - Y McASP0 and McASP1 Receive Master Clock ACLKR0 A5 IO - Y McASP0 Receive Bit Clock AFSR0 B4 IO - Y McASP0 Receive Frame Sync (L/R Clock) AHCLKX0/AHCLKX2 C2 IO - Y McASP0 and McASP2 Transmit Master Clock (4) ACLKX0 A4 IO - Y McASP0 Transmit Bit Clock AFSX0 A3 IO - Y McASP0 Transmit Frame Sync (L/R Clock) AMUTE0 C1 O - Y McASP0 MUTE Output AXR0[0] A14 IO - Y McASP0 Serial Data 0 AXR0[1] B13 IO - Y McASP0 Serial Data 1 AXR0[2] A13 IO - Y McASP0 Serial Data 2 AXR0[3] B12 IO - Y McASP0 Serial Data 3 AXR0[4] A12 IO - Y McASP0 Serial Data 4 AXR0[5]/SPI1_SCS B11 IO - Y McASP0 Serial Data 5 or SPI1 Slave Chip Select AXR0[6]/SPI1_ENA A11 IO - Y McASP0 Serial Data 6 or SPI1 Enable (Ready) AXR0[7]/SPI1_CLK B10 IO - Y McASP0 Serial Data 7 or SPI1 Serial Clock AXR0[8]/AXR1[5]/ SPI1_SOMI B9 IO - Y McASP0 Serial Data 8 or McASP1 Serial Data 5 or SPI1 Data Pin Slave Out Master In AXR0[9]/AXR1[4]/ SPI1_SIMO A9 IO - Y McASP0 Serial Data 9 or McASP1 Serial Data 4 or SPI1 Data Pin Slave In Master Out AXR0[10]/AXR1[3] B8 IO - Y McASP0 Serial Data 10 or McASP1 Serial Data 3 AXR0[11]/AXR1[2] A8 IO - Y McASP0 Serial Data 11 or McASP1 Serial Data 2 AXR0[12]/AXR1[1] B7 IO - Y McASP0 Serial Data 12 or McASP1 Serial Data 1 AXR0[13]/AXR1[0] B6 IO - Y McASP0 Serial Data 13 or McASP1 Serial Data 0 AXR0[14]/AXR2[1] A6 IO - Y McASP0 Serial Data 14 or McASP2 Serial Data 1 (5) AXR0[15]/AXR2[0] B5 IO - Y McASP0 Serial Data 15 or McASP2 Serial Data 0 (5) ACLKR1 E1 IO - Y McASP1 Receive Bit Clock AFSR1 F1 IO - Y McASP1 Receive Frame Sync (L/R Clock) AHCLKX1 D1 IO - Y McASP1 Transmit Master Clock ACLKX1 E2 IO - Y McASP1 Transmit Bit Clock AFSX1 F2 IO - Y McASP1 Transmit Frame Sync (L/R Clock) AMUTE1 D2 O - Y McASP1 MUTE Output AHCLKR2 C14 IO IPD Y McASP2 Receive Master Clock ACLKR2 C13 IO IPD Y McASP2 Receive Bit Clock AFSR2 C12 IO IPD Y McASP2 Receive Frame Sync (L/R Clock) ACLKX2 D11 IO IPD Y McASP2 Transmit Bit Clock AFSX2 C11 IO IPD Y McASP2 Transmit Frame Sync (L/R Clock) AMUTE2/HINT D10 O IPD Y McASP2 MUTE Output or UHPI Host Interrupt SPI0_SOMI/I2C0_SDA B14 IO - Y SPI0 Data Pin Slave Out Master In or I2C0 Serial Data SPI0_SIMO B15 IO - Y SPI0 Data Pin Slave In Master Out SPI0_CLK/I2C0_SCL C16 IO - Y SPI0 Serial Clock or I2C0 Serial Clock SPI0_SCS/I2C1_SCL C15 IO - Y SPI0 Slave Chip Select or I2C1 Serial Clock SPI0_ENA/I2C1_SDA D16 IO - Y SPI0 Enable (Ready) or I2C1 Serial Data SPI0, I2C0, and I2C1 Serial Port Pins (4) (5) 24 McASP2 is not available on the C6722. McASP2 is not available on the C6722. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 2-12. Terminal Functions (continued) SIGNAL NAME PIN TYPE (1) PULL (2) GPIO (3) DESCRIPTION Clocks OSCIN J2 I - N 1.2-V Oscillator Input OSCOUT J3 O - N 1.2-V Oscillator Output OSCVDD J4 PWR - N Oscillator 1.2-V VDD tap point (for filter only) OSCVSS J1 PWR - N Oscillator VSS tap point (for filter only) CLKIN H2 I - N Alternate clock input (3.3-V LVCMOS Input) PLLHV K2 PWR - N PLL 3.3-V Supply Input (requires external filter) RESET G2 I - Device Reset N Device reset pin Emulation/JTAG Port TCK P1 I IPU N Test Clock TMS K3 I IPU N Test Mode Select TDI L1 I IPU N Test Data In TDO M2 OZ IPU N Test Data Out TRST K4 I IPD N Test Reset EMU[0] M1 IO IPU N Emulation Pin 0 EMU[1] N1 IO IPU N Emulation Pin 1 Power Pins Core Supply (CVDD) E6, E7, E8, E9, E10, E11, G5, G12, H5, H12, J5, J12, K5, K12, M6, M7, M8, M9, M10, M11 IO Supply (DVDD) A2, A15, B1, B16, D4, D5, D12, D13, E4, E13, J14, M4, M13, N5, N12, P8, R1, R16, T2, T15 Ground (VSS) A1, A7, A10, A16, E5, E12, F5, F6, F7, F8, F9, F10, F11, F12, G1, G6, G7, G8, G9, G10, G11, G16, H3, H6, H7, H8, H9, H10, H11, J6, J7, J8, J9, J10, J11, K1, K6, K7, K8, K9, K10, K11, K16, L5, L6, L7, L8, L9, L10, L11, L12, M5, M12, T1, T7, T10, T16 Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 25 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 2.10 Development 2.10.1 Development Support TI offers an extensive line of development tools for the TMS320C6000™ DSP platform, including tools to evaluate the performance of the processors, generate code, develop algorithm implementations, and fully integrate and debug software and hardware modules. The following products support development of C6000™ DSP-based applications: Software Development Tools: Code Composer Studio™ Integrated Development Environment (IDE): including Editor C/C++/Assembly Code Generation, and Debug plus additional development tools Scalable, Real-Time Foundation Software ( DSP/BIOS™), which provides the basic run-time target software needed to support any DSP application. Hardware Development Tools: Extended Development System ( XDS™) Emulator (supports C6000™ DSP multiprocessor system debug) EVM (Evaluation Module) For a complete listing of development-support tools for the TMS320C6000™ DSP platform, visit the Texas Instruments web site on the Worldwide Web at http://www.ti.com uniform resource locator (URL). For information on pricing and availability, contact the nearest TI field sales office or authorized distributor. 2.11 (1) (2) 26 ORDERING INFORMATION (1) PRODUCT ORDERABLE PART NUMBER PACKAGE PACKAGE DESIGNATOR (2) PACKAGE MARKING VID NUMBER C6727B SM320C6727BGDHMEP PBGA GDH SM320C6727BGDHMEP V62/11617-01XE For the most current package and ordering information see the Package Option Addendum at the end of this document, or see the TI web site at www.ti.com. Package drawings standard packing quantities, thermal data, symbolization and PDB design guidelines are available at www.ti.com/sc/package. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 2.12 Documentation Support Extensive documentation supports the TMS320™ DSP family of devices from product announcement through applications development. The types of documentation available include: data manuals, such as this document, with design specifications; complete user's reference guides for all devices and tools; technical briefs; development-support tools; on-line help; and hardware and software applications. The following is a brief, descriptive list of support documentation specific to the C672x DSP devices: SPRS277 C9230C100 TMS320C672x Floating-Point Digital Signal Processor ROM Data Manual. Describes the features of the C9230C100 SM320C6727B digital signal processor ROM. SPRZ232 TMS320C6727, TMS320C6726, TMS320C6722 Digital Signal Processors Silicon Errata. Describes the known exceptions to the functional specifications for the TMS320C6727, TMS320C6726, and TMS320C6722 digital signal processors (DSPs). SPRU723 TMS320C672x DSP Peripherals Overview Reference Guide. This document provides an overview and briefly describes the peripherals available on the SM320C6727B digital signal processors (DSPs) of the TMS320C6000 DSP platform. SPRU877 TMS320C672x DSP Inter-Integrated Circuit (I2C) Module Reference Guide. This document describes the inter-integrated circuit (I2C) module in the SM320C6727B digital signal processors (DSPs) of the TMS320C6000 DSP platform. SPRU795 TMS320C672x DSP Dual Data Movement Accelerator (dMAX) Reference Guide. This document provides an overview and describes the common operation of the data movement accelerator (dMAX) controller in the SM320C6727B digital signal processors (DSPs) of the TMS320C6000 DSP platform. This document also describes operations and registers unique to the dMAX controller. SPRAA78 TMS320C6713 to TMS320C672x Migration. This document describes the issues related to migrating from the TMS320C6713 to SM320C6727B digital signal processor (DSP). SPRU711 TMS320C672x DSP External Memory Interface (EMIF) User's Guide. This document describes the operation of the external memory interface (EMIF) in the TMS320C672x digital signal processors (DSPs) of the TMS320C6000 DSP platform. SPRU718 TMS320C672x DSP Serial Peripheral Interface (SPI) Reference Guide. This reference guide provides the specifications for a 16-bit configurable, synchronous serial peripheral interface. The SPI is a programmable-length shift register, used for high speed communication between external peripherals or other DSPs. SPRU719 TMS320C672x DSP Universal Host Port Interface (UHPI) Reference Guide. This document provides an overview and describes the common operation of the universal host port interface (UHPI). SPRU878 TMS320C672x DSP Multichannel Audio Serial Port (McASP) Reference Guide. This document describes the multichannel audio serial port (McASP) in the TMS320C672x digital signal processors (DSPs) of the TMS320C6000 DSP platform. SPRU879 TMS320C672x DSP Software-Programmable Phase-Locked Loop (PLL) Controller Reference Guide. This document describes the operation of the software-programmable phase-locked loop (PLL) controller in the SM320C6727B digital signal processors (DSPs) of the TMS320C6000 DSP platform. SPRU733 TMS320C67x/C67x+ DSP CPU and Instruction Set Reference Guide. Describes the CPU architecture, pipeline, instruction set, and interrupts for the TMS320C67x and TMS320C67x+ digital signal processors (DSPs) of the TMS320C6000 DSP platform. The C67x/C67x+ DSP generation comprises floating-point devices in the C6000 DSP platform. The C67x+ DSP is an enhancement of the C67x DSP with added functionality and an expanded instruction set. Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 27 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com SPRAA69 Using the TMS320C672x Bootloader Application Report. This document describes the design details about the SM320C6727B bootloader. This document also addresses parallel flash and HPI boot to the extent relevant. SPRU301 TMS320C6000 Code Composer Studio Tutorial. This tutorial introduces you to some of the key features of Code Composer Studio. Code Composer Studio extends the capabilities of the Code Composer Integrated Development Environment (IDE) to include full awareness of the DSP target by the host and real-time analysis tools. This tutorial assumes that you have Code Composer Studio, which includes the TMS320C6000 code generation tools along with the APIs and plug-ins for both DSP/BIOS and RTDX. This manual also assumes that you have installed a target board in your PC containing the DSP device. SPRU198 TMS320C6000 Programmer's Guide. Reference for programming the TMS320C6000 digital signal processors (DSPs). Before you use this manual, you should install your code generation and debugging tools. Includes a brief description of the C6000 DSP architecture and code development flow, includes C code examples and discusses optimization methods for the C code, describes the structure of assembly code and includes examples and discusses optimizations for the assembly code, and describes programming considerations for the C64x DSP. SPRU186 TMS320C6000 Assembly Language Tools v6.0 Beta User's Guide. Describes the assembly language tools (assembler, linker, and other tools used to develop assembly language code), assembler directives, macros, common object file format, and symbolic debugging directives for the TMS320C6000 platform of devices (including the C64x+ and C67x+ generations). NOTE: The enhancements to tools release v5.3 to support the C672x devices are documented in the tools v6.0 documentation. SPRU187 TMS320C6000 Optimizing Compiler v6.0 Beta User's Guide. Describes the TMS320C6000 C compiler and the assembly optimizer. This C compiler accepts ANSI standard C source code and produces assembly language source code for the TMS320C6000 platform of devices (including the C64x+ and C67x+ generations). The assembly optimizer helps you optimize your assembly code. NOTE: The enhancements to tools release v5.3 to support the C672x devices are documented in the tools v6.0 documentation. SPRA839 Using IBIS Models for Timing Analysis. Describes how to properly use IBIS models to attain accurate timing analysis for a given system. The tools support documentation is electronically available within the Code Composer Studio™ Integrated Development Environment (IDE). For a complete listing of C6000™ DSP latest documentation, visit the Texas Instruments web site on the Worldwide Web at http://www.ti.com uniform resource locator (URL). 28 Device Overview Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 3 Device Configurations 3.1 Device Configuration Registers The C672x DSP includes several device-level configuration registers, which are listed in Table 3-1. These registers need to be programmed as part of the device initialization procedure. See Section 3.2. Table 3-1. Device-Level Configuration Registers REGISTER NAME BYTE ADDRESS DESCRIPTION DEFINED CFGPIN0 0x4000 0000 Captures values of eight pins on rising edge of RESET pin. Table 2-10 CFGPIN1 0x4000 0004 Captures values of eight pins on rising edge of RESET pin. Table 2-11 CFGHPI 0x4000 0008 Controls enable of UHPI and selection of its operating mode. Table 4-12 CFGHPIAMSB 0x4000 000C Controls upper byte of UHPI address into C672x address space in Non-Multiplexed Mode or if explicitly enabled for security purposes. Table 4-13 CFGHPIAUMB 0x4000 0010 Controls upper middle byte of UHPI address into C672x address space in Non-Multiplexed Mode or if explicitly enabled for security purposes. Table 4-14 CFGRTI 0x4000 0014 Selects the sources for the RTI Input Captures from among the six McASP DMA events. Table 4-37 CFGMCASP0 0x4000 0018 Selects the peripheral pin to be used as AMUTEIN0. Table 4-19 CFGMCASP1 0x4000 001C Selects the peripheral pin to be used as AMUTEIN1. Table 4-20 CFGMCASP2 (1) 0x4000 0020 Selects the peripheral pin to be used as AMUTEIN2. Table 4-21 CFGBRIDGE 0x4000 0024 Controls reset of the bridge BR2 in Figure 2-4. This bridge must be reset Table 2-7 explicitly after any change to the PLL controller affecting SYSCLK1 and SYSCLK2 and before the dMAX or UHPI accesses the CPU Slave Port (CSP). (1) CFGMCASP2 is reserved on the C6722. 3.2 Peripheral Pin Multiplexing Options This section describes the options for configuring peripherals which share pins on the C672x DSP. Table 3-2 lists the options for configuring the SPI0, I2C0, and I2C1 peripheral pins. Table 3-2. Options for Configuring SPI0, I2C0, and I2C1 CONFIGURATION OPTION 1 PERIPHERAL PINS OPTION 2 OPTION 3 SPI0 3-, 4,- or 5-pin mode 3-pin mode disabled I2C0 disabled disabled enabled I2C1 disabled enabled enabled SPI0_SOMI/I2C0_SDA SPI0_SOMI SPI0_SOMI I2C0_SDA SPI0_SIMO SPI0_SIMO SPI0_SIMO GPIO through SPI0_SIMO pin control SPI0_CLK/I2C0_SCL SPI0_CLK SPI0_CLK I2C0_SCL SPI0_SCS/I2C1_SCL SPI0_SCS I2C1_SCL I2C1_SCL SPI0_ENA/I2C1_SDA SPI0_ENA I2C1_SDA I2C1_SDA Device Configurations Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 29 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 3-3 lists the options for configuring the SPI1, McASP0, and McASP1 pins. Note that there are additional finer grain options when selecting which McASP controls the particular AXR serial data pins but these options are not listed here and can be made on a pin by pin basis. Table 3-3. Options for Configuring SPI1, McASP0, and McASP1 Data Pins CONFIGURATION OPTION 1 PERIPHERAL PINS OPTION 2 OPTION 3 OPTION 4 OPTION 5 SPI1 5-pin mode 4-pin mode 4-pin mode 3-pin mode disabled McASP0 (max data pins) 11 12 12 13 16 McASP1 (max data pins) 4 4 4 4 6 AXR0[5]/ SPI1_SCS SPI1_SCS SPI1_SCS AXR0[5] AXR0[5] AXR0[5] AXR0[6]/ SPI1_ENA SPI1_ENA AXR0[6] SPI1_ENA AXR0[6] AXR0[6] AXR0[7]/ SPI1_CLK SPI1_CLK SPI1_CLK SPI1_CLK SPI1_CLK AXR0[7] AXR0[8]/AXR1[5]/ SPI1_SOMI SPI1_SOMI SPI1_SOMI SPI1_SOMI SPI1_SOMI AXR0[8] or AXR1[5] AXR0[9]/AXR1[4]/ SPI1_SIMO SPI1_SIMO SPI1_SIMO SPI1_SIMO SPI1_SIMO AXR0[9] or AXR1[4] Table 3-4 lists the options for configuring the shared EMIF and UHPI pins. Table 3-4. Options for Configuring EMIF and UHPI (C6727 Only) CONFIGURATION OPTION 1 PERIPHERAL PINS 3.3 OPTION 2 UHPI Multiplexed Address/Data Mode, Fullword, or Non-Multiplexed Address/Data Mode Half-Word Fullword EMIF 32-bit EMIF Data 16-bit EMIF Data EM_D[31:16]/ UHPI_HA[15:0] EM_D[31:16] UHPI_HA[15:0] Peripheral Pin Multiplexing Control While Section 3.2 describes at a high level the most common pin multiplexing options, the control of pin multiplexing is largely determined on an individual pin-by-pin basis. Typically, each peripheral that shares a particular pin has internal control registers to determine the pin function and whether it is an input or an output. The C672x device determines whether a particular pin is an input or output based upon the following rules: • The pin will be configured as an output if it is configured as an output in any of the peripherals sharing the pin. • It is recommended that only one peripheral configure a given pin as an output. If more than one peripheral does configure a particular pin as an output, then the output value is controlled by the peripheral with highest priority for that pin. The priorities for each pin are given in Table 3-5. • The value input on the pin is passed to all peripherals sharing the pin for input simultaneously. 30 Device Configurations Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 3-5. Priority of Control of Data Output on Multiplexed Pins PIN FIRST PRIORITY SECOND PRIORITY THIRD PRIORITY SPI0_SOMI/I2C0_SDA SPI0_SOMI I2C0_SDA SPI0_CLK/I2C0_SCL SPI0_CLK I2C0_SCL SPI0_SCS/I2C1_SCL SPI0_SCS I2C1_SCL SPI0_ENA/I2C1_SDA SPI0_ENA I2C1_SDA AXR0[5]/SPI1_SCS AXR0[5] SPI1_SCS AXR0[6]/SPI1_ENA AXR0[6] SPI1_ENA AXR0[7]/SPI1_CLK AXR0[7] SPI1_CLK AXR0[8]/AXR1[5]/SPI1_SOMI AXR0[8] AXR1[5] SPI1_SOMI AXR0[9]/AXR1[4]/SPI1_SIMO AXR0[9] AXR1[4] SPI1_SIMO AXR0[10]/AXR1[3] AXR0[10] AXR1[3] AXR0[11]/AXR1[2] AXR0[11] AXR1[2] AXR0[12]/AXR1[1] AXR0[12] AXR1[1] AXR0[13]/AXR1[0] AXR0[13] AXR1[0] AXR0[14]/AXR2[1] AXR0[14] AXR2[1] AXR0[15]/AXR2[0] AXR0[15] AXR2[0] AHCLKR0/AHCLKR1 AHCLKR0 AHCLKR1 AHCLKX0/AHCLKX2 AHCLKX0 AHCLKX2 AMUTE2/HINT AMUTE2 HINT HD[16]/HHWIL HD[16] HHWIL EM_D[31:16] (Disabled if CFGHPI.NMUX=1) UHPI_HA[15:0] (Input Only) EM_D[31:16]/UHPI_HA[15:0] (1) (1) When using the UHPI in non-multiplexed mode, ensure EM_D[31:16] are configured as inputs so that these pins may be used as UHPI_HA[15:0]. To ensure this, you must set the CFGHPI.NMUX bit to a '1' before the EMIF SDRAM initialization completes; otherwise, a drive conflict will occur. [The EMIF bus parking function drives the data bus in between accesses.] Device Configurations Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 31 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4 Peripheral and Electrical Specifications 4.1 Electrical Specifications This section provides the absolute maximum ratings and the recommended operating conditions for the SM320C6727B DSP. All electrical and switching characteristics in this data manual are valid over the recommended operating conditions unless otherwise specified. Absolute Maximum Ratings (1) 4.2 (2) Over Operating Case Temperature Range (Unless Otherwise Noted) UNIT Supply voltage range, CVDD, OSCVDD (3) Supply voltage range, DVDD , PLLHV Input Voltage Range Output Voltage Range –0.3 to 1.8 V –0.3 to 4 V All pins except OSCIN –0.3 to DVDD + 0.5 OSCIN pin –0.3 to CVDD + 0.5 All pins except OSCOUT –0.3 to DVDD + 0.5 OSCOUT pin –0.3 to CVDD + 0.5 V V Clamp Current ±20 mA Operating case temperature range TC –55 to 125 °C Storage temperature range, Tstg –65 to 150 °C (1) (2) (3) Stresses beyond those listed under "absolute maximum ratings" may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any conditions beyond those indicated under "recommended operating conditions" is not implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. All voltage values are with referenced to VSS unless otherwise specified. If OSCVDD and OSCVSS pins are used as filter pins for reduced oscillator jitter, they should not be connected to CVDD and VSS externally. Recommended Operating Conditions (1) 4.3 MIN NOM MAX UNIT CVDD Core Supply Voltage 1.14 1.2 1.32 V DVDD I/O Supply Voltage 3.13 3.3 3.47 V TC Operating Case Temperature Range –55 125 °C (1) 32 All voltage values are with referenced to VSS unless otherwise specified. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.4 Electrical Characteristics Over Operating Case Temperature Range (Unless Otherwise Noted) PARAMETER TEST CONDITIONS MIN TYP MAX UNIT VOH High Level Output Voltage IO = –100 µA VOL Low Level Output Voltage IO = 100 µA DVDD – 0.2 0.2 V IOH High-Level Output Current VO = 0.8 DVDD –8 mA IOL Low-Level Output Current VO = 0.22 DVDD 8 mA VIH High-Level Input Voltage 2 DVDD V VIL Low-Level Input Voltage 0 0.8 V VHYS Input Hysterisis II, IOZ Input Current and Off State Output Current 0.13 DVDD Pins with internal pullup ttr Input Transition Time CI Input Capacitance CO Output Capacitance IDD2V CVDD Supply (1) –50 –170 50 170 (1) Capacitance = 7 pF, CVDD = 1.2 V, 658 CPU clock = 250 MHz DVDD Supply (1) V ±10 Pins without pullup or pulldown Pins with internal pulldown IDD3V V µA 25 ns 7 pF 7 pF 555 mA DVDD = 3.3 V, 32-bit EMIF speed = 100 MHz 58 mA Assumes the following conditions: 25°C case temperature; 60% CPU utilization; EMIF at 50% utilization (100 MHz), 50% writes, (32 bits), 50% bit switching; two 10-MHz SPI at 100% utilization, 50% bit switching. The actual current draw is highly application-dependent. For more details on core and I/O activity, refer to the TMS320C672x Power Consumption Summary Application Report (literature number SPRAAA4). SPACER Years Estimated (Hours) 1000000 100000 Electromigration Fail Mode 10000 1000 80 90 100 110 120 130 140 150 Continuous Junction Temperature (°C) 160 G001 (1) (2) (3) See the absolute maximum ratings and the recommended operating conditions. Silicon operating life design goal is 10 years at 105°C junction temperature (does not include package interconnect life). The predicted operating lifetime vs junction temperature is based on reliability modeling using electromigration as the dominant failure mechanism affecting device wearout for the specific device process and design characteristics. Figure 4-1. SM320C6727B-EP Operating Life Derating Chart Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 33 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 100000000.00 Years Eestimated (Hours) 10000000.00 1000000.00 ` 100000.00 Wirebond Voiding Fail Mode 10000.00 1000.00 80 90 100 110 120 130 140 150 160 170 180 Continuous Tj (°C) (1) See the absolute maximum ratings and the recommended operating conditions. Figure 4-2. SM320C6727B-EP Wirebond Voiding Fail Mode 4.5 Parameter Information 4.5.1 Parameter Information Device-Specific Information Tester Pin Electronics 42 Ω 3.5 nH Transmission Line Z0 = 50 Ω (see note) 4.0 pF A. 1.85 pF Data Sheet Timing Reference Point Output Under Test Device Pin (see note) The data sheet provides timing at the device pin. For output timing analysis, the tester pin electronics and its transmission line effects must be taken into account. A transmission line with a delay of 2 ns or longer can be used to produce the desired transmission line effect. The transmission line is intended as a load only. It is not neccessary to add or subtract the transmission line delay (2 ns or longer) from the data sheet timings. Input requirements in this data sheet are tested with an input slew rate of < 4 Volts per nanosecond (4 V/ns) at the device pin. Figure 4-3. Test Load Circuit for AC Timing Measurements 34 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.5.1.1 Signal Transition Levels All input and output timing parameters are referenced to 1.5 V for both "0" and "1" logic levels. Vref = 1.5 V Figure 4-4. Input and Output Voltage Reference Levels for AC Timing Measurements All rise and fall transition timing parameters are referenced to VIL MAX and VIH MIN for input clocks, VOL MAX and VOH MIN for output clocks. Vref = VIH MIN (or VOH MIN) Vref = VIL MAX (or VOL MAX) Figure 4-5. Rise and Fall Transition Time Voltage Reference Levels 4.5.1.2 Signal Transition Rates All timings are tested with an input edge rate of 4 Volts per nanosecond (4 V/ns). 4.6 Timing Parameter Symbology Timing parameter symbols used in the timing requirements and switching characteristics tables are created in accordance with JEDEC Standard 100. To shorten the symbols, some of the pin names and other related terminology have been abbreviated as follows: Lowercase subscripts and their meanings: Letters and symbols and their meanings: a access time H High c cycle time (period) L Low d delay time V Valid dis disable time Z High impedance en enable time f fall time h hold time r rise time su setup time t transition time v valid time w pulse duration (width) X Unknown, changing, or don't care level Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 35 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 4.7 www.ti.com Power Supplies For more information regarding TI’s power management products and suggested devices to power TI DSPs, visit www.ti.com/dsppower. 4.7.1 Power-Supply Sequencing This device does not require specific power-up sequencing between the DVDD and CVDD voltage rails; however, there are some considerations that the system designer should take into account: 1. Neither supply should be powered up for an extended period of time (>1 second) while the other supply is powered down. 2. The I/O buffers powered from the DVDD rail also require the CVDD rail to be powered up in order to be controlled; therefore, an I/O pin that is supposed to be 3-stated by default may actually drive momentarily until the CVDD rail has powered up. Systems should be evaluated to determine if there is a possibility for contention that needs to be addressed. In most systems where both the DVDD and CVDD supplies ramp together, as long as CVDD tracks DVDD closely, any contention is also mitigated by the fact that the CVDD rail would reach its specified operating range well before the DVDD rail has fully ramped. 4.7.2 Power-Supply Decoupling In order to properly decouple the supply planes from system noise, place as many capacitors (caps) as possible close to the DSP. The core supply caps can be placed in the interior space of the package and the I/O supply caps can be placed around the exterior space of the package. For the BGA package, it is recommended that both the core and I/O supply caps be placed on the underside of the PCB. For the TQFP package, it is recommended that the core supply caps be placed on the underside of the PCB and the I/O supply caps be placed on the top side of the PCB. Both core and I/O decoupling can be accomplished by alternating small (0.1 μF) low ESR ceramic bypass caps with medium (0.220 μF) low ESR ceramic bypass caps close to the DSP power pins and adding large tantalum or ceramic caps (ranging from 10 μF to 100 μF) further away. Assuming 0603 caps, it is recommended that at least 6 small, 6 medium, and 4 large caps be used for the core supply and 12 small, 12 medium, and 4 large caps be used for the I/O supply. Any cap selection needs to be evaluated from an electromagnetic radiation (EMI) point-of-view; EMI varies from one system design to another so it is expected that engineers alter the decoupling capacitors to minimize radiation. Refer to the High-Speed DSP Systems Design Reference Guide (literature number SPRU889) for more detailed design information on decoupling techniques. 36 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.8 Reset A hardware reset (RESET) is required to place the DSP into a known good state out of power-up. The RESET signal can be asserted (pulled low) prior to ramping the core and I/O voltages or after the core and I/O voltages have reached their proper operating conditions. As a best practice, RESET should be held low during power-up. Prior to deasserting RESET (low-to-high transition), the core and I/O voltages should be at their proper operating conditions. 4.8.1 Reset Electrical Data/Timing Table 4-1 assumes testing over recommended operating conditions. Table 4-1. Reset Timing Requirements NO. MIN MAX UNIT 1 tw(RSTL) Pulse width, RESET low 100 ns 2 tsu(BPV-RSTH) Setup time, boot pins valid before RESET high 20 ns 3 th(RSTH-BPV) Hold time, boot pins valid after RESET high 20 ns Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 37 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 4.9 4.9.1 www.ti.com Dual Data Movement Accelerator (dMAX) dMAX Device-Specific Information The dMAX is a module designed to perform Data Movement Acceleration. The dMAX controller handles user-programmed data transfers between the internal data memory controller and the device peripherals on the C672x DSP. The dMAX allows movement of data to/from any addressable memory space, including internal memory, peripherals, and external memory. The dMAX controller in the C672x DSP has a different architecture from the previous EDMA controller in the C621x/C671x devices. The dMAX controller includes features, such as capability to perform three-dimensional data transfers for advanced data sorting, capability to manage a section of the memory as a circular buffer/FIFO with delay tap based reading and writing data. The dMAX controller is capable of concurrently processing two transfer requests (provided that they are to/from different source/destinations). Figure 4-6 shows a block diagram of the dMAX controller. 38 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com dMAX High-Priority PaRAM Event Entry #0 Event Entry Table HiMAX RAM R/W Event Entry #k Event Entry #31 Reserved Transfer Entry #0 Transfer Entry Table HiMAX (MAX0) High-Priority REQ Transfer Entry #k Interrupt Lines to the CPU Transfer Entry #7 Control R/W To/From Crossbar Switch Low-Priority PaRAM HiMAX Master Crossbar Switch Port Event Encoder + Event and Interrupt Registers Events Event Entry #0 Event Entry Table LoMAX RAM R/W Event Entry #k Low-Priority REQ Event Entry #31 Reserved Transfer Entry #0 Transfer Entry Table LoMAX (MAX1) LoMAX Master Crossbar Switch Port Transfer Entry #k Transfer Entry #7 Figure 4-6. dMAX Controller Block Diagram Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 39 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com The dMAX controller comprises: • Event and interrupt processing registers • Event encoder • High-priority event Parameter RAM (PaRAM) • Low-priority event Parameter RAM (PaRAM) • Address-generation hardware for High-Priority Events – MAX0 (HiMAX) • Address-generation hardware for Low-Priority Events – MAX1 (LoMAX) The SM320C6727B Peripheral Bus Structure can be described logically as a Crossbar Switch with five master ports and five slave ports. When accessing the slave ports, the MAX0 (HiMAX) module is always given the highest priority followed by the MAX1 (LoMAX) module. In other words, in case several masters (including MAX0 and MAX1) attempt to access same slave port concurrently, the MAX0 will be given the highest priority followed by MAX1. Event signals are connected to bits of the dMAX Event Register (DER), and the bits in the DER reflect the current state of the event signals. An event is defined as a transition of the event signal. The dMAX Event Flag Register (DEFR) can be programmed, individually for each event signal, to capture either low-to-high or high-to-low transitions of the bits in the DER (event polarity is individually programmable). An event is a synchronization signal that can be used: 1) to either trigger dMAX to start a transfer, or 2) to generate an interrupt to the CPU. All the events are sorted into two groups: low-priority event group and high-priority event group. The High-Priority Data Movement Accelerator MAX0 (HiMAX) module is dedicated to serving requests coming from the high-priority event group. The Low-Priority Data Movement Accelerator MAX1 (LoMAX) module is dedicated to serving requests coming from the low-priority event group. Each PaRAM contains two sections: the event entry table section and the transfer entry table section. An event entry describes an event type and associates the event to either one of transfer types or to an interrupt. In case an event entry associates the event to one of the transfer types, the event entry will contain a pointer to the specific transfer entry in the transfer entry table. The transfer table may contain up to eight transfer entries. A transfer entry specifies details required by the dMAX controller to perform the transfer. In case an event entry associates the event to an interrupt, the event entry specifies which interrupt should be generated to the CPU in case the event arrives. Prior to enabling events and triggering a transfer, the event entry and transfer entry must be configured. The event entry must specify: type of transfer, transfer details (type of synchronization, reload, element size, etc.), and should include a pointer to the transfer entry. The transfer entry must specify: source, destination, counts, and indexes. If an event is sorted in the high-priority event group, the event entry and transfer entry must be specified in the high-priority Parameter RAM. If an event is sorted in the low-priority event group, the event entry and transfer entry must be specified in the low-priority parameter RAM. The dMAX Event Flag Register (DEFR) captures up to 31 separate events; therefore, it is possible for events to occur simultaneously on the dMAX event inputs. In such cases, the event encoder resolves the order of processing. This mechanism sorts simultaneous events and sets the priority of the events. The dMAX controller can simultaneously process one event from each priority group. Therefore, the two highest-priority events (one from each group) can be processed at the same time. An event-triggered dMAX transfer allows the submission of transfer requests to occur automatically based on system events, without any intervention by the CPU. The dMAX also includes support for CPU-initiated transfers for added control and robustness, and they can be used to start memory-to-memory transfers. To generate an event to the dMAX controller the CPU must create a transition on one of the bits from the dMAX Event Trigger (DETR) Register, which are mapped to the DER register. 40 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-2 lists how the synchronization events are associated with event numbers in the dMAX controller. Table 4-2. dMAX Peripheral Event Input Assignments EVENT NUMBER EVENT ACRONYM EVENT DESCRIPTION 0 DETR[0] The CPU triggers the event by creating appropriate transition (edge) on bit0 in DETR register. 1 DETR[16] The CPU triggers the event by creating appropriate transition (edge) on bit16 in DETR register. 2 RTIREQ0 RTI DMA REQ[0] 3 RTIREQ1 RTI DMA REQ[1] 4 MCASP0TX McASP0 TX DMA REQ 5 MCASP0RX McASP0 RX DMA REQ 6 MCASP1TX McASP1 TX DMA REQ 7 MCASP1RX McASP1 RX DMA REQ 8 MCASP2TX McASP2 TX DMA REQ 9 MCASP2RX McASP2 RX DMA REQ 10 DETR[1] The CPU triggers the event by creating appropriate transition (edge) on bit1 in DETR register. 11 DETR[17] The CPU triggers the event by creating appropriate transition (edge) on bit17 in DETR register. 12 UHPIINT UHPI CPU_INT 13 SPI0RX SPI0 DMA_RX_REQ 14 SPI1RX SPI1 DMA_RX_REQ 15 RTIREQ2 RTI DMA REQ[2] 16 RTIREQ3 RTI DMA REQ[3] 17 DETR[2] The CPU triggers the event by creating appropriate transition (edge) on bit2 in DETR register. 18 DETR[18] The CPU triggers the event by creating appropriate transition (edge) on bit18 in DETR register. 19 I2C0XEVT I2C 0 Transmit Event 20 I2C0REVT I2C 0 Receive Event 21 I2C1XEVT I2C 1 Transmit Event 22 I2C1REVT I2C 1 Receive Event 23 DETR[3] The CPU triggers the event by creating appropriate transition (edge) on bit3 in DETR register. 24 DETR[19] The CPU triggers the event by creating appropriate transition (edge) on bit19 in DETR register. 25 Reserved 26 MCASP0ERR AMUTEIN0 or McASP0 TX INT or McASP0 RX INT (error on McASP0) 27 MCASP1ERR AMUTEIN1 or McASP1 TX INT or McASP1 RX INT (error on McASP1) 28 MCASP2ERR AMUTEIN2 or McASP2 TX INT or McASP2 RX INT (error on McASP2) 29 OVLREQ[0/1] Error on RTI 30 DETR[20] The CPU triggers the event by creating appropriate transition (edge) on bit20 in DETR register. 31 DETR[21] The CPU triggers the event by creating appropriate transition (edge) on bit21 in DETR register. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 41 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 4.9.2 www.ti.com dMAX Peripheral Registers Description(s) Table 4-3 is a list of the dMAX registers. Table 4-3. dMAX Configuration Registers BYTE ADDRESS 42 REGISTER NAME DESCRIPTION 0x6000 0008 DEPR Event Polarity Register 0x6000 000C DEER Event Enable Register 0x6000 0010 DEDR Event Disable Register 0x6000 0014 DEHPR Event High-priority Register 0x6000 0018 DELPR Event Low-priority Register 0x6000 001C DEFR Event Flag Register 0x6000 0034 DER0 Event Register 0 0x6000 0054 DER1 Event Register 1 0x6000 0074 DER2 Event Register 2 0x6000 0094 DER3 Event Register 3 0x6000 0040 DFSR0 FIFO Status Register 0 0x6000 0060 DFSR1 FIFO Status Register 1 0x6000 0080 DTCR0 Transfer Complete Register 0 0x6000 00A0 DTCR1 Transfer Complete Register 1 N/A DETR Event Trigger Register (Located in C67x+ DSP Register File) N/A DESR Event Status Register (Located in C67x+ DSP Register File) Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP www.ti.com SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 4.10 External Interrupts The C672x DSP has no dedicated general-purpose interrupt pins, but the dMAX can be used in combination with a McASP AMUTEIN signal to provide external interrupt capability. There is a multiplexer for each McASP, controlled by the CFGMCASP0/1/2 registers, which allows the AMUTEIN input for that McASP to be sourced from one of seven I/O pins on the DSP. Once a pin is configured as an AMUTEIN source, a very short pulse (two SYSCLK2 cycles or more) on that pin will generate an event to the dMAX. This event can trigger the dMAX to generate a CPU interrupt by programming the assoicated Event Entry. There are a few additional points to consider when using the AMUTEIN signal to enable external interrupts as described above. The I/O pin selected by the CFGMCASP0/1/2 registers must be configured as a general-purpose input pin within the associated peripheral. Also, the AMUTEIN signal should be disabled within the corresponding McASP so that AMUTE is not driven when AMUTEIN is active. This can be done by clearing the INEN bit of the AMUTE register inside the McASP. Finally, AMUTEIN events are logically ORed with the McASP transmit and receive error events within the dMAX; therefore, the ISR that processes the dMAX interrupt generated by these events must discern the source of the event. The EMIF EM_WAIT pin has the ability to generate an NMI (INT1) based upon a rising edge on the EM_WAIT pin. Note that while this interrupt is connected to the CPU NMI (non-maskable interrupt), it is actually maskable through the EMIF control registers. In fact, the default state for this interrupt is disabled. Also, interrupt generation always occurs on a rising edge of EM_WAIT; the polarity selection for wait state generation has no effect on the interrupt polarity. The EM_WAIT pin should remain asserted for at least two SYSCLK3 cycles to ensure that the edge is detected. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 43 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.11 External Memory Interface (EMIF) 4.11.1 EMIF Device-Specific Information The C672x DSP includes an external memory interface (EMIF) for optional SDRAM, NOR FLASH, NAND FLASH, or SRAM. The key features of this EMIF are: • One chip select (EM_CS[0]) dedicated for x16 and x32 SDRAM (x8 not supported) • One chip select (EM_CS[2]) dedicated for x8, x16, or x32 NOR FLASH; x8, x16, or x32 Asynchronous SRAM; or x8 or x16 NAND FLASH • Data bus width is 16 bits on the C6726 and C6722, and 32 bits on the C6727 • SDRAM burst length of 16 bytes • External Wait Input on the C6727 through EM_WAIT (programmable active-high or active-low) • External Wait pin functions as an interrupt for NAND Flash support • NAND Flash logic calculates ECC on blocks of up to 512 bytes • ECC logic suitable for single-bit errors Figure 4-7 and Figure 4-8 show typical examples of EMIF-to-memory hookup on the C672x DSP. As the figures illustrate, the C672x DSP includes a limited number of EMIF address lines. These are sufficient to connect to SDRAM seamlessly. Asynchronous memory such as FLASH typically will need to use additional GPIO pins to act as upper address lines during device boot up when the FLASH contents are copied into SDRAM. (Normally, code is executed from SDRAM since SDRAM has faster access times). Any pins listed with a ‘Y' in the GPIO column of Table 2-12 may be used for this purpose, as long as it can be assured that they be pulled low at (and after) reset and held low until configured as outputs by the DSP. Note that EM_BA[1:0] are used as low-order address lines for the asynchronous interface. For example, in Figure 4-7 and Figure 4-8, the flash memory is not byte-addressable and its A[0] input selects a 16-bit value. The corresponding DSP address comes from EM_BA[1]. The remaining address lines from the DSP (EM_A[12:0]) drive a word address into the flash inputs A[13:1]. For a more detailed explanation of the C672x EMIF operation please refer to the document TMS320C672x External Memory Interface (EMIF) User's Guide (literature number SPRU711). 44 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com SDRAM 2M x 16 x 4 Bank C6726/C6722 DSP EMIF CE CAS RAS WE CLK CKE BA[1:0] EM_CS[0] EM_CAS EM_RAS EM_WE EM_CLK EM_CKE EM_BA[1:0] EM_A[11:0] EM_WE_DQM[0] EM_WE_DQM[1] EM_D[15:0] EM_CS[2] A[11:0] LDQM UDQM DQ[15:0] FLASH 512K x 16 EM_RW EM_OE EM_BA[1] RESET GPIO (6 Pins) RESET Any GPIO-capable pins which can be pulled down at reset can be used to control A[18:13] for FLASH BOOTLOAD Examples: AHCLKR0, SPI0_SCS/SCL1 A[0] A[12:1] DQ[15:0] CE WE OE RESET A[18:13] RY/BY Figure 4-7. C6726/C6722 DSP 16-Bit EMIF Example Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 45 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com C6727 DSP EMIF SDRAM 4M x 16 x 4 Bank CE CAS RAS WE CLK CKE BA[1:0] EM_CS[0] EM_CAS EM_RAS EM_WE EM_CLK EM_CKE EM_BA[1:0] EM_A[12:0] EM_WE_DQM[0] EM_WE_DQM[1] EM_D[15:0] EM_WE_DQM[2] EM_WE_DQM[3] EM_D[31:16]/UHPI_HA[15:0] EM_CS[2] EM_RW EM_OE EM_WAIT RESET A[12:0] LDQM UDQM DQ[15:0] SDRAM 4M x 16 x 4 Bank CE CAS RAS WE CLK CKE BA[1:0] GPIO (5 Pins) A[12:0] LDQM UDQM DQ[15:0] RESET FLASH 512K x 16 EM_BA[1] Any GPIO-capable pins which can be pulled down at reset can be used to control A[18:14] for FLASH BOOTLOAD Examples: AHCLKR0, SPI0_SCS/SCL1 A[0] A[13:1] DQ[15:0] CE WE OE RESET A[18:14] RY/BY Figure 4-8. C6727 DSP 32-Bit EMIF Example 46 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.11.2 EMIF Peripheral Registers Description(s) Table 4-4 is a list of the EMIF registers. For more information about these registers, see the TMS320C672x DSP External Memory Interface (EMIF) User's Guide (literature number SPRU711). Table 4-4. EMIF Registers BYTE ADDRESS REGISTER NAME DESCRIPTION 0xF000 0004 AWCCR Asynchronous Wait Cycle Configuration Register 0xF000 0008 SDCR SDRAM Configuration Register 0xF000 000C SDRCR SDRAM Refresh Control Register 0xF000 0010 A1CR Asynchronous 1 Configuration Register 0xF000 0020 SDTIMR SDRAM Timing Register 0xF000 003C SDSRETR SDRAM Self Refresh Exit Timing Register 0xF000 0040 EIRR EMIF Interrupt Raw Register 0xF000 0044 EIMR EMIF Interrupt Mask Register 0xF000 0048 EIMSR EMIF Interrupt Mask Set Register 0xF000 004C EIMCR EMIF Interrupt Mask Clear Register 0xF000 0060 NANDFCR NAND Flash Control Register 0xF000 0064 NANDFSR NAND Flash Status Register 0xF000 0070 NANDF1ECC NAND Flash 1 ECC Register Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 47 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.11.3 EMIF Electrical Data/Timing Table 4-5 through Table 4-8 assume testing over recommended operating conditions (see Figure 4-9 through Figure 4-15). Table 4-5. EMIF SDRAM Interface Timing Requirements NO. MIN 19 tsu(EM_DV-EM_CLKH) Input setup time, read data valid on D[31:0] before EM_CLK rising 20 th(EM_CLKH-EM_DIV) Input hold time, read data valid on D[31:0] after EM_CLK rising MAX UNIT 3 ns 1.9 ns Table 4-6. EMIF SDRAM Interface Switching Characteristics NO. 48 PARAMETER MIN 1 tc(EM_CLK) Cycle time, EMIF clock EM_CLK 2 tw(EM_CLK) Pulse width, EMIF clock EM_CLK high or low 3 td(EM_CLKH-EM_CSV)S Delay time, EM_CLK rising to EM_CS[0] valid 4 toh(EM_CLKH-EM_CSIV)S Output hold time, EM_CLK rising to EM_CS[0] invalid 5 td(EM_CLKH-EM_WE-DQMV)S Delay time, EM_CLK rising to EM_WE_DQM[3:0] valid 6 toh(EM_CLKH-EM_WE-DQMIV)S Output hold time, EM_CLK rising to EM_WE_DQM[3:0] invalid 7 td(EM_CLKH-EM_AV)S Delay time, EM_CLK rising to EM_A[12:0] and EM_BA[1:0] valid 8 toh(EM_CLKH-EM_AIV)S Output hold time, EM_CLK rising to EM_A[12:0] and EM_BA[1:0] invalid 9 td(EM_CLKH-EM_DV)S Delay time, EM_CLK rising to EM_D[31:0] valid 10 toh(EM_CLKH-EM_DIV)S Output hold time, EM_CLK rising to EM_D[31:0] invalid 11 td(EM_CLKH-EM_RASV)S Delay time, EM_CLK rising to EM_RAS valid 12 toh(EM_CLKH-EM_RASIV)S Output hold time, EM_CLK rising to EM_RAS invalid 13 td(EM_CLKH-EM_CASV)S Delay time, EM_CLK rising to EM_CAS valid 14 toh(EM_CLKH-EM_CASIV)S Output hold time, EM_CLK rising to EM_CAS invalid 15 td(EM_CLKH-EM_WEV)S Delay time, EM_CLK rising to EM_WE valid 16 toh(EM_CLKH-EM_WEIV)S Output hold time, EM_CLK rising to EM_WE invalid 17 tdis(EM_CLKH-EM_DHZ)S Delay time, EM_CLK rising to EM_D[31:0] 3-stated 18 tena(EM_CLKH-EM_DLZ)S Output hold time, EM_CLK rising to EM_D[31:0] driving Peripheral and Electrical Specifications MAX UNIT 10 ns 3 ns 7.7 1.15 ns 7.7 1.15 ns ns 7.7 1.15 ns ns 7.7 1.15 ns ns 7.7 1.15 ns ns 7.7 1.15 ns ns 7.7 1.15 ns ns 7.7 1.15 ns ns ns Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-7. EMIF Asynchronous Interface Timing Requirements (1) (2) NO. MIN MAX UNIT 28 tsu(EM_DV-EM_CLKH)A Input setup time, read data valid on EM_D[31:0] before EM_CLK rising 29 th(EM_CLKH-EM_DIV)A Input hold time, read data valid on EM_D[31:0] after EM_CLK rising 2 ns 30 tsu(EM_CLKH-EM_WAITV)A Setup time, EM_WAIT valid before EM_CLK rising edge 5 ns 31 th(EM_CLKH-EM_WAITIV)A Hold time, EM_WAIT valid after EM_CLK rising edge 0 ns 33 tw(EM_WAIT)A Pulse width of EM_WAIT assertion and deassertion 34 td(EM_WAITD-HOLD)A Delay from EM_WAIT sampled deasserted on EM_CLK rising to beginning of HOLD phase 35 tsu(EM_WAITA-HOLD)A Setup before end of STROBE phase (if no extended wait states are inserted) by which EM_WAIT must be sampled asserted on EM_CLK rising in order to add extended wait states. (4) (1) (2) (3) 5 ns 2E + 5 ns 4E (3) 4E (3) ns ns E = SYSCLK3 (EM_CLK) period. These parameters apply to memories selected by EM_CS[2] in both normal and NAND modes. These parameters specify the number of EM_CLK cycles of latency between EM_WAIT being sampled at the device pin and the EMIF entering the HOLD phase. However, the asynchronous setup (parameter 30) and hold time (parameter 31) around each EM_CLK edge must also be met in order to ensure the EM_WAIT signal is correctly sampled. In Figure 4-15, it appears that there are more than 4 EM_CLK cycles encompassed by parameter 35. However, EM_CLK cycles that are part of the extended wait period should not be counted; the 4 EM_CLK requirement is to the start of where the HOLD phase would begin if there were no extended wait cycles. (4) Table 4-8. EMIF Asynchronous Interface Switching Characteristics (1) NO. (1) PARAMETER MIN MAX UNIT 1 tc(EM_CLK) Cycle time, EMIF clock EM_CLK 10 2 tw(EM_CLK) Pulse width, high or low, EMIF clock EM_CLK ns 3 ns 17 tdis(EM_CLKH-EM_DHZ)S Delay time, EM_CLK rising to EM_D[31:0] 3-stated 18 tena(EM_CLKH-EM_DLZ)S Output hold time, EM_CLK rising to EM_D[31:0] driving 21 td(EM_CLKH-EM_CS2V)A Delay time, from EM_CLK rising edge to EM_CS[2] valid 0 8 ns 22 td(EM_CLKH-EM_WE_DQMV)A Delay time, EM_CLK rising to EM_WE_DQM[3:0] valid 0 8 ns 23 td(EM_CLKH-EM_AV)A Delay time, EM_CLK rising to EM_A[12:0] and EM_BA[1:0] valid 0 8 ns 24 td(EM_CLKH-EM_DV)A Delay time, EM_CLK rising to EM_D[31:0] valid 0 8 ns 25 td(EM_CLKH-EM_OEV)A Delay time, EM_CLK rising to EM_OE valid 0 8 ns 26 td(EM_CLKH-EM_RW)A Delay time, EM_CLK rising to EM_RW valid 0 8 ns 27 tdis(EM_CLKH-EM_DDIS)A Delay time, EM_CLK rising to EM_D[31:0] 3-stated 0 8 ns 32 td(EM_CLKH-EM_WE)A Delay time, EM_CLK rising to EM_WE valid 0 8 ns 7.7 1.15 ns ns These parameters apply to memories selected by EM_CS[2] in both normal and NAND modes. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 49 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 1 BASIC SDRAM WRITE OPERATION 2 2 EM_CLK 3 4 EM_CS[0] 5 6 EM_WE_DQM[3:0] 7 8 7 8 EM_BA[1:0] EM_A[12:0] 9 EM_D[31:0] 11 12 EM_RAS 13 14 15 16 EM_CAS EM_WE Figure 4-9. Basic SDRAM Write Operation BASIC SDRAM READ OPERATION 1 2 2 EM_CLK 3 4 EM_CS[0] 5 6 EM_WE_DQM[3:0] 7 8 7 8 EM_BA[1:0] EM_A[12:0] 19 17 2 EM_CLK Delay 20 18 EM_D[31:0] 11 12 EM_RAS 13 14 EM_CAS EM_WE Figure 4-10. Basic SDRAM Read Operation 50 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com SETUP ASYNCHRONOUS READ WE STROBE MODE STROBE HOLD TA EM_CLK 21 21 22 22 23 23 EM_CS[2] EM_WE_DQM[3:0] EM_BA[1:0] ADDRESS 23 23 EM_A[12:0] ADDRESS 17 READ DATA 28 29 EM_D[31:0] 25 25 18 EM_OE EM_WE EM_RW Figure 4-11. Asynchronous Read WE Strobe Mode ASYNCHRONOUS READ SELECT STROBE MODE SETUP STROBE HOLD TA EM_CLK 21 21 EM_CS[2] 22 EM_WE_DQM[3:0] 22 BYTE LANE ENABLES 23 23 EM_BA[1:0] ADDRESS 23 23 EM_A[12:0] ADDRESS 17 READ DATA 28 29 EM_D[31:0] 25 25 18 EM_OE EM_WE EM_RW Figure 4-12. Asynchronous Read Select Strobe Mode Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 51 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 SETUP www.ti.com ASYNCHRONOUS WRITE WE STROBE MODE STROBE HOLD EM_CLK 21 21 EM_CS[2] 22 22 22 EM_WE_DQM[3:0] 22 BYTE WRITE STROBES 23 23 EM_BA[1:0] ADDRESS 23 23 EM_A[12:0] ADDRESS 24 27 EM_D[31:0] WRITE DATA EM_OE 32 32 EM_WE 26 26 EM_RW Figure 4-13. Asynchronous Write WE Strobe Mode SETUP ASYNCHRONOUS WRITE SELECT STROBE MODE STROBE HOLD EM_CLK 21 21 EM_CS[2] 22 22 EM_WE_DQM[3:0] BYTE LANE ENABLES 23 23 EM_BA[1:0] ADDRESS 23 23 EM_A[12:0] ADDRESS 24 27 EM_D[31:0] WRITE DATA EM_OE 32 32 EM_WE 26 26 EM_RW Figure 4-14. Asynchronous Write Select Strobe Mode 52 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com SETUP STROBE EXTENDED WAIT STATES STROBE HOLD 35 34 EM_CLK 30 31 ASSERTED EM_WAIT DEASSERTED 33 33 Figure 4-15. EM_WAIT Timing Requirements Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 53 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.12 Universal Host-Port Interface (UHPI) [C6727 Only] 4.12.1 UHPI Device-Specific Information The C672x DSP includes a flexible universal host-port interface (UHPI) with more options than the host-port interface on the C671x DSP. The UHPI on the C672x DSP supports three major operating modes listed in Table 4-9. Table 4-9. UHPI Major Modes on C672x UHPI MAJOR MODE EXAMPLE FIGURE Multiplexed Host Address/Data Half-Word (16-Bit) Mode Figure 4-17 Multiplexed Host Address/Data Fullword (32-Bit) Mode Figure 4-18 Non-Multiplexed Host Address/Data Fullword (32-Bit) Mode Figure 4-19 In all modes, the UHPI uses three select inputs (UHPI_HCS, UHPI_HDS[2:1]) which are combined internally to produce the internal strobe signal HSTROBE. The HSTROBE strobe signal is used in the UHPI to capture incoming address and control signals on its falling edge and write data on its rising edge. The UHPI_HCS signal also gates the deassertion of the UHPI_HRDY signal externally. UHPI_HDS[2] UHPI_HDS[1] Internal HSTROBE UHPI_HCS UHPI_HRDY Internal HRDY Figure 4-16. UHPI Strobe and Ready Interaction The two HPI control pins UHPI_HCNTL[1:0] determine the type of access that the host will perform. Note that only two of the four access types are supported in Non-Multiplexed Host Address/Data Fullword Mode. Table 4-10. HPI Access Types Selected by UHPI_HCNTL[1:0] UHPI_HCNTL[1:0] DESCRIPTION MULTIPLEXED HALF-WORD MULTIPLEXED FULLWORD NONMULTIPLEXED FULLWORD 00 HPI Control Register (HPIC) Access Y Y Y 01 HPI Data Access (HPID) with autoincrementing address Y Y N 10 HPI Address Register (HPIA) Access Y Y N 11 HPI Data Access (HPID) without autoincrementing address Y Y Y CAUTION When performing a set of HPID with autoincrementing address accesses (UHPI_HCNTL[1:0] = '01'), the set must begin and end at a word-aligned address. In addition, all four of the UHPI_HBE[3:0] must be enabled on every access in the set. CAUTION The encoding of UHPI_CNTL[1:0] on the C672x DSP is different from HCNTL[1:0] on the C671x DSP. Modes 01 and 10 are swapped. 54 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Figure 4-17 illustrates the Multiplexed Host Address/Data Half-Word Mode hookup between the C672x DSP and an external host microcontroller. In this mode, each 32-bit HPI access is broken up into two halves. The UHPI_HD[16]/HHWIL pin functions as UHPI_HHWIL which must be '0' during the first half of access and '1' during the second half. CAUTION Unless configured as general-purpose I/O in the UHPI module, UHPI_HD[31:17] and UHPI_HD[16]/HHWIL will be driven as outputs along with UHPI_HD[15:0] when the HPI is read, even though only the lower half-word is used to transfer data. This can be especially problematic for the UHPI_HD[16]/HHWIL pin which should be used as an input in this mode. Therefore, be sure to configure the upper half of the UHPI_HD bus as general-purpose I/O pins. Furthermore, be sure to program the UHPI_HD[16] function as a general-purpose input to avoid a drive conflict with the external host MCU. In this mode, as well as the Multiplexed Host Address/Data Fullword mode, the UHPI can be made more secure by restricting the upper 16 bits of the DSP addresses it can access to what is set in CFGHPIAMSB and CFGHPIAUMB registers. (See Table 4-13 and Table 4-14). The host is responsible for configuring the internal HPIA register whether or not it is being overridden by the device configuration registers CFGHPIAMSB and CFGHPIAUMB. After the HPIA register has been set, either a single or a group of autoincrementing accesses to HPID may be performed. The UHPI_HRDY adds wait states to extend the host MCU access until the C672x DSP has completed the desired operation. The HINT signal is available for the DSP to interrupt the host MCU. The UHPI also includes an interrupt to the DSP core from the host as part of the HPIC register. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 55 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com DSP External Host MCU EM_D[31:16]/UHPI_HA[15:0](A) NC A[x:y](D) UHPI_HCNTL[1:0] D[15:0] UHPI_HD[15:0] A[1](E) UHPI_HD[16]/HHWIL UHPI_HD[31:17] NC or GPIO UHPI_HAS(B) UHPI_HBE[1:0](C) UHPI_HRW WE(G) UHPI_HDS[1](G) RD(G) UHPI_HCS AMUTE2/HINT G. R/W UHPI_HDS[2](G) UHPI_HRDY A. B. C. D. E. F. BE[1:0](F) CS RDY INTERRUPT May be used as EM_D[31:16] Optional for hosts supporting multiplexed address and data. Pull up if not used. Low when address is on the bus. DSP byte enables UHPI_HBE[3:2] are not required in this mode. Two host address lines or host GPIO if address lines are not available. A[1], assuming this address increments from 0 to 1 between two successive 16-bit accesses. Byte Enables (active during reads and writes). Some processors support a byte-enable mode on their write-enable pins. Only required if needed for strobe timing. Not required if CS meets strobe timing requirements. Tie UHPI_HDS[2] and UHPI_HDS[1] opposite. For more information, see Figure 4-16. Figure 4-17. UHPI Multiplexed Host Address/Data Half-Word Mode 56 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Figure 4-18 illustrates the Multiplexed Host Address/Data Fullword Mode hookup between the C672x DSP and an external host microcontroller. In this mode, all 32 bits of UHPI_HD[31:0] are used and the host can access HPIA, HPID, and HPIC in a single bus cycle. DSP External Host MCU EM_D[31:16]/UHPI_HA[15:0](A) UHPI_HCNTL[1:0] UHPI_HD[15:0] UHPI_HD[16]/HHWIL UHPI_HD[31:17] NC A[x:y](C) D[15:0] D[16] D[31:17] UHPI_HAS(B) UHPI_HBE[3:0] UHPI_HRW WE(E) UHPI_HDS[1] RD(E) UHPI_HCS AMUTE2/HINT E. R/W UHPI_HDS[2] UHPI_HRDY A. B. C. D. BE[3:0](D) CS RDY INTERRUPT May be used as EM_D[31:16] Optional for hosts supporting multiplexed address and data. Pull up if not used. Low when address is on the bus. Two host address lines or host GPIO if address lines are not available. Byte Enables (active during reads and writes). Some processors support a byte-enable mode on their write enable pins. Only required if needed for strobe timing. Not required if CS meets strobe timing requirements. Figure 4-18. UHPI Multiplexed Host Address/Data Fullword Mode Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 57 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Figure 4-19 illustrates the Non-Multiplexed Host Address/Data Fullword mode of the UHPI. In this mode, the UHPI behaves almost like an asynchronous SRAM except it asserts the UHPI_HRDY signal. This mode allows the host to randomly access a 64K-byte page in the C672x address space. The upper 32 bits of the C672x address are set by the DSP (only) through the CFGHPIAMSB and CFGHPIAUMB registers (see Table 4-13 and Table 4-14). DSP External Host MCU A[17:2] EM_D[31:16]/UHPI_HA[15:0] A[x:y](A) UHPI_HCNTL[1:0] UHPI_HD[15:0] D[15:0] UHPI_HD[16]/HHWIL D[16] D[31:17] UHPI_HD[31:17] UHPI_HAS(B) BE[3:0](C) UHPI_HBE[3:0] UHPI_HRW R/W UHPI_HDS[2] WE(D) UHPI_HDS[1] RD(D) UHPI_HCS CS UHPI_HRDY RDY AMUTE2/HINT A. B. C. D. INTERRUPT Two host address lines or host GPIO if address lines are not available. Not used in this mode. Byte Enables (active during reads and writes). Some processors support a byte-enable mode on their write enable pins. Only required if needed for strobe timing. Not required if CS meets strobe timing requirements. Figure 4-19. UHPI Non-Multiplexed Host Address/Data Fullword Mode CAUTION The EMIF data bus and UHPI HA inputs share the EM_D[31:16]/UHPI_HA[15:0] pins. When using Non-Multiplexed mode, make sure the EMIF does not drive EM_D[31:16]; otherwise, a drive conflict with the external host MCU may result. Normally, the EMIF will begin to drive the EM_D[31:16] lines immediately after it completes the SDRAM initialization sequence, which occurs automatically after RESET is released. To avoid a drive conflict then, the boot software must set CFGHPI.NMUX to '1' before the EMIF drives EM_D[31:16]. Setting CFGHPI.NMUX to '1' forces these pins to be input pins. 58 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.12.2 UHPI Peripheral Registers Description(s) Table 4-11 is a list of the UHPI registers. Table 4-11. UHPI Configuration Registers BYTE ADDRESS REGISTER NAME DESCRIPTION Device-Level Configuration Registers Controlling UHPI 0x4000 0008 CFGHPI UHPI Configuration Register 0x4000 000C CFGHPIAMSB Most Significant Byte of UHPI Address 0x4000 0010 CFGHPIAUMB Upper Middle Byte of UHPI Address UHPI Internal Registers 0x4300 0000 PID Peripheral ID Register 0x4300 0004 PWREMU Power and Emulation Management Register 0x4300 0008 GPIOINT General Purpose I/O Interrupt Control Register 0x4300 000C GPIOEN General Purpose I/O Enable Register 0x4300 0010 GPIODIR1 General Purpose I/O Direction Register 1 0x4300 0014 GPIODAT1 General Purpose I/O Data Register 1 0x4300 0018 GPIODIR2 General Purpose I/O Direction Register 2 0x4300 001C GPIODAT2 General Purpose I/O Data Register 2 0x4300 0020 GPIODIR3 General Purpose I/O Direction Register 3 0x4300 0024 GPIODAT3 General Purpose I/O Data Register 3 0x4300 0028 Reserved Reserved 0x4300 002C Reserved Reserved 0x4300 0030 HPIC Control Register 0x4300 0034 HPIAW Write Address Register 0x4300 0038 HPIAR Read Address Register 0x4300 003C Reserved Reserved 0x4300 0040 Reserved Reserved Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 59 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com The UHPI has several device-level configuration registers which affect its behavior. Figure 4-20, Figure 4-21, and Figure 4-22 show the bit layout of these registers. Table 4-12, Table 4-13, and Table 4-14 contain a description of the bits in these registers. 31 8 Reserved 7 5 Reserved 4 3 2 1 0 BYTEAD FULL NMUX PAGEM ENA R/W, 0 R/W, 0 R/W, 0 R/W, 0 R/W, 0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Figure 4-20. CFGHPI Register Bit Layout (0x4000 0008) Table 4-12. CFGHPI Register Bit Field Description (0x4000 0008) BIT NO. 60 NAME RESET VALUE READ WRITE DESCRIPTION 31:5 Reserved N/A N/A Reads are indeterminate. Only 0s should be written to these bits. 4 BYTEAD 0 R/W UHPI Host Address Type 0 = Host Address is a word address 1 = Host Address is a byte address 3 FULL 0 R/W UHPI Multiplexing Mode (when NMUX = 0) 0 = Half-Word (16-bit data) Multiplexed Address and Data Mode 1 = Fullword (32-bit data) Multiplexed Address and Data Mode 2 NMUX 0 R/W UHPI Non-Multiplexed Mode Enable 0 = Multiplexed Address and Data Mode 1 = Non-Multiplexed Address and Data Mode (utilizes optional UHPI_HA[15:0] pins). Host data bus is 32 bits in Non-Multiplexed mode. Setting this bit prevents the EMIF from driving data out or 'parking' the shared EM_D[31:16]/UHPI_HA[15:0] pins. 1 PAGEM 0 R/W UHPI Page Mode Enable (Only for Multiplexed Address and Data Mode). 0 = Full 32-bit DSP address specified through host port. 1 = Only lower 16 bits of DSP address are specified through host port. Upper 16 bits are restricted to the page selected by CFGHPIAMSB and CFGHPIAUMB registers. 0 ENA 0 R/W UHPI Enable 0 = UHPI is disabled 1 = UHPI is enabled. Set this bit to '1' only after configuring the other bits in this register. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 31 8 Reserved 7 0 HPIAMSB R/W, 0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Figure 4-21. CFGHPIAMSB Register Bit Layout (0x4000 000C) Table 4-13. CFGHPIAMSB Register Bit Field Description (0x4000 000C) BIT NO. NAME RESET VALUE READ WRITE DESCRIPTION 31:8 Reserved N/A N/A Reads are indeterminate. Only 0s should be written to these bits. 7:0 HPIAMSB 0 R/W UHPI most significant byte of DSP address to access in Non-Multiplexed mode and in Multiplexed Address and Data mode when PAGEM = 1. Sets bits [31:24] of the DSP internal address as accessed through UHPI. 31 8 Reserved 7 0 HPIAUMB R/W, 0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Figure 4-22. CFGHPIAUMB Register Bit Layout (0x4000 0010) Table 4-14. CFGHPIAUMB Register Bit Field Description (0x4000 0010) BIT NO. NAME RESET VALUE READ WRITE DESCRIPTION 31:8 Reserved N/A N/A Reads are indeterminate. Only 0s should be written to these bits. 7:0 HPIAUMB 0 R/W UHPI upper middle byte of DSP address to access in Non-Multiplexed mode and in Multiplexed Address and Data mode when PAGEM = 1. Sets bits [23:16] of the DSP internal address as accessed through UHPI. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 61 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.12.3 UHPI Electrical Data/Timing 4.12.3.1 Universal Host-Port Interface (UHPI) Read and Write Timing Table 4-15 and Table 4-16 assume testing over recommended operating conditions (see Figure 4-23 through Figure 4-26). Table 4-15. UHPI Read and Write Timing Requirements (1) NO. (1) (2) 62 (2) MIN MAX UNIT 9 tsu(HASL-DSL) Setup time, UHPI_HAS low before DS falling edge 5 ns 10 th(DSL-HASL) Hold time, UHPI_HAS low after DS falling edge 2 ns 11 tsu(HAD-HASL) Setup time, HAD valid before UHPI_HAS falling edge 5 ns 12 th(HASL-HAD) Hold time, HAD valid after UHPI_HAS falling edge 5 ns 13 tw(DSL) Pulse duration, DS low 15 ns 14 tw(DSH) Pulse duration, DS high 2P ns 15 tsu(HAD-DSL) Setup time, HAD valid before DS falling edge 5 ns 16 th(DSL-HAD) Hold time, HAD valid after DS falling edge 5 ns 17 tsu(HD-DSH) Setup time, HD valid before DS rising edge 5 ns 18 th(DSH-HD) Hold time, HD valid after DS rising edge 0 ns 37 tsu(HCSL-DSL) Setup time, UHPI_HCS low before DS falling edge 0 ns 38 th(HRDYH-DSL) Hold time, DS low after UHPI_HRDY rising edge 1 ns P = SYSCLK2 period DS refers to HSTROBE. HD refers to UHPI_HD[31:0]. HDS refers to UHPI_HDS[1] or UHPI_HDS[2]. HAD refers to UHPI_HCNTL[0], UHPI_HCNTL[1], UHPI_HHWIL, and UHPI_HRW. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-16. UHPI Read and Write Switching Characteristics (1) NO. PARAMETER Case 1. HPIC or HPIA read 1 td(DSL-HDV) Delay time, DS low to HD valid MIN MAX 1 15 Case 2. HPID read with no auto-increment 9 * 2H + 20 (3) Case 3. HPID read with auto-increment and read FIFO initially empty 9 * 2H + 20 (3) Case 4. HPID read with auto-increment and data previously prefetched into the read FIFO 1 UNIT ns 15 2 tdis(DSH-HDV) Disable time, HD high-impedance from DS high 1 4 ns 3 ten(DSL-HDD) Enable time, HD driven from DS low 3 15 ns 4 td(DSL-HRDYH) Delay time, DS low to UHPI_HRDY high 12 ns 5 td(DSH-HRDYH) Delay time, DS high to UHPI_HRDY high 12 ns Case 1. HPID read with no auto-increment 6 7 td(DSL-HRDYL) td(HDV-HRDYL) 10 * 2H + 20 Delay time, DS low to UHPI_HRDY Case 2. HPID read with low auto-increment and read FIFO initialy empty Delay time, HD valid to UHPI_HRDY low (3) ns 10 * 2H + 20 (3) 0 ns (3) Case 1. HPIA write 5 * 2H + 20 Case 2. HPID read with auto-increment and read FIFO initially empty 5 * 2H + 20 (3) td(DSL-HRDYL) Delay time, DS low to UHPI_HRDY low for HPIA write and FIFO not empty 40 * 2H + 20 (3) ns td(HASL-HRDYH) Delay time, UHPI_HAS low to UHPI_HRDY high 12 ns 34 td(DSH-HRDYL) Delay time, DS high to UHPI_HRDY low 35 36 (1) (2) (3) (2) ns H = 0.5 * SYSCLK2 period DS refers to HSTROBE. HAD refers to UHPI_HCNTL[0], UHPI_HCNTL[1], UHPI_HHWIL, and UHPI_HRW. Max delay is a best case, assuming no delays due to resource conflicts between UHPI and dMAX or CPU. UHPI_HRDY should always be used to indicate when an access is complete instead of relying on these parameters. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 63 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Read Write UHPI_HCS 37 37 14 13 13 UHPI_HDSx 15 15 16 16 UHPI_HRW UHPI_HA[15:0] Valid Valid 1 2 3 UHPI_HD[31:0] (Read) Read data 18 17 UHPI_HD[31:0] (Write) Write data 4 34 7 5 6 UHPI_HRDY A. Depending on the type of write or read operation (HPID or HPIC), transitions on UHPI_HRDY may or may not occur. Figure 4-23. Non-Multiplexed Read/Write Timings 64 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com UHPI_HCS UHPI_HAS 12 11 12 11 UHPI_HCNTL[1:0] 12 11 12 11 12 11 12 11 UHPI_HRW UHPI_HHWIL 10 9 10 9 37 13 37 13 14 HSTROBE(A) 1 3 2 1 3 2 UHPI_HD[15:0] 7 36 6 38 UHPI_HRDY A. B. See Figure 4-16. Depending on the type of write or read operation (HPID without auto-incrementing, HPIA, HPIC, or HPID with auto-incrementing) and the state of the FIFO, transitions on UHPI_HRDY may or may not occur. Figure 4-24. Multiplexed Read Timings Using UHPI_HAS Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 65 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com UHPI_HCS UHPI_HAS UHPI_HCNTL[1:0] UHPI_HRW UHPI_HHWIL 13 16 16 15 15 37 37 14 13 HSTROBE(A) 3 3 1 1 2 2 UHPI_HD[15:0] 38 4 7 6 UHPI_HRDY A. B. See Figure 4-16. Depending on the type of write or read operation (HPID without auto-incrementing, HPIA, HPIC, or HPID with auto-incrementing) and the state of the FIFO, transitions on UHPI_HRDY may or may not occur. Figure 4-25. Multiplexed Read Timings With UHPI_HAS Held High UHPI_HCS UHPI_HAS UHPI_HCNTL[1:0] UHPI_HRW UHPI_HHWIL 16 13 16 15 37 15 37 13 14 HSTROBE(A) 18 18 17 17 UHPI_HD[15:0] 4 35 38 34 5 34 5 UHPI_HRDY A. B. See Figure 4-16. Depending on the type of write or read operation (HPID without auto-incrementing, HPIA, HPIC, or HPID with auto-incrementing) and the state of the FIFO, transitions on UHPI_HRDY may or may not occur. Figure 4-26. Multiplexed Write Timings With UHPI_HAS Held High 66 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.13 Multichannel Audio Serial Ports (McASP0, McASP1, and McASP2) The McASP serial port is specifically designed for multichannel audio applications. Its key features are: • Flexible clock and frame sync generation logic and on-chip dividers • Up to sixteen transmit or receive data pins and serializers • Large number of serial data format options, including: – TDM Frames with 2 to 32 time slots per frame (periodic) or 1 slot per frame (burst). – Time slots of 8,12,16, 20, 24, 28, and 32 bits. – First bit delay 0, 1, or 2 clocks. – MSB or LSB first bit order. – Left- or right-aligned data words within time slots • DIT Mode (optional) with 384-bit Channel Status and 384-bit User Data registers. • Extensive error-checking and mute generation logic • All unused pins GPIO-capable Pins Peripheral Configuration Bus GIO Control DIT RAM 384 C 384 U Optional McASP DMA Bus (Dedicated) Transmit Formatter Receive Formatter Function Receive Logic Clock/Frame Generator State Machine AHCLKRx ACLKRx AFSRx Receive Master Clock Receive Bit Clock Receive Left/Right Clock or Frame Sync Clock Check and Error Detection AMUTEINx AMUTEx The McASPs DO NOT have dedicated AMUTEINx pins. Transmit Logic Clock/Frame Generator State Machine AFSXx ACLKXx AHCLKXx Transmit Left/Right Clock or Frame Sync Transmit Bit Clock Transmit Master Clock Serializer 0 AXRx[0] Transmit/Receive Serial Data Pin Serializer 1 AXRx[1] Transmit/Receive Serial Data Pin Serializer y AXRx[y] Transmit/Receive Serial Data Pin McASPx (x = 0, 1, 2) Figure 4-27. McASP Block Diagram Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 67 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com The three McASPs on C672x have different configurations (see Table 4-17). NOTE: McASP2 is not available on the C6722. Table 4-17. McASP Configurations on C672x DSP McASP DIT CLOCK PINS DATA PINS COMMENTS McASP0 No AHCLKX0/AHCLKX2, ACLKX0, AFSX0 AHCLKR0/AHCLKR1, ACLKR0, AFSR0 Up to 16 AHCLKX0/AHCLKX2 share pin. AHCLKR0/AHCLKR1 share pin. McASP1 No AHCLKX1, ACLKX1, AFSX1, ACLKR1, AFSR1 Up to 6 AHCLKR0/AHCLKR1 share pin McASP2 Yes ACLKX2, AFSX2, AHCLKR2, ACLKR2, AFSR2 (Only available on the C6727.) Up to 2 Full functionality on C6727. On C6726, functions only as DIT since only AHCLKX0/AHCLKX2 is available. Not available on the C6722. NOTE: The McASPs do not have dedicated AMUTEINx pins. Instead they can select one of the pins listed in Table 4-19, Table 4-20, and Table 4-21 to use as a mute input. 68 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.13.1 McASP Peripheral Registers Description(s) Table 4-18 is a list of the McASP registers. For more information about these registers, see the TMS320C672x DSP Multichannel Audio Serial Port (McASP) Reference Guide (literature number SPRU878). Table 4-18. McASP Registers Accessed Through Peripheral Configuration Bus McASP0 BYTE ADDRESS McASP1 BYTE ADDRESS 0x4000 0018 0x4000 001C McASP2 BYTE ADDRESS REGISTER NAME DESCRIPTION Device-Level Configuration Registers Controlling McASP 0x4000 0020 CFGMCASPx Selects the peripheral pin to be used as AMUTEINx McASP Internal Registers 0x4400 0000 0x4500 0000 0x4600 0000 PID Peripheral identification register 0x4400 0004 0x4500 0004 0x4600 0004 PWRDEMU Power down and emulation management register 0x4400 0010 0x4500 0010 0x4600 0010 PFUNC Pin function register 0x4400 0014 0x4500 0014 0x4600 0014 PDIR Pin direction register 0x4400 0018 0x4500 0018 0x4600 0018 PDOUT Pin data output register 0x4400 001C 0x4500 001C 0x4600 001C PDIN (reads) Read returns: Pin data input register PDSET (writes) Writes affect: Pin data set register (alternate write address: PDOUT) 0x4400 0020 0x4500 0020 0x4600 0020 PDCLR Pin data clear register (alternate write address: PDOUT) 0x4400 0044 0x4500 0044 0x4600 0044 GBLCTL Global control register 0x4400 0048 0x4500 0048 0x4600 0048 AMUTE Audio mute control register 0x4400 004C 0x4500 004C 0x4600 004C DLBCTL Digital loopback control register 0x4400 0050 0x4500 0050 0x4600 0050 DITCTL DIT mode control register 0x4400 0060 0x4500 0060 0x4600 0060 RGBLCTL Receiver global control register: Alias of GBLCTL, only receive bits are affected - allows receiver to be reset independently from transmitter 0x4400 0064 0x4500 0064 0x4600 0064 RMASK Receive format unit bit mask register 0x4400 0068 0x4500 0068 0x4600 0068 RFMT Receive bit stream format register 0x4400 006C 0x4500 006C 0x4600 006C AFSRCTL Receive frame sync control register 0x4400 0070 0x4500 0070 0x4600 0070 ACLKRCTL Receive clock control register 0x4400 0074 0x4500 0074 0x4600 0074 AHCLKRCTL Receive high-frequency clock control register 0x4400 0078 0x4500 0078 0x4600 0078 RTDM Receive TDM time slot 0-31 register 0x4400 007C 0x4500 007C 0x4600 007C RINTCTL Receiver interrupt control register 0x4400 0080 0x4500 0080 0x4600 0080 RSTAT Receiver status register 0x4400 0084 0x4500 0084 0x4600 0084 RSLOT Current receive TDM time slot register 0x4400 0088 0x4500 0088 0x4600 0088 RCLKCHK Receive clock check control register 0x4400 008C 0x4500 008C 0x4600 008C REVTCTL Receiver DMA event control register 0x4400 00A0 0x4500 00A0 0x4600 00A0 XGBLCTL Transmitter global control register. Alias of GBLCTL, only transmit bits are affected - allows transmitter to be reset independently from receiver 0x4400 00A4 0x4500 00A4 0x4600 00A4 XMASK Transmit format unit bit mask register 0x4400 00A8 0x4500 00A8 0x4600 00A8 XFMT Transmit bit stream format register 0x4400 00AC 0x4500 00AC 0x4600 00AC AFSXCTL Transmit frame sync control register 0x4400 00B0 0x4500 00B0 0x4600 00B0 ACLKXCTL Transmit clock control register 0x4400 00B4 0x4500 00B4 0x4600 00B4 AHCLKXCTL Transmit high-frequency clock control register 0x4400 00B8 0x4500 00B8 0x4600 00B8 XTDM Transmit TDM time slot 0-31 register 0x4400 00BC 0x4500 00BC 0x4600 00BC XINTCTL Transmitter interrupt control register 0x4400 00C0 0x4500 00C0 0x4600 00C0 XSTAT Transmitter status register 0x4400 00C4 0x4500 00C4 0x4600 00C4 XSLOT Current transmit TDM time slot register Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 69 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-18. McASP Registers Accessed Through Peripheral Configuration Bus (continued) McASP0 BYTE ADDRESS (1) 70 McASP1 BYTE ADDRESS McASP2 BYTE ADDRESS REGISTER NAME DESCRIPTION 0x4400 00C8 0x4500 00C8 0x4600 00C8 XCLKCHK Transmit clock check control register 0x4400 00CC 0x4500 00CC 0x4600 00CC XEVTCTL Transmitter DMA event control register – – 0x4600 0100 DITCSRA0 Left channel status register 0 – – 0x4600 0104 DITCSRA1 Left channel status register 1 – – 0x4600 0108 DITCSRA2 Left channel status register 2 – – 0x4600 010C DITCSRA3 Left channel status register 3 – – 0x4600 0110 DITCSRA4 Left channel status register 4 – – 0x4600 0114 DITCSRA5 Left channel status register 5 – – 0x4600 0118 DITCSRB0 Right channel status register 0 – – 0x4600 011C DITCSRB1 Right channel status register 1 – – 0x4600 0120 DITCSRB2 Right channel status register 2 – – 0x4600 0124 DITCSRB3 Right channel status register 3 – – 0x4600 0128 DITCSRB4 Right channel status register 4 – – 0x4600 012C DITCSRB5 Right channel status register 5 – – 0x4600 0130 DITUDRA0 Left channel user data register 0 – – 0x4600 0134 DITUDRA1 Left channel user data register 1 – – 0x4600 0138 DITUDRA2 Left channel user data register 2 – – 0x4600 013C DITUDRA3 Left channel user data register 3 – – 0x4600 0140 DITUDRA4 Left channel user data register 4 – – 0x4600 0144 DITUDRA5 Left channel user data register 5 – – 0x4600 0148 DITUDRB0 Right channel user data register 0 – – 0x4600 014C DITUDRB1 Right channel user data register 1 – – 0x4600 0150 DITUDRB2 Right channel user data register 2 – – 0x4600 0154 DITUDRB3 Right channel user data register 3 – – 0x4600 0158 DITUDRB4 Right channel user data register 4 – – 0x4600 015C DITUDRB5 Right channel user data register 5 0x4400 0180 0x4500 0180 0x4600 0180 SRCTL0 Serializer control register 0 0x4400 0184 0x4500 0184 0x4600 0184 SRCTL1 Serializer control register 1 0x4400 0188 0x4500 0188 – SRCTL2 Serializer control register 2 0x4400 018C 0x4500 018C – SRCTL3 Serializer control register 3 0x4400 0190 0x4500 0190 – SRCTL4 Serializer control register 4 0x4400 0194 0x4500 0194 – SRCTL5 Serializer control register 5 0x4400 0198 – – SRCTL6 Serializer control register 6 0x4400 019C – – SRCTL7 Serializer control register 7 0x4400 01A0 – – SRCTL8 Serializer control register 8 0x4400 01A4 – – SRCTL9 Serializer control register 9 0x4400 01A8 – – SRCTL10 Serializer control register 10 0x4400 01AC – – SRCTL11 Serializer control register 11 0x4400 01B0 – – SRCTL12 Serializer control register 12 0x4400 01B4 – – SRCTL13 Serializer control register 13 0x4400 01B8 – – SRCTL14 Serializer control register 14 0x4400 01BC – – SRCTL15 Serializer control register 15 (1) Transmit buffer register for serializer 0 0x4400 0200 0x4500 0200 0x4600 0200 XBUF0 0x4400 0204 0x4500 0204 0x4600 0204 XBUF1 (1) Transmit buffer register for serializer 1 0x4400 0208 0x4500 0208 – XBUF2 (1) Transmit buffer register for serializer 2 Writes to XRBUF originate from peripheral configuration bus only when XBUSEL = 1 in XFMT. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-18. McASP Registers Accessed Through Peripheral Configuration Bus (continued) (2) (3) McASP0 BYTE ADDRESS McASP1 BYTE ADDRESS McASP2 BYTE ADDRESS 0x4400 020C 0x4500 020C – XBUF3 (1) Transmit buffer register for serializer 3 0x4400 0210 0x4500 0210 – XBUF4 (1) Transmit buffer register for serializer 4 (1) Transmit buffer register for serializer 5 REGISTER NAME DESCRIPTION 0x4400 0214 0x4500 0214 – XBUF5 0x4400 0218 – – XBUF6 (1) Transmit buffer register for serializer 6 0x4400 021C – – XBUF7 (1) Transmit buffer register for serializer 7 0x4400 0220 – – XBUF8 (1) Transmit buffer register for serializer 8 (1) Transmit buffer register for serializer 9 0x4400 0224 – – XBUF9 0x4400 0228 – – XBUF10 (1) Transmit buffer register for serializer 10 0x4400 022C – – XBUF11 (1) Transmit buffer register for serializer 11 (1) Transmit buffer register for serializer 12 0x4400 0230 – – XBUF12 0x4400 0234 – – XBUF13 (1) Transmit buffer register for serializer 13 0x4400 0238 – – XBUF14 (1) Transmit buffer register for serializer 14 (1) Transmit buffer register for serializer 15 0x4400 023C – – XBUF15 0x4400 0280 0x4500 0280 0x4600 0280 RBUF0 (2) Receive buffer register for serializer 0 0x4400 0284 0x4500 0284 0x4600 0284 RBUF1 (3) Receive buffer register for serializer 1 0x4400 0288 0x4500 0288 – RBUF2 (3) Receive buffer register for serializer 2 (3) Receive buffer register for serializer 3 0x4400 028C 0x4500 028C – RBUF3 0x4400 0290 0x4500 0290 – RBUF4 (3) Receive buffer register for serializer 4 0x4400 0294 0x4500 0294 – RBUF5 (3) Receive buffer register for serializer 5 (3) Receive buffer register for serializer 6 0x4400 0298 – – RBUF6 0x4400 029C – – RBUF7 (3) Receive buffer register for serializer 7 0x4400 02A0 – – RBUF8 (3) Receive buffer register for serializer 8 (3) Receive buffer register for serializer 9 0x4400 02A4 – – RBUF9 0x4400 02A8 – – RBUF10 (3) Receive buffer register for serializer 10 0x4400 02AC – – RBUF11 (3) Receive buffer register for serializer 11 0x4400 02B0 – – RBUF12 (3) Receive buffer register for serializer 12 (3) Receive buffer register for serializer 13 0x4400 02B4 – – RBUF13 0x4400 02B8 – – RBUF14 (3) Receive buffer register for serializer 14 0x4400 02BC – – RBUF15 (3) Receive buffer register for serializer 15 Reads from XRBUF originate on peripheral configuration bus only when RBUSEL = 1 in RFMT. Reads from XRBUF originate on peripheral configuration bus only when RBUSEL = 1 in RFMT. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 71 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Figure 4-28 shows the bit layout of the CFGMCASP0 register and Table 4-19 contains a description of the bits. 31 8 Reserved 7 3 2 Reserved 0 AMUTEIN0 R/W, 0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Figure 4-28. CFGMCASP0 Register Bit Layout (0x4000 0018) Table 4-19. CFGMCASP0 Register Bit Field Description (0x4000 0018) BIT NO. 72 NAME 31:3 Reserved 2:0 AMUTEIN0 RESET VALUE READ WRITE DESCRIPTION N/A N/A Reads are indeterminate. Only 0s should be written to these bits. 0 R/W AMUTEIN0 Selects the source of the input to the McASP0 mute input. 000 = Select the input to be a constant '0' 001 = Select the input from AXR0[7]/SPI1_CLK 010 = Select the input from AXR0[8]/AXR1[5]/SPI1_SOMI 011 = Select the input from AXR0[9]/AXR1[4]/SPI1_SIMO 100 = Select the input from AHCLKR2 101 = Select the input from SPI0_SIMO 110 = Select the input from SPI0_SCS/I2C1_SCL 111 = Select the input from SPI0_ENA/I2C1_SDA Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Figure 4-29 shows the bit layout of the CFGMCASP1 register and Table 4-20 contains a description of the bits. 31 8 Reserved 7 3 2 Reserved 0 AMUTEIN1 R/W, 0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Figure 4-29. CFGMCASP1 Register Bit Layout (0x4000 001C) Table 4-20. CFGMCASP1 Register Bit Field Description (0x4000 001C) BIT NO. NAME 31:3 Reserved 2:0 AMUTEIN1 RESET VALUE READ WRITE DESCRIPTION N/A N/A Reads are indeterminate. Only 0s should be written to these bits. 0 R/W AMUTEIN1 Selects the source of the input to the McASP1 mute input. 000 = Select the input to be a constant '0' 001 = Select the input from AXR0[7]/SPI1_CLK 010 = Select the input from AXR0[8]/AXR1[5]/SPI1_SOMI 011 = Select the input from AXR0[9]/AXR1[4]/SPI1_SIMO 100 = Select the input from AHCLKR2 101 = Select the input from SPI0_SIMO 110 = Select the input from SPI0_SCS/I2C1_SCL 111 = Select the input from SPI0_ENA/I2C1_SDA Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 73 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Figure 4-30 shows the bit layout of the CFGMCASP2 register and Table 4-21 contains a description of the bits. 31 8 Reserved 7 3 2 Reserved 0 AMUTEIN2 R/W, 0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Figure 4-30. CFGMCASP2 Register Bit Layout (0x4000 0020) Table 4-21. CFGMCASP2 Register Bit Field Description (0x4000 0020) (1) BIT NO. (1) 74 NAME 31:3 Reserved 2:0 AMUTEIN2 RESET VALUE READ WRITE DESCRIPTION N/A N/A Reads are indeterminate. Only 0s should be written to these bits. 0 R/W AMUTEIN2 Selects the source of the input to the McASP2 mute input. 000 = Select the input to be a constant '0' 001 = Select the input from AXR0[7]/SPI1_CLK 010 = Select the input from AXR0[8]/AXR1[5]/SPI1_SOMI 011 = Select the input from AXR0[9]/AXR1[4]/SPI1_SIMO 100 = Select the input from AHCLKR2 101 = Select the input from SPI0_SIMO 110 = Select the input from SPI0_SCS/I2C1_SCL 111 = Select the input from SPI0_ENA/I2C1_SDA CFGMCASP2 is reserved on the C6722. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.13.2 McASP Electrical Data/Timing 4.13.2.1 Multichannel Audio Serial Port (McASP) Timing Table 4-22 and Table 4-23 assume testing over recommended operating conditions (see Figure 4-31 and Figure 4-32). Table 4-22. McASP Timing Requirements (1) NO. tc(AHCKRX) 2 tw(AHCKRX) 3 tc(ACKRX) 4 tw(ACKRX) 6 7 8 (1) (2) MIN 1 5 (2) tsu(AFRXC-ACKRX) th(ACKRX-AFRX) tsu(AXR-ACKRX) th(ACKRX-AXR) Cycle time, AHCLKR external, AHCLKR input 20 Cycle time, AHCLKX external, AHCLKX input 20 Pulse duration, AHCLKR external, AHCLKR input 7.5 Pulse duration, AHCLKX external, AHCLKX input 7.5 Cycle time, ACLKR external, ACLKR input greater of 2P or 20 ns Cycle time, ACLKX external, ACLKX input greater of 2P or 20 ns Pulse duration, ACLKR external, ACLKR input 10 Pulse duration, ACLKX external, ACLKX input 10 Setup time, AFSR input to ACLKR internal 8 Setup time, AFSX input to ACLKX internal 8 Setup time, AFSR input to ACLKR external input 3 Setup time, AFSX input to ACLKX external input 3 Setup time, AFSR input to ACLKR external output 3 Setup time, AFSX input to ACLKX external output 3 Hold time, AFSR input after ACLKR internal 0 Hold time, AFSX input after ACLKX internal 0 Hold time, AFSR input after ACLKR external input 3 Hold time, AFSX input after ACLKX external input 3 Hold time, AFSR input after ACLKR external output 3 Hold time, AFSX input after ACLKX external output 3 Setup time, AXRn input to ACLKR internal 8 Setup time, AXRn input to ACLKR external input 3 Setup time, AXRn input to ACLKR external output 3 Hold time, AXRn input after ACLKR internal 3 Hold time, AXRn input after ACLKR external input 3 Hold time, AXRn input after ACLKR external output 3 MAX UNIT ns ns ns ns ns ns ns ns ACLKX internal – ACLKXCTL.CLKXM = 1, PDIR.ACLKX = 1 ACLKX external input – ACLKXCTL.CLKXM = 0, PDIR.ACLKX = 0 ACLKX external output – ACLKXCTL.CLKXM = 0, PDIR.ACLKX = 1 ACLKR internal – ACLKRCTL.CLKRM = 1, PDIR.ACLKR =1 ACLKR external input – ACLKRCTL.CLKRM = 0, PDIR.ACLKR = 0 ACLKR external output – ACLKRCTL.CLKRM = 0, PDIR.ACLKR = 1 P = SYSCLK2 period Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 75 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-23. McASP Switching Characteristics (1) NO. 9 PARAMETER tc(AHCKRX) MIN Cycle time, AHCLKR internal, AHCLKR output 20 Cycle time, AHCLKR external, AHCLKR output 20 Cycle time, AHCLKX internal, AHCLKX output 20 Cycle time, AHCLKX external, AHCLKX output 10 11 12 13 tw(AHCKRX) tc(ACKRX) tw(ACKRX) td(ACKRX-FRX) 15 (1) (2) (3) (4) (5) (6) 76 td(ACLKX-AXRV) tdis(ACKX-AXRHZ) UNIT ns 20 Pulse duration, AHCLKR internal, AHCLKR output (AHR/2) – 2.5 (2) Pulse duration, AHCLKR external, AHCLKR output (AHR/2) – 2.5 (2) Pulse duration, AHCLKX internal, AHCLKX output (AHX/2) – 2.5 (3) Pulse duration, AHCLKX external, AHCLKX output (AHX/2) – 2.5 (3) Cycle time, ACLKR internal, ACLKR output greater of 2P or 20 ns (4) Cycle time, ACLKR external, ACLKR output greater of 2P or 20 ns (4) Cycle time, ACLKX internal, ACLKX output greater of 2P or 20 ns (4) Cycle time, ACLKX external, ACLKX output greater of 2P or 20 ns (4) Pulse duration, ACLKR internal, ACLKR output (AR/2) – 2.5 (5) Pulse duration, ACLKR external, ACLKR output (AR/2) – 2.5 (5) Pulse duration, ACLKX internal, ACLKX output (AX/2) – 2.5 (6) Pulse duration, ACLKX external, ACLKX output (AX/2) – 2.5 (6) ns ns ns Delay time, ACLKR internal, AFSR output 5 Delay time, ACLKX internal, AFSX output 5 Delay time, ACLKR external input, AFSR output 10 Delay time, ACLKX external input, AFSX output 10 Delay time, ACLKR external output, AFSR output 10 Delay time, ACLKX external output, AFSX output 10 Delay time, ACLKR internal, AFSR output –2 Delay time, ACLKX internal, AFSX output –2 Delay time, ACLKR external input, AFSR output 0 Delay time, ACLKX external input, AFSX output 0 Delay time, ACLKR external output, AFSR output 0 Delay time, ACLKX external output, AFSX output 0 –1 5 Delay time, ACLKX external input, AXRn output 0 10 Delay time, ACLKX external output, AXRn output 0 10 Disable time, ACLKX internal, AXRn output –3 10 Disable time, ACLKX external input, AXRn output –3 10 Disable time, ACLKX external output, AXRn output –3 10 Delay time, ACLKX internal, AXRn output 14 MAX ns ns ns ACLKX internal – ACLKXCTL.CLKXM = 1, PDIR.ACLKX = 1 ACLKX external input – ACLKXCTL.CLKXM = 0, PDIR.ACLKX = 0 ACLKX external output – ACLKXCTL.CLKXM = 0, PDIR.ACLKX = 1 ACLKR internal – ACLKRCTL.CLKRM = 1, PDIR.ACLKR =1 ACLKR external input – ACLKRCTL.CLKRM = 0, PDIR.ACLKR = 0 ACLKR external output – ACLKRCTL.CLKRM = 0, PDIR.ACLKR = 1 AHR - Cycle time, AHCLKR. AHX - Cycle time, AHCLKX. P = SYSCLK2 period AR - ACLKR period. AX - ACLKX period. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 2 1 2 AHCLKR/X (Falling Edge Polarity) AHCLKR/X (Rising Edge Polarity) 4 3 4 ACLKR/X (CLKRP = CLKXP = 0)(A) ACLKR/X (CLKRP = CLKXP = 1)(B) 6 5 AFSR/X (Bit Width, 0 Bit Delay) AFSR/X (Bit Width, 1 Bit Delay) AFSR/X (Bit Width, 2 Bit Delay) AFSR/X (Slot Width, 0 Bit Delay) AFSR/X (Slot Width, 1 Bit Delay) AFSR/X (Slot Width, 2 Bit Delay) 8 7 AXR[n] (Data In/Receive) A0 A. B. For CLKRP = CLKXP = receiver is configured for For CLKRP = CLKXP = receiver is configured for A1 A30 A31 B0 B1 B30 B31 C0 C1 C2 C3 C31 0, the McASP transmitter is configured for rising edge (to shift data out) and the McASP falling edge (to shift data in). 1, the McASP transmitter is configured for falling edge (to shift data out) and the McASP rising edge (to shift data in). Figure 4-31. McASP Input Timings Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 77 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 10 10 9 AHCLKR/X (Falling Edge Polarity) AHCLKR/X (Rising Edge Polarity) 12 11 12 ACLKR/X (CLKRP = CLKXP = 1)(A) ACLKR/X (CLKRP = CLKXP = 0)(B) 13 13 13 13 AFSR/X (Bit Width, 0 Bit Delay) AFSR/X (Bit Width, 1 Bit Delay) AFSR/X (Bit Width, 2 Bit Delay) 13 13 13 AFSR/X (Slot Width, 0 Bit Delay) AFSR/X (Slot Width, 1 Bit Delay) AFSR/X (Slot Width, 2 Bit Delay) 14 15 AXR[n] (Data Out/Transmit) A0 A. B. For CLKRP = CLKXP = receiver is configured for For CLKRP = CLKXP = receiver is configured for A1 A30 A31 B0 B1 B30 B31 C0 C1 C2 C3 C31 1, the McASP transmitter is configured for falling edge (to shift data out) and the McASP rising edge (to shift data in). 0, the McASP transmitter is configured for rising edge (to shift data out) and the McASP falling edge (to shift data in). Figure 4-32. McASP Output Timings 78 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.14 Serial Peripheral Interface Ports (SPI0, SPI1) 4.14.1 SPI Device-Specific Information Figure 4-33 is a block diagram of the SPI module, which is a simple shift register and buffer plus control logic. Data is written to the shift register before transmission occurs and is read from the buffer at the end of transmission. The SPI can operate either as a master, in which case, it initiates a transfer and drives the SPIx_CLK pin, or as a slave. Four clock phase and polarity options are supported as well as many data formatting options. SPIx_SIMO SPIx_SOMI Peripheral Configuration Bus Interrupt and DMA Requests 16-Bit Shift Register 16-Bit Buffer 16-Bit Emulation Buffer SPIx_ENA State GPIO Machine SPIx_SCS Control (all pins) Clock SPIx_CLK Control C672x SPI Module Figure 4-33. Block Diagram of SPI Module The SPI supports 3-, 4-, and 5-pin operation with three basic pins (SPIx_CLK, SPIx_SIMO, and SPIx_SOMI) and two optional pins (SPIx_SCS, SPIx_ENA). The optional SPIx_SCS (Slave Chip Select) pin is most useful to enable in slave mode when there are other slave devices on the same SPI port. The C672x will only shift data and drive the SPIx_SOMI pin when SPIx_SCS is held low. In slave mode, SPIx_ENA is an optional output and can be driven in either a push-pull or open-drain manner. The SPIx_ENA output provides the status of the internal transmit buffer (SPIDAT0/1 registers). In four-pin mode with the enable option, SPIx_ENA is asserted only when the transmit buffer is full, indicating that the slave is ready to begin another transfer. In five-pin mode, the SPIx_ENA is additionally qualified by SPIx_SCS being asserted. This allows a single handshake line to be shared by multiple slaves on the same SPI bus. In master mode, the SPIx_ENA pin is an optional input and the master can be configured to delay the start of the next transfer until the slave asserts SPIx_ENA. The addition of this handshake signal simplifies SPI communications and, on average, increases SPI bus throughput since the master does not need to delay each transfer long enough to allow for the worst-case latency of the slave device. Instead, each transfer can begin as soon as both the master and slave have actually serviced the previous SPI transfer. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 79 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Optional − Slave Chip Select SPIx_SCS SPIx_SCS Optional Enable (Ready) SPIx_ENA SPIx_ENA SPIx_CLK SPIx_CLK SPIx_SOMI SPIx_SOMI SPIx_SIMO SPIx_SIMO MASTER SPI SLAVE SPI Figure 4-34. Illustration of SPI Master-to-SPI Slave Connection 80 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.14.2 SPI Peripheral Registers Description(s) Table 4-24 is a list of the SPI registers. Table 4-24. SPIx Configuration Registers SPI0 BYTE ADDRESS SPI1 BYTE ADDRESS 0x4700 0000 0x4800 0000 SPIGCR0 Global Control Register 0 0x4700 0004 0x4800 0004 SPIGCR1 Global Control Register 1 0x4700 0008 0x4800 0008 SPIINT0 Interrupt Register 0x4700 000C 0x4800 000C SPILVL Interrupt Level Register 0x4700 0010 0x4800 0010 SPIFLG Flag Register 0x4700 0014 0x4800 0014 SPIPC0 Pin Control Register 0 (Pin Function) 0x4700 0018 0x4800 0018 SPIPC1 Pin Control Register 1 (Pin Direction) 0x4700 001C 0x4800 001C SPIPC2 Pin Control Register 2 (Pin Data In) 0x4700 0020 0x4800 0020 SPIPC3 Pin Control Register 3 (Pin Data Out) 0x4700 0024 0x4800 0024 SPIPC4 Pin Control Register 4 (Pin Data Set) 0x4700 0028 0x4800 0028 SPIPC5 Pin Control Register 5 (Pin Data Clear) 0x4700 002C 0x4800 002C Reserved Reserved - Do not write to this register 0x4700 0030 0x4800 0030 Reserved Reserved - Do not write to this register 0x4700 0034 0x4800 0034 Reserved Reserved - Do not write to this register REGISTER NAME DESCRIPTION 0x4700 0038 0x4800 0038 SPIDAT0 Shift Register 0 (without format select) 0x4700 003C 0x4800 003C SPIDAT1 Shift Register 1 (with format select) 0x4700 0040 0x4800 0040 SPIBUF Buffer Register 0x4700 0044 0x4800 0044 SPIEMU Emulation Register 0x4700 0048 0x4800 0048 SPIDELAY Delay Register 0x4700 004C 0x4800 004C SPIDEF Default Chip Select Register 0x4700 0050 0x4800 0050 SPIFMT0 Format Register 0 0x4700 0054 0x4800 0054 SPIFMT1 Format Register 1 0x4700 0058 0x4800 0058 SPIFMT2 Format Register 2 0x4700 005C 0x4800 005C SPIFMT3 Format Register 3 0x4700 0060 0x4800 0060 TGINTVECT0 Interrupt Vector for SPI INT0 0x4700 0064 0x4800 0064 TGINTVECT1 Interrupt Vector for SPI INT1 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 81 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.14.3 SPI Electrical Data/Timing 4.14.3.1 Serial Peripheral Interface (SPI) Timing Table 4-25 through Table 4-32 are not productin tested and are specified by design to 105°C (see Figure 4-35 through Figure 4-38). Table 4-25. General Timing Requirements for SPIx Master Modes (1) NO. tc(SPC)M Cycle Time, SPIx_CLK, All Master Modes 2 tw(SPCH)M Pulse Width High, SPIx_CLK, All Master Modes greater of 4P or 45 ns ns 3 tw(SPCL)M Pulse Width Low, SPIx_CLK, All Master Modes greater of 4P or 45 ns ns 5 6 7 8 (3) 82 MAX UNIT 1 4 (1) (2) MIN greater of 8P or 100 ns td(SIMO_SPC)M td(SPC_SIMO)M toh(SPC_SIMO)M tsu(SOMI_SPC)M tih(SPC_SOMI)M Delay, initial data bit valid on SPIx_SIMO to initial edge on SPIx_CLK (2) Delay, subsequent bits valid on SPIx_SIMO after transmit edge of SPIx_CLK Output hold time, SPIx_SIMO valid after receive edge of SPIxCLK, except for final bit (3) Input Setup Time, SPIx_SOMI valid before receive edge of SPIx_CLK Input Hold Time, SPIx_SOMI valid after receive edge of SPIx_CLK Polarity = 0, Phase = 0, to SPIx_CLK rising 4P Polarity = 0, Phase = 1, to SPIx_CLK rising 0.5tc(SPC)M + 4P Polarity = 1, Phase = 0, to SPIx_CLK falling 4P Polarity = 1, Phase = 1, to SPIx_CLK falling 0.5tc(SPC)M + 4P 256P ns ns Polarity = 0, Phase = 0, from SPIx_CLK rising 15 Polarity = 0, Phase = 1, from SPIx_CLK falling 15 Polarity = 1, Phase = 0, from SPIx_CLK falling 15 Polarity = 1, Phase = 1, from SPIx_CLK rising 15 ns Polarity = 0, Phase = 0, from SPIx_CLK falling 0.5tc(SPC)M – 10 Polarity = 0, Phase = 1, from SPIx_CLK rising 0.5tc(SPC)M – 10 Polarity = 1, Phase = 0, from SPIx_CLK rising 0.5tc(SPC)M – 10 Polarity = 1, Phase = 1, from SPIx_CLK falling 0.5tc(SPC)M – 10 Polarity = 0, Phase = 0, to SPIx_CLK falling 0.5P + 15 Polarity = 0, Phase = 1, to SPIx_CLK rising 0.5P + 15 Polarity = 1, Phase = 0, to SPIx_CLK rising 0.5P + 15 Polarity = 1, Phase = 1, to SPIx_CLK falling 0.5P + 15 Polarity = 0, Phase = 0, from SPIx_CLK falling 0.5P + 5 Polarity = 0, Phase = 1, from SPIx_CLK rising 0.5P + 5 Polarity = 1, Phase = 0, from SPIx_CLK rising 0.5P + 5 Polarity = 1, Phase = 1, from SPIx_CLK falling 0.5P + 5 ns ns ns P = SYSCLK2 period First bit may be MSB or LSB depending upon SPI configuration. MO(0) refers to first bit and MO(n) refers to last bit output on SPIx_SIMO. MI(0) refers to the first bit input and MI(n) refers to the last bit input on SPIx_SOMI. The final data bit will be held on the SPIx_SIMO pin until the SPIDAT0 or SPIDAT1 register is written with new data. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-26. General Timing Requirements for SPIx Slave Modes (1) NO. MIN MAX UNIT 9 tc(SPC)S Cycle Time, SPIx_CLK, All Slave Modes greater of 8P or 100 ns 10 tw(SPCH)S Pulse Width High, SPIx_CLK, All Slave Modes greater of 4P or 45 ns ns 11 tw(SPCL)S Pulse Width Low, SPIx_CLK, All Slave Modes greater of 4P or 45 ns ns 12 13 14 15 16 (1) (2) (3) (4) tsu(SOMI_SPC)S td(SPC_SOMI)S toh(SPC_SOMI)S tsu(SIMO_SPC)S tih(SPC_SIMO)S Setup time, transmit data written to SPI and output onto SPIx_SOMI pin before initial clock edge from master. (2) (3) Delay, subsequent bits valid on SPIx_SOMI after transmit edge of SPIx_CLK Output hold time, SPIx_SOMI valid after receive edge of SPIxCLK, except for final bit (4) Input Setup Time, SPIx_SIMO valid before receive edge of SPIx_CLK Input Hold Time, SPIx_SIMO valid after receive edge of SPIx_CLK Polarity = 0, Phase = 0, to SPIx_CLK rising 2P Polarity = 0, Phase = 1, to SPIx_CLK rising 2P Polarity = 1, Phase = 0, to SPIx_CLK falling 2P Polarity = 1, Phase = 1, to SPIx_CLK falling 2P 256P ns ns Polarity = 0, Phase = 0, from SPIx_CLK rising 2P + 15 Polarity = 0, Phase = 1, from SPIx_CLK falling 2P + 15 Polarity = 1, Phase = 0, from SPIx_CLK falling 2P + 15 Polarity = 1, Phase = 1, from SPIx_CLK rising 2P + 15 ns Polarity = 0, Phase = 0, from SPIx_CLK falling 0.5tc(SPC)S – 10 Polarity = 0, Phase = 1, from SPIx_CLK rising 0.5tc(SPC)S – 10 Polarity = 1, Phase = 0, from SPIx_CLK rising 0.5tc(SPC)S – 10 Polarity = 1, Phase = 1, from SPIx_CLK falling 0.5tc(SPC)S – 10 Polarity = 0, Phase = 0, to SPIx_CLK falling 0.5P + 15 Polarity = 0, Phase = 1, to SPIx_CLK rising 0.5P + 15 Polarity = 1, Phase = 0, to SPIx_CLK rising 0.5P + 15 Polarity = 1, Phase = 1, to SPIx_CLK falling 0.5P + 15 Polarity = 0, Phase = 0, from SPIx_CLK falling 0.5P + 5 Polarity = 0, Phase = 1, from SPIx_CLK rising 0.5P + 5 Polarity = 1, Phase = 0, from SPIx_CLK rising 0.5P + 5 Polarity = 1, Phase = 1, from SPIx_CLK falling 0.5P + 5 ns ns ns P = SYSCLK2 period First bit may be MSB or LSB depending upon SPI configuration. SO(0) refers to first bit and SO(n) refers to last bit output on SPIx_SOMI. SI(0) refers to the first bit input and SI(n) refers to the last bit input on SPIx_SIMO. Measured from the termination of the write of new data to the SPI module, as evidenced by new output data appearing on the SPIx_SOMI pin. In analyzing throughput requirements, additional internal bus cycles must be accounted for to allow data to be written to the SPI module by either the DSP CPU or the dMAX. The final data bit will be held on the SPIx_SOMI pin until the SPIDAT0 or SPIDAT1 register is written with new data. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 83 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-27. Additional (1) SPI Master Timings, 4-Pin Enable Option (2) NO. 17 (1) (2) (3) (4) (5) MIN td(ENA_SPC)M 18 (3) td(SPC_ENA)M Delay from slave assertion of SPIx_ENA active to first SPIx_CLK from master. (4) Max delay for slave to deassert SPIx_ENA after final SPIx_CLK edge to ensure master does not begin the next transfer. (5) MAX UNIT Polarity = 0, Phase = 0, to SPIx_CLK rising 3P + 15 Polarity = 0, Phase = 1, to SPIx_CLK rising 0.5tc(SPC)M + 3P + 15 Polarity = 1, Phase = 0, to SPIx_CLK falling 3P + 15 Polarity = 1, Phase = 1, to SPIx_CLK falling 0.5tc(SPC)M + 3P + 15 Polarity = 0, Phase = 0, from SPIx_CLK falling 0.5tc(SPC)M Polarity = 0, Phase = 1, from SPIx_CLK falling 0 Polarity = 1, Phase = 0, from SPIx_CLK rising 0.5tc(SPC)M Polarity = 1, Phase = 1, from SPIx_CLK rising 0 ns ns These parameters are in addition to the general timings for SPI master modes (Table 4-25). P = SYSCLK2 period Figure shows only Polarity = 0, Phase = 0 as an example. Table gives parameters for all four master clocking modes. In the case where the master SPI is ready with new data before SPIx_ENA assertion. In the case where the master SPI is ready with new data before SPIx_ENA deassertion. Table 4-28. Additional (1) SPI Master Timings, 4-Pin Chip Select Option (2) NO. 19 20 (1) (2) (3) (4) (5) (6) (7) 84 (3) MIN td(SCS_SPC)M td(SPC_SCS)M Delay from SPIx_SCS active to first SPIx_CLK (4) (5) Delay from final SPIx_CLK edge to master deasserting SPIx_SCS (6) (7) Polarity = 0, Phase = 0, to SPIx_CLK rising 2P – 10 Polarity = 0, Phase = 1, to SPIx_CLK rising 0.5tc(SPC)M + 2P – 10 Polarity = 1, Phase = 0, to SPIx_CLK falling 2P – 10 Polarity = 1, Phase = 1, to SPIx_CLK falling 0.5tc(SPC)M + 2P – 10 Polarity = 0, Phase = 0, from SPIx_CLK falling 0.5tc(SPC)M Polarity = 0, Phase = 1, from SPIx_CLK falling 0 Polarity = 1, Phase = 0, from SPIx_CLK rising 0.5tc(SPC)M Polarity = 1, Phase = 1, from SPIx_CLK rising 0 MAX UNIT ns ns These parameters are in addition to the general timings for SPI master modes (Table 4-25). P = SYSCLK2 period Figure shows only Polarity = 0, Phase = 0 as an example. Table gives parameters for all four master clocking modes. In the case where the master SPI is ready with new data before SPIx_SCS assertion. This delay can be increased under software control by the register bit field SPIDELAY.C2TDELAY[4:0]. Except for modes when SPIDAT1.CSHOLD is enabled and there is additional data to transmit. In this case, SPIx_SCS will remain asserted. This delay can be increased under software control by the register bit field SPIDELAY.T2CDELAY[4:0]. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-29. Additional (1) SPI Master Timings, 5-Pin Option (2) NO. 18 20 21 22 23 MIN td(SPC_ENA)M td(SPC_SCS)M td(SCSL_ENAL)M td(SCS_SPC)M td(ENA_SPC)M Max delay for slave to deassert SPIx_ENA after final SPIx_CLK edge to ensure master does not begin the next transfer. (4) Delay from final SPIx_CLK edge to master deasserting SPIx_SCS (5) (6) Delay from assertion of SPIx_ENA low to first SPIx_CLK edge. (10) MAX UNIT Polarity = 0, Phase = 0, from SPIx_CLK falling 0.5tc(SPC)M Polarity = 0, Phase = 1, from SPIx_CLK falling 0 Polarity = 1, Phase = 0, from SPIx_CLK rising 0.5tc(SPC)M Polarity = 1, Phase = 1, from SPIx_CLK rising 0 ns Polarity = 0, Phase = 0, from SPIx_CLK falling 0.5tc(SPC)M Polarity = 0, Phase = 1, from SPIx_CLK falling 0 Polarity = 1, Phase = 0, from SPIx_CLK rising 0.5tc(SPC)M Polarity = 1, Phase = 1, from SPIx_CLK rising 0 ns Max delay for slave SPI to drive SPIx_ENA valid after master asserts SPIx_SCS to delay the master from beginning the next transfer. Delay from SPIx_SCS active to first SPIx_CLK (7) (8) (9) (3) 0.5P Polarity = 0, Phase = 0, to SPIx_CLK rising 2P – 10 Polarity = 0, Phase = 1, to SPIx_CLK rising 0.5tc(SPC)M + 2P – 10 Polarity = 1, Phase = 0, to SPIx_CLK falling 2P – 10 Polarity = 1, Phase = 1, to SPIx_CLK falling 0.5tc(SPC)M + 2P – 10 ns ns Polarity = 0, Phase = 0, to SPIx_CLK rising 3P + 15 Polarity = 0, Phase = 1, to SPIx_CLK rising 0.5tc(SPC)M + 3P + 15 Polarity = 1, Phase = 0, to SPIx_CLK falling 3P + 15 Polarity = 1, Phase = 1, to SPIx_CLK falling 0.5tc(SPC)M + 3P + 15 ns (1) (2) (3) (4) (5) These parameters are in addition to the general timings for SPI master modes (Table 4-25). P = SYSCLK2 period Figure shows only Polarity = 0, Phase = 0 as an example. Table gives parameters for all four master clocking modes. In the case where the master SPI is ready with new data before SPIx_ENA deassertion. Except for modes when SPIDAT1.CSHOLD is enabled and there is additional data to transmit. In this case, SPIx_SCS will remain asserted. (6) This delay can be increased under software control by the register bit field SPIDELAY.T2CDELAY[4:0]. (7) If SPIx_ENA is asserted immediately such that the transmission is not delayed by SPIx_ENA. (8) In the case where the master SPI is ready with new data before SPIx_SCS assertion. (9) This delay can be increased under software control by the register bit field SPIDELAY.C2TDELAY[4:0]. (10) If SPIx_ENA was initially deasserted high and SPIx_CLK is delayed. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 85 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-30. Additional (1) SPI Slave Timings, 4-Pin Enable Option (2) NO. 24 (1) (2) (3) (3) MIN Delay from final SPIx_CLK edge to slave deasserting SPIx_ENA. td(SPC_ENAH)S MAX UNIT Polarity = 0, Phase = 0, from SPIx_CLK falling P – 10 3P + 15 Polarity = 0, Phase = 1, from SPIx_CLK falling 0.5tc(SPC)M + P – 10 0.5tc(SPC)M + 3P + 15 Polarity = 1, Phase = 0, from SPIx_CLK rising P – 10 3P + 15 Polarity = 1, Phase = 1, from SPIx_CLK rising 0.5tc(SPC)M + P – 10 0.5tc(SPC)M + 3P + 15 ns These parameters are in addition to the general timings for SPI slave modes (Table 4-26). P = SYSCLK2 period Figure shows only Polarity = 0, Phase = 0 as an example. Table gives parameters for all four slave clocking modes. Table 4-31. Additional (1) SPI Slave Timings, 4-Pin Chip Select Option (2) NO. 25 26 (1) (2) (3) 86 (3) MIN td(SCSL_SPC)S td(SPC_SCSH)S Required delay from SPIx_SCS asserted at slave to first SPIx_CLK edge at slave. Required delay from final SPIx_CLK edge before SPIx_SCS is deasserted. MAX P Polarity = 0, Phase = 0, from SPIx_CLK falling 0.5tc(SPC)M + P + 10 Polarity = 0, Phase = 1, from SPIx_CLK falling P + 10 Polarity = 1, Phase = 0, from SPIx_CLK rising 0.5tc(SPC)M + P + 10 Polarity = 1, Phase = 1, from SPIx_CLK rising P + 10 UNIT ns ns 27 tena(SCSL_SOMI)S Delay from master asserting SPIx_SCS to slave driving SPIx_SOMI valid P + 15 ns 28 tdis(SCSH_SOMI)S Delay from master deasserting SPIx_SCS to slave 3-stating SPIx_SOMI P + 15 ns These parameters are in addition to the general timings for SPI slave modes (Table 4-26). P = SYSCLK2 period Figure shows only Polarity = 0, Phase = 0 as an example. Table gives parameters for all four slave clocking modes. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-32. Additional (1) SPI Slave Timings, 5-Pin Option (2) NO. 25 26 MIN td(SCSL_SPC)S td(SPC_SCSH)S Required delay from SPIx_SCS asserted at slave to first SPIx_CLK edge at slave. Required delay from final SPIx_CLK edge before SPIx_SCS is deasserted. MAX P Polarity = 0, Phase = 0, from SPIx_CLK falling 0.5tc(SPC)M + P + 10 Polarity = 0, Phase = 1, from SPIx_CLK falling P + 10 Polarity = 1, Phase = 0, from SPIx_CLK rising 0.5tc(SPC)M + P + 10 Polarity = 1, Phase = 1, from SPIx_CLK rising P + 10 UNIT ns ns 27 tena(SCSL_SOMI)S Delay from master asserting SPIx_SCS to slave driving SPIx_SOMI valid P + 10 ns 28 tdis(SCSH_SOMI)S Delay from master deasserting SPIx_SCS to slave 3-stating SPIx_SOMI P + 10 ns 29 tena(SCSL_ENA)S Delay from master deasserting SPIx_SCS to slave driving SPIx_ENA valid 15 ns 30 (1) (2) (3) (4) (3) tdis(SPC_ENA)S Delay from final clock receive edge on SPIx_CLK to slave 3-stating or driving high SPIx_ENA. (4) Polarity = 0, Phase = 0, from SPIx_CLK falling 2P + 15 Polarity = 0, Phase = 1, from SPIx_CLK rising 2P + 15 Polarity = 1, Phase = 0, from SPIx_CLK rising 2P + 15 Polarity = 1, Phase = 1, from SPIx_CLK falling 2P + 15 ns These parameters are in addition to the general timings for SPI slave modes (Table 4-26). P = SYSCLK2 period Figure shows only Polarity = 0, Phase = 0 as an example. Table gives parameters for all four slave clocking modes. SPIx_ENA is driven low after the transmission completes if the SPIINT0.ENABLE_HIGHZ bit is programmed to 0. Otherwise it is 3-stated. If 3-stated, an external pullup resistor should be used to provide a valid level to the master. This option is useful when tying several SPI slave devices to a single master. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 87 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 1 2 MASTER MODE POLARITY = 0 PHASE = 0 3 SPIx_CLK 5 4 SPI_SIMO MO(0) 7 SPI_SOMI 6 MO(1) MO(n−1) MO(n) MI(n−1) MI(n) 8 MI(0) MI(1) MASTER MODE POLARITY = 0 PHASE = 1 4 SPIx_CLK 6 5 SPI_SIMO MO(0) 7 SPI_SOMI MO(1) MO(n−1) MI(1) MI(n−1) MO(n) 8 MI(0) MI(n) 4 MASTER MODE POLARITY = 1 PHASE = 0 SPIx_CLK 5 SPI_SIMO 6 MO(0) 7 SPI_SOMI MO(1) MO(n−1) MO(n) 8 MI(0) MI(1) MI(n−1) MI(n) MASTER MODE POLARITY = 1 PHASE = 1 SPIx_CLK 5 4 SPI_SIMO MO(0) 7 SPI_SOMI MI(0) 6 MO(1) MO(n−1) MI(1) MI(n−1) MO(n) 8 MI(n) Figure 4-35. SPI Timings—Master Mode 88 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 9 12 10 SLAVE MODE POLARITY = 0 PHASE = 0 11 SPIx_CLK 15 SPI_SIMO 16 SI(0) SI(1) SI(n−1) 13 SPI_SOMI SO(0) SI(n) 14 SO(1) SO(n−1) 12 SO(n) SLAVE MODE POLARITY = 0 PHASE = 1 SPIx_CLK 15 SPI_SIMO 16 SI(0) SI(1) 13 SPI_SOMI SO(0) SI(n−1) SI(n) SO(n−1) SO(n) 14 SO(1) SLAVE MODE POLARITY = 1 PHASE = 0 12 SPIx_CLK 15 SPI_SIMO 16 SI(0) SI(1) SI(n−1) 13 SPI_SOMI SO(0) SI(n) 14 SO(1) SO(n−1) SO(n) SLAVE MODE POLARITY = 1 PHASE = 1 12 SPIx_CLK 15 16 SPI_SIMO SI(0) SPI_SOMI SO(0) SI(1) 13 SI(n−1) SI(n) 14 SO(1) SO(n−1) SO(n) Figure 4-36. SPI Timings—Slave Mode Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 89 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com MASTER MODE 4 PIN WITH ENABLE 17 18 SPIx_CLK SPI_SIMO MO(0) SPI_SOMI MI(0) MO(1) MO(n−1) MI(1) MI(n−1) MO(n) MI(n) SPIx_ENA MASTER MODE 4 PIN WITH CHIP SELECT 19 20 SPIx_CLK SPI_SIMO MO(0) SPI_SOMI MI(0) MO(1) MO(n−1) MO(n) MI(1) MI(n−1) MI(n) SPIx_SCS MASTER MODE 5 PIN 22 20 MO(1) 23 18 SPIx_CLK SPI_SIMO MO(0) MO(n−1) MO(n) SPI_SOMI 21 SPIx_ENA MI(0) MI(1) MI(n−1) MI(n) DESEL(A) DESEL(A) SPIx_SCS A. DESELECTED IS PROGRAMMABLE EITHER HIGH OR 3−STATE (REQUIRES EXTERNAL PULLUP) Figure 4-37. SPI Timings—Master Mode (4-Pin and 5-Pin) 90 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com SLAVE MODE 4 PIN WITH ENABLE 24 SPIx_CLK SPI_SOMI SO(0) SO(1) SO(n−1) SO(n) SPI_SIMO SI(0) SPIx_ENA SI(1) SI(n−1) SI(n) SLAVE MODE 4 PIN WITH CHIP SELECT 26 25 SPIx_CLK 27 SPI_SOMI 28 SO(n−1) SO(0) SO(1) SO(n) SPI_SIMO SI(0) SPIx_SCS SI(1) SI(n−1) SI(n) SLAVE MODE 5 PIN 26 30 25 SPIx_CLK 27 SPI_SOMI 28 SO(1) SO(0) SO(n−1) SO(n) SPI_SIMO 29 SPIx_ENA SI(0) SI(1) SI(n−1) SI(n) DESEL(A) DESEL(A) SPIx_SCS A. DESELECTED IS PROGRAMMABLE EITHER HIGH OR 3−STATE (REQUIRES EXTERNAL PULLUP) Figure 4-38. SPI Timings—Slave Mode (4-Pin and 5-Pin) Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 91 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.15 Inter-Integrated Circuit Serial Ports (I2C0, I2C1) 4.15.1 I2C Device-Specific Information Having two I2C modules on the C672x simplifies system architecture, since one module may be used by the DSP to control local peripherals ICs (DACs, ADCs, etc.) while the other may be used to communicate with other controllers in a system or to implement a user interface. Figure 4-39 is block diagram of the C672x I2C Module. Each I2C port supports: • Compatible with Philips® I2C Specification Revision 2.1 (January 2000) • Fast Mode up to 400 Kbps (no fail-safe I/O buffers) • Noise Filter to Remove Noise 50 ns or less • Seven- and Ten-Bit Device Addressing Modes • Master (Transmit/Receive) and Slave (Transmit/Receive) Functionality • Events: DMA, Interrupt, or Polling • General-Purpose I/O Capability if not used as I2C CAUTION The C672x I2C pins use a standard ±8 mA LVCMOS buffer, not the slow I/O buffer defined in the I2C specification. Series resistors may be necessary to reduce noise at the system level. 92 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com C672x I2C Module Control Clock Prescaler I2CPSCx Prescaler Register I2CCOARx Own Address Register I2CSARx Slave Address Register Bit Clock Generator I2Cx_SCL Noise Filter I2CCLKHx Clock Divide High Register I2CCMDRx Mode Register I2CCLKLx Clock Divide Low Register I2CEMDRx Extended Mode Register I2CCNTx Data Count Register I2CPID1 Peripheral ID Register 1 I2CPID2 Peripheral ID Register 2 Transmit I2Cx_SDA Noise Filter I2CXSRx Transmit Shift Register I2CDXRx Transmit Buffer Interrupt/DMA Receive Interrupt Enable Register I2CIERx I2CDRRx Receive Buffer Interrupt Status Register Interrupt Source Register I2CSTRx I2CRSRx Receive Shift Register I2CSRCx I2CPFUNC Pin Function Register I2CPDOUT Peripheral Configuration Bus Interrupt DMA Requests Control I2CPDIR I2CPDIN Pin Direction Register Pin Data In Register Pin Data Out Register Pin Data Set Register Pin Data Clear Register I2CPDSET I2CPDCLR Figure 4-39. I2C Module Block Diagram Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 93 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.15.2 I2C Peripheral Registers Description(s) Table 4-33 is a list of the I2C registers. Table 4-33. I2Cx Configuration Registers 94 I2C0 BYTE ADDRESS I2C1 BYTE ADDRESS 0x4900 0000 0x4A00 0000 I2COAR Own Address Register 0x4900 0004 0x4A00 0004 I2CIER Interrupt Enable Register 0x4900 0008 0x4A00 0008 I2CSTR Interrupt Status Register 0x4900 000C 0x4A00 000C I2CCLKL Clock Low Time Divider Register 0x4900 0010 0x4A00 0010 I2CCLKH Clock High Time Divider Register 0x4900 0014 0x4A00 0014 I2CCNT Data Count Register 0x4900 0018 0x4A00 0018 I2CDRR Data Receive Register 0x4900 001C 0x4A00 001C I2CSAR Slave Address Register 0x4900 0020 0x4A00 0020 I2CDXR Data Transmit Register 0x4900 0024 0x4A00 0024 I2CMDR Mode Register 0x4900 0028 0x4A00 0028 I2CISR Interrupt Source Register 0x4900 002C 0x4A00 002C I2CEMDR Extended Mode Register 0x4900 0030 0x4A00 0030 I2CPSC Prescale Register 0x4900 0034 0x4A00 0034 I2CPID1 Peripheral Identification Register 1 0x4900 0038 0x4A00 0038 I2CPID2 Peripheral Identification Register 2 0x4900 0048 0x4A00 0048 I2CPFUNC Pin Function Register 0x4900 004C 0x4A00 004C I2CPDIR Pin Direction Register 0x4900 0050 0x4A00 0050 I2CPDIN Pin Data Input Register 0x4900 0054 0x4A00 0054 I2CPDOUT Pin Data Output Register 0x4900 0058 0x4A00 0058 I2CPDSET Pin Data Set Register 0x4900 005C 0x4A00 005C I2CPDCLR Pin Data Clear Register REGISTER NAME DESCRIPTION Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.15.3 I2C Electrical Data/Timing 4.15.3.1 Inter-Integrated Circuit (I2C) Timing Table 4-34 and Table 4-35 are not production tested and are specified by design to 105°C (see Figure 4-40 and Figure 4-41). Table 4-34. I2C Input Timing Requirements NO. MIN 1 tc(SCL) Cycle time, I2Cx_SCL 2 tsu(SCLH-SDAL) Setup time, I2Cx_SCL high before I2Cx_SDA low 3 th(SCLL-SDAL) Hold time, I2Cx_SCL low after I2Cx_SDA low 4 tw(SCLL) Pulse duration, I2Cx_SCL low 5 tw(SCLH) Pulse duration, I2Cx_SCL high 6 tsu(SDA-SCLH) Setup time, I2Cx_SDA before I2Cx_SCL high 7 th(SDA-SCLL) Hold time, I2Cx_SDA after I2Cx_SCL low 8 tw(SDAH) Pulse duration, I2Cx_SDA high 9 tr(SDA) Rise time, I2Cx_SDA 10 tr(SCL) Rise time, I2Cx_SCL 11 tf(SDA) Fall time, I2Cx_SDA 12 tf(SCL) Fall time, I2Cx_SCL 13 tsu(SCLH-SDAH) Setup time, I2Cx_SCL high before I2Cx_SDA high 14 tw(SP) Pulse duration, spike (must be suppressed) 15 Cb Capacitive load for each bus line Standard Mode 10 Fast Mode 2.5 Standard Mode 4.7 Fast Mode 0.6 Standard Mode 0.6 Standard Mode 4.7 Fast Mode 1.3 0.6 Standard Mode 250 Fast Mode 100 Standard Mode 0 Fast Mode 0 Standard Mode 4.7 Fast Mode 1.3 Standard Mode Fast Mode Standard Mode Standard Mode Standard Mode 0.9 0.6 Standard Mode N/A 0 μs μs 300 300 300 300 4 Fast Mode Fast Mode ns 300 20 + 0.1Cb Standard Mode μs 300 20 + 0.1Cb Fast Mode μs 1000 20 + 0.1Cb Fast Mode μs 1000 20 + 0.1Cb Fast Mode μs 4 Fast Mode UNIT μs 4 Fast Mode Standard Mode MAX ns ns ns ns μs 50 Standard Mode 400 Fast Mode 400 ns pF Table 4-35. I2C Switching Characteristics (1) NO. (1) PARAMETER 16 tc(SCL) Cycle time, I2Cx_SCL 17 tsu(SCLH-SDAL) Setup time, I2Cx_SCL high before I2Cx_SDA low 18 th(SDAL-SCLL) Hold time, I2Cx_SCL low after I2Cx_SDA low 19 tw(SCLL) Pulse duration, I2Cx_SCL low MIN Standard Mode 10 Fast Mode 2.5 Standard Mode 4.7 Fast Mode 0.6 Standard Mode MAX 4 Fast Mode 0.6 Standard Mode 4.7 Fast Mode 1.3 UNIT μs μs μs μs I2C must be configured correctly to meet the timings in Table 4-35. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 95 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-35. I2C Switching Characteristics(1) (continued) NO. PARAMETER MIN Standard Mode MAX 4 μs 20 tw(SCLH) Pulse duration, I2Cx_SCL high 21 tsu(SDAV-SCLH) Setup time, I2Cx_SDA valid before I2Cx_SCL high 22 th(SCLL-SDAV) Hold time, I2Cx_SDA valid after I2Cx_SCL low 23 tw(SDAH) Pulse duration, I2Cx_SDA high 28 tsu(SCLH-SDAH) Setup time, I2Cx_SCL high before I2Cx_SDA high Standard Mode 29 Cb Capacitive load on each bus line from this device Standard Mode 10 Fast Mode 10 Fast Mode 0.6 Standard Mode 250 Fast Mode 100 Standard Mode 0 Fast Mode 0 Standard Mode 4.7 Fast Mode 1.3 ns 0.9 μs μs 4 Fast Mode UNIT μs 0.6 11 pF 9 I2Cx_SDA 6 8 14 4 13 5 10 I2Cx_SCL 1 12 3 2 7 3 Stop Start Repeated Start Stop Figure 4-40. I2C Receive Timings 26 24 I2Cx_SDA 21 23 19 28 20 25 I2Cx_SCL 16 27 18 17 22 18 Stop Start Repeated Start Stop Figure 4-41. I2C Transmit Timings 96 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.16 Real-Time Interrupt (RTI) Timer With Digital Watchdog 4.16.1 RTI/Digital Watchdog Device-Specific Information C672x includes an RTI timer module which is used to generate periodic interrupts. This module also includes an optional digital watchdog feature. Figure 4-42 contains a block diagram of the RTI module. SYSCLK2 Counter 0 32-Bit + 32-Bit Prescale (Used by DSP BIOS) Capture 0 32-Bit + 32-Bit Prescale Counter 1 32-Bit + 32-Bit Prescale Capture 1 32-Bit + 32-Bit Prescale Compare 0 32-Bit RTI Interrupt 0 Compare 1 32-Bit RTI Interrupt 1 Compare 2 32-Bit RTI Interrupt 2 Compare 3 32-Bit RTI Interrupt 3 Digital Watchdog 25-Bit Counter Controlled by CFGRTI Register McASP0,1,2 Transmit/Receive DMA Events RESET (Internal Only) Watchdog Key Register 16-Bit Key McASP0,1,2 Transmit/Receive DMA Events Figure 4-42. RTI Timer Block Diagram The RTI timer module consists of two independent counters which are both clocked from SYSCLK2 (but may be started individually and may have different prescaler settings). The counters provide the timebase against which four output comparators operate. These comparators may be programmed to generate periodic interrupts. The comparators include an adder which automatically updates the compare value after each periodic interrupt. This means that the DSP only needs to initialize the comparator once with the interrupt period. The two input captures can be triggered from any of the McASP0, McASP1, or McASP2 DMA events. The device configuration register which selects the McASP events to measure is defined in Table 4-37. Measuring the time difference between these events provides an accurate measure of the sample rates at which the McASPs are transmitting and receiving. This measurement can be useful as a hardware assist for a software asynchronous sample rate converter algorithm. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 97 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com The digital watchdog is disabled by default. Once enabled, a sequence of two 16-bit key values (0xE51A followed by 0xA35C in two separate writes) must be continually written to the key register before the watchdog counter counts down to zero; otherwise, the DSP will be reset. This feature can be used to provide an added measure of robustness against a software failure. If the application fails and ceases to write to the watchdog key; the watchdog will respond by resetting the DSP and thereby restarting the application. Note that Counter 0 and Compare 0 are used by DSP BIOS to generate the tick counter it requires; however, Capture 0 is still available for use by the application as well as the remaining RTI resources. 4.16.2 RTI/Digital Watchdog Registers Description(s) Table 4-36 is a list of the RTI registers. Table 4-36. RTI Registers BYTE ADDRESS REGISTER NAME DESCRIPTION Device-Level Configuration Registers Controlling RTI 0x4000 0014 CFGRTI Selects the sources for the RTI input captures from among the six McASP DMA event. 0x4200 0000 RTIGCTRL Global Control Register. Starts / stops the counters. 0x4200 0004 Reserved Reserved bit. 0x4200 0008 RTICAPCTRL Capture Control. Controls the capture source for the counters. 0x4200 000C RTICOMPCTRL Compare Control. Controls the source for the compare registers. 0x4200 0010 RTIFRC0 Free-Running Counter 0. Current value of free-running counter 0. 0x4200 0014 RTIUC0 Up-Counter 0. Current value of prescale counter 0. 0x4200 0018 RTICPUC0 Compare Up-Counter 0. Compare value compared with prescale counter 0. 0x4200 0020 RTICAFRC0 Capture Free-Running Counter 0. Current value of free-running counter 0 on external event. 0x4200 0024 RTICAUC0 Capture Up-Counter 0. Current value of prescale counter 0 on external event. 0x4200 0030 RTIFRC1 Free-Running Counter 1. Current value of free-running counter 1. 0x4200 0034 RTIUC1 Up-Counter 1. Current value of prescale counter 1. 0x4200 0038 RTICPUC1 Compare Up-Counter 1. Compare value compared with prescale counter 1. 0x4200 0040 RTICAFRC1 Capture Free-Running Counter 1. Current value of free-running counter 1 on external event. 0x4200 0044 RTICAUC1 Capture Up-Counter 1. Current value of prescale counter 1 on external event. 0x4200 0050 RTICOMP0 Compare 0. Compare value to be compared with the counters. 0x4200 0054 RTIUDCP0 Update Compare 0. Value to be added to the compare register 0 value on compare match. RTI Internal Registers 98 0x4200 0058 RTICOMP1 Compare 1. Compare value to be compared with the counters. 0x4200 005C RTIUDCP1 Update Compare 1. Value to be added to the compare register 1 value on compare match. 0x4200 0060 RTICOMP2 Compare 2. Compare value to be compared with the counters. 0x4200 0064 RTIUDCP2 Update Compare 2. Value to be added to the compare register 2 value on compare match. 0x4200 0068 RTICOMP3 Compare 3. Compare value to be compared with the counters. 0x4200 006C RTIUDCP3 Update Compare 3. Value to be added to the compare register 3 value on compare match. 0x4200 0070 Reserved Reserved bit. 0x4200 0074 Reserved Reserved bit. 0x4200 0080 RTISETINT Set Interrupt Enable. Sets interrupt enable bits int RTIINTCTRL without having to do a read-modify-write operation. 0x4200 0084 RTICLEARINT Clear Interrupt Enable. Clears interrupt enable bits int RTIINTCTRL without having to do a read-modify-write operation. 0x4200 0088 RTIINTFLAG Interrupt Flags. Interrupt pending bits. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-36. RTI Registers (continued) BYTE ADDRESS REGISTER NAME DESCRIPTION 0x4200 0090 RTIDWDCTRL Digital Watchdog Control. Enables the Digital Watchdog. 0x4200 0094 RTIDWDPRLD Digital Watchdog Preload. Sets the experation time of the Digital Watchdog. 0x4200 0098 RTIWDSTATUS Watchdog Status. Reflects the status of Analog and Digital Watchdog. 0x4200 009C RTIWDKEY Watchdog Key. Correct written key values discharge the external capacitor. 0x4200 00A0 RTIDWDCNTR Digital Watchdog Down-Counter Figure 4-43 shows the bit layout of the CFGRTI register and Table 4-37 contains a description of the bits. 31 8 Reserved 7 6 4 Reserved CAPSEL1 3 2 Reserved 0 CAPSEL0 R/W, 0 R/W, 0 LEGEND: R/W = Read/Write; R = Read only; -n = value after reset Figure 4-43. CFGRTI Register Bit Layout (0x4000 0014) Table 4-37. CFGRTI Register Bit Field Description (0x4000 0014) BIT NO. NAME RESET VALUE READ WRITE DESCRIPTION 31:7,3 Reserved N/A N/A Reads are indeterminate. Only 0s should be written to these bits. 6:4 CAPSEL1 0 R/W 2:0 CAPSEL0 0 R/W CAPSEL0 selects the input to the RTI Input Capture 0 function. CAPSEL1 selects the input to the RTI Input Capture 1 function. The encoding is the same for both fields: 000 = Select McASP0 Transmit DMA Event 001 = Select McASP0 Receive DMA Event 010 = Select McASP1 Transmit DMA Event 011 = Select McASP1 Receive DMA Event 100 = Select McASP2 Transmit DMA Event 101 = Select McASP2 Receive DMA Event Other values are reserved and their effect is not determined. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 99 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.17 External Clock Input From Oscillator or CLKIN Pin The C672x device includes two choices to provide an external clock input, which is fed to the on-chip PLL to generate high-frequency system clocks. These options are illustrated in Figure 4-44. • Figure 4-44 (a) illustrates the option that uses an on-chip 1.2-V oscillator with external crystal circuit. (TI strongly encourages each customer to submit samples of the device to the crystal vendors for validation. The vendors are equipped to determine what load capacitors will best tune their crystal to the microcontroller device for optimum start-up and operation over temperature/voltage extremes.) • Figure 4-44 (b) illustrates the option that uses an external 3.3-V LVCMOS-compatible clock input with the CLKIN pin. Note that the two clock inputs are logically combined internally before the PLL so the clock input that is not used must be tied to ground. CVDD (1.2 V) C5 OSCVDD C7 OSCVDD OSCIN OSCIN X1 RB C8 Clock Input From OSCIN to PLL RS OSCOUT C6 Clock Input From CLKIN to PLL NC OSCOUT OSCVSS OSCVSS CLKIN CLKIN On-Chip 1.2-V Oscillator External 3.3-V LVCMOS-Compatible Clock Source (a) (b) Figure 4-44. C672x Clock Input Options If the on-chip oscillator is chosen, then the recommended component values for Figure 4-44 (a) are listed in Table 4-38. Table 4-38. Recommended On-Chip Oscillator Components FREQUENCY XTAL TYPE X1 C5 (1) C6 (1) C7 C8 RB RS 22.579 AT-49 KDS 1AF225796A 470 pF 470 pF 8 pF 8 pF 1 MΩ 0Ω 22.579 SMD-49 KDS 1AS225796AG 470 pF 470 pF 8 pF 8 pF 1 MΩ 0Ω 24.576 AT-49 KDS 1AF245766AAA 470 pF 470 pF 8 pF 8 pF 1 MΩ 0Ω 24.576 SMD-49 KDS 1AS245766AHA 470 pF 470 pF 8 pF 8 pF 1 MΩ 0Ω (1) 100 Capacitors C5 and C6 are used to reduce oscillator jitter, but are optional. If C5 and C6 are not used, then the node connecting capacitors C7 and C8 should be tied to OSCVSS and OSCVDD should be tied to CVDD. Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.17.1 Clock Electrical Data/Timing Table 4-39 assumes testing over recommended operating conditions. Table 4-39. CLKIN Timing Requirements NO. MIN MAX UNIT 12 25 MHz 1 fosc Oscillator frequency range (OSCIN/OSCOUT) 2 tc(CLKIN) Cycle time, external clock driven on CLKIN 20 ns 3 tw(CLKINH) Pulse width, CLKIN high 0.4tc(CLKIN) ns 4 tw(CLKINL) Pulse width, CLKIN low 0.4tc(CLKIN) ns 5 tt(CLKIN) Transition time, CLKIN 6 fPLL Frequency range of PLL input 12 5 ns 50 MHz Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 101 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.18 Phase-Locked Loop (PLL) 4.18.1 PLL Device-Specific Information The C672x DSP generates the high-frequency internal clocks it requires through an on-chip PLL. The input to the PLL is either from the on-chip oscillator (OSCIN pin) or from an external clock on the CLKIN pin. The PLL outputs four clocks that have programmable divider options. Figure 4-45 illustrates the PLL Topology. The PLL is disabled by default after a device reset. It must be configured by software according to the allowable operating conditions listed in Table 4-40 before enabling the DSP to run from the PLL by setting PLLEN = 1. PLLEN (PLL_CSR[0]) Clock Input from CLKIN or OSCIN Divider D0 (/1 to /32) PLLREF PLL x4 to x25 PLLOUT 1 0 Divider D1 (/1 to /32) SYSCLK1 Divider D2 (/1 to /32) SYSCLK2 Divider D3 (/1 to /32) SYSCLK3 CPU and Memory Peripherals and dMAX EMIF AUXCLK McASP0,1,2 Figure 4-45. PLL Topology 102 Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com Table 4-40. Allowed PLL Operating Conditions PARAMETER DEFAULT VALUE ALLOWED SETTING OR RANGE MIN 1 PLLRST = 1 assertion time during initialization N/A 125 ns 2 Lock time before setting PLLEN = 1. After changing D0, PLLM, or input clock. N/A 187.5 µs 3 PLL input frequency (PLLREF after D0 (1)) 4 PLL multiplier values (PLLM) (2) 12 MHz 50 MHz x13 x4 x25 N/A 140 MHz 5 PLL output frequency (PLLOUT before dividers D1, D2, D3) 6 SYSCLK1 frequency (set by PLLM and dividers D0, D1) PLLOUT/1 7 SYSCLK2 frequency (set by PLLM and dividers D0, D2) PLLOUT/2 8 SYSCLK3 frequency (set by PLLM and dividers D0, D3) PLLOUT/3 (1) (2) MAX 600 MHz Device Frequency Specification /2, /3, or /4 of SYSCLK1 EMIF Frequency Specification Some values for the D0 divider produce results outside of this range and should not be selected. In general, selecting the PLL output clock rate closest to the maximum frequency will decrease clock jitter. CAUTION SYSCLK1, SYSCLK2, SYSCLK3 must be configured as aligned by setting ALNCTL[2:0] to '1'; and the PLLCMD.GOSET bit must be written every time the dividers D1, D2, and D3 are changed in order to make sure the change takes effect and preserves alignment. CAUTION When changing the PLL parameters which affect the SYSCLK1, SYSCLK2, SYSCLK3 dividers, the bridge BR2 in Figure 2-4 must be reset by the CFGBRIDGE register. See Table 2-7. The PLL is an analog circuit and is sensitive to power supply noise. Therefore it has a dedicated 3.3-V power pin (PLLHV) that should be connected to DVDD at the board level through an external filter, as illustrated in Figure 4-46. BOARD DVDD (3.3 V) PLLHV Place Filter and Capacitors as Close to DSP as Possible 10 mF + 0.1 mF EMI Filter EMI Filter: TDK ACF451832−333, −223, −153, or −103, Panasonic EXCCET103U, or Equivalent Figure 4-46. PLL Power Supply Filter Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 103 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 4.18.2 PLL Registers Description(s) Table 4-41 is a list of the PLL registers. For more information about these registers, see the TMS320C672x DSP Software-Programmable Phase-Locked Loop (PLL) Controller Reference Guide (literature number SPRU879). Table 4-41. PLL Controller Registers BYTE ADDRESS 104 REGISTER NAME DESCRIPTION 0x4100 0000 PLLPID PLL controller peripheral identification register 0x4100 0100 PLLCSR PLL control/status register 0x4100 0110 PLLM PLL multiplier control register 0x4100 0114 PLLDIV0 PLL controller divider register 0 0x4100 0118 PLLDIV1 PLL controller divider register 1 0x4100 011C PLLDIV2 PLL controller divider register 2 0x4100 0120 PLLDIV3 PLL controller divider register 3 0x4100 0138 PLLCMD PLL controller command register 0x4100 013C PLLSTAT PLL controller status register 0x4100 0140 ALNCTL PLL controller clock align control register 0x4100 0148 CKEN Clock enable control register 0x4100 014C CKSTAT Clock status register 0x4100 0150 SYSTAT SYSCLK status register Peripheral and Electrical Specifications Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 5 Application Example Figure 5-1 illustrates a high-level block diagram of the device and other devices to which it may typically connect. See Section 1.2 for an overview of each major block. Memory Controller DSP C67x+ DSP Core Program Cache 256K Bytes RAM McASP0 Audio Zone 1 SPI or I2C Control (optional) SPI1 CODEC, DIR, ADC, DAC, DSD, Network I2C0 384K Bytes ROM McASP1 McASP2 Audio Zone 2 Audio Zone 3 SPIO CODEC, DIR, ADC, DAC, DSD, Network I2C1 Crossbar Switch EMIF dMAX Digital Out, TDM Port RTI UHPI PLL OSC 6 Independent Audio Zones (3 TX + 3 RX) 16 Serial Data Pins ASYNC FLASH 100 MHz SDRAM A. High Speed Parallel Data DSP Control SPI or I2C Host Microprocessor UHPI is only available on the C6727. McASP2 is not available on the C6722. Figure 5-1. SM320C6727B Audio DSP System Diagram Application Example Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP 105 SM320C6727B-EP SPRS793A – SEPTEMBER 2011 – REVISED OCTOBER 2011 www.ti.com 6 Mechanical Data 6.1 Package Thermal Resistance Characteristics Table 6-1 provides the thermal characteristics for the recommended package type used on the SM320C6727B DSP. Table 6-1. Thermal Characteristics for GDH Package NO. °C/W AIR FLOW (m/s) 25 0 Two-Signal, Two-Plane, 101.5 x 114.5 x 1.6 mm , 2-oz Cu. EIA/JESD51-9 PCB 6.2 1 RθJA Thermal Resistance Junction to Ambient 2 RθJB Thermal Resistance Junction to Board 14.5 0 3 RθJC Thermal Resistance Junction to Top of Case 10 0 4 ΨJB Thermal Metric Junction to Board 14 0 5 ΨJT Thermal Metric Junction to Top of Case 0.39 0 Packaging Information The following packaging information reflects the most current released data available for the designated device. This data is subject to change without notice and without revision of this document. 106 Mechanical Data Copyright © 2011, Texas Instruments Incorporated Submit Documentation Feedback Product Folder Link(s): SM320C6727B-EP PACKAGE OPTION ADDENDUM www.ti.com 2-Dec-2011 PACKAGING INFORMATION Orderable Device Status (1) Package Type Package Drawing Pins Package Qty Eco Plan (2) Lead/ Ball Finish MSL Peak Temp (3) Samples (Requires Login) SM320C6727BGDHMEP ACTIVE BGA GDH 256 90 TBD SNPB Level-3-220C-168 HR V62/11617-01XE ACTIVE BGA GDH 256 90 TBD SNPB Level-3-220C-168 HR (1) The marketing status values are defined as follows: ACTIVE: Product device recommended for new designs. LIFEBUY: TI has announced that the device will be discontinued, and a lifetime-buy period is in effect. NRND: Not recommended for new designs. Device is in production to support existing customers, but TI does not recommend using this part in a new design. PREVIEW: Device has been announced but is not in production. Samples may or may not be available. OBSOLETE: TI has discontinued the production of the device. (2) Eco Plan - The planned eco-friendly classification: Pb-Free (RoHS), Pb-Free (RoHS Exempt), or Green (RoHS & no Sb/Br) - please check http://www.ti.com/productcontent for the latest availability information and additional product content details. TBD: The Pb-Free/Green conversion plan has not been defined. Pb-Free (RoHS): TI's terms "Lead-Free" or "Pb-Free" mean semiconductor products that are compatible with the current RoHS requirements for all 6 substances, including the requirement that lead not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered at high temperatures, TI Pb-Free products are suitable for use in specified lead-free processes. Pb-Free (RoHS Exempt): This component has a RoHS exemption for either 1) lead-based flip-chip solder bumps used between the die and package, or 2) lead-based die adhesive used between the die and leadframe. The component is otherwise considered Pb-Free (RoHS compatible) as defined above. Green (RoHS & no Sb/Br): TI defines "Green" to mean Pb-Free (RoHS compatible), and free of Bromine (Br) and Antimony (Sb) based flame retardants (Br or Sb do not exceed 0.1% by weight in homogeneous material) (3) MSL, Peak Temp. -- The Moisture Sensitivity Level rating according to the JEDEC industry standard classifications, and peak solder temperature. Important Information and Disclaimer:The information provided on this page represents TI's knowledge and belief as of the date that it is provided. TI bases its knowledge and belief on information provided by third parties, and makes no representation or warranty as to the accuracy of such information. Efforts are underway to better integrate information from third parties. TI has taken and continues to take reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and chemicals. TI and TI suppliers consider certain information to be proprietary, and thus CAS numbers and other limited information may not be available for release. In no event shall TI's liability arising out of such information exceed the total purchase price of the TI part(s) at issue in this document sold by TI to Customer on an annual basis. Addendum-Page 1 IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’s standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed. TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI. Reproduction of TI information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Information of third parties may be subject to additional restrictions. Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. TI products are not authorized for use in safety-critical applications (such as life support) where a failure of the TI product would reasonably be expected to cause severe personal injury or death, unless officers of the parties have executed an agreement specifically governing such use. Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications, and acknowledge and agree that they are solely responsible for all legal, regulatory and safety-related requirements concerning their products and any use of TI products in such safety-critical applications, notwithstanding any applications-related information or support that may be provided by TI. Further, Buyers must fully indemnify TI and its representatives against any damages arising out of the use of TI products in such safety-critical applications. TI products are neither designed nor intended for use in military/aerospace applications or environments unless the TI products are specifically designated by TI as military-grade or "enhanced plastic." Only products designated by TI as military-grade meet military specifications. Buyers acknowledge and agree that any such use of TI products which TI has not designated as military-grade is solely at the Buyer's risk, and that they are solely responsible for compliance with all legal and regulatory requirements in connection with such use. TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products are designated by TI as compliant with ISO/TS 16949 requirements. Buyers acknowledge and agree that, if they use any non-designated products in automotive applications, TI will not be responsible for any failure to meet such requirements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions: Products Applications Audio www.ti.com/audio Communications and Telecom www.ti.com/communications Amplifiers amplifier.ti.com Computers and Peripherals www.ti.com/computers Data Converters dataconverter.ti.com Consumer Electronics www.ti.com/consumer-apps DLP® Products www.dlp.com Energy and Lighting www.ti.com/energy DSP dsp.ti.com Industrial www.ti.com/industrial Clocks and Timers www.ti.com/clocks Medical www.ti.com/medical Interface interface.ti.com Security www.ti.com/security Logic logic.ti.com Space, Avionics and Defense www.ti.com/space-avionics-defense Power Mgmt power.ti.com Transportation and Automotive www.ti.com/automotive Microcontrollers microcontroller.ti.com Video and Imaging RFID www.ti-rfid.com OMAP Mobile Processors www.ti.com/omap Wireless Connectivity www.ti.com/wirelessconnectivity TI E2E Community Home Page www.ti.com/video e2e.ti.com Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265 Copyright © 2011, Texas Instruments Incorporated