| 数据搜索系统,热门电子元器件搜索 |
|
TUSB5052 数据表(PDF) 67 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
TUSB5052 数据表(HTML) 67 Page - Texas Instruments |
|
67 / 84 page ![]() 8–7 8.4 Host IN/OUT Transaction From/To P-Port 8.4.1 Host IN Transaction Figure 8–2 illustrates the data flow for a USB IN transaction (from P-port to host) using the DMA transfer. The MCU sets the IEDB (input-EDB) with the proper parameters (start-address, byte-count, etc.). In addi- tion, the MCU sets the DMA and P-port transfer direction. Once initialization has completed, MCU starts the DMA transfer by setting EN = 1 (DMA is in continuous mode). Initially, the UBM NAKs the host be- cause the buffer is empty (NAK = 1). Once the DMA completes the 64-byte transfer to the X-Buffer, it up- dates the byte-count (and sets NAK = 0) in IEDB and switches to the Y-buffer (DMA controls the X/Y-bit). The UBM starts transmitting the X-Buffer to host and the DMA transfers data from the parallel port to the Y-Buffer. When the UBM completes the transfer, it sets NAK = 1 indicating to the DMA that the buffer is ready. This ping-pong transfer continues until the MCU halts the transfer (or times out). If for any reason the DMA does not transfer a full 64-bytes, it updates the (partial) byte-count value (and sets NAK = 0) in IEDB, and interrupts the MCU. The UBM uses this count to transfer a partial packet to host. Note: the DMA increments the byte-count and save it in IEDB at the end of the transfer. On the other hand, the UBM uses the byte-count from IEDB as the transfer count but does not update the IEDB at the end of the transfer, i.e., the DMA both increments and updates; the UBM only decrements. UBM 64 Byte Y-Buffer 64 Byte X-Buffer DMA5 DIR = 1 PPDAT Host P-Port UBM uses the X/Y-bit to select X/Y-buffers. UBM uses the byte count in IEDB for the IN transfer. At the end of transfer UBM sets NAK = 1 DMA sets the X/Y-bit. At the end of transfer, DMA updates the IEDB with the byte count (and NAK = 0) and toggles the X/Y–bit. Figure 8–2. USB IN Transaction From P-Port (DMA CNT mode) |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |