Electronic Components Datasheet Search
  English  ▼

X  

SH7216 Datasheet(PDF) 29 Page - Renesas Technology Corp

Part # SH7216
Description  USB Mass Storage Class
PDF  32 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

SH7216 Datasheet(HTML) 29 Page - Renesas Technology Corp

Back Button SH7216 Datasheet HTML 24Page - Renesas Technology Corp SH7216 Datasheet HTML 25Page - Renesas Technology Corp SH7216 Datasheet HTML 26Page - Renesas Technology Corp SH7216 Datasheet HTML 27Page - Renesas Technology Corp SH7216 Datasheet HTML 28Page - Renesas Technology Corp SH7216 Datasheet HTML 29Page - Renesas Technology Corp SH7216 Datasheet HTML 30Page - Renesas Technology Corp SH7216 Datasheet HTML 31Page - Renesas Technology Corp SH7216 Datasheet HTML 32Page - Renesas Technology Corp  
Zoom Inzoom in Zoom Outzoom out
 29 / 32 page
background image
SH7216 Group
USB Function Module: USB Mass Storage Class
REJ06B0897-0100/Rev.1.00
July 2009
Page 29 of 32
When a USB Mass Storage Class (Bulk-Only Transport) transmission is carried out, transport of the CBW initiates a
series of data transfers, and when the CSW is transported to the host PC, a series of data transfers is processed. This
status contains two items: dCSWStatus that indicates the transport result, and dCSWDataResidue that indicates the
number of error bytes.
In this sample program, the following two fields are used to create these two items.
⎯ dCBWDataTransferLength field of CBW packet
⎯ dCSWDataTransferResidue field of CSW packet
The dCBWDataTransferLength field of the CBW packet is used as the variable in which the number of data bytes the
host PC specifies to be handled in the data transport is entered.
The dCSWDataTrasferResidue field of the CSW packet is used as the variable in which the number of data bytes the
function handles in the data transport is entered.
When the CBW transport has been completed, the number of data bytes planned to be handled in the data transport by
the host PC and the function are stored in the dCBWDataTransferLength and dCSWDataTransferResidue fields,
respectively.
Data is transferred in the data transport according to the flowcharts.
If data transport between the host PC and function has been processed without errors, the values in the
dCBWDataTransferLength and dCSWDataTransferResidue fields are both subtracted by the number of bytes that have
been transferred for every data transfer in the data transport. For other cases, the difference between the number of data
bytes the host PC requires to be handled in the data transport and the number of data bytes the function has handled in
the data transport is stored in the dCSWDataTransferResidue field of the CSW packet, and operation then moves to the
status transport.
dCBWDataTransferLength
dCSWDataResidue
dCBWDataTransferLength
dCSWDataResidue
dCBWDataTransferLength
dCSWDataResidue
CBW
IN/OUT
IN/OUT
IN/OUT
CSW
…
Amount of data planned by the host
Amount of data planned by the device
Amount of data planned by the device
Amount of data planned by the device
Amount of data planned by the host
Amount of data planned by the host
Command
transport
Data
transport
Status
transport
Insufficient
Exceeding
0 is returned because it is
equal to the amount of
data planned by the host
The amount of data
insufficient for that planned
by the host is returned
The amount of data
exceeding that planned
by the host is returned
Figure 11 Each Stage in Bulk-Only Transport



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


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