Datasheet

2015 Microchip Technology Inc. Preliminary DS60001320B-page 225
PIC32MZ Embedded Connectivity with Floating Point Unit (EF) Family
REGISTER 11-10: USBIENCSR2: USB INDEXED ENDPOINT CONTROL STATUS REGISTER 2
(ENDPOINT 1-7)
Bit
Range
Bit
31/23/15/7
Bit
30/22/14/6
Bit
29/21/13/5
Bit
28/20/12/4
Bit
27/19/11/3
Bit
26/18/10/2
Bit
25/17/9/1
Bit
24/16/8/0
31:24
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
TXINTERV<7:0>
23:16
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
SPEED<1:0> PROTOCOL<1:0> TEP<3:0>
15:8
U-0 U-0 R-0 R-0 R-0 R-0 R-0 R-0
RXCNT<13:8>
7:0
R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0
RXCNT<7:0>
Legend: HC = Hardware Cleared HS = Hardware Set
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 31-24
TXINTERV<7:0>: Endpoint TX Polling Interval/NAK Limit bits (Host mode)
For Interrupt and Isochronous transfers, this field defines the polling interval for the endpoint. For Bulk
endpoints, this field sets the number of frames/microframes after which the endpoint should time out on
receiving a stream of NAK responses.
The following table describes the valid values and interpretation for these bits:
bit 23-22
SPEED<1:0>: TX Endpoint Operating Speed Control bits (Host mode)
11 = Low-Speed
10 = Full-Speed
01 = Hi-Speed
00 = Reserved
bit 21-20
PROTOCOL<1:0>: TX Endpoint Protocol Control bits
11 = Interrupt
10 = Bulk
01 = Isochronous
00 = Control
bit 19-16
TEP<3:0>: TX Target Endpoint Number bits
This value is the endpoint number contained in the TX endpoint descriptor returned to the USB module during
device enumeration.
bit 15-14
Unimplemented: Read as ‘0
bit 13-0
RXCNT<13:0>: Receive Count bits
The number of received data bytes in the endpoint RX FIFO. The value returned changes as the contents of
the FIFO change and is only valid while RXPKTRDY is set.
Transfer Type Speed Valid Values (m) Interpretation
Interrupt Low/Full 0x01 to 0xFF Polling interval is ‘m’ frames.
High 0x01 to 0x10 Polling interval is 2
(m-1)
frames.
Isochronous Full or High 0x01 to 0x10 Polling interval is 2
(m-1)
frames/microframes.
Bulk Full or High 0x02 to 0x10 NAK limit is 2
(m-1)
frames/microframes. A
value of ‘0’ or ‘1’ disables the NAK time-out
function.