English
Language : 

SH7216 Datasheet, PDF (25/32 Pages) Renesas Technology Corp – USB Mass Storage Class
SH7216 Group
USB Function Module: USB Mass Storage Class
Table 20 shows sample error conditions that may be generated.
Table 20 Sample Error Conditions
Case No.
(2)
(3)
(4)
(5)
(7)
(8)
(9)
(10)
(11)
(13)
Error Conditions
When a READ command is issued from the host PC, the amount of data to be transported in
the USB data transport is 0 while the amount of data specified by the SCSI command is a value
other than 0.
When a WRITE command is issued from the host PC, the amount of data to be transported in
the USB data transport is 0 while the amount of data specified by the SCSI command is a value
other than 0.
When a READ command is issued from the host PC, the amount of data to be transported in
the USB data transport is 0 while the amount of data specified by the SCSI command is 0.
When a READ command is issued from the host PC, the amount of data specified by the SCSI
command is less than the amount of data to be transported in the USB data transport.
When a READ command is issued from the host PC, the amount of data specified by the SCSI
command is greater than the amount of data to be transported in the USB data transport.
Even though a WRITE command has been issued from the host PC, the host PC requests for
data in the USB data transport.
When a WRITE command is issued from the host PC, the amount of data to be transported in
the USB data transport is a value other than 0 while the amount of data specified by the SCSI
command is 0.
Even though a READ command has been issued from the host PC, the host PC sends data in
the USB data transport.
When a WRITE command is issued from the host PC, the amount of data specified by the SCSI
command is less than the amount of data to be transported in the USB data transport.
When a WRITE command is issued from the host PC, the amount of data specified by the SCSI
command is greater than the amount of data to be transported in the USB data transport.
Table 21 shows how a function operates when each error condition occurs.
Table 21 Function Operation for Each Error Condition
Case No.
(2), (3)
(4), (5)
(7), (8)
(9), (11)
(10), (13)
Relation between Host PC and Function
• Set H'02 as the CSW status.
• The function adds data to become equal to the data length set in dCBWDataTransferLength
and then sends data to the host PC.
• Set the amount of data added in the data transport in dCBWDataResidue of CSW.
• Set H'00 as the CSW status.
• The function sends data to the host PC up to the data length set in
dCBWDataTransferLength.
• Set H'02 as the CSW status.
• The function receives data from the host PC up to the data length set in
dCBWDataTransferLength.
• Set the difference between the amount of data received in the data transport and the
amount of data processed by the function in dCBWDataResidue of CSW.
• Set H'01 as the CSW status.
• The function receives data from the host PC up to the data length set in
dCBWDataTransferLength.
• Set H'02 as the CSW status.
REJ06B0897-0100/Rev.1.00
July 2009
Page 25 of 32