English
Language : 

PIC18F47J53 Datasheet, PDF (393/586 Pages) Microchip Technology – 28/44-Pin, High-Performance USB Microcontrollers with nanoWatt XLP Technology
PIC18F47J53 FAMILY
TABLE 23-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
8
9
10
11
12
13
14
15
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)
16
17
17
18
32 (E), 33 (O)
18
19
19
20
36 (E), 37 (O)
20
21
21
22
40 (E), 41 (O)
22
23
23
24
44 (E), 45 (O)
24
25
25
26
48 (E), 49 (O)
26
27
27
28
52 (E), 53 (O)
28
29
29
30
56 (E), 57 (O)
30
31
31
32
60 (E), 61 (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)
34 (E), 35 (O) 30 (E), 31 (O) 32 (E), 33 (O)
38 (E), 39 (O) 34 (E), 35 (O) 36 (E), 37 (O)
42 (E), 43 (O) 38 (E), 39 (O) 40 (E), 41 (O)
46 (E), 47 (O) 42 (E), 43 (O) 44 (E), 45 (O)
50 (E), 51 (O) 46 (E), 47 (O) 48 (E), 49 (O)
54 (E), 55 (O) 50 (E), 51 (O) 52 (E), 53 (O)
58 (E), 59 (O) 54 (E), 55 (O) 56 (E), 57 (O)
62 (E), 63 (O) 58 (E), 59 (O) 60 (E), 61 (O)
TABLE 23-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)
BDnCNT(1)
BDnADRL(1)
BDnADRH(1)
UOWN
DTS(4)
PID3(2)
PID2(2)
PID1(2)
DTSEN(3)
Byte Count
Buffer Address Low
Buffer Address High
PID0(2)
BSTALL(3)
BC9
BC8
Note 1:
2:
3:
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).
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.
4: This bit is ignored unless DTSEN = 1.
 2010 Microchip Technology Inc.
Preliminary
DS39964B-page 393