Texas Instruments TMS320DM335 User manual

TMS320DM335
Digital Media System-on-Chip (DMSoC)ARM Subsystem
User's Guide
Literature Number: SPRUFX7
July 2008

Contents
Preface ....................................................................................................................................... 13
1 Introduction ............................................................................................................. 161.1 Device Overview ................................................................................................................. 161.2 Block Diagram ................................................................................................................... 161.3 ARM Subsystem in DM335 ................................................................................................... 17
2 ARM Subsystem Overview ......................................................................................... 182.1 Purpose of the ARM Subsystem ........................................................................................... 182.2 Components of the ARM Subsystem .................................................................................... 182.3 References ........................................................................................................................ 19
3 ARM Core ................................................................................................................ 203.1 Introduction ....................................................................................................................... 203.2 Operating States/Modes ...................................................................................................... 213.3 Processor Status Registers ................................................................................................. 213.4 Exceptions and Exception Vectors ....................................................................................... 223.5 The 16-BIS/32-BIS Concept .................................................................................................. 223.5.1 16-BIS/32-BIS Advantages ............................................................................................. 223.6 Coprocessor 15 (CP15) ....................................................................................................... 233.6.1 Addresses in an ARM926EJ-S System ............................................................................... 233.6.2 Memory Management Unit ............................................................................................. 243.6.3 Caches and Write Buffer ............................................................................................... 243.7 Tightly Coupled Memory ..................................................................................................... 263.8 Embedded Trace Support .................................................................................................... 27
4 Memory Mapping ...................................................................................................... 294.1 Memory Map ...................................................................................................................... 294.1.1 ARM Internal Memories ................................................................................................. 304.1.2 External Memories....................................................................................................... 304.1.3 Peripherals ............................................................................................................... 304.2 Memory Interfaces Overview ................................................................................................ 334.2.1 DDR2 EMIF .............................................................................................................. 334.2.2 External Memory Interface ............................................................................................. 33
5 Device Clocking ....................................................................................................... 355.1 Overview ........................................................................................................................... 355.2 Peripheral Clocking Considerations ..................................................................................... 375.2.1 Video Processing Back End Clocking ................................................................................ 375.2.2 USB Clocking ............................................................................................................ 37
6 PLL Controllers (PLLCs) ............................................................................................ 386.1 PLL Controller Module ........................................................................................................ 386.2 PLLC1 ............................................................................................................................... 39
SPRUFX7 – July 2008 Table of Contents 3Submit Documentation Feedback

www.ti.com
6.3 PLLC2 ............................................................................................................................... 406.4 PLLC Functional Description ............................................................................................... 416.4.1 Multipliers and Dividers ................................................................................................. 416.4.2 Bypass Mode ............................................................................................................. 416.4.3 PLL Mode ................................................................................................................. 416.5 PLL Configuration .............................................................................................................. 426.5.1 PLL Mode and Bypass Mode .......................................................................................... 426.5.2 Changing Divider / Multiplier Ratios ................................................................................... 426.5.3 PLL Power Down and Wakeup ........................................................................................ 446.6 PLL Controller Register Map ................................................................................................ 446.6.1 Introduction ............................................................................................................... 446.6.2 Peripheral ID Register (PID) ........................................................................................... 466.6.3 PLL Control (PLLCTL) .................................................................................................. 476.6.4 PLL Multiplier Control Register (PLLM) ............................................................................... 486.6.5 PLL Pre-Divider Control Register (PREDIV) ......................................................................... 496.6.6 PLL Controller Divider 1 Register (PLLDIV1) ........................................................................ 506.6.7 PLL Controller Divider 2 Register (PLLDIV2) ........................................................................ 516.6.8 PLL Controller Divider 3 Register (PLLDIV3) ........................................................................ 526.6.9 PLL Post-Divider Control Register (POSTDIV) ...................................................................... 536.6.10 Bypass Divider Register (BPDIV) .................................................................................... 546.6.11 PLL Controller Command Register (PLLCMD) ..................................................................... 556.6.12 PLL Controller Status Register (PLLSTAT) ......................................................................... 566.6.13 PLL Controller Clock Align Control Register (ALNCTL) ........................................................... 576.6.14 PLLDIV Ratio Change Status Register (DCHANGE) .............................................................. 586.6.15 Clock Enable Control Register (CKEN) .............................................................................. 596.6.16 Clock Status Register (CKSTAT) ..................................................................................... 606.6.17 SYSCLK Status Register (SYSTAT) ................................................................................. 616.6.18 PLL Controller Divider 4 Register (PLLDIV4) ....................................................................... 62
7 Power and Sleep Controller ....................................................................................... 637.1 Introduction ....................................................................................................................... 637.2 Power Domain and Module Topology.................................................................................... 637.3 Power Domain and Module States Defined ............................................................................ 667.3.1 Power Domain States ................................................................................................... 667.3.2 Module States ............................................................................................................ 667.4 Executing State Transitions ................................................................................................. 677.4.1 Power Domain State Transitions ...................................................................................... 677.4.2 Module State Transitions ............................................................................................... 677.5 IcePick Emulation Support in the PSC .................................................................................. 677.6 PSC Interrupts ................................................................................................................... 687.6.1 Interrupt Events .......................................................................................................... 687.6.2 Interrupt Registers ....................................................................................................... 697.6.3 Interrupt Handling ........................................................................................................ 707.7 PSC Registers .................................................................................................................... 717.7.1 Peripheral Revision and Class Information (PID) ................................................................... 727.7.2 Interrupt Evaluation Register (INTEVAL) ............................................................................. 737.7.3 Module Error Pending Register 0 (mod 0 - 31) (MERRPR0) ...................................................... 747.7.4 Module Error Pending Register 1 (mod 32-41) (MERRPR1) ...................................................... 757.7.5 Module Error Clear Register 0 (mod 0-31) (MERRCR0) ........................................................... 76
4Contents SPRUFX7 – July 2008Submit Documentation Feedback

