English
Language : 

ISP1181B Datasheet, PDF (33/70 Pages) NXP Semiconductors – Full-speed Universal Serial Bus peripheral controller
Philips Semiconductors
ISP1181B
Full-speed USB peripheral controller
9397 750 13958
Product data
Table 28: Endpoint FIFO organization
Byte #
(8-bit bus)
Word #
(16-bit bus)
0
0 (lower byte)
1
0 (upper byte)
2
1 (lower byte)
3
1 (upper byte)
…
…
(N + 1)
M = (N + 1) DIV 2
Description
packet length (lower byte)
packet length (upper byte)
data byte 1
data byte 2
…
data byte N
Table 29: Example of endpoint FIFO access (8-bit bus width)
A0
Phase
Bus lines Byte # Description
1
command D[7:0]
-
command code (00H to 1FH)
0
data
D[7:0]
0
packet length (lower byte)
0
data
D[7:0]
1
packet length (upper byte)
0
data
D[7:0]
2
data byte 1
0
data
D[7:0]
3
data byte 2
0
data
D[7:0]
4
data byte 3
0
data
D[7:0]
5
data byte 4
…
…
…
…
…
Table 30: Example of endpoint FIFO access (16-bit bus width)
A0
Phase
Bus lines Word # Description
1
command D[7:0]
-
command code (00H to 1FH)
D[15:8]
-
ignored
0
data
D[15:0]
0
packet length
0
data
D[15:0]
1
data word 1 (data byte 2, data byte 1)
0
data
D[15:0]
2
data word 2 (data byte 4, data byte 3)
…
…
…
…
…
Remark: There is no protection against writing or reading past a buffer’s boundary,
against writing into an OUT buffer or reading from an IN buffer. Any of these actions
could cause an incorrect operation. Data residing in an OUT buffer are only
meaningful after a successful transaction. Exception: during DMA access of a
double-buffered endpoint, the buffer pointer automatically points to the secondary
buffer after reaching the end of the primary buffer.
12.2.2 Read Endpoint Status
This command is used to read the status of an endpoint FIFO. The command
accesses the Endpoint Status Register, the bit allocation of which is shown in
Table 31. Reading the Endpoint Status Register will clear the interrupt bit set for the
corresponding endpoint in the Interrupt Register (see Table 48).
All bits of the Endpoint Status Register are read-only. Bit EPSTAL is controlled by the
Stall/Unstall commands and by the reception of a SETUP token (see Section 12.2.3).
Code (Hex): 50 to 5F — read (control OUT, control IN, endpoint 1 to 14)
Rev. 02 — 07 December 2004
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
33 of 70