English
Language : 

PIC18F-LF1XK50 Datasheet, PDF (264/420 Pages) Microchip Technology – 20-Pin USB Flash Microcontrollers
PIC18F/LF1XK50
TABLE 22-2: ASSIGNMENT OF BUFFER DESCRIPTORS FOR THE DIFFERENT
BUFFERING MODES
BDs Assigned to Endpoint
Endpoint
Mode 0
(No Ping-Pong)
Mode 1
(Ping-Pong on EP0 OUT)
Mode 2
(Ping-Pong on all EPs)
Mode 3
(Ping-Pong on all other EPs,
except EP0)
Out
In
Out
In
Out
In
Out
In
0
1
2
3
4
5
6
7
Legend:
0
1
0 (E), 1 (O)
2
0 (E), 1 (O)
2
3
3
4
4 (E), 5 (O)
4
5
5
6
8 (E), 9 (O)
6
7
7
8
12 (E), 13 (O)
8
9
9
10
16 (E), 17 (O)
10
11
11
12
20 (E), 21 (O)
12
13
13
14
24 (E), 25 (O)
14
15
15
16
28 (E), 29 (O)
(E) = Even transaction buffer, (O) = Odd transaction buffer
2 (E), 3 (O)
0
1
6 (E), 7 (O) 2 (E), 3 (O) 4 (E), 5 (O)
10 (E), 11 (O) 6 (E), 7 (O) 8 (E), 9 (O)
14 (E), 15 (O) 10 (E), 11 (O) 12 (E), 13 (O)
18 (E), 19 (O) 14 (E), 15 (O) 16 (E), 17 (O)
22 (E), 23 (O) 18 (E), 19 (O) 20 (E), 21 (O)
26 (E), 27 (O) 22 (E), 23 (O) 24 (E), 25 (O)
30 (E), 31 (O) 26 (E), 27 (O) 28 (E), 29 (O)
TABLE 22-3: SUMMARY OF USB BUFFER DESCRIPTOR TABLE REGISTERS
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
BDnSTAT(1)
UOWN
DTS(4)
BDnCNT(1)
BDnADRL(1)
BDnADRH(1)
Byte Count
Buffer Address Low
Buffer Address High
PID3(2)
PID2(2)
PID1(2)
PID0(2)
DTSEN(3) BSTALL(3)
BC9
BC8
Note 1:
2:
3:
4:
For buffer descriptor registers, n may have a value of 0 to 31. For the sake of brevity, all 32 registers are
shown as one generic prototype. All registers have indeterminate Reset values (xxxx xxxx).
Bits 5 through 2 of the BDnSTAT register are used by the SIE to return PID<3:0> values once the register
is turned over to the SIE (UOWN bit is set). Once the registers have been under SIE control, the values
written for DTSEN and BSTALL are no longer valid.
Prior to turning the buffer descriptor over to the SIE (UOWN bit is cleared), bits 5 through 2 of the
BDnSTAT register are used to configure the DTSEN and BSTALL settings.
This bit is ignored unless DTSEN = 1.
DS41350E-page 264
Preliminary
 2010 Microchip Technology Inc.