| Electronic Components Datasheet Search |
|
TAS1020 Datasheet(PDF) 28 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
TAS1020 Datasheet(HTML) 28 Page - Texas Instruments |
|
28 / 93 page ![]() 2–14 2.2.7.3.2 Bulk In Transaction Using MCU The steps to be followed for a bulk in transaction are as follows: 1. MCU initializes one of the in endpoints as an in bulk endpoint by programming the appropriate USB endpoint configuration block. This entails programming the buffer size and buffer base address, selecting the buffer mode, enabling the endpoint interrupt, initializing the toggle bit, enabling the endpoint and setting the NACK bit. 2. The data packet to be sent to the host PC is written to the buffer by the MCU. The MCU also updates the data count value then clears the NACK bit to a 0 to enable the data packet to be sent to the host PC. 3. The host PC sends an in token packet addressed to the in endpoint. After receiving the in token, the UBM transmits the data packet to the host PC. If the data packet is received without errors by the host PC, then an ACK handshake is returned. The UBM then toggles the toggle bit, sets the NACK bit to a 1, and asserts the endpoint interrupt. 4. The MCU services the interrupt and prepares to send the next data packet to the host PC. 5. If the NACK bit is set to a 1 when the in token packet is received, the UBM simply returns a NAK handshake to the host PC. If the STALL bit is set to a 1 when the in token packet is received, the UBM simply returns a STALL handshake to the host PC. If no handshake packet is received from the host PC, then the UBM prepares to retransmit the same data packet again. NOTE: In double buffer mode for bulk in transactions, the UBM selects between the X and Y buffer based on the value of the toggle bit. If the toggle bit is a 0, the UBM reads the data packet to the X buffer. If the toggle bit is a 1, the UBM reads the data packet to the Y buffer. 2.2.7.3.3 Bulk Out Transaction Through DMA This transaction is used for mass storage class USB applications to move bulk data through DMA to C-Port. C-Port can be programmed in General Purpose mode or AC97 mode. When in general purpose mode, SYNC is disabled when no data is there to send out. In the AC97 mode, Tag fields are de-asserted when no valid data is in the buffer to be sent out. A sample for the Bulk Out transaction is the number of bytes to be transferred in a codec frame. Two modes of transfer are possible. The first one is the software handshake mode using MCU and external controller (DSP) and the second one is no handshake mode where MCU intervention is less for higher rates of transfer. Software Handshake Using MCU and External Controller (DSP) The following steps explain the operation: 1. hsken (Handshake enable) bit in DMA channel control definition register = 1. 2. UBM after receiving BULK packet, it puts it into the buffer, sets the NACK bit and the data count in the data count register, and generates an interrupt to the MCU. 3. MCU after receiving interrupt can decide to use DMA to send the packet to C-Port. 4. MCU decides how many BULK OUT packets need to be handled by DMA without MCU intervention. MCU writes this value (16-bit) to DMAPCNT1, MDMAPCNT0 registers. 5. MCU configures the C-Port to be in AC97/GP modes. If C-Port is used as GP mode, then MCU must set the CptBlk bit in GLOBCTRL register. 6. Then, MCU enables the DMA. 7. DMA then transfers data through the C-Port and once it finishes the number of packets programmed by MCU, it disables itself and then generates DMA0 or DMA1 interrupt to MCU. 8. MCU after receiving DMA interrupt will know that the DMAPCNT packets are sent out to the C-Port and takes control again. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |