ISP1362
Single-chip USB OTG controller
Philips Semiconductors
Table 129: DcErrorCode register: bit description…continued
Bit
5
Symbol
-
Description
reserved
4 to 1
0
ERROR[3:0]
RTOK
Error code. For error description, see Table 130.
Logic 1 indicates that data was successfully received or
transmitted.
Table 130: Transaction error codes
Error code
(Binary)
Description
0000
0001
0010
0011
no error
PID encoding error; bits 7 to 4 are not the inverse of bits 3 to 0
PID unknown; encoding is valid, but PID does not exist
unexpected packet; packet is not of the expected type (token, data or
acknowledge) or is a SET-UP token to a non-control endpoint
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
token CRC error
data CRC error
time-out error
babble error
unexpected end-of-packet
sent or received NAK (Not AcKnowledge)
sent Stall; a token was received, but the endpoint was stalled
overflow; the received packet was larger than the available buffer space
sent empty packet (ISO only)
bit stuffing error
sync error
wrong (unexpected) toggle bit in DATA PID; data was ignored
16.3.2 Unlock Device (B0H)
This command unlocks the DC from write-protection mode after a ‘resume’. In the
‘suspend’ state, all registers and buffer memory are write-protected to prevent data
corruption by external devices during a ‘resume’. Also, the register access for reading
is possible only after the ‘unlock device’ command is executed.
After waking up from the ‘suspend’ state, the firmware must unlock the registers and
buffer memory by using this command, by writing the unlock code (AA37H) into the
DcLock register (8-bit bus: lower byte first). The bit allocation of the DcLock register is
given in Table 131.
Code (Hex): B0 — unlock the device
Transaction — write 2 bytes (unlock code) (code or data)
Table 131: DcLock register: bit allocation
Bit
15
14
13
12
11
10
9
8
Symbol
Reset
Access
UNLOCK[15:8] = AAH
1
0
1
0
1
0
1
0
W
W
W
W
W
W
W
W
9397 750 12337
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
Product data
Rev. 03 — 06 January 2004
124 of 150