
Chapter 15. Registers Page 15-69
The SIE normally determines how many bytes to send over EP0 in response to a device
request by taking the smaller of (a) the wLength field in the SETUP packet, and (b) the number
of bytes available for transfer (byte count).
15.11.2 Endpoint 0 Control and Status (Byte Count Low)
Figure 15-72. Endpoint 0 Control and Status (Byte Count Low)
Bit 7-0 BC7:0 Low Order Byte Count
Even though the EP0 buffer is only 64 bytes, the EP0 byte count is expanded to 16 bits to
allow using the SUDPTR with a custom length, instead of USB-dictated length (from Setup
Data Packet and number of requested bytes). The byte count bits in parentheses apply only
when SDPAUTO (SUDPTRCTL.0) = 0.
15.11.3 Endpoint 1 OUT and IN Byte Count
Figure 15-73. Endpoint 1 OUT/IN Byte Count
Bit 7-0 BC6:0 Endpoint 1 IN/OUT Byte Count
EP0BCL Endpoint 0 Byte Count Low E68B
b7 b6 b5 b4 b3 b2 b1 b0
(BC7) BC6 BC5 BC4 BC3 BC2 BC1 BC0
R/W R/W R/W R/W R/W R/W R/W R/W
x x x x x x x x
EP1OUTBC Endpoint 1 OUT Byte Count E68D
EP1INBC Endpoint 1 IN Byte Count E68F
b7 b6 b5 b4 b3 b2 b1 b0
0 BC6 BC5 BC4 BC3 BC2 BC1 BC0
R/W R/W R/W R/W R/W R/W R/W R/W
0 x x x x x x x
Komentarze do niniejszej Instrukcji