| Electronic Components Datasheet Search |
|
SEC2410 Datasheet(PDF) 169 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
SEC2410 Datasheet(HTML) 169 Page - Microchip Technology |
|
169 / 283 page ![]() 2013 - 2014 Microchip Technology Inc. DS00001587C-page 169 SEC2410/SEC4410 16.1.7.8 Flushing Endpoints If a FLUSH comes into EPx_READ or EPx_WRITE, it is handled in the following way. 1. If the endpoint is in the middle of sending or receiving a packet, wait until that packet handling is completed, and the endpoint has gone back to the idle state. 2. If the endpoint is idle, and there is no work queue element posted, do nothing. Any pending completion notifica- tion in the outgoing CN queue are not affected and will go out normally. 3. If there are work queue elements pending, acts as if a zero length packet arrived for each one. That is, create a normal completion notification for that element, with a data length of zero. As each element is “transferred” to the completion queue, the WQE count goes down. Eventually all will be transferred to the completion queue. 4. Once all the pending CNs have gone out, and the endpoint is empty of both WQ elements and CNs, set the flush done bit. When the firmware wants to FLUSH and endpoint, it will first disable the endpoint. This means CONT_MODE = ‘0’ for EP0 and EP1, and CONT_MODE = ‘0’ and BLK_XFER_EN = ‘0’ for EP2. After disabling the Endpoint, the firmware issues the flush to the Endpoint. The firmware is responsible for clearing the EP_COUNT if the FLUSH happened during a DMA transfer. When the AutoCBW processor issues a FLUSH, it is to recover buffers it wants to reuse. For AutoCBW operations, the EP2 is always set to CONT_MODE operation. 16.1.8 AUTONOMOUS USB PROTOCOL 16.1.8.1 Automatic Retries - Out Transactions If a packet is received with an incorrect data toggle, the SIE will ACK, but ignores the data packet. If more than 64 bytes received on EP0 or EP1, or if more than 512 bytes are received on EP2, the USB SIE will ignore the packet and set the appropriate “STALL” bit until the host acknowledges the condition by sending a “CLEAR FEA- TURE ENDPOINT STALL” command for that endpoint, or, in the case of Endpoint 0, a SETUP is received. If an error occurs during an OUT transaction, the hardware rewinds its read pointer back to buffer point where the MTU started. The host then sends another OUT token and retransmits the packet. Once the packet has been successfully received, the appropriate interrupt bit is set. The SIE can handle any number of back-to-back retries, but the host determines how many times a packet is retried. If an endpoint has no available buffer, then the SIE sends a NACK. The exception is setup packets on EP0, which are always ACKed. 16.1.8.2 Automatic Retries - In Transactions If an timeout (No response from the host / lost ACK) occurs during an IN transaction, the hardware reloads its USB SIE side buffer read pointer back to the beginning of the failed MTU. The host then sends another IN token and the SIE re- transmits the packet with the same data toggle PID. Once the Processor has successfully received the packet (only upon ACK received by SIE), the appropriate endpoint interrupt bit is set. The SIE can handle any number of back-to-back retries, but the host determines how many times a packet is retried. Upon reception of a SETUP token followed by the 8 byte DATA-0 packet on EP0, the internal DTOG bit for both EP0_WRITE and EP0_READ are set to one. 16.1.8.3 Configuring the UDC20 The SETUP_CMD_ADDR register must be programmed in the UDC20. The default value in the part will conflict with Status register. Additionally, the UDC20 powers up with the internal endpoints unconfigured. The firmware must config- ure the UDC20 for each individual endpoint using the UDC_CSR_ADDR, UDC_CSR_DATA and UDC_CSR_CFG reg- isters. The parameters that must be programmed are mtu size, alternate interface number, interface number configuration number, type of endpoint, and endpoint number. |
|
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 |