| 数据搜索系统,热门电子元器件搜索 |
|
AT83C5136-RDTUL 数据表(PDF) 109 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AT83C5136-RDTUL 数据表(HTML) 109 Page - ATMEL Corporation |
|
109 / 171 page ![]() 109 AT83C5134/35/36 7683B–USB–03/07 Bulk/Interrupt OUT Transactions in Ping-pong Mode Figure 55. Bulk/Interrupt OUT Transactions in Ping-pong Mode An endpoint will be first enabled and configured before being able to receive Bulk or Interrupt packets. When a valid OUT packet is received on the endpoint bank 0, the RXOUTB0 bit is set by the USB controller. This triggers an interrupt if enabled. The firmware has to select the corresponding endpoint, store the number of data bytes by reading the UBYCTLX and UBYCTHX registers. If the received packet is a ZLP (Zero Length Packet), the UBYCTLX and UBYCTHX register values are equal to 0 and no data has to be read. When all the endpoint FIFO bytes have been read, the firmware will clear the RXOUB0 bit to allow the USB controller to accept the next OUT packet on the endpoint bank 0. This action switches the endpoint bank 0 and 1. Until the RXOUTB0 bit has been cleared by the firmware, the USB controller will answer a NAK handshake for each OUT requests on the bank 0 endpoint FIFO. When a new valid OUT packet is received on the endpoint bank 1, the RXOUTB1 bit is set by the USB controller. This triggers an interrupt if enabled. The firmware empties the bank 1 endpoint FIFO before clearing the RXOUTB1 bit. Until the RXOUTB1 bit has been cleared by the firmware, the USB controller will answer a NAK handshake for each OUT requests on the bank 1 endpoint FIFO. The RXOUTB0 and RXOUTB1 bits are alternatively set by the USB controller at each new valid packet receipt. The firmware has to clear one of these two bits after having read all the data FIFO to allow a new valid packet to be stored in the corresponding bank. A NAK handshake is sent by the USB controller only if the banks 0 and 1 has not been released by the firmware. If the Host sends more bytes than supported by the endpoint FIFO, the overflow data won’t be stored, but the USB controller will consider that the packet is valid if the CRC is correct. OUT DATA0 (n Bytes) ACK HOST UFI C51 Endpoint FIFO Bank 0 - Read Byte 1 RXOUTB0 Endpoint FIFO Bank 0 - Read Byte 2 Endpoint FIFO Bank 0 - Read Byte n Clear RXOUTB0 OUT DATA1 (m Bytes) ACK RXOUTB1 Endpoint FIFO Bank 1 - Read Byte 1 Endpoint FIFO Bank 1 - Read Byte 2 Endpoint FIFO Bank 1 - Read Byte m Clear RXOUTB1 OUT DATA0 (p Bytes) ACK RXOUTB0 Endpoint FIFO Bank 0 - Read Byte 1 Endpoint FIFO Bank 0 - Read Byte 2 Endpoint FIFO Bank 0 - Read Byte p Clear RXOUTB0 |
|
链接网址 |
| 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 |