Download UM10316
Transcript
D D R R R R R D D D A A A A A FT FT FT UM10316 FT FT D R R FT FT FT FT Chapter 13: LPC29xx USB device A A A A R R D D D NXP Semiconductors D R R A FT FT FT A A R R D D D D R A F FT D FT FT A A R R D The Select Endpoint command initializes an internal pointer to the start of the selected buffer in EP_RAM. Optionally, this command can be followed by a data read, which returns some additional information on the packet(s) in the endpoint buffer(s). The command code of the Select Endpoint command is equal to the physical endpoint number. In the case of a single buffered endpoint the B_2_FULL bit is not valid. FT A A R R D D 11.10 Select Endpoint (Command: 0x00 - 0x1F, Data: read 1 byte (optional)) D D R A FT D R A Table 177. Select Endpoint Register bit description Bit Symbol 0 Value Description FE Full/Empty. This bit indicates the full or empty status of the endpoint buffer(s). For IN endpoints, the FE bit gives the ANDed result of the B_1_FULL and B_2_FULL bits. For OUT endpoints, the FE bit gives ORed result of the B_1_FULL and B_2_FULL bits. For single buffered endpoints, this bit simply reflects the status of B_1_FULL. 0 1 1 2 3 4 5 ST 0 For an IN endpoint, at least one write endpoint buffer is empty. For an OUT endpoint, at least one endpoint read buffer is full. Stalled endpoint indicator. 0 The selected endpoint is not stalled. 1 The selected endpoint is stalled. STP 0 SETUP bit: the value of this bit is updated after each successfully received packet (i.e. an ACKed package on that particular physical endpoint). 0 The STP bit is cleared by doing a Select Endpoint/Clear Interrupt on this endpoint. 1 The last received packet for the selected endpoint was a SETUP packet. PO 0 Packet over-written bit. 0 0 The PO bit is cleared by the ‘Select Endpoint/Clear Interrupt’ command. 1 The previously received packet was over-written by a SETUP packet. EP NAKed bit indicates sending of a NAK. If the host sends an 0 OUT packet to a filled OUT buffer, the device returns NAK. If the host sends an IN token packet to an empty IN buffer, the device returns NAK. EPN 0 The EPN bit is reset after the device has sent an ACK after an OUT packet or when the device has seen an ACK after sending an IN packet. 1 The EPN bit is set when a NAK is sent and the interrupt on NAK feature is enabled. 0 Buffer 1 is empty. 1 Buffer 1 is full. B_1_FULL The buffer 1 status. UM10316_0 User manual Reset value 0 © NXP B.V. 2008. All rights reserved. Rev. 00.06 — 17 December 2008 190 of 571
Related documents
UM10316 LPC29xx User manual
Preliminary UM
UM10316
User Guide - Signum Systems Corp.
LPC-P2919 development prototype board
ProfinetCommander User Manual
UM10211
UM10211 LPC23XX User manual
- TR Electronic
LPC2917,19 - NXP Semiconductors
NXP Semiconductors LPC2917 User's Manual
NXP LPC2468 User Manual