Table 17-26. Inmaxp Register; Table 17-27. Inmaxp Fields; In Maximum Packet Size Register (Inmaxp) - Sharp LH79524 User Manual

Table of Contents

Advertisement

Universal Serial Bus Device

17.2.3.2 IN Maximum Packet Size Register (INMAXP)

INMAXP defines the maximum packet size for transactions through the currently-selected
IN endpoint in units of 8 bytes, except that a value of 128 sets the maximum packet size
to 1,023 (the maximum size for an Isochronous packet transferred in a Full-speed trans-
action) rather than 1,024. When setting this value, note the constraints placed by the USB
Specification on packet sizes for Bulk, Interrupt, and Isochronous transactions in Full-
speed operations.
There is an INMAXP register for each IN endpoint, except Endpoint 0. Each register is
accessed via the INDEX register. For example, to access EP1 INMAXP register, write 0x1
to the INDEX register and then write the data required to address INMAXP (0x40).
The value written to this register should match the wMaxPacketSize field of the Standard
Endpoint Descriptor for the associated endpoint (see Universal Serial Bus Specification
Revision 2.0, Chapter 9). A mismatch may cause unexpected results. If a value greater
than the IN FIFO (see Table 17-2) size for the endpoint is written to this register, the value
will be automatically changed to the IN FIFO size. If the value written to this register is less
than or equal to half the IN FIFO size, two IN packets can be buffered. The register is reset
to 0. If this register is changed after packets have been sent from the endpoint, the end-
point IN FIFO should be flushed (using INCSR1:FIFO_FLUSH) after writing the new value
to the INMAXP register.
BIT
FIELD
RESET
RW
BIT
FIELD
RESET
TYPE
ADDR
17-20

Table 17-26. INMAXP Register

31
30
29
28
27
0
0
0
0
0
RO
RO
RO
RO
RO
15
14
13
12
11
///
0
0
0
0
0
RO
RO
RO
RO
RO
(with the INDEX register set to IN endpoint 1, 2, or 3)

Table 17-27. INMAXP Fields

BITS
NAME
31:8
///
Reserved Reading returns 0. Write the reset value.
7:0
INMAXP IN Maximum Packet Size Maximum Packet Size/transaction
26
25
24
23
///
0
0
0
0
RO
RO
RO
RO
10
9
8
7
0
0
0
0
RO
RO
RO
RW
0xFFFF5000 + 0x040
FUNCTION
Version 1.0
LH79524/LH79525 User's Guide
22
21
20
19
18
0
0
0
0
0
RO
RO
RO
RO
RO
6
5
4
3
2
INMAXP
0
0
0
0
0
RW
RW
RW
RW
RW
17
16
0
0
RO
RO
1
0
0
0
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lh79525

Table of Contents