www.ti.com
7.7.6 Module Error Clear Register 1 (mod 32-41) (MERRCR1) ......................................................... 777.7.7 Power Error Pending Register (PERRPR) ........................................................................... 787.7.8 Power Error Clear Register (PERRCR)............................................................................... 797.7.9 External Power Control Pending Register (EPCPR) ................................................................ 807.7.10 External Power Control Clear Register (EPCCR) .................................................................. 817.7.11 Power Domain Transition Command Register (PTCMD) ......................................................... 827.7.12 Power Domain Transition Status Register (PTSTAT) ............................................................. 837.7.13 Power Domain Status Register 0 (PDSTATn) ...................................................................... 847.7.14 Power Domain Control n Register 0 (PDCTLn) .................................................................... 857.7.15 Module Status n Register 0-32 (MDSTATn) ........................................................................ 867.7.16 Module Control n Register 0-51 (MDCTLn) ......................................................................... 87
8 Interrupt Controller ................................................................................................... 888.1 Introduction ....................................................................................................................... 888.2 Interrupt Mapping ............................................................................................................... 888.3 INTC Methodology .............................................................................................................. 898.3.1 Interrupt Mapping ........................................................................................................ 908.3.2 Interrupt Prioritization ................................................................................................... 908.3.3 Vector Table Entry Address Generation .............................................................................. 918.3.4 Clearing Interrupts ....................................................................................................... 918.3.5 Enabling and Disabling Interrupts ..................................................................................... 928.4 INTC Registers ................................................................................................................... 938.4.1 Fast Interrupt Request Status Register 0 (FIQ0) .................................................................... 948.4.2 Fast Interrupt Request Status Register 1 (FIQ1) .................................................................... 958.4.3 Interrupt Request Status Register 0 (IRQ0) .......................................................................... 968.4.4 Interrupt Request Status Register 1 (IRQ1) .......................................................................... 978.4.5 Fast Interrupt Request Entry Address Register (FIQENTRY) ..................................................... 988.4.6 Interrupt Request Entry Address Register (IRQENTRY) ........................................................... 998.4.7 Interrupt Enable Register 0 (EINT0) ................................................................................. 1008.4.8 Interrupt Enable Register 1 (EINT1) ................................................................................. 1018.4.9 Interrupt Operation Control Register (INTCTL) .................................................................... 1028.4.10 EABASE ................................................................................................................ 1038.4.11 Interrupt Priority Register 0 (INTPRI0) ............................................................................ 1048.4.12 Interrupt Priority Register 1 (INTPRI1) ............................................................................. 1058.4.13 Interrupt Priority Register 2 (INTPRI2) ............................................................................. 1068.4.14 Interrupt Priority Register 3 (INTPRI3) ............................................................................. 1078.4.15 Interrupt Priority Register 4 (INTPRI4) ............................................................................. 1088.4.16 Interrupt Priority Register 5 (INTPRI5) ............................................................................. 1098.4.17 Interrupt Priority Register 6 (INTPRI6) ............................................................................. 1108.4.18 Interrupt Priority Register 7 (INTPRI7) ............................................................................. 111
9 System Control Module ........................................................................................... 1129.1 Overview of the System Control Module .............................................................................. 1129.2 Device Identification .......................................................................................................... 1129.3 Device Configuration ......................................................................................................... 1129.3.1 Pin Multiplexing Control .............................................................................................. 1129.3.2 Device Boot Configuration Status .................................................................................... 1139.4 ARM Interrupt and EDMA Event Multiplexing Control ............................................................ 1139.5 Special Peripheral Status and Control ................................................................................. 113
SPRUFX7 – July 2008 Contents 5Submit Documentation Feedback

www.ti.com
9.5.1 Timer64+ Control ....................................................................................................... 1139.5.2 USB PHY Control ...................................................................................................... 1149.5.3 VPSS Clock and DAC Control and Status .......................................................................... 1149.5.4 DDR I/O Timing Control and Status ................................................................................. 1149.6 Clock Out Configuration Status .......................................................................................... 1149.7 GIO De-Bounce Control ..................................................................................................... 1149.8 Power Management ........................................................................................................... 1149.8.1 Deep Sleep Control .................................................................................................... 1149.9 Bandwidth Management .................................................................................................... 1159.9.1 Bus Master DMA Priority Control .................................................................................... 1159.10 System Control Register Descriptions ................................................................................. 1179.10.1 Introduction ............................................................................................................ 1179.10.2 PINMUX0 - Pin Mux 0 (Video In) Pin Mux Register ............................................................. 1189.10.3 PINMUX1 - Pin Mux 1 (Video Out) Pin Mux Register ............................................................ 1209.10.4 PINMUX2 - Pin Mux 2 (AEMIF) Pin Mux Register ............................................................... 1229.10.5 PINMUX3 - Pin Mux 3 (GIO/Misc) Pin Mux Register ............................................................. 1249.10.6 PINMUX4 - Pin Mux 4 (Misc) Pin Mux Register .................................................................. 1279.10.7 BOOTCFG - Boot Configuration .................................................................................... 1289.10.8 ARM_INTMUX - ARM Interrupt Mux Control Register ........................................................... 1299.10.9 EDMA_EVTMUX - EDMA Event Mux Control Register ......................................................... 1309.10.10 DDR_SLEW - DDR Slew ........................................................................................... 1319.10.11 CLKOUT - CLKOUT Divisor / Output Control ................................................................... 1329.10.12 DEVICE_ID - Device ID ............................................................................................ 1339.10.13 VDAC_CONFIG - Video Dac Configuration ...................................................................... 1349.10.14 TIMER64_CTL - Timer64+ Input Control ........................................................................ 1359.10.15 USB_PHY_CTRL - USB PHY Control ........................................................................... 1369.10.16 MISC - Miscellaneous Control ..................................................................................... 1389.10.17 MSTPRI0 - Master Priorities 0 ..................................................................................... 1389.10.18 Master Priorities 1 (MSTPRI1) Register .......................................................................... 1399.10.19 VPSS_CLK_CTRL - VPSS Clock Mux Control ................................................................. 1409.10.20 Deep Sleep Mode Configuration (DEEPSLEEP) Register .................................................... 1419.10.21 DEBOUNCE[8] - De-bounce for GIO[n] Input ................................................................... 1429.10.22 VTPIOCR - VTP IO Control Register ............................................................................. 143
10 Reset ..................................................................................................................... 14410.1 Reset Overview ................................................................................................................ 14410.2 Reset Pins ....................................................................................................................... 14410.3 Types of Reset ................................................................................................................. 14510.3.1 Power-On Reset (POR) .............................................................................................. 14510.3.2 Warm Reset ........................................................................................................... 14510.3.3 Max Reset .............................................................................................................. 14610.3.4 System Reset .......................................................................................................... 14610.3.5 Module Reset .......................................................................................................... 14610.4 Default Device Configurations ............................................................................................ 14610.4.1 Device Configuration Pins ........................................................................................... 14610.4.2 PLL Configuration ..................................................................................................... 14710.4.3 Module Configuration ................................................................................................. 14710.4.4 ARM Boot Mode Configuration ...................................................................................... 14710.4.5 AEMIF Configuration ................................................................................................. 148
6Contents SPRUFX7 – July 2008Submit Documentation Feedback

