Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

UPSD3422 Datasheet(PDF) 146 Page - STMicroelectronics

Part # UPSD3422
Description  Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
PDF  293 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UPSD3422 Datasheet(HTML) 146 Page - STMicroelectronics

Back Button UPSD3422 Datasheet HTML 142Page - STMicroelectronics UPSD3422 Datasheet HTML 143Page - STMicroelectronics UPSD3422 Datasheet HTML 144Page - STMicroelectronics UPSD3422 Datasheet HTML 145Page - STMicroelectronics UPSD3422 Datasheet HTML 146Page - STMicroelectronics UPSD3422 Datasheet HTML 147Page - STMicroelectronics UPSD3422 Datasheet HTML 148Page - STMicroelectronics UPSD3422 Datasheet HTML 149Page - STMicroelectronics UPSD3422 Datasheet HTML 150Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 146 / 293 page
background image
USB interface
uPSD34xx
146/293
The data packet contains a DATA1 or DATA0 PID. In a USB system, the host or device that is
sending data is responsible for toggling the data PID between DATA0 and DATA1. The
receiving device keeps track of the Toggle Bit and compares it with the data PID that is
received. This provides a means for the receiving host or device to detect a corrupted
handshake packet. The Payload Data is the data that the host is sending to the device and
the CRC16 is used for error checking.
For an OUT transaction, the host sends the token and data packets. The receiving device
sends a handshake packet to notify the host whether it was able to accept the packet or not.
There are three handshake PIDs as follows:
●
ACK: this PID indicates that the device received the data successfully.
●
NAK: this handshake indicates that the device was not able to receive the data (it is
busy). A NAK does not mean there was an error, since errors are indicated by a “no
handshake” packet. When the host receives a NAK PID or does not receive a
handshake packet at all, the host retries sending the data at a later time.
●
STALL: this handshake indicates that something is wrong. For example, the host has
sent a device request that is not understood, the host is trying to access a resource that
is not available, or something is wrong with the device.
Figure 50.
USB Packets in a USB Transfer Example
25.1.4
Data transfers with the host
The host issues OUT tokens followed by Data Tokens to send data to a device. The device
responds with an appropriate handshake packet (ACK/NAK), indicating whether it was able
to receive the data. If the device does not receive the data packet OK (because there is
some error), it does not respond with a handshake packet. In the case of a NAK or no
response, the host retries sending the data at a later time.
USB devices are not able to send data to a host whenever they have it ready. When a device
has data ready, it loads data into its endpoint buffer, making it ready for a transfer. The data
will remain in the buffer until the host issues an IN token to that device’s endpoint, at which
time the data will be sent. If the host receives the data OK, it follows with an ACK handshake
(a host never NAKs). If the host did not receive the data OK, there is no handshake packet.
In this case, the device should reload its endpoint buffer as appropriate and the host will
retry again later to retrieve the data.
Token Packet
Data Packet
Handshake Packet
OUT
ADDR
ENDP
CRC5
CRC16
ACK
Data1
Payload
Data
12
3
Token Packet
Data Packet
Handshake Packet
OUT
ADDR
ENDP
CRC5
CRC16
ACK
Data0
Payload
Data
45
6
AI10489



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com