欢迎访问ic37.com |
会员登录 免费注册
发布采购

PDIUSBD11D 参数 Datasheet PDF下载

PDIUSBD11D图片预览
型号: PDIUSBD11D
PDF下载: 下载PDF文件 查看货源
内容描述: USB设备与串行接口 [USB device with serial interface]
分类和应用: 总线控制器微控制器和处理器外围集成电路光电二极管数据传输时钟
文件页数/大小: 20 页 / 122 K
品牌: PHILIPS [ NXP SEMICONDUCTORS ]
 浏览型号PDIUSBD11D的Datasheet PDF文件第5页浏览型号PDIUSBD11D的Datasheet PDF文件第6页浏览型号PDIUSBD11D的Datasheet PDF文件第7页浏览型号PDIUSBD11D的Datasheet PDF文件第8页浏览型号PDIUSBD11D的Datasheet PDF文件第10页浏览型号PDIUSBD11D的Datasheet PDF文件第11页浏览型号PDIUSBD11D的Datasheet PDF文件第12页浏览型号PDIUSBD11D的Datasheet PDF文件第13页  
Philips Semiconductors
Product specification
USB device with serial interface
PDIUSBD11
Read Last Transaction Status
Command
Data
: 40–4Dh
: Read 1 byte
Read Endpoint Status
Command
Data
: 80–8Dh
: Read 1 byte
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.
7
0
6
0
5
0
4
0
3
0
2
0
1
0
0
0
POWER ON VALUE
DATA RECEIVE/TRANSMIT SUCCESS
ERROR CODE (SEE TABLE)
SETUP PACKET
DATA 0/1 PACKET
PREVIOUS STATUS NOT READ
SV00832
7
X
6
X
5
0
4
0
3
0
2
0
1
X
0
X
POWER ON VALUE
RESERVED
SETUP PACKET
STALL
DATA 0/1 PACKET
BUFFER FULL
RESERVED
SV00833
Setup Packet
STALL
Data 0/1 Packet
Buffer Full
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.
Data Receive/
Transmit Success
Error Code
Setup Packet
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.
Read Buffer
Command
Data
: F0h
: Read multiple bytes (max 10)
Data 0/1 Packet
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
2
C transaction (read the first 2 bytes
to get the number of data bytes, then read the rest in other
transactions).
The data in the buffer are organized as follows:
Previous Status not Read
Table 1. ERROR CODES
ERROR
CODE
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1101
1111
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
RESULT
byte 0:
byte 1:
byte 2:
byte 3:
Reserved: can have any value
Number/length of data bytes
Data byte 1
Data byte 2
......
Write Buffer
Command
Data
: F0h
: Write multiple bytes (max 10)
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
2
C data transactions.
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.
1999 Jul 22
9