www.ti.com
11 Boot Modes ............................................................................................................ 14911.1 Boot Modes Overview ....................................................................................................... 14911.1.1 Features ................................................................................................................ 14911.1.2 Functional Block Diagram ............................................................................................ 15111.2 ARM ROM Boot Modes ...................................................................................................... 15111.2.1 NAND Boot Mode ..................................................................................................... 15111.2.2 MMC/SD Boot Mode .................................................................................................. 15911.2.3 UART Boot Mode ..................................................................................................... 164
12 Power Management ................................................................................................. 16812.1 Overview ......................................................................................................................... 16812.2 PSC and PLLC Overview ................................................................................................... 16812.3 Clock Management ........................................................................................................... 16912.3.1 Module Clock Disable ................................................................................................ 16912.3.2 Module Clock Frequency Scaling ................................................................................... 16912.3.3 PLL Bypass and Power Down ....................................................................................... 16912.4 ARM Sleep Mode Management ........................................................................................... 16912.4.1 ARM Wait-For-Interrupt Sleep Mode ............................................................................... 16912.5 System Sleep Modes ......................................................................................................... 17012.5.1 Deep Sleep Mode ..................................................................................................... 17012.6 I/O Management ................................................................................................................ 17012.6.1 USB Phy Power Down ............................................................................................... 17012.6.2 Video DAC Power Down ............................................................................................. 17112.6.3 DDR Self-Refresh and Power Down ............................................................................... 171
SPRUFX7 – July 2008 Contents 7Submit Documentation Feedback

www.ti.com
List of Figures
1-1 Functional Block Diagram ................................................................................................. 172-1 ARM Subsystem Block Diagram ......................................................................................... 195-1 Clocking Architecture ...................................................................................................... 366-1 PLLC1 Configuration ....................................................................................................... 406-2 PLLC2 Configuration ....................................................................................................... 416-3 Clock Ratio Change and Alignment with Go Operation ............................................................... 436-4 Peripheral ID Register (PID) .............................................................................................. 466-5 PLL Control Register (PLLCTL) .......................................................................................... 476-6 PLL Multiplier Control Register (PLLM) ................................................................................. 486-7 PLL Pre-Divider Control Register (PREDIV) ............................................................................ 496-8 PLL Controller Divider 1 Register (PLLDIV1) ........................................................................... 506-9 PLL Controller Divider 2 Register (PLLDIV2) ........................................................................... 516-10 PLL Controller Divider 3 Register (PLLDIV3) ........................................................................... 526-11 PLL Post-Divider Control Register (POSTDIV) ......................................................................... 536-12 Bypass Divider Register (BPDIV) ........................................................................................ 546-13 PLL Controller Command Register (PLLCMD) ......................................................................... 556-14 PLL Controller Status Register (PLLSTAT) ............................................................................. 566-15 PLL Controller Clock Align Control Register (ALNCTL) ............................................................... 576-16 PLLDIV Ratio Change Status (DCHANGE) ............................................................................. 586-17 Clock Enable Control Register (CKEN) ................................................................................. 596-18 Clock Status Register (CKSTAT) ........................................................................................ 606-19 SYSCLK Status Register (SYSTAT) ..................................................................................... 616-20 PLL Controller Divider 4 Register (PLLDIV4) ........................................................................... 627-1 Power and Sleep Controller (PSC) ...................................................................................... 637-2 Power Domain and Module Topology ................................................................................... 647-3 Peripheral Revision and Class Information Register (PID) ........................................................... 727-4 Interrupt Evaluation Register (INTEVAL) ................................................................................ 737-5 Module Error Pending Register 0 (mod 0 - 31) (MERRPR0) ......................................................... 747-6 Module Error Pending Register 1 (mod 32-41) (MERRPR1) ......................................................... 757-7 Module Error Clear Register 0 (mod 0-31) (MERRCR0) .............................................................. 767-8 Module Error Clear Register 1 (mod 32-41) (MERRCR1) ............................................................ 777-9 Power Error Pending Register (PERRPR) .............................................................................. 787-10 Power Error Clear Register (PERRCR) ................................................................................. 797-11 External Power Control Pending Register (EPCPR) .................................................................. 807-12 External Power Control Clear Register (EPCCR) ...................................................................... 817-13 Power Domain Transition Command Register (PTCMD) ............................................................. 827-14 Power Domain Transition Status Register (PTSTAT) ................................................................. 837-15 Power Domain Status n Register (PDSTATn) .......................................................................... 847-16 Power Domain Control n Register (PDCTLn) .......................................................................... 857-17 Module Status n Register (MDSTATn) .................................................................................. 867-18 Module Control n Register 0-41 (MDCTLn) ............................................................................. 878-1 AINTC Functional Diagram ............................................................................................... 908-2 Interrupt Entry Table ...................................................................................................... 918-3 Immediate Interrupt Disable / Enable .................................................................................... 928-4 Delayed Interrupt Disable ................................................................................................. 928-5 Interrupt Status of INT[31:0] (if mapped to FIQ) ....................................................................... 948-6 Interrupt Status of INT[63:32] (if mapped to FIQ) ...................................................................... 958-7 Interrupt Status of INT[31:0] (if mapped to IRQ) ....................................................................... 968-8 Interrupt Status of INT[31:0] (if mapped to IRQ) ....................................................................... 978-9 Fast Interrupt Request Entry Address Register (FIQENTRY) ........................................................ 988-10 Interrupt Request Entry Address Register (IRQENTRY) .............................................................. 998-11 Interrupt Enable Register 0 (EINT0) .................................................................................... 100
8List of Figures SPRUFX7 – July 2008Submit Documentation Feedback

