
PIC18F2450/4450
DS39760A-page 142
Advance Information
2006 Microchip Technology Inc.
TABLE 14-4:
ASSIGNMENT OF BUFFER DESCRIPTORS FOR THE DIFFERENT
BUFFERING MODES
TABLE 14-5:
SUMMARY OF USB BUFFER DESCRIPTOR TABLE REGISTERS
Endpoint
BDs Assigned to Endpoint
Mode 0
(No Ping-Pong)
Mode 1
(Ping-Pong on EP0 OUT)
Mode 2
(Ping-Pong on all EPs)
Out
In
Out
In
Out
In
0
1
0 (E), 1 (O)
2
0 (E), 1 (O)
2 (E), 3 (O)
1
2
3
4
4 (E), 5 (O)
6 (E), 7 (O)
2
4
5
6
8 (E), 9 (O)
10 (E), 11 (O)
3
6
7
8
12 (E), 13 (O)
14 (E), 15 (O)
4
8
9
10
16 (E), 17 (O)
18 (E), 19 (O)
5
10
11
12
20 (E), 21 (O)
22 (E), 23 (O)
6
12
13
14
24 (E), 25 (O)
26 (E), 27 (O)
7
14
15
16
28 (E), 29 (O)
30 (E), 31 (O)
8
16
17
18
32 (E), 33 (O)
34 (E), 35 (O)
9
18
19
20
36 (E), 37 (O)
38 (E), 39 (O)
10
20
21
22
40 (E), 41 (O)
42 (E), 43 (O)
11
22
23
24
44 (E), 45 (O)
46 (E), 47 (O)
12
24
25
26
48 (E), 49 (O)
50 (E), 51 (O)
13
26
27
28
52 (E), 53 (O)
54 (E), 55 (O)
14
28
29
30
56 (E), 57 (O)
58 (E), 59 (O)
15
30
31
32
60 (E), 61 (O)
62 (E), 63 (O)
Legend: (E) = Even transaction buffer, (O) = Odd transaction buffer
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
BDnSTAT(1)
UOWN
DTS(4)
PID3(2)
PID2(2)
PID1(2)
DTSEN(3)
PID0(2)
BSTALL(3)
BC9
BC8
BDnCNT(1)
Byte Count
BDnADRL(1)
Buffer Address Low
BDnADRH(1)
Buffer Address High
Note 1:
For buffer descriptor registers, n may have a value of 0 to 63. For the sake of brevity, all 64 registers are
shown as one generic prototype. All registers have indeterminate Reset values (xxxx xxxx).
2:
Bits 5 through 2 of the BDnSTAT register are used by the SIE to return PID3:PID0 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.
3:
Prior to turning the buffer descriptor over to the SIE (UOWN bit is cleared), bits 3 and 2 of the BDnSTAT
register are used to configure the DTSEN and BSTALL settings.
4:
This bit is ignored unless DTSEN = 1.