English
Language : 

PDIUSBD11 Datasheet, PDF (10/20 Pages) NXP Semiconductors – USB device with serial interface
Philips Semiconductors
USB device with serial interface
Product specification
PDIUSBD11
Clear Buffer
Command
Data
: F2h
: None
When a packet is received completely, an internal endpoint buffer
full flag is set. All subsequent packets will be refused by returning a
NAK. When the microcontroller has read the data, it should free the
buffer by the Clear Buffer command. When the buffer is cleared,
new packets will be accepted.
Validate Buffer
Command
Data
: FAh
: None
When the microprocessor has written data into an IN buffer, it should
set the buffer full flag by the Validate Buffer command. This indicates
that the data in the buffer are valid and can be sent to the host when
the next IN token is received.
Set Endpoint Status
Command
Data
: 40–4Dh
: Write 1 byte
A stalled control endpoint is automatically unstalled when it receives
a SETUP token, regardless of the content of the packet. If the
endpoint should stay in its stalled state, the microcontroller can
re-stall it.
When a stalled endpoint is unstalled (either by the Set Endpoint
Status command or by receiving a SETUP token), it is also
re-initialized. This flushes the buffer and if it is an OUT buffer it waits
for a DATA 0 PID, if it is an IN buffer it writes a DATA 0 PID.
Even when unstalled, writing Set Endpoint Status to ‘0’ initializes the
endpoint.
Stalled
76 54 32 1 0
XX XX XX X0
POWER ON VALUE
STALLED
RESERVED
SV00834
A ‘1’ indicates the endpoint is stalled.
Acknowledge Setup
Command
Data
: F1h
: None
The arrival of a SETUP packet flushes the IN buffer and disables the
Validate Buffer and Clear Buffer commands for both IN and OUT
endpoints.
The microcontroller needs to re-enable these commands by the
Acknowledge Setup command. This ensures that the last SETUP
packet stays in the buffer and no packet can be sent back to the
host until the microcontroller has acknowledged explicitly that it has
seen the SETUP packet.
The microcontroller must send the Acknowledge Setup command to
both the IN and OUT endpoints.
GENERAL COMMANDS
Send Resume
Command
Data
: F6h
: None
Sends an upstream resume signal for 10 ms. This command is
normally issued when the device is in suspend. The RESUME
command is not followed by a data read or write.
Read Current Frame Number
Command
Data
: F5h
: Read One or Two Bytes
This command is followed by one or two data reads and returns the
frame number of the last successfully received SOF. The frame
number is returned Least Significant Byte first.
76 54 32 1 0
XX XX XX XX
LEAST SIGNIFICANT BYTE
76 54 32 1 0
XX XX XX XX
MOST SIGNIFICANT BYTE
SV00835
1999 Jul 22
10