www.ti.com
8-12 Interrupt Enable Register 1 (EINT1) .................................................................................... 1018-13 Interrupt Operation Control Register (INTCTL) ....................................................................... 1028-14 EABASE ................................................................................................................... 1038-15 Interrupt Priority Register 0 (INTPRI0) ................................................................................. 1048-16 Interrupt Priority Register 1 (INTPRI1) ................................................................................. 1058-17 Interrupt Priority Register 2 (INTPRI2) ................................................................................. 1068-18 Interrupt Priority Register 3 (INTPRI3) ................................................................................. 1078-19 Interrupt Priority Register 4 (INTPRI4) ................................................................................. 1088-20 Interrupt Priority Register 5 (INTPRI5) ................................................................................. 1098-21 Interrupt Priority Register 6 (INTPRI6) ................................................................................. 1108-22 Interrupt Priority Register 7 (INTPRI7) ................................................................................. 1119-1 PINMUX0 - Pin Mux 0 (Video In) Pin Mux Register .................................................................. 1189-2 PINMUX1 - Pin Mux 1 (Video Out) Pin Mux Register................................................................ 1209-3 PINMUX2 - Pin Mux 2 (AEMIF) Pin Mux Register ................................................................... 1229-4 PINMUX3 - Pin Mux 3 (GIO/Misc) Pin Mux Register ................................................................ 1249-5 PINMUX4 - Pin Mux 4 (Misc) Pin Mux Register ...................................................................... 1279-6 BOOTCFG - Boot Configuration ........................................................................................ 1289-7 ARM_INTMUX - ARM Interrupt Mux Control Register ............................................................... 1299-8 EDMA_EVTMUX - EDMA Event Mux Control Register ............................................................. 1309-9 DDR_SLEW - DDR Slew ................................................................................................ 1319-10 CLKOUT - CLKOUT div/out Control .................................................................................... 1329-11 DEVICE_ID - Device ID .................................................................................................. 1339-12 VDAC_CONFIG - Video Dac Configuration ........................................................................... 1349-13 TIMER64_CTL - Timer64+ Input Control ............................................................................. 1359-14 USB_PHY_CTRL - USB PHY Control ................................................................................ 1369-15 MISC - Miscellaneous Control .......................................................................................... 1389-16 MSTPRI0 - Master Priorities 0 .......................................................................................... 1389-17 Master Priorities 1(MSTPRI1) Register ................................................................................ 1399-18 VPSS_CLK_CTRL - VPSS Clock Mux Control ...................................................................... 1409-19 Deep Sleep Mode Configuration (DEEPSLEEP) Register .......................................................... 1419-20 DEBOUNCE[8] - De-bounce for GIO[n] Input ......................................................................... 1429-21 VTP IO Control Register (VTPIOCR) .................................................................................. 14311-1 Boot Modes Overview .................................................................................................... 15011-2 Boot Mode Functional Block Diagram ................................................................................. 15111-3 NAND Boot Flow .......................................................................................................... 15211-4 4-Bit ECC Format and Bit 10 to 8-Bit Compression Algorithm ..................................................... 15411-5 4-Bit ECC Format for 2048+64 Byte Page Size ...................................................................... 15511-6 NAND Boot Mode Flow Chart ........................................................................................... 15611-7 ARM NAND ROM Boot Loader Example .............................................................................. 15711-8 Descriptor Search for ARM NAND Boot Mode ....................................................................... 15811-9 MMC/SD Boot Mode Overview ......................................................................................... 16011-10 MMC/SD Boot Mode Flow Chart ....................................................................................... 16211-11 ARM MMC/SD ROM Boot Loader Example ........................................................................... 16311-12 Descriptor Search for ARM MMC/SD Boot Mode .................................................................... 16411-13 UART Boot Mode Handshake ........................................................................................... 16511-14 Host Utility Timing ........................................................................................................ 167
SPRUFX7 – July 2008 List of Figures 9Submit Documentation Feedback

