| Electronic Components Datasheet Search |
|
SEC2410 Datasheet(PDF) 166 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
SEC2410 Datasheet(HTML) 166 Page - Microchip Technology |
|
166 / 283 page ![]() SEC2410/SEC4410 DS00001587C-page 166 2013 - 2014 Microchip Technology Inc. Since EP1 is not a DMA endpoint, only one buffer can be posted for EP1_READ and one for EP1_WRITE. A buffer is available for transfer for EP0_WRITE if one of the following conditions is met: 1. For EP1_WRITE, the buffer is bigger than or equal to an MTU size.’ 2. For EP1_WRITE the buffer has the last bit set. If the incoming packet is bigger than the buffer, the OVERFLOW error is set for the transfer. A buffer is available for transfer for EP1_READ if the following condition is met: 1. The buffer is smaller or equal to the pre-fetch size, the whole buffer must be pre-fetched before the endpoint can be enabled. 2. If the buffer is bigger than the pre-fetch buffer, but less than or equal to an MTU, the pre-fetch buffer must be filled before the endpoint can be enabled. If an IN comes in, the data from the pre-fetch buffer is sent out, while an AMBA read request is made for the remainder of the data. 3. If the buffer is bigger then an MTU, the pre-fetch buffer must be filled before the endpoint can be enabled. If an IN comes in, an AMBA read request is made for the remainder of the data in the MTU. Once an MTU’s worth of data has gone, the available buffer is decremented by an MTU size. The remaining buffer is available for the next transfer. If more than one buffer is posted to EP1_READ or EP1_WRITE, it is an error with unpredictable results. EP1_WRITE will set the LAST_BIT in a completion notification if a short packet comes in, and the NO_LAST bit is cleared. In all other conditions, the LAST_BIT in the completion notification is cleared. The MTU size for EP1_READ and EP1_WRITE can be programmed to any valid value. The value in the Endpoint MTU register must exactly match the value in the UDC20 configuration for that endpoint. WR_COUNT has no meaning for EP1. EP_CNT has no meaning for this endpoint. 16.1.7.3 Controlling EP2 EP2 in SEC2410/SEC4410 is a Bulk endpoint, with DMA capability. It can operate in Continuous mode or DMA (Block Transfer) mode. EP2_READ and EP2_WRITE should be programmed the same for normal operation, but there is no restriction about programming them differently. If both CONT_MODE and BLK_XFER_EN are set to ‘0’, the endpoint is disabled. In Continuous mode, CONT_MODE is set to ‘1’ and BLK_XFER_EN is set to ‘0’. If there is a buffer available, the trans- port interface will “ACK” an endpoint data request. If there is no buffer available, endpoint data requests will be NAKed. In DMA mode, CONT_MODE is set to ‘0’ and BLK_XFER_EN is set to ‘1’. BLK_XFER_EN must be enabled after setting the EP_CNT for the endpoint to the length of the transfer. If there is a buffer available, the transport interface will “ACK” an endpoint data request. If there is no buffer available, endpoint data requests will be NAKed. During a DMA transfer EP_CNT is reduced by the packet size after each transfer. The reduction can only be done after getting an “good” status from the VCI bus for that transfer. When the count goes down to zero, BLK_XFER_EN is cleared, and BLK_XFER_- COMPLETE is set. If the last reduction results in EP_CNT going less than zero, it is an error, and the OVERFLOW bit is set. A DMA transfer can be terminated prematurely by the following events: 1. If the DMA is to the USB host, (EP2_READ active) and a buffer arrives with the LAST bit set, it will terminate the transfer. If EP_CNT does not go to zero, then the RESIDUAL interrupt is set, indicating an error. 2. If the DMA is from the USB host (EP2_WRITE active), and the host sends a short packet, it will terminate the transfer. If EP_CNT does not go to zero, then the RESIDUAL interrupt is set, indicating an error. 3. If the DMA is from the USB host (EP2_WRITE active), and the host sends a ZLP, it will terminate the transfer. The ZLP interrupt is set, and the RESIDUAL interrupt is set, indicating an error. At the end of each successful packet, the hardware must readjust the WR addresses and length, and issue CNs as appropriate. There can be up to four buffers available queued up and ready for EP2_READ and EP2_WRITE. A buffer is available for transfer for EP0_WRITE if one of the following conditions is met: 1. The buffer is bigger than or equal to an MTU size. 2. The buffer has the last bit set. If the incoming packet is bigger than the buffer, the OVERFLOW error is set for the transfer. 3. There are at least two buffers in the queue. |
|
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 |