| Electronic Components Datasheet Search |
|
USBN9602 Datasheet(PDF) 19 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
USBN9602 Datasheet(HTML) 19 Page - National Semiconductor (TI) |
|
19 / 45 page ![]() 10.0 Endpoint Operation (Continued) 19 www.national.com If two endpoints in the same direction are programmed with the same endpoint number and both are enabled, then data will be received or transmitted using the end- point with the lower number until that endpoint gets dis- abled for BULK or INTERRUPT transfers, or becomes full or empty for ISO transfers. For example, if receive EP2 and receive EP4 both use the endpoint number five and are both isochronous, then the first OUT packet is re- ceived into EP2 and the second OUT packet is received into EP4, if there is no firmware interaction in between. For ISO endpoints, this allows implementing a ping-pong buffer scheme together with the frame number match log- ic. Endpoints in different directions programmed with the same endpoint number still operate independently. 10.2 Bidirectional Control Endpoint FIFO0 Opera- tion FIFO0 is intended to be used for the bidirectional control endpoint zero. It can be configured to receive data sent to the default address by setting the DEF bit of the EPC0 register. Isochronous transfers are not supported for the control endpoint. The Endpoint 0 FIFO can hold a single receive or transmit packet with up to eight bytes of data. Figure 16 is a state diagram showing the basic operation of the Endpoint 0 FIFO in both the receive and transmit directions. Note that the actual current operating state is not directly visible to the firmware. A packet written to the FIFO will be transmitted if an IN token for the respective Endpoint is received. If an error condition is detected, the packet data remains in the FIFO and transmission is retried with the next IN token. The FIFO contents can be flushed to allow response to an OUT token or to write new data into the FIFO for the next IN token. If an OUT token is received for the FIFO, the firmware will be informed about data being received to the FIFO only if there was no error condition (CRC or STUFF error). Erro- neous receptions are automatically discarded. 10.3 Transmit Endpoint FIFO Operation (TXFIFO1, TXFIFO2, TXFIFO3) The Transmit FIFOs for Endpoints 1, 3, and 5 support Bulk, Interrupt, and Isochronous USB transfers of packets that are greater than the FIFO size. Therefore, the firm- ware must update the FIFO contents while the USB pack- et is being transmitted on the bus. Figure 17 illustrates the operation of the transmit FIFOs. Figure 16. Endpoint 0 Operation TxFill TxWait Tx RxWait Rx Idle write to TXD0 TXC0.TX_EN & RXC0.RX_EN OUT or SETUP token SETUP token FIFO0 empty RXC0.FLUSH TXC0.FLUSH IN token transmission done (all data read) TXC0.TX_EN 0-length pkt. |
|
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 |