www.ti.com
List of Tables
3-1 Exception Vector Table for ARM ......................................................................................... 223-2 Different Address Types in ARM System ............................................................................... 233-3 ITCM/DTCM Memory Map ................................................................................................ 263-4 ITCM/DTCM Size Encoding............................................................................................... 273-5 ETM Part Descriptions ..................................................................................................... 274-1 Memory Map ................................................................................................................ 294-2 ARM Configuration Bus Access to Peripherals ........................................................................ 316-1 PLLC1 Output Clocks ...................................................................................................... 396-2 PLLC2 Output Clocks ...................................................................................................... 406-3 PLL and Reset Controller Module Instance Table ..................................................................... 446-4 PLLC Registers ............................................................................................................. 446-5 Peripheral ID Register (PID) Field Descriptions ........................................................................ 466-6 PLL Control Register (PLLCTL) Field Descriptions .................................................................... 476-7 PLL Multiplier Control Register (PLLM) Field Descriptions ........................................................... 486-8 PLL Pre-Divider Control (PREDIV) Field Descriptions ................................................................ 496-9 PLL Controller Divider 1 Register (PLLDIV1) Field Descriptions .................................................... 506-10 PLL Controller Divider 2 Register (PLLDIV2) Field Descriptions .................................................... 516-11 PLL Controller Divider 3 Register (PLLDIV3) Field Descriptions .................................................... 526-12 PLL Post-Divider Control (POSTDIV) Field Descriptions ............................................................. 536-13 Bypass Divider Register (BPDIV) Field Descriptions .................................................................. 546-14 PLL Controller Command Register (PLLCMD) Field Descriptions................................................... 556-15 PLL Controller Status (PLLSTAT) Field Descriptions ................................................................. 566-16 PLL Controller Clock Align Control (ALNCTL) Field Descriptions ................................................... 576-17 PLLDIV Ratio Change Status (DCHANGE) Field Descriptions ...................................................... 586-18 Clock Enable Control Register (CKEN) Field Descriptions ........................................................... 596-19 Clock Status Register (CKSTAT) Field Descriptions .................................................................. 606-20 SYSCLK Status Register (SYSTAT) Field Descriptions .............................................................. 616-21 PLL Controller Divider 4 Register (PLLDIV4) Field Descriptions .................................................... 627-1 Module Configuration ...................................................................................................... 657-2 Module States .............................................................................................................. 667-3 IcePick Emulation Commands ............................................................................................ 677-4 PSC Interrupt Events ...................................................................................................... 687-5 PSC Registers .............................................................................................................. 717-6 Peripheral Revision and Class Information Register (PID) Field Descriptions ..................................... 727-7 Interrupt Evaluation Register (INTEVAL) Field Descriptions ......................................................... 737-8 Module Error Pending Register 0 (mod 0 - 31) (MERRPR0) Field Descriptions .................................. 747-9 Module Error Pending Register 1 (mod 32-41) (MERRPR1) Field Descriptions ................................... 757-10 Module Error Clear Register 0 (mod 0-31) (MERRCR0) Field Descriptions ....................................... 767-11 Module Error Clear Register 1 (mod 32-41) (MERRCR1) Field Descriptions ...................................... 777-12 Power Error Pending Register (PERRPR) Field Descriptions ........................................................ 787-13 Power Error Clear Register (PERRCR) Field Descriptions ........................................................... 797-14 External Power Control Pending Register (EPCPR) Field Descriptions ............................................ 807-15 External Power Control Clear Register (EPCCR) Field Descriptions ............................................... 817-16 Power Domain Transition Command Register (PTCMD) Field Descriptions ....................................... 827-17 Power Domain Transition Status Register (PTSTAT) Field Descriptions ........................................... 837-18 Power Domain Status n Register (PDSTATn) Field Descriptions ................................................... 847-19 Power Domain Control n Register (PDCTLn) Field Descriptions .................................................... 857-20 Module Status n Register 0-32 (MDSTATn) Field Descriptions ...................................................... 867-21 Module Control n Register 0-51 (MDCTLn) Field Descriptions ...................................................... 87
10 List of Tables SPRUFX7 – July 2008Submit Documentation Feedback

www.ti.com
8-1 AINTC Interrupt Connections ............................................................................................. 888-2 Interrupt Controller (INTC) Registers .................................................................................... 938-3 Interrupt Status of INT[31:0] (if mapped to FIQ) Field Descriptions ................................................. 948-4 Interrupt Status of INT[63:32] (if mapped to FIQ) Field Descriptions ................................................ 958-5 Interrupt Status of INT[31:0] (if mapped to IRQ) Field Descriptions ................................................. 968-6 Interrupt Status of INT[31:0] (if mapped to IRQ) Field Descriptions ................................................. 978-7 Fast Interrupt Request Entry Address Register (FIQENTRY) Field Descriptions .................................. 988-8 Interrupt Request Entry Address Register (IRQENTRY) Field Descriptions ....................................... 998-9 Interrupt Enable Register 0 (EINT0) Field Descriptions ............................................................. 1008-10 Interrupt Enable Register 1 (EINT1) Field Descriptions ............................................................. 1018-11 Interrupt Operation Control Register (INTCTL) Field Descriptions ................................................. 1028-12 EABASE Field Descriptions ............................................................................................. 1038-13 Interrupt Priority Register 0 (INTPRI0) Field Descriptions ........................................................... 1048-14 Interrupt Priority Register 1 (INTPRI1) Field Descriptions ........................................................... 1058-15 Interrupt Priority Register 2 (INTPRI2) Field Descriptions ........................................................... 1068-16 Interrupt Priority Register 3 (INTPRI3) Field Descriptions ........................................................... 1078-17 Interrupt Priority Register 4 (INTPRI4) Field Descriptions ........................................................... 1088-18 Interrupt Priority Register 5 (INTPRI5) Field Descriptions ........................................................... 1098-19 Interrupt Priority Register 6 (INTPRI6) Field Descriptions ........................................................... 1108-20 Interrupt Priority Register 7 (INTPRI7) Field Descriptions ........................................................... 1119-1 Master IDs ................................................................................................................. 1159-2 Default Master Priorities ................................................................................................. 1169-3 System Module (SYS) Registers ....................................................................................... 1179-4 PINMUX0 - Pin Mux 0 (Video In) Pin Mux Register Field Descriptions ........................................... 1189-5 PINMUX1 - Pin Mux 1 (Video Out) Pin Mux Register Field Descriptions ......................................... 1209-6 PINMUX2 - Pin Mux 2 (AEMIF) Pin Mux Register Field Descriptions ............................................. 1229-7 PINMUX3 - Pin Mux 3 (GIO/Misc) Pin Mux Register Field Descriptions .......................................... 1249-8 PINMUX4 - Pin Mux 4 (Misc) Pin Mux Register Field Descriptions ................................................ 1279-9 BOOTCFG - Boot Configuration Field Descriptions .................................................................. 1289-10 ARM_INTMUX - ARM Interrupt Mux Control Register Field Descriptions ........................................ 1299-11 EDMA_EVTMUX - EDMA Event Mux Control Register Field Descriptions ....................................... 1309-12 DDR_SLEW - DDR Slew Field Descriptions .......................................................................... 1319-13 CLKOUT - CLKOUT div/out Control Field Descriptions ............................................................. 1329-14 DEVICE_ID - Device ID Field Descriptions ........................................................................... 1339-15 VDAC_CONFIG - Video Dac Configuration Field Descriptions ..................................................... 1349-16 TIMER64_CTL - Timer64+ Input Control Field Descriptions ........................................................ 1359-17 USB_PHY_CTRL - USB PHY Control Field Descriptions ........................................................... 1369-18 MISC - Miscellaneous Control Field Descriptions .................................................................... 1389-19 MSTPRI0 - Master Priorities 0 Field Descriptions .................................................................... 1389-20 Master Priorities 1 (MSTPRI1) Register Field Descriptions ......................................................... 1399-21 VPSS_CLK_CTRL - VPSS Clock Mux Control Field Descriptions ................................................. 1409-22 Deep Sleep Mode Configuration (DEEPSLEEP) Register Field Descriptions .................................... 1419-23 DEBOUNCE[8] - De-bounce for GIO[n] Input Field Descriptions .................................................. 1429-24 VTPIOCR - VTP IO Control Field Descriptions ....................................................................... 14310-1 Reset Types ............................................................................................................... 14410-2 Reset Pins ................................................................................................................. 14410-3 Device Configuration ..................................................................................................... 14711-1 NAND UBL Descriptor ................................................................................................... 15311-2 UBL Signatures and Special Modes ................................................................................... 15311-3 NAND IDs Supported..................................................................................................... 15811-4 MMC/SD UBL Descriptor ................................................................................................ 161
SPRUFX7 – July 2008 List of Tables 11Submit Documentation Feedback

