pdiusbd11 NXP Semiconductors, pdiusbd11 Datasheet - Page 9

no-image

pdiusbd11

Manufacturer Part Number
pdiusbd11
Description
Usb Device With Serial Interface
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
pdiusbd11AD
Quantity:
6
Part Number:
pdiusbd11AD
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
pdiusbd11D
Manufacturer:
PHILIPS
Quantity:
7
Part Number:
pdiusbd11D
Manufacturer:
PHILIPS/飞利浦
Quantity:
20 000
Part Number:
pdiusbd11N
Manufacturer:
MIT
Quantity:
6 218
Philips Semiconductors
Read Last Transaction Status
Command
Data
The Read Last Transaction Status command is followed by one data
read that returns the status of the last transaction of the endpoint.
This command also resets the corresponding interrupt flag in the
interrupt register, and clears the status, indicating that it was read.
This command is useful for debugging purposes. Since it keeps
track of every transaction, the status information is overwritten for
each new transaction.
Data Receive/
Transmit Success
Error Code
Setup Packet
Data 0/1 Packet
Previous Status not Read
Table 1. ERROR CODES
1999 Jul 22
ERROR
CODE
USB device with serial interface
0000
0001
0010
0100
0101
1000
1001
1010
0011
0110
0111
1011
1101
1111
7
0
0
6
5
0
No Error
PID encoding Error; bits 7–4 are not the inversion of
bits 3–0
PID unknown; encoding is valid, but PID does not exist
Unexpected packet; packet is not of the type expected
(= token, data or acknowledge), or SETUP token to a
non-control endpoint
Token CRC Error
Data CRC Error
Time Out Error
Babble Error
Unexpected End-of-packet
Sent or received NAK
Sent Stall, a token was received, but the endpoint was
stalled
Overflow Error, the received packet was longer than
the available buffer space
Bitstuff Error
Wrong DATA PID; the received DATA PID was not the
expected one
4
0
3
0
: 40–4Dh
: Read 1 byte
2
0
1
0
0
0
A ‘1’ indicates data has been received
or transmitted successfully.
See Table 1, Error Codes.
A ‘1’ indicates the last successful
received packet had a SETUP token
(this will always read ‘0’ for IN buffers).
A ‘1’ indicates the last successful
received or sent packet had a DATA1
PID.
A ‘1’ indicates a second event occurred
before the previous status was read.
POWER ON VALUE
DATA RECEIVE/TRANSMIT SUCCESS
ERROR CODE (SEE TABLE)
SETUP PACKET
DATA 0/1 PACKET
PREVIOUS STATUS NOT READ
RESULT
SV00832
9
Read Endpoint Status
Command
Data
Setup Packet
STALL
Data 0/1 Packet
Buffer Full
Read Buffer
Command
Data
The Read Buffer command is followed by a number of data reads,
which return the contents of the selected endpoint data buffer. After
each read, the internal buffer pointer is incremented by 1.
The buffer pointer is not reset to the buffer start by the Read Buffer
command. This means that reading or writing a buffer can be
interrupted by any other command (except for Select Endpoint), or
can be done by more than one I
to get the number of data bytes, then read the rest in other
transactions).
The data in the buffer are organized as follows:
Write Buffer
Command
Data
The Write Buffer command is followed by a number of data writes,
which load the endpoints buffer. The data must be organized in the
same way as described in the Read Buffer command. The first byte
(reserved) should always be ‘0’. As in the Read Buffer command,
the data can be split up into different I
WARNING:
There is no protection against writing or reading over a buffer’s
boundary or against writing into an OUT buffer or reading from an IN
buffer. Any of these actions could cause an incorrect operation. Data
in an OUT buffer are only meaningful after a successful transaction.
byte 0:
byte 1:
byte 2:
byte 3:
. . . . . .
Reserved: can have any value
Number/length of data bytes
Data byte 1
Data byte 2
X X
7
6
5
0
: 80–8Dh
: Read 1 byte
A ‘1’ indicates the last received packet had a
SETUP token.
A ‘1’ indicates the endpoint is stalled.
A ‘1’ indicates if the last received or sent packet
had a DATA1 PID.
A ‘1’ indicates that the buffer is full.
: F0h
: Read multiple bytes (max 10)
: F0h
: Write multiple bytes (max 10)
4
0
3
0
2
0
1
X
2
C transaction (read the first 2 bytes
X
0
2
C data transactions.
POWER ON VALUE
RESERVED
SETUP PACKET
STALL
DATA 0/1 PACKET
BUFFER FULL
RESERVED
PDIUSBD11
Product specification
SV00833

Related parts for pdiusbd11