Page 3 - Contents; Preface
Contents Preface ....................................................................................................................................... 11 1 Introduction ....................................................................................................................... 14 1.1 Pu...
Page 5 - Appendix A Revision History
www.ti.com 4.66 Type Register (Host mode only) (HOST_TYPE0) ................................................................ 129 4.67 Transmit Type Register (Host mode only) (HOST_TXTYPE) ................................................... 129 4.68 NAKLimit0 Register (Host mode only) (HOST_NAKLIMIT0...
Page 11 - Read This First; About This Manual; This document uses the following conventions.; Related Documentation From Texas Instruments; Enter the literature number in the
Preface SPRUGH3 – November 2008 Read This First About This Manual This document describes the universal serial bus (USB) controller in the TMS320DM357 Digital MediaSystem-on-Chip (DMSoC). Notational Conventions This document uses the following conventions. • Hexadecimal numbers are shown with the su...
Page 12 - Notational Conventions; — TMS320DM357 DMSoC Host Port Interface (HPI) Reference Guide.
Notational Conventions www.ti.com SPRUG28 — TMS320DM357 DMSoC 64-Bit Timer User's Guide. Describes the operation of the software-programmable 64-bit timer in the TMS320DM357 Digital Media System-on-Chip (DMSoC).Timer 0 and Timer 1 are used as general-purpose (GP) timers and can be programmed in 64-b...
Page 13 - — TMS320DM357 DMSoC DDR2 Memory Controller User's Guide.; SPRUGH2; — TMS320DM357 DMSoC Peripherals Overview Reference Guide.; SPRUGH3; — TMS320DM357 DMSoC Universal Serial Bus Controller User's Guide.
www.ti.com Notational Conventions SPRUG37 — TMS320DM357 DMSoC Pulse-Width Modulator (PWM) Peripheral User's Guide. Describes the pulse-width modulator (PWM) peripheral in the TMS320DM357 Digital MediaSystem-on-Chip (DMSoC). SPRUG38 — TMS320DM357 DMSoC DDR2 Memory Controller User's Guide. Describes t...
Page 14 - Introduction; Purpose of the Peripheral; The USB has the following features:
1 Introduction 1.1 Purpose of the Peripheral 1.2 Features 1.3 Features Not Supported User's Guide SPRUGH3 – November 2008 Universal Serial Bus (USB) Controller This document describes the universal serial bus (USB) controller in the TMS320DM357 Digital MediaSystem-on-Chip (DMSoC). The controller sup...
Page 15 - Functional Block Diagram; The USB functional block diagram is shown in; Figure 1. Functional Block Diagram
1.4 Functional Block Diagram Internal bus CPPI DMA engine FIFO encode/ decode Packet USB PHY 2.0 USB 24 MHz oscillator crystal Registers, interrupts, endpoint control, and packet scheduling www.ti.com Introduction The USB functional block diagram is shown in Figure 1 . Figure 1. Functional Block Dia...
Page 16 - Supported Use Case Examples; The USB supports the following user cases:
1.5 Supported Use Case Examples Introduction www.ti.com The USB supports the following user cases: Detailed information about the architecture and operation of the USB controller follows in Section 2 . Programming examples are also provided for each of the operational modes of the controller. User C...
Page 17 - An example of how to program the USB Endpoints in peripheral mode
www.ti.com Introduction User Case 2: An example of how to program the USB Endpoints in peripheral mode Example 2. Programming the USB Endpoints in Peripheral Mode // DMA channel number. Valid values are 0, 1, 2, or 3. int CHAN_NUM = 0; // Fifo sizes: uncomment the desired size.// This example uses 6...
Page 18 - An example of how to program the USB endpoints in host mode
Introduction www.ti.com User Case 3: An example of how to program the USB endpoints in host mode Example 3. Programming the USB Endpoints in Host Mode // DMA channel number. Valid values are 0, 1, 2, or 3. int CHAN_NUM = 0; // Fifo sizes: uncomment the desired size.// This example uses 64-byte fifo....
Page 19 - Example 3. Programming the USB Endpoints in Host Mode (continued)
www.ti.com Introduction Example 3. Programming the USB Endpoints in Host Mode (continued) usbRegs->TXFIFOSZ = fifosize | ((double_buffer & 1)<<4); usbRegs->TXFIFOADDR = fifo_start_address + (1<<(fifosize+double_buffer));usbRegs->RXMAXP = FIFO_MAXP;usbRegs->TXMAXP = FIFO_M...
Page 20 - An example of how to do host negotiation to support USB
Introduction www.ti.com User Case 4: An example of how to do host negotiation to support USB If the HOSTREQ bit in the DEVCTL register is set, host negotiation is performed by the hardware whenthe device enters suspend mode. The bit is cleared when host negotiation is complete. User Case 5: An examp...
Page 22 - Industry Standard(s) Compliance Statement
1.6 Industry Standard(s) Compliance Statement Introduction www.ti.com Example 4. Programming the USB DMA Controller (continued) // Increment descriptor countertx_desc[ch]++; } // Routine to start the RX DMA for a given channelvoid start_rx_dma(int ch) { int index_save; index_save = usbRegs->INDEX...
Page 23 - Clock Control; Peripheral Architecture; The USB controller provides the following I/O signals.; For detailed information about the USB controller registers, see
2 Peripheral Architecture 2.1 Clock Control 2.2 Signal Descriptions 2.3 Indexed and Non-Indexed Registers www.ti.com Peripheral Architecture Information related to clock generation and control for the USB peripheral will be added in a future revisionof this document. Clocks for USB are generated bas...
Page 24 - USB Controller Host and Peripheral Modes Operation; The start address of the FIFO within the RAM block
2.4 USB PHY Initialization 2.5 Dynamic FIFO Sizing 3 USB Controller Host and Peripheral Modes Operation USB Controller Host and Peripheral Modes Operation www.ti.com The following bits in USBPHY_CTL must be cleared to enable the USB controller: OSCPDWN andPHYPDWN. The following bits in USBPHY_CTL mu...
Page 25 - Figure 2. Interrupt Service Routine Flow Chart
Read interruptstatus register Resume interrupt ? Resume routine Yes No A device or B device ? SESSREQ interrupt ? No Vbus error interrupt ? Yes Yes A device B device Session req routine routine Vbus error ? Host or peripheral Peripheral Host ? Connect interrupt Connect routine Yes routine Babble ? Y...
Page 26 - USB Controller Peripheral Mode Operation; Peripheral Mode: Control Transactions; Soft connect
3.1 USB Controller Peripheral Mode Operation 3.1.1 Peripheral Mode: Control Transactions USB Controller Host and Peripheral Modes Operation www.ti.com • Soft connect - After a reset, the SOFTCONN bit of POWER register (bit 6) is cleared to 0. The controller will therefore appear disconnected until t...
Page 28 - Read Requests
3.1.1.3 Read Requests USB Controller Host and Peripheral Modes Operation www.ti.com If the length of the data associated with the request (indicated by the wLength field in the command) isgreater than the maximum packet size for endpoint 0, further data packets will be sent. In this case,PERI_CSR0 s...
Page 29 - Endpoint 0 States; Figure 3; Figure 3. CPU Actions at Transfer Phases
3.1.1.4 Endpoint 0 States Idle Tx state Rx state Sequence #1 Sequence #2 Sequence #3 www.ti.com USB Controller Host and Peripheral Modes Operation When the USB controller is operating as a peripheral device, the endpoint 0 control needs three modes –IDLE, TX and RX – corresponding to the different p...
Page 30 - Figure 4. Sequence of Transfer
Int Setup IN data phase Int IN data phase Int IN data phase Int Status phase (OUT) Int Sequence #1 Idle TX state Idle set TxPktRdy Load FIFO and and set DataEnd Load FIFOand setTxPktRdy Unload device req. and clear RxPktRdy Load FIFOand setTxPktRdy CPU actions Status phase Setup CPU actions Sequence...
Page 31 - Endpoint 0 Service Routine; An Endpoint 0 interrupt is generated when:
3.1.1.5 Endpoint 0 Service Routine www.ti.com USB Controller Host and Peripheral Modes Operation An Endpoint 0 interrupt is generated when: • The controller sets the RXPKTRDY bit of PERI_CSR0 (bit 0) after a valid token has been received anddata has been written to the FIFO. • The controller clears ...
Page 32 - Figure 5. Service Endpoint 0 Flow Chart
Service endpoint 0 Read endpoint 0 CSR Sent stall ? Yes Clear SentStall bit state −> IDLE No No Set ServicedSetupEnd state −> IDLE Setup end ? Yes State Yes No = IDLE ? IDLE mode TX mode No = TX ? State Yes RX mode = RX* ? State Yes * By default USB Controller Host and Peripheral Modes Operati...
Page 33 - IDLE Mode; Figure 6; Figure 6. IDLE Mode Flow Chart
IDLE mode RxPktRdy set? Return No Yes Set ServiceRxPktRdy Unload FIFO Decode command Yes Command has data phase ? No Process command Set DataEnd Set ServicedRxPktRdy Return Data No phase = IN ? State −> TX Yes Return State −> RX Return www.ti.com USB Controller Host and Peripheral Modes Operat...
Page 34 - TX Mode; Figure 7; Figure 7. TX Mode Flow Chart
TX mode Write MaxP bytes to FIFO Last packet ? No Yes Set TxPktRdy and set DataEnd state −> IDLE Return TxPktRdy Set USB Controller Host and Peripheral Modes Operation www.ti.com 3.1.1.5.2 TX Mode When the endpoint is in TX state all arriving IN tokens need to be treated as part of a data phase u...
Page 35 - RX Mode; Figure 8; Figure 8. RX Mode Flow Chart
RX mode RxPktRdy set ? Return No Yes Read Count0 register (n) Unload n bytes from FIFO Last packet ? No Yes Set ServicedRxPktRdy Set ServicedRxPktRdy and DataEnd state->IDLE Return www.ti.com USB Controller Host and Peripheral Modes Operation 3.1.1.5.3 RX Mode In RX mode, all arriving data should...
Page 36 - Error Handling; Stall Issued to Control Transfers
USB Controller Host and Peripheral Modes Operation www.ti.com 3.1.1.5.4 Error Handling A control transfer may be aborted due to a protocol error on the USB, the host prematurely ending thetransfer, or if the software wishes to abort the transfer (e.g., because it cannot process the command). The con...
Page 37 - Bulk Transactions; Peripheral Mode: Bulk In Transactions; Setup; Table 2
3.1.2 Bulk Transactions 3.1.2.1 Peripheral Mode: Bulk In Transactions www.ti.com USB Controller Host and Peripheral Modes Operation A Bulk IN transaction is used to transfer non-periodic data from the USB peripheral device to the host. The following optional features are available for use with a Tx ...
Page 38 - Peripheral Mode: Bulk OUT Transactions; Operation
3.1.2.2 Peripheral Mode: Bulk OUT Transactions USB Controller Host and Peripheral Modes Operation www.ti.com 3.1.2.1.2 Operation When data is to be transferred over a Bulk IN pipe, a data packet needs to be loaded into the FIFO andthe PERI_TXCSR register written to set the TXPKTRDY bit (bit 0). When...
Page 39 - Table 3
www.ti.com USB Controller Host and Peripheral Modes Operation 3.1.2.2.1 Setup In configuring an Rx endpoint for Bulk OUT transactions, the RXMAXP register must be written with themaximum packet size (in bytes) for the endpoint. This value should be the same as the wMaxPacketSizefield of the Standard...
Page 40 - Interrupt Transactions
3.1.3 Interrupt Transactions USB Controller Host and Peripheral Modes Operation www.ti.com 3.1.2.2.3 Error Handling If the software wants to shut down the Bulk OUT pipe, it should set the SENDSTALL bit (bit 5 ofPERI_RXCSR). When the controller receives the next packet it will send a STALL to the hos...
Page 41 - Isochronous Transactions; Isochronous IN Transactions; Table 4
3.1.4 Isochronous Transactions 3.1.4.1 Isochronous IN Transactions www.ti.com USB Controller Host and Peripheral Modes Operation An Isochronous IN transaction is used to transfer periodic data from the function controller to the host. The following optional features are available for use with a Tx e...
Page 42 - Isochronous OUT Transactions
3.1.4.2 Isochronous OUT Transactions USB Controller Host and Peripheral Modes Operation www.ti.com An interrupt is generated whenever a packet is sent to the host and the software may use this interrupt toload the next packet into the FIFO and set the TXPKTRDY bit in the PERI_TXCSR register (bit 0) ...
Page 43 - Table 5
www.ti.com USB Controller Host and Peripheral Modes Operation 3.1.4.2.1 Setup In configuring an Rx endpoint for Isochronous OUT transactions, the RXMAXP register must be writtenwith the maximum packet size (in bytes) for the endpoint. This value should be the same as thewMaxPacketSize field of the S...
Page 44 - USB Controller Host Mode Operation; Host Mode: Control Transactions; Entry into Suspend mode
3.2 USB Controller Host Mode Operation 3.2.1 Host Mode: Control Transactions USB Controller Host and Peripheral Modes Operation www.ti.com • Entry into Suspend mode . When operating as a host, the controller can be prompted to enter Suspend mode by setting the SUSPENDM bit in the POWER register. Whe...
Page 45 - Setup Phase; For the SETUP Phase of a control transaction (; These bits must be set together.; Figure 9. Setup Phase of a Control Transaction Flow Chart
3.2.1.1 Setup Phase Transaction scheduled TxPktRdy and SetupPkt both set ? SETUP token sent DATA0 oacket sent ? received Stall No Yes Yes No RxStall set TxPktRdy cleared Error Count cleared interrupt generated Command notsupported bytarget TxPktRdy cleared Error Count cleared Interrupt generated Yes...
Page 46 - IN Data Phase; For the IN Data Phase of a control transaction (
3.2.1.2 IN Data Phase USB Controller Host and Peripheral Modes Operation www.ti.com 3. At the end of the attempt to send the data, the controller will generate an Endpoint 0 interrupt. The software should then read HOST_CSR0 to establish whether the RXSTALL bit (bit 2), the ERROR bit(bit 4) or the N...
Page 47 - OUT Data Phase; Figure 10. IN Data Phase Flow Chart; For the OUT Data Phase of a control transaction (
IN token sent ? received STALL No Yes Yes No RxStall set ReqPkt cleared Error Count cleared Interrupt generated Problem indata sent Yes ? Data0/1 received Transaction complete No NAK received ? Yes ? NAK limit reached No Yes Error count cleared incremented Error count NAK Timeout set Endpoint halted...
Page 48 - Figure 11. OUT Data Phase Flow Chart
For each OUT packet specified in SETUP phase TxPktRdy set ? OUT token sent DATA0/1 packet sent ? received Stall No Yes Yes No RxStall set TxPktRdy cleared Error Count cleared interrupt generated Command couldnot be completed TxPktRdy cleared Error Count cleared Interrupt generated Yes ? No ACK recei...
Page 49 - IN Status Phase (following SETUP Phase or OUT Data Phase); For the IN Status Phase of a Control Transaction (; Figure 12. Completion of SETUP or OUT Data Phase Flow Chart
3.2.1.4 IN Status Phase (following SETUP Phase or OUT Data Phase) IN token sent ? received STALL No Yes Yes No RxStall set ReqPkt cleared Error Count cleared Interrupt generated Yes ? Data1 received Transaction complete No NAK received ? Yes ? NAK limit reached No Yes Error count cleared incremented...
Page 50 - OUT Status Phase (following IN Data Phase); If RxPktRdy has been set, the CPU should simply clear RxPktRdy.; These bits need to be set together.
3.2.1.5 OUT Status Phase (following IN Data Phase) USB Controller Host and Peripheral Modes Operation www.ti.com 3. When the controller generates the Endpoint 0 interrupt, read HOST_CSR0 to establish whether the RXSTALL bit (bit 2), the ERROR bit (bit 4), the NAK_TIMEOUT bit (bit 7) or RXPKTRDY bit ...
Page 51 - Figure 13. Completion of IN Data Phase Flow Chart
Completion of IN data phase OUT token sent ? received Stall No Yes Yes No RxStall set TxPktRdy cleared Error Count cleared interrupt generated Command couldnot be completed TxPktRdy cleared Error Count cleared Interrupt generated Yes ? No ACK received Transaction complete No NAK received ? Yes ? NAK...
Page 52 - Host Mode: Bulk IN Transactions; Before initiating any Bulk IN Transactions in Host mode:
3.2.2 Bulk Transactions 3.2.2.1 Host Mode: Bulk IN Transactions USB Controller Host and Peripheral Modes Operation www.ti.com A Bulk IN transaction may be used to transfer non-periodic data from the external USB peripheral to thehost. The following optional features are available for use with an Rx ...
Page 53 - Bulk OUT Transactions; Before initiating any bulk OUT transactions:
3.2.2.2 Bulk OUT Transactions www.ti.com USB Controller Host and Peripheral Modes Operation 3.2.2.1.2 Operation When Bulk data is required from the USB peripheral device, the software should set the REQPKT bit inthe corresponding HOST_RXCSR register (bit 5). The controller will then send an IN token...
Page 54 - Host Mode: Interrupt Transactions
3.2.3 Host Mode: Interrupt Transactions USB Controller Host and Peripheral Modes Operation www.ti.com • The HOST_TXINTERVAL register needs to be written with the required value for the NAK limit (2 - 215frames/microframes), or cleared to 0 if the NAK timeout feature is not required. • The relevant i...
Page 55 - Host Mode: Isochronous IN Transactions; Before initiating an Isochronous IN Transactions in Host mode:
3.2.4 Isochronous Transactions 3.2.4.1 Host Mode: Isochronous IN Transactions www.ti.com USB Controller Host and Peripheral Modes Operation An Isochronous IN transaction is used to transfer periodic data from the USB peripheral to the host. The following optional features are available for use with ...
Page 56 - Host Mode: Isochronous Out Transactions; Before initiating any Isochronous OUT transactions:
3.2.4.2 Host Mode: Isochronous Out Transactions USB Controller Host and Peripheral Modes Operation www.ti.com FIFO unload requests will probably be irregular. If the data sink for the endpoint is going to some externalhardware, it may be better to minimize the requirement for additional buffering by...
Page 57 - DMA Operation; DMA Transmit Operation; Transmit Buffer; Pointer to the data buffer
3.3 DMA Operation 3.3.1 DMA Transmit Operation 3.3.1.1 Transmit Buffer 3.3.1.2 CPPI Transmit Buffer Descriptor www.ti.com USB Controller Host and Peripheral Modes Operation 3.2.4.2.2 Operation The operation starts when the software writes to the FIFO and sets TXPKTRDY bit of HOST_TXCSR(bit 0). This ...
Page 58 - Four Words of Transmit Buffer Descriptor are described below.; Table 6. Transmit Buffer Descriptor Word 0
USB Controller Host and Peripheral Modes Operation www.ti.com • End of queue (EOQ) (only valid on EOP) • Packet Length (only valid with SOP) Transmit buffer descriptors contain 16 bytes (4 words) and must begin on 16-byte aligned addresses.Transmit buffer descriptors may be linked together to form p...
Page 59 - Transmit DMA State; The following information is stored in the Tx DMA State:
3.3.1.3 Transmit DMA State www.ti.com USB Controller Host and Peripheral Modes Operation Table 9. Transmit Buffer Descriptor Word 3 (continued) Bits Name Value Description 28 EOQ End of Queue: The End of Queue bit is set by the DMA controller to indicate that all packetsin the queue have been transm...
Page 60 - Figure 14. Tx Queue Flow Chart; Write the Buffer Length with the number of bytes in the buffer
3.3.1.4 Transmit Queue SOP descriptor Buffer Descriptor Buffer EOP descriptor Buffer Tx queue head descriptor pointer 3.3.1.5 Operation USB Controller Host and Peripheral Modes Operation www.ti.com Figure 14 shows a Tx queue. Tx queue provide a logical queue of DMA packets for transmission through a...
Page 61 - Transparent Mode and RNDIS Mode Transmit DMA Operation
3.3.1.6 Transparent Mode and RNDIS Mode Transmit DMA Operation www.ti.com USB Controller Host and Peripheral Modes Operation clear the Ownership bit in the DMA packet’s SOP buffer descriptor and issue an interrupt to the processorby writing the DMA packet’s last buffer descriptor address to the queu...
Page 62 - DMA Channel TearDown; DMA Receive Operation; Receive Buffer; RNDIS Mode Setup; EN bit of; Transparent Mode Setup; endpoint to be torn down.
3.3.1.7 DMA Channel TearDown 3.3.2 DMA Receive Operation 3.3.2.1 Receive Buffer USB Controller Host and Peripheral Modes Operation www.ti.com RNDIS Mode Setup The setup of RNDIS mode DMA is similar to the default Transparent Mode as mentioned in the previoussection. The following steps need to be ta...
Page 63 - CPPI Receive Buffer Descriptor; Table 10. Receive Buffer Descriptor Word 0; Table 11. Receive Buffer Descriptor Word 1; Table 12. Receive Buffer Descriptor Word 2
3.3.2.2 CPPI Receive Buffer Descriptor www.ti.com USB Controller Host and Peripheral Modes Operation Rx buffer descriptors provide information about a single corresponding Rx data buffer. Every Rx buffer hasa single Rx buffer descriptor that stores the following information: • Pointer to the data bu...
Page 64 - Receive DMA State; Table 13. Receive Buffer Descriptor Word 3
3.3.2.3 Receive DMA State USB Controller Host and Peripheral Modes Operation www.ti.com Table 13. Receive Buffer Descriptor Word 3 Bit Field Value Description 31 SOP Start of Packet: SOP Indicates that the descriptor buffer is the first buffer in the packet. Softwareshould clear the SOP bit when set...
Page 65 - Figure 15. Rx Queue Flow Chart; The software constructs receive queue in memory.
3.3.2.4 Receive Queue SOP descriptor Buffer Descriptor Buffer Descriptor Descriptor Buffer Buffer EOP descriptor Buffer Rx queue head descriptor pointer 3.3.2.5 Operation www.ti.com USB Controller Host and Peripheral Modes Operation Figure 15 shows an Rx Queue. Rx queue provide a logical queue of pr...
Page 66 - Set the EOP bit in the packet’s EOP buffer descriptor.
USB Controller Host and Peripheral Modes Operation www.ti.com The software enables packet reception on a given channel by writing the address of the first bufferdescriptor in the queue (nonzero value) to the channel’s head descriptor pointer (RCCPIDMASTATEW1)in the channel’s Rx DMA state. When packe...
Page 68 - DMA Teardown Procedure; Interrupt Handling; CTRLR.RNDIS bit field should be cleared to zero.; Table 14. Interrupts Generated by the USB Controller; The nine USB interrupt conditions are listed in; Table 15. USB Interrupt Conditions
3.3.2.8 DMA Teardown Procedure 3.4 Interrupt Handling USB Controller Host and Peripheral Modes Operation www.ti.com If RXn_AUTOREQ (where n is the channel number) of AUTOREQ register is set with binary 11, IN tokenswill be generated and sent to the target USB peripheral device even after the End Of ...
Page 70 - Test Modes
3.4.1 USB Core Interrupts 3.4.2 DMA Interrupts 3.5 Test Modes USB Controller Host and Peripheral Modes Operation www.ti.com There are two methods available for software to access USB core interrupts, selectable by the UINT bit ofCTRLR. The UINT bit cleared to 0 selects the PDR 2.0 compliant register...
Page 72 - The test procedure is as follows:
3.5.4 TEST_PACKET 3.5.5 FIFO_ACCESS USB Controller Host and Peripheral Modes Operation www.ti.com To execute the Test_Packet, the software should: 1. Start a session (if the core is being used in Host mode).2. Write the standard test packet (shown below) to the Endpoint 0 FIFO.3. Write 0x8 to the Te...
Page 74 - Reset Considerations; Software Reset Considerations; Interrupt Support; TMS320DMxxx DMSoC ARM Subsystem Reference Guide
3.6 Reset Considerations 3.6.1 Software Reset Considerations 3.6.2 Hardware Reset Considerations 3.6.3 USB Reset Considerations 3.7 Interrupt Support 3.8 EDMA Event Support 3.9 Power Management USB Controller Host and Peripheral Modes Operation www.ti.com The USB controller has two reset sources: ha...
Page 75 - Registers
4 Registers www.ti.com Registers Table 16 lists the memory-mapped registers for the universal serial bus (USB). See the device-specific data manual for the memory address of these registers. The base address is 01C6 4000h. Note: In some cases, a single register address can have different names or me...
Page 82 - and described in
4.1 Control Register (CTRLR) Registers www.ti.com Table 16. Universal Serial Bus (USB) Registers (continued) Offset Acronym Register Description Section 546h PERI_RXCSR Control Status Register for Peripheral Receive Endpoint Section 4.62 (peripheral mode) HOST_RXCSR Control Status Register for Host ...
Page 84 - The Auto Request Register (AUTOREQ) is shown in
4.4 Auto Request Register (AUTOREQ) Registers www.ti.com The Auto Request Register (AUTOREQ) is shown in Figure 19 and described in Table 20 . Figure 19. Auto Request Register (AUTOREQ) 31 16 Reserved R-0 15 8 7 6 5 4 3 2 1 0 Reserved Rx4 Rx3 Rx2 Rx1 R-0 R/W-0 R/W-0 R/W-0 R/W-0 LEGEND: R/W = Read/Wr...
Page 85 - The USB Interrupt Source Register (INTSRCR) is shown in
4.5 USB Interrupt Source Register (INTSRCR) www.ti.com Registers The USB Interrupt Source Register (INTSRCR) is shown in Figure 20 and described in Table 21 . Figure 20. USB Interrupt Source Register (INTSRCR) 31 25 24 16 Reserved USB R-0 R-0 15 13 12 8 7 5 4 0 Reserved RX Reserved TX R-0 R-0 R-0 R-...
Page 86 - USB Interrupt Source Set Register (INTSETR); The USB Interrupt Source Set Register (INTSETR) is shown in
4.6 USB Interrupt Source Set Register (INTSETR) Registers www.ti.com The USB Interrupt Source Set Register (INTSETR) is shown in Figure 21 and described in Table 22 . Figure 21. USB Interrupt Source Set Register (INTSETR) 31 25 24 16 Reserved USB R-0 W-0 15 13 12 8 7 5 4 0 Reserved RX Reserved TX R-...
Page 87 - USB Interrupt Source Clear Register (INTCLRR); The USB Interrupt Source Clear Register (INTCLRR) is shown in
4.7 USB Interrupt Source Clear Register (INTCLRR) www.ti.com Registers The USB Interrupt Source Clear Register (INTCLRR) is shown in Figure 22 and described in Table 23 . Figure 22. USB Interrupt Source Clear Register (INTCLRR) 31 25 24 16 Reserved USB R-0 W-0 15 13 12 8 7 5 4 0 Reserved RX Reserved...
Page 88 - The USB Interrupt Mask Register (INTMSKR) is shown in; Table 24. USB Interrupt Mask Register (INTMSKR) Field Descriptions
4.8 USB Interrupt Mask Register (INTMSKR) Registers www.ti.com The USB Interrupt Mask Register (INTMSKR) is shown in Figure 23 and described in Table 24 . Figure 23. USB Interrupt Mask Register (INTMSKR) 31 25 24 16 Reserved USB R-0 R-0 15 13 12 8 7 5 4 0 Reserved RX Reserved TX R-0 R-0 R-0 R-0 LEGE...
Page 89 - USB Interrupt Mask Set Register (INTMSKSETR); The USB Interrupt Mask Set Register (INTMSKSETR) is shown in
4.9 USB Interrupt Mask Set Register (INTMSKSETR) www.ti.com Registers The USB Interrupt Mask Set Register (INTMSKSETR) is shown in Figure 24 and described in Table 25 . Figure 24. USB Interrupt Mask Set Register (INTMSKSETR) 31 25 24 16 Reserved USB R-0 W-0 15 13 12 8 7 5 4 0 Reserved RX Reserved TX...
Page 90 - The USB Interrupt Mask Clear Register (INTMSKCLRR) is shown in
4.10 USB Interrupt Mask Clear Register (INTMSKCLRR) Registers www.ti.com The USB Interrupt Mask Clear Register (INTMSKCLRR) is shown in Figure 25 and described in Table 26 . Figure 25. USB Interrupt Mask Clear Register (INTMSKCLRR) 31 25 24 16 Reserved USB R-0 W-0 15 13 12 8 7 5 4 0 Reserved RX Rese...
Page 91 - The USB Interrupt Source Masked Register (INTMASKEDR) is shown in
4.11 USB Interrupt Source Masked Register (INTMASKEDR) www.ti.com Registers The USB Interrupt Source Masked Register (INTMASKEDR) is shown in Figure 26 and described in Table 27 . Figure 26. USB Interrupt Source Masked Register (INTMASKEDR) 31 25 24 16 Reserved USB R-0 R-0 15 13 12 8 7 5 4 0 Reserve...
Page 92 - The USB End of Interrupt Register (EOIR) is shown in; Table 28. USB End of Interrupt Register (EOIR) Field Descriptions; The USB Interrupt Vector Register (INTVECTR) is shown in
4.12 USB End of Interrupt Register (EOIR) 4.13 USB Interrupt Vector Register (INTVECTR) Registers www.ti.com The USB End of Interrupt Register (EOIR) is shown in Figure 27 and described in Table 28 . Figure 27. USB End of Interrupt Register (EOIR) 31 16 Reserved R-0 15 8 7 0 Reserved VECTOR R-0 R/W-...
Page 93 - The Transmit CPPI Control Register (TCPPICR) is shown in
4.14 Transmit CPPI Control Register (TCPPICR) 4.15 Transmit CPPI Teardown Register (TCPPITDR) www.ti.com Registers The Transmit CPPI Control Register (TCPPICR) is shown in Figure 29 and described in Table 30 . Figure 29. Transmit CPPI Control Register (TCPPICR) 31 16 Reserved R-0 15 1 0 Reserved TCP...
Page 94 - The CPPI DMA End of Interrupt Register (CPPIEOIR) is shown in
4.16 CPPI DMA End of Interrupt Register (CPPIEOIR) Registers www.ti.com Note: This register was previously named TCPPIEOIR, and that name will continue to exist in theCSL for backward compatibility. The CPPI DMA End of Interrupt Register (CPPIEOIR) is shown in Figure 31 and described in Table 32 . F...
Page 95 - The Transmit CPPI Masked Status Register (TCPPIMSKSR) is shown in
4.17 Transmit CPPI Masked Status Register (TCPPIMSKSR) 4.18 Transmit CPPI Raw Status Register (TCPPIRAWSR) www.ti.com Registers The Transmit CPPI Masked Status Register (TCPPIMSKSR) is shown in Figure 32 and described in Table 33 . Figure 32. Transmit CPPI Masked Status Register (TCPPIMSKSR) 31 16 R...
Page 96 - and described
4.19 Transmit CPPI Interrupt Enable Set Register (TCPPIIENSETR) 4.20 Transmit CPPI Interrupt Enable Clear Register (TCPPIIENCLRR) Registers www.ti.com The Transmit CPPI Interrupt Enable Set Register (TCPPIIENSETR) is shown in Figure 34 and described in Table 35 . Figure 34. Transmit CPPI Interrupt E...
Page 97 - The Receive CPPI Control Register (RCPPICR) is shown in
4.21 Receive CPPI Control Register (RCPPICR) 4.22 Receive CPPI Masked Status Register (RCPPIMSKSR) www.ti.com Registers The Receive CPPI Control Register (RCPPICR) is shown in Figure 36 and described in Table 37 . Figure 36. Receive CPPI Control Register (RCPPICR) 31 16 Reserved R-0 15 1 0 Reserved ...
Page 98 - Receive CPPI Interrupt Enable Set Register (RCPPIENSETR); The Receive CPPI Raw Status Register (RCPPIRAWSR) is shown in
4.23 Receive CPPI Raw Status Register (RCPPIRAWSR) 4.24 Receive CPPI Interrupt Enable Set Register (RCPPIENSETR) Registers www.ti.com The Receive CPPI Raw Status Register (RCPPIRAWSR) is shown in Figure 38 and described in Table 39 . Figure 38. Receive CPPI Raw Status Register (RCPPIRAWSR) 31 16 Res...
Page 99 - Receive CPPI Interrupt Enable Clear Register (RCPPIIENCLRR)
4.25 Receive CPPI Interrupt Enable Clear Register (RCPPIIENCLRR) 4.26 Receive Buffer Count 0 Register (RBUFCNT0) www.ti.com Registers The Receive CPPI Interrupt Enable Clear Register (RCPPIIENCLRR) is shown in Figure 40 and described in Table 41 . Figure 40. Receive CPPI Interrupt Enable Clear Regis...
Page 100 - The Receive Buffer Count 1 Register (RBUFCNT1) is shown in
4.27 Receive Buffer Count 1 Register (RBUFCNT1) 4.28 Receive Buffer Count 2 Register (RBUFCNT2) Registers www.ti.com The Receive Buffer Count 1 Register (RBUFCNT1) is shown in Figure 42 and described in Table 43 . Figure 42. Receive Buffer Count 1 Register (RBUFCNT1) 31 16 Reserved R-0 15 0 BUFCNT R...
Page 101 - The Receive Buffer Count 3 Register (RBUFCNT3) is shown in
4.29 Receive Buffer Count 3 Register (RBUFCNT3) 4.30 Transmit CPPI DMA State Word 0 (TCPPIDMASTATEW0) www.ti.com Registers The Receive Buffer Count 3 Register (RBUFCNT3) is shown in Figure 44 and described in Table 45 . Figure 44. Receive Buffer Count 3 Register (RBUFCNT3) 31 16 Reserved R-0 15 0 BU...
Page 102 - The Transmit CPPI DMA State Word 1 (TCPPIDMASTATEW1) is shown in
4.31 Transmit CPPI DMA State Word 1 (TCPPIDMASTATEW1) 4.32 Transmit CPPI DMA State Word 2 (TCPPIDMASTATEW2) Registers www.ti.com The Transmit CPPI DMA State Word 1 (TCPPIDMASTATEW1) is shown in Figure 46 and described in Table 47 . Figure 46. Transmit CPPI DMA State Word 1 (TCPPIDMASTATEW1) 31 16 SO...
Page 103 - The Transmit CPPI DMA State Word 3 (TCPPIDMASTATEW3) is shown in
4.33 Transmit CPPI DMA State Word 3 (TCPPIDMASTATEW3) 4.34 Transmit CPPI DMA State Word 4 (TCPPIDMASTATEW4) www.ti.com Registers Table 48. Transmit CPPI DMA State Word 2 (TCPPIDMASTATEW2) Field Descriptions (continued) Bit Field Value Description 0 Reserved 0 Reserved The Transmit CPPI DMA State Wor...
Page 104 - The Transmit CPPI DMA State Word 5 (TCPPIDMASTATEW5) is shown in
4.35 Transmit CPPI DMA State Word 5 (TCPPIDMASTATEW5) 4.36 Transmit CPPI Completion Pointer (TCPPICOMPPTR) Registers www.ti.com Table 50. Transmit CPPI DMA State Word 4 (TCPPIDMASTATEW4) Field Descriptions (continued) Bit Field Value Description 15-0 CURR_BUFFER_LENGTH 0-FFFFh Current Buffer Length ...
Page 105 - The Receive CPPI DMA State Word 0 (RCPPIDMASTATEW0) is shown in
4.37 Receive CPPI DMA State Word 0 (RCPPIDMASTATEW0) 4.38 Receive CPPI DMA State Word 1 (RCPPIDMASTATEW1) www.ti.com Registers Table 52. Transmit CPPI Completion Pointer (TCPPICOMPPTR) Field Descriptions Bit Field Value Description 31-2 DESC_ADDR 0-3FFF FFFFh Descriptor Address This field contains t...
Page 107 - The Receive CPPI DMA State Word 2 (RCPPIDMASTATEW2) is shown in
4.39 Receive CPPI DMA State Word 2 (RCPPIDMASTATEW2) 4.40 Receive CPPI DMA State Word 3 (RCPPIDMASTATEW3) www.ti.com Registers The Receive CPPI DMA State Word 2 (RCPPIDMASTATEW2) is shown in Figure 54 and described in Table 55 . Figure 54. Receive CPPI DMA State Word 2 (RCPPIDMASTATEW2) 31 16 SOP_DE...
Page 109 - The Receive CPPI DMA State Word 4 (RCPPIDMASTATEW4) is shown in; The Receive CPPI DMA State Word 5 (RCPPIDMASTATEW5) is shown in
4.41 Receive CPPI DMA State Word 4 (RCPPIDMASTATEW4) 4.42 Receive CPPI DMA State Word 5 (RCPPIDMASTATEW5) www.ti.com Registers The Receive CPPI DMA State Word 4 (RCPPIDMASTATEW4) is shown in Figure 56 and described in Table 57 . Figure 56. Receive CPPI DMA State Word 4 (RCPPIDMASTATEW4) 31 0 CURR_BU...
Page 110 - The Receive CPPI DMA State Word 6 (RCPPIDMASTATEW6) is shown in
4.43 Receive CPPI DMA State Word 6 (RCPPIDMASTATEW6) 4.44 Receive CPPI Completion Pointer (RCPPICOMPPTR) Registers www.ti.com The Receive CPPI DMA State Word 6 (RCPPIDMASTATEW6) is shown in Figure 58 and described in Table 59 . Figure 58. Receive CPPI DMA State Word 6 (RCPPIDMASTATEW6) 31 16 SOP_BUF...
Page 111 - The Function Address Register (FADDR) is shown in; Table 61. Function Address Register (FADDR) Field Descriptions; The Power Management Register (POWER) is shown in; Table 62. Power Management Register (POWER) Field Descriptions
4.45 Function Address Register (FADDR) 4.46 Power Management Register (POWER) www.ti.com Registers Table 60. Receive CPPI Completion Pointer (RCPPICOMPPTR) Field Descriptions (continued) Bit Field Value Description 0 RDBK_MODE Readback / Compare Mode 0 Compare Mode. Indicates that the value that is ...
Page 112 - Interrupt Register for Receive Endpoints 1 to 4 (INTRRX); and; Field Descriptions
4.47 Interrupt Register for Endpoint 0 Plus Transmit Endpoints 1 to 4 (INTRTX) 4.48 Interrupt Register for Receive Endpoints 1 to 4 (INTRRX) Registers www.ti.com Table 62. Power Management Register (POWER) Field Descriptions (continued) Bit Field Value Description 3 RESET 0-1 This bit is set when Re...
Page 113 - Figure 63. Interrupt Register for Receive Endpoints 1 to 4 (INTRRX); The Interrupt Enable Register for INTRTX (INTRTXE) is shown in
4.49 Interrupt Enable Register for INTRTX (INTRTXE) 4.50 Interrupt Enable Register for INTRRX (INTRRXE) www.ti.com Registers Figure 63. Interrupt Register for Receive Endpoints 1 to 4 (INTRRX) 31 16 Reserved R-0 15 5 4 3 2 1 0 Reserved EP4RX EP3RX EP2RX EP1RX Reserved R-0 R-0 R-0 R-0 R-0 R-0 LEGEND:...
Page 115 - Figure 66. Interrupt Register for Common USB Interrupts (INTRUSB)
4.51 Interrupt Register for Common USB Interrupts (INTRUSB) www.ti.com Registers The Interrupt Register for Common USB Interrupts (INTRUSB) is shown in Figure 66 and described in Table 67 . Reading this register causes all bits to be cleared. Note: Unless the UINT bit of CTRLR is set, do not read or...
Page 116 - The Interrupt Enable Register for INTRUSB (INTRUSBE) is shown in
4.52 Interrupt Enable Register for INTRUSB (INTRUSBE) Registers www.ti.com The Interrupt Enable Register for INTRUSB (INTRUSBE) is shown in Figure 67 and described in Table 68 . Note: Unless the UINT bit of CTRLR is set, do not read or write this register directly. Use theINTMSKSETR/INTMSKCLRR regis...
Page 117 - The Frame Number Register (FRAME) is shown in
4.53 Frame Number Register (FRAME) 4.54 Index Register for Selecting the Endpoint Status and Control Registers (INDEX) www.ti.com Registers The Frame Number Register (FRAME) is shown in Figure 68 and described in Table 69 . Figure 68. Frame Number Register (FRAME) 15 11 10 0 Reserved FRAMENUMBER R-0...
Page 118 - The Register to Enable the USB 2.0 Test Modes (TESTMODE) is shown in
4.55 Register to Enable the USB 2.0 Test Modes (TESTMODE) Registers www.ti.com The Register to Enable the USB 2.0 Test Modes (TESTMODE) is shown in Figure 70 and described in Table 71 . Figure 70. Register to Enable the USB 2.0 Test Modes (TESTMODE) 7 6 5 4 3 2 1 0 FORCE_HOST FIFO_ACCESS FORCE_FS FO...
Page 128 - The Count 0 Register (COUNT0) is shown in; Table 81. Receive Count Register (RXCOUNT) Field Descriptions
4.64 Count 0 Register (COUNT0) 4.65 Receive Count Register (RXCOUNT) Registers www.ti.com The Count 0 Register (COUNT0) is shown in Figure 79 and described in Table 80 . Figure 79. Count 0 Register (COUNT0) 15 7 6 0 Reserved EP0RXCOUNT R-0 R-0 LEGEND: R = Read only; - n = value after reset Table 80....
Page 132 - The configuration data register (CONFIGDATA) is shown in
4.72 Configuration Data Register (CONFIGDATA) Registers www.ti.com Table 87. Receive Interval Register (Host mode only) (HOST_RXINTERVAL) Field Descriptions Bit Field Value Description 7-0 POLINTVL_NAKLIMIT 0-FFh For Interrupt and Isochronous transfers, defines the polling interval for thecurrently-...
Page 134 - Transmit and Receive FIFO Register for Endpoint 0 (FIFO0); Figure 88. Transmit and Receive FIFO Register for Endpoint 0 (FIFO0)
4.73 Transmit and Receive FIFO Register for Endpoint 0 (FIFO0) Registers www.ti.com The Transmit and Receive FIFO Register for Endpoint 0 (FIFO0) is shown in Figure 88 and described in Table 89 . Figure 88. Transmit and Receive FIFO Register for Endpoint 0 (FIFO0) 31 0 DATA R/W-0 LEGEND: R/W = Read/...
Page 135 - Figure 89. Transmit and Receive FIFO Register for Endpoint 1 (FIFO1); Figure 90. Transmit and Receive FIFO Register for Endpoint 2 (FIFO2)
4.74 Transmit and Receive FIFO Register for Endpoint 1 (FIFO1) 4.75 Transmit and Receive FIFO Register for Endpoint 2 (FIFO2) www.ti.com Registers The Transmit and Receive FIFO Register for Endpoint 1 (FIFO1) is shown in Figure 89 and described in Table 90 . Figure 89. Transmit and Receive FIFO Regi...
Page 136 - Figure 91. Transmit and Receive FIFO Register for Endpoint 3 (FIFO3); Figure 92. Transmit and Receive FIFO Register for Endpoint 4 (FIFO4)
4.76 Transmit and Receive FIFO Register for Endpoint 3 (FIFO3) 4.77 Transmit and Receive FIFO Register for Endpoint 4 (FIFO4) Registers www.ti.com The Transmit and Receive FIFO Register for Endpoint 3 (FIFO3) is shown in Figure 91 and described in Table 92 . Figure 91. Transmit and Receive FIFO Regi...
Page 137 - The OTG Device Control Register (DEVCTL) is shown in; Table 94. OTG Device Control Register (DEVCTL) Field Descriptions
4.78 OTG Device Control Register (DEVCTL) www.ti.com Registers The OTG Device Control Register (DEVCTL) is shown in Figure 93 and described in Table 94 . Figure 93. OTG Device Control Register (DEVCTL) 7 6 5 4 3 2 1 0 BDEVICE FSDEV LSDEV VBUS HOSTMODE HOSTREQ SESSION R-0 R-0 R-0 R-0 R-0 R/W-0 R/W-0 ...
Page 138 - Table 96. Receive Endpoint FIFO Size (RXFIFOSZ) Field Descriptions
4.79 Transmit Endpoint FIFO Size (TXFIFOSZ) 4.80 Receive Endpoint FIFO Size (RXFIFOSZ) Registers www.ti.com Section 2.5 describes dynamically setting endpoint FIFO sizes. The Transmit Endpoint FIFO Size (TXFIFOSZ) is shown in Figure 94 and described in Table 95 . Figure 94. Transmit Endpoint FIFO Si...
Page 140 - Table 100. Transmit Hub Address (TXHUBADDR) Field Descriptions
4.83 Transmit Function Address (TXFUNCADDR) 4.84 Transmit Hub Address (TXHUBADDR) 4.85 Transmit Hub Port (TXHUBPORT) Registers www.ti.com The Transmit Function Address (TXFUNCADDR) is shown in Figure 98 and described in Table 99 . Figure 98. Transmit Function Address (TXFUNCADDR) 7 6 0 Reserved FUNC...
Page 141 - Table 103. Receive Hub Address (RXHUBADDR) Field Descriptions
4.86 Receive Function Address (RXFUNCADDR) 4.87 Receive Hub Address (RXHUBADDR) 4.88 Receive Hub Port (RXHUBPORT) www.ti.com Registers The Receive Function Address (RXFUNCADDR) is shown in Figure 101 and described in Table 102 . Figure 101. Receive Function Address (RXFUNCADDR) 7 6 0 Reserved FUNCAD...
Page 143 - Appendix A
Appendix A Revision History www.ti.com Appendix A Table A-1 lists the changes made since the previous version of this document. Table A-1. Document Revision History Reference Additions/Modifications/Deletions Section 1 Added note. Section 1.3 Added section. Section 2.4 Changed section. Section 3.1.1...
Page 144 - IMPORTANT NOTICE
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 shouldobtain the l...