www.ti.com
11-5 MMC/SD UBL Signatures and Special Modes ........................................................................ 16111-6 UART Data Sequences .................................................................................................. 16611-7 Host Utility Data Format ................................................................................................. 16711-8 CRC32 Table Transfer ................................................................................................... 16712-1 Power Management Features ........................................................................................... 168
List of Tables12 SPRUFX7 – July 2008Submit Documentation Feedback

Preface
SPRUFX7 – July 2008
Read This First
About This Manual
This document describes the operation of the ARM subsystem in the TMS320DM335 Digital MediaSystem-on-Chip (DMSoC).
Notational Conventions
This document uses the following conventions.•Hexadecimal numbers are shown with the suffix h. For example, the following number is 40hexadecimal (decimal 64): 40h.•Registers in this document are shown in figures and described in tables.– Each register figure shows a rectangle divided into fields that represent the fields of the register.Each field is labeled with its bit name, its beginning and ending bit numbers above, and itsread/write properties below. A legend explains the notation used for the properties.– Reserved bits in a register figure designate a bit that is used for future device expansion.
Related Documentation From Texas InstrumentsThe following documents describe the TMS320DM335 Digital Media System-on-Chip (DMSoC). Copies ofthese documents are available on the internet at www.ti.com .
SPRUFX7 — TMS320DM335 Digital Media System-on-Chip (DMSoC) ARM Subsystem ReferenceGuide This document describes the ARM Subsystem in the TMS320DM335 Digital MediaSystem-on-Chip (DMSoC). The ARM subsystem is designed to give the ARM926EJ-S (ARM9)master control of the device. In general, the ARM is responsible for configuration and control of thedevice; including the components of the ARM Subsystem, the peripherals, and the externalmemories.
SPRUFX8 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Video Processing Front End(VPFE) Reference Guide This document describes the Video Processing Front End (VPFE) in theTMS320DM335 Digital Media System-on-Chip (DMSoC).
SPRUFX9 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Video Processing Back End(VPBE) Reference Guide This document describes the Video Processing Back End (VPBE) in theTMS320DM335 Digital Media System-on-Chip (DMSoC).
SPRUFY0 — TMS320DM335 Digital Media System-on-Chip (DMSoC) 64-bit Timer Reference GuideThis document describes the operation of the software-programmable 64-bit timers in theTMS320DM335 Digital Media System-on-Chip (DMSoC). Timer 0, Timer 1, and Timer 3 are usedas general-purpose (GP) timers and can be programmed in 64-bit mode, dual 32-bit unchainedmode, or dual 32-bit chained mode; Timer 2 is used only as a watchdog timer. The GP timer modescan be used to generate periodic interrupts or enhanced direct memory access (EDMA)synchronization events and Real Time Output (RTO) events (Timer 3 only). The watchdog timermode is used to provide a recovery mechanism for the device in the event of a fault condition, suchas a non-exiting code loop.
SPRUFX7 – July 2008 Preface 13Submit Documentation Feedback

