![](http://datasheet.mmic.net.cn/100000/ISP1362EE-551_datasheet_3494278/ISP1362EE-551_108.png)
ISP1362_5
NXP B.V. 2007. All rights reserved.
Product data sheet
Rev. 05 — 8 May 2007
108 of 152
NXP Semiconductors
ISP1362
Single-chip USB OTG Controller
[1]
With N representing the number of bytes, the number of words for 16-bit bus width is: (N + 1) divided by 2.
[2]
When accessing an 8-bit register in 16-bit mode, the upper byte is invalid.
[3]
During the isochronous transfer in 16-bit mode, because N
≤ 1023, rmware must manage the upper byte.
[4]
Validating an OUT endpoint buffer causes unpredictable behavior of the Peripheral Controller.
[5]
Clearing an IN endpoint buffer causes unpredictable behavior of the Peripheral Controller.
[6]
Reads a copy of the Status register, executing this command does not clear any status bits or interrupt bits.
15.1 Initialization commands
Initialization commands are used during the enumeration process of the USB network.
These commands are used to congure and enable embedded endpoints. They also
serve to set the USB assigned address of the Peripheral Controller and to perform a
device reset.
15.1.1 DcEndpointConguration register (R/W: 30h to 3Fh/20h to 2Fh)
This command is used to access the DcEndpointConguration register (ECR) of the
target endpoint. It denes the endpoint type (isochronous or bulk/interrupt), direction
(OUT/IN), buffer memory size and buffering scheme. It also enables the endpoint buffer
memory. The register bit allocation is shown in
Table 109. A bus reset will disable all
endpoints.
The allocation of the buffer memory takes place only after all 16 endpoints have been
congured in sequence (from endpoint 0 OUT to endpoint 14). Although control endpoints
have xed congurations, they must be included in the initialization sequence and must be
congured with their default values (see
Table 14). Automatic buffer memory allocation
starts when endpoint 14 has been congured.
Remark: If any change is made to an endpoint conguration that affects the allocated
memory (size, enable/disable), the buffer memory contents of all endpoints becomes
invalid. Therefore, all valid data must be removed from enabled endpoints before changing
the conguration.
Code (Hex): 20 to 2F — write (control OUT, control IN, endpoints 1 to 14)
Code (Hex): 30 to 3F — read (control OUT, control IN, endpoints 1 to 14)
Transaction — write or read 1 byte (code or data)
General commands
Read control OUT error code
DcErrorCode register endpoint 0
OUT
A0
Read control IN error code
DcErrorCode register endpoint 0
IN
A1
Read endpoint n error code (n = 1 to
14)
DcErrorCode register endpoint 1
to 14
A2 to AF
Unlock device
all registers with write access
B0
write 2 bytes
Write or read DcScratch register
DcScratch register
B2/B3
write or read 2 bytes
Read frame number
DcFrameNumber register
B4
read 1 byte or 2 bytes
Read chip ID
DcChipID register
B5
read 2 bytes
Read DcInterrupt register
DcInterrupt register
C0
read 4 bytes
Table 108. Peripheral Controller command and register overview …continued
Name
Destination
Code (Hex)
Transaction[1]