PIC18F13K50-E/P MICROCHIP [Microchip Technology], PIC18F13K50-E/P Datasheet - Page 260

no-image

PIC18F13K50-E/P

Manufacturer Part Number
PIC18F13K50-E/P
Description
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC18F1XK50/PIC18LF1XK50
TABLE 22-2:
TABLE 22-3:
DS41350C-page 258
Legend:
BDnSTAT
BDnCNT
BDnADRL
BDnADRH
Note 1:
Endpoint
0
1
2
3
4
5
6
7
Name
2:
3:
4:
(1)
(1)
(1)
(1)
(E) = Even transaction buffer, (O) = Odd transaction buffer
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.
(No Ping-Pong)
Out
10
12
14
0
2
4
6
8
Byte Count
Buffer Address Low
Buffer Address High
ASSIGNMENT OF BUFFER DESCRIPTORS FOR THE DIFFERENT
BUFFERING MODES
SUMMARY OF USB BUFFER DESCRIPTOR TABLE REGISTERS
Mode 0
UOWN
Bit 7
13
15
11
In
1
3
5
7
9
DTS
Bit 6
(Ping-Pong on EP0 OUT)
0 (E), 1 (O)
(4)
Out
11
13
15
3
5
7
9
Mode 1
PID3
Bit 5
(2)
Preliminary
BDs Assigned to Endpoint
10
12
14
16
In
2
4
6
8
PID2
Bit 4
12 (E), 13 (O)
16 (E), 17 (O)
20 (E), 21 (O)
24 (E), 25 (O)
28 (E), 29 (O)
(2)
0 (E), 1 (O)
4 (E), 5 (O)
8 (E), 9 (O)
(Ping-Pong on all EPs)
Out
DTSEN
PID1
Bit 3
Mode 2
(2)
(3)
10 (E), 11 (O)
14 (E), 15 (O)
18 (E), 19 (O)
22 (E), 23 (O)
26 (E), 27 (O)
30 (E), 31 (O) 26 (E), 27 (O) 28 (E), 29 (O)
2 (E), 3 (O)
6 (E), 7 (O)
In
BSTALL
PID0
Bit 2
© 200C Microchip Technology Inc.
(2)
(3)
(Ping-Pong on all other EPs,
14 (E), 15 (O) 16 (E), 17 (O)
18 (E), 19 (O) 20 (E), 21 (O)
22 (E), 23 (O) 24 (E), 25 (O)
10 (E), 11 (O) 12 (E), 13 (O)
2 (E), 3 (O)
6 (E), 7 (O)
Out
0
Bit 1
BC9
except EP0)
Mode 3
4 (E), 5 (O)
8 (E), 9 (O)
Bit 0
BC8
In
1

Related parts for PIC18F13K50-E/P