Related Documentation From Texas Instruments
www.ti.com
SPRUFY1 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Serial Peripheral Interface (SPI)Reference Guide This document describes the serial peripheral interface (SPI) in theTMS320DM335 Digital Media System-on-Chip (DMSoC). The SPI is a high-speed synchronousserial input/output port that allows a serial bit stream of programmed length (1 to 16 bits) to beshifted into and out of the device at a programmed bit-transfer rate. The SPI is normally used forcommunication between the DMSoC and external peripherals. Typical applications include aninterface to external I/O or peripheral expansion via devices such as shift registers, display drivers,SPI EPROMs and analog-to-digital converters.
SPRUFY2 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Universal AsynchronousReceiver/Transmitter (UART) Reference Guide This document describes the universalasynchronous receiver/transmitter (UART) peripheral in the TMS320DM335 Digital MediaSystem-on-Chip (DMSoC). The UART peripheral performs serial-to-parallel conversion on datareceived from a peripheral device, and parallel-to-serial conversion on data received from the CPU.
SPRUFY3 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Inter-Integrated Circuit (I2C)Peripheral Reference Guide This document describes the inter-integrated circuit (I2C) peripheralin the TMS320DM335 Digital Media System-on-Chip (DMSoC). The I2C peripheral provides aninterface between the DMSoC and other devices compliant with the I2C-bus specification andconnected by way of an I2C-bus. External components attached to this 2-wire serial bus cantransmit and receive up to 8-bit wide data to and from the DMSoC through the I2C peripheral. Thisdocument assumes the reader is familiar with the I2C-bus specification.
SPRUFY5 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Multimedia Card (MMC)/SecureDigital (SD) Card Controller Reference Guide This document describes the multimedia card(MMC)/secure digital (SD) card controller in the TMS320DM335 Digital Media System-on-Chip(DMSoC). The MMC/SD card is used in a number of applications to provide removable datastorage. The MMC/SD controller provides an interface to external MMC and SD cards. Thecommunication between the MMC/SD controller and MMC/SD card(s) is performed by the MMC/SDprotocol.
SPRUFY6 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Pulse-Width Modulator (PWM)Reference Guide This document describes the pulse-width modulator (PWM) peripheral in theTMS320DM335 Digital Media System-on-Chip (DMSoC).
SPRUFY7 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Real-Time Out (RTO) ControllerReference Guide This document describes the Real Time Out (RTO) controller in theTMS320DM335 Digital Media System-on-Chip (DMSoC).
SPRUFY8 — TMS320DM335 Digital Media System-on-Chip (DMSoC) General-Purpose Input/Output(GPIO) Reference Guide This document describes the general-purpose input/output (GPIO)peripheral in the TMS320DM335 Digital Media System-on-Chip (DMSoC). The GPIO peripheralprovides dedicated general-purpose pins that can be configured as either inputs or outputs. Whenconfigured as an input, you can detect the state of the input by reading the state of an internalregister. When configured as an output, you can write to an internal register to control the statedriven on the output pin.
SPRUFY9 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Universal Serial Bus (USB)Controller Reference Guide This document describes the universal serial bus (USB) controller inthe TMS320DM335 Digital Media System-on-Chip (DMSoC). The USB controller supports datathroughput rates up to 480 Mbps. It provides a mechanism for data transfer between USB devicesand also supports host negotiation.
SPRUFZ0 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Enhanced Direct MemoryAccess (EDMA) Controller Reference Guide This document describes the operation of theenhanced direct memory access (EDMA3) controller in the TMS320DM335 Digital MediaSystem-on-Chip (DMSoC). The EDMA controller's primary purpose is to service user-programmeddata transfers between two memory-mapped slave endpoints on the DMSoC.
14 Read This First SPRUFX7 – July 2008Submit Documentation Feedback

www.ti.com
Related Documentation From Texas Instruments
SPRUFZ1 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Asynchronous ExternalMemory Interface (EMIF) Reference Guide This document describes the asynchronous externalmemory interface (EMIF) in the TMS320DM335 Digital Media System-on-Chip (DMSoC). The EMIFsupports a glueless interface to a variety of external devices.
SPRUFZ2 — TMS320DM335 Digital Media System-on-Chip (DMSoC) DDR2/Mobile DDR(DDR2/mDDR) Memory Controller Reference Guide This document describes the DDR2/mDDRmemory controller in the TMS320DM335 Digital Media System-on-Chip (DMSoC). TheDDR2/mDDR memory controller is used to interface with JESD79D-2A standard compliant DDR2SDRAM and mobile DDR devices.
SPRUFZ3 — TMS320DM335 Digital Media System-on-Chip (DMSoC) Audio Serial Port (ASP)Reference Guide This document describes the operation of the audio serial port (ASP) audiointerface in the TMS320DM335 Digital Media System-on-Chip (DMSoC). The primary audio modesthat are supported by the ASP are the AC97 and IIS modes. In addition to the primary audiomodes, the ASP supports general serial port receive and transmit operation, but is not intended tobe used as a high-speed interface.
SPRUFX7 – July 2008 Read This First 15Submit Documentation Feedback

1.1 Device Overview
1.2 Block Diagram
SPRUFX7 – July 2008
Introduction
The TMS320DM335 processor is a low cost, low power processor providing advanced graphical userinterface for display applications that do not require video compression and decompression. Coupled witha video processing subsystem (VPSS) that provides 720p display, the DM335 processor is powered by a135/216/270 MHz ARM926EJ-S core so developers can create feature rich graphical user interfacesallowing customers to interact with their portable, electronic devices such as video-enabled universalremote controls, Internet radio, e-books, video doorbells and digital telescopes. The new DM335 is packedwith the same peripherals as its predecessor, the device, including high speed USB 2.0 on-the-go,external memory interface (EMIF), mobile DDR/DDR2, two SDIO ports, three UART Ports, two AudioSerial Ports, three SPI Ports and SLC/MCL NAND Flash memory support. These peripherals helpcustomers create DM335 processor-based designs that add video and audio excitement to a wide rangeof today's static user-interface applications while keeping silicon costs and power consumption low. Thenew digital media processor is completely scalable with the device processor and Digital Video EvaluationBoard (DVEVM), allowing customers to utilize their same code for their new DM335 processor focuseddesigns.
The new DM335 device delivers a sophisticated suite of capabilities allowing for flexible image captureand display. Through its user interface technology, such as a four-level on-screen display, developers areable to create picture-within-picture and video-within-video as well as innovative graphic user interfaces.This is especially important for portable products that require the use of button or touch screen, such asportable karaoke, video surveillance and electronic gaming applications. Additional advanced capture andimaging technologies include support for CCD/CMOS image sensors, resize capability and videostabilization. The 1280-by-960-pixel digital LCD connection runs on a 75-MHz pixel clock and supports TVcomposite output for increased expandability. This highly integrated device is packaged in a 13 x 13 mm,337 pin , 0.65 mm pitch BGA package.
The device consists of the following primary components and sub-systems:•ARM Subsystem (ARMSS), including the ARM926 RISC CPU core and associated memories•Video Processing Subsystem (VPSS), including the Video Processing Front End (VPFE), Image Inputand Image Processing Subsystem, and the Video Processing Back End (VPBE) Display Subsystem•A set of I/O peripherals•A powerful DMA Subsystem and DDR2/mDDR EMIF interface
Introduction 16 SPRUFX7 – July 2008Submit Documentation Feedback

