ISP1362
Single-chip USB OTG controller
Philips Semiconductors
Table 120: DcDMACounter register: bit allocation
Bit
15
14
13
12
11
10
9
8
Symbol
Reset
Access
Bit
DMACR[15:8]
0
R/W
7
0
R/W
6
0
R/W
5
0
R/W
4
0
R/W
3
0
R/W
2
0
R/W
1
0
R/W
0
Symbol
Reset
Access
DMACR[7:0]
0
0
0
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Table 121: DcDMACounter register: bit description
Bit
Symbol
Description
15 to 0
DMACR[15:0]
DcDMACounter register
16.1.8 Reset Device (F6H)
This command resets the DC in the same way as an external hardware reset by using
the input RESET. All registers are initialized to their ‘reset’ values.
Code (Hex): F6 — reset the device
Transaction — none (code only)
16.2 Data flow commands
Data flow commands are used to manage the data transmission between the USB
endpoints and the system microprocessor. Much of the data flow is initiated using an
interrupt to the microprocessor. The data flow commands are used to access the
endpoints and determine whether the endpoint buffer memory contains valid data.
Remark: The IN buffer of an endpoint contains input data for the host. The OUT
buffer receives output data from the host.
16.2.1 Write or read Endpoint Buffer (R/W: 10H,12H–1FH/01H–0FH)
This command is used to access endpoint buffer memory for reading or writing. First,
the buffer pointer is reset to the beginning of the buffer. Following the command, a
maximum of (N + 2) bytes can be written or read, N representing the size of the
endpoint buffer. For 16-bit access, the maximum number of words is (M + 1), with M
given by (N + 1) divided by 2. After each read or write action, the buffer pointer is
automatically incremented by two.
In direct memory access (DMA), the first two bytes or the first word (the packet
length) are skipped: transfers start at the third byte or the second word of the
endpoint buffer. When reading, the DC can detect the last byte or word by using the
EOP condition. When writing to a bulk or interrupt endpoint, the endpoint buffer must
be completely filled before sending data to the host. Exception: when a DMA transfer
is stopped by an external EOT condition, the current buffer content (full or not) is sent
to the host.
Remark: Reading data after a Write Endpoint Buffer command or writing data after a
Read Endpoint Buffer command data will cause unpredictable behavior of the DC.
9397 750 12337
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
Product data
Rev. 03 — 06 January 2004
119 of 150