1.3 ARM Subsystem in DM335
www.ti.com
ARM Subsystem in DM335
The detailed block diagram is shown in Figure 1-1 .
Figure 1-1. Functional Block Diagram
The ARM926EJ-S 32-bit RISC processor in the ARMSS acts as the overall system controller. The ARMCPU performs general system control tasks, such as system initialization, configuration, powermanagement, user interface, and user command implementation. Chapter 2 describes the ARMSScomponents and system control functions that the ARM core performs.
SPRUFX7 – July 2008 Introduction 17Submit Documentation Feedback

2.1 Purpose of the ARM Subsystem
2.2 Components of the ARM Subsystem
SPRUFX7 – July 2008
ARM Subsystem Overview
The ARM Subsystem contains components required to provide the ARM926EJ-S (ARM) master control ofthe overall device system, including control over the VPSS Subsystem, the peripherals, and externalmemories.
The ARM is responsible for handling system functions such as system-level initialization, configuration,user interface, user command execution, connectivity functions, etc. The ARM is master and performsthese functions because it has a large program memory space and fast context switching capability, and isthus suitable for complex, multi-tasking, and general-purpose control tasks.
The ARM Subsystem (ARMSS) in the device consists of the following components:•ARM926EJ-S RISC processor, including:– Coprocessor 15 (CP15)– MMU
– 16KB Instruction cache– 8KB Data cache– Write Buffer– Java accelerator•ARM Internal Memories– 32KB Internal RAM (32-bit wide access)– 8KB Internal ROM (ARM bootloader for non-AEMIF boot options)•Embedded Trace Module and Embedded Trace Buffer (ETM/ETB)•System Control Peripherals– ARM Interrupt Controller– PLL Controller
– Power and Sleep Controller– System Module
The ARM also manages/controls the following peripherals:•DDR2 EMIF Controller•AEMIF Controller, including the NAND flash interface•Enhanced DMA (EDMA)•UART (There are three UARTs supported in the device)•Timers
•Real Time Out (RTO)•Pulse Width Modulator (PWM)•Inter-IC Communication (I2C)•Multi-Media Card/Secure Digital (MMC/SD)•Audio Serial Port (ASP)•Universal Serial Bus Controller (USB)•Serial Port Interface (SPI)
18 ARM Subsystem Overview SPRUFX7 – July 2008Submit Documentation Feedback

ARM926EJ-S
16K I$
8K D$ MMU
CP15
Arbiter Arbiter
I-AHB
D-AHB
Master
IF
DMA bus
I-TCM
D-TCM
16K
RAM0
RAM1
16K
ROM
8K
Arbiter
Slave
IF
Master IF
CFG bus
ARM
interrupt
controller
(AINTC)
control
System
PLLC2
PLLC1
(PSC)
controller
sleep
Power
Peripherals
...
2.3 References
www.ti.com
References
•Video Processing Front End (VPFE)– CCD Controller (CCDC)– Image Pipe (IPIPE)– H3A Engine (Hardware engine for computing Auto-focus, Auto white balance, and Auto exposure)– Multiply Mask / Lens Distortion Module (CFALD)•Video Processing Back End (VPBE)– On Screen Display (OSD)– Video Encoder Engine (VENC)
Figure 2-1 shows the functional block diagram of the ARM Subsystem.
Figure 2-1. ARM Subsystem Block Diagram
See the following related documents for more information:•DM335 Data Manual (SPRS528 ): Provides a high-level overview of the DM335 system.•DM335 Peripheral Reference Guides: For various peripherals on the device.•For more detailed information about the ARM processor core, see ARM Ltd.’s web site:–http://www.arm.com/documentation/ARMProcessor_Cores/index.html
•Particularly, see the ARM926EJ-S Technical Reference Manual
SPRUFX7 – July 2008 ARM Subsystem Overview 19Submit Documentation Feedback

3.1 Introduction
SPRUFX7 – July 2008
ARM Core
This chapter describes the ARM core and its associated memories. The ARM core consists of thefollowing components:
•ARM926EJ-S - 32-bit RISC processor•16-KB Instruction cache•8-KB Data cache•MMU
•CP15 to control MMU, cache, write buffer, etc.•Java accelerator
•ARM Internal Memory– 32-KB built-in RAM– 16-KB built-in ROM (boot ROM)•Embedded Trace Module and Embedded Trace Buffer (ETM/ETB)•Features:
– The main write buffer has a 16-word data buffer and a 4-address buffer– Support for 32/16-bit instruction sets– Fixed little endian memory format– Enhanced DSP instructions– For maximum operating clock frequency, see the device-specific data manual.
The ARM926EJ-S processor is a member of the ARM9 family of general-purpose microprocessors. TheARM926EJ-S processor targets multi-tasking applications where full memory management, highperformance, low die size, and low power are all important.
The ARM926EJ-S processor supports the 32-bit ARM and the 16-bit THUMB instruction sets, enablingyou to trade off between high performance and high code density. This includes features for efficientexecution of Java byte codes and providing Java performance similar to Just in Time (JIT) Java interpreterwithout associated code overhead.
The ARM926EJ-S processor supports the ARM debug architecture and includes logic to assist in bothhardware and software debugging. The ARM926EJ-S processor has a Harvard architecture and providesa complete high performance subsystem, including the following:•An ARM926EJ-S integer core•A memory management unit (MMU)•Separate instruction and data AMBA AHB bus interfaces•Separate instruction and data TCM interfaces
The ARM926EJ-S processor implements ARM architecture version 5TEJ.
The ARM926EJ-S core includes new signal processing extensions to enhance 16-bit fixed-pointperformance using a single-cycle 32 x 16 multiply-accumulate (MAC) unit. The ARM subsystem also has32 KB of internal RAM and 16KB of internal ROM, accessible via the I-TCM and D-TCM interfacesthrough an arbiter. The same arbiter provides a slave DMA interface to the rest of the DMSoC.Furthermore, the ARM has DMA and CFG bus master ports via the AHB interface.
ARM Core20 SPRUFX7 – July 2008Submit Documentation Feedback
Table of contents
Other Texas Instruments Single Board Computer manuals