Electronic Components Datasheet Search
  English  ▼

X  

SEC2410 Datasheet(PDF) 191 Page - Microchip Technology

Part # SEC2410
Description  HS Endpoint Processor with USB 2.0, Smart Card, and FMC for Secure Token and Storage
PDF  283 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

SEC2410 Datasheet(HTML) 191 Page - Microchip Technology

Back Button SEC2410 Datasheet HTML 187Page - Microchip Technology SEC2410 Datasheet HTML 188Page - Microchip Technology SEC2410 Datasheet HTML 189Page - Microchip Technology SEC2410 Datasheet HTML 190Page - Microchip Technology SEC2410 Datasheet HTML 191Page - Microchip Technology SEC2410 Datasheet HTML 192Page - Microchip Technology SEC2410 Datasheet HTML 193Page - Microchip Technology SEC2410 Datasheet HTML 194Page - Microchip Technology SEC2410 Datasheet HTML 195Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 191 / 283 page
background image
 2013 - 2014 Microchip Technology Inc.
DS00001587C-page 191
SEC2410/SEC4410
The CBW may be valid, but the protocol is out of synchronization, and Processor intervention is required. If the CBW
comes in at the appropriate time, the HW must validate the CBW. If a CBW comes in that will not be handled by the
CBWP, that CBW will be forwarded to the Processor, and the CBW Processor will go to the WAIT_Processor state.
Please refer to the USB Mass Storage Class, Bulk Only Transport Revision 1.0 for a description of the fields in the CBW.
To validate a CBW, the CBW processor must do the following:
1.
Check that the Signature in the CBW matches the CBW_SIGNATURE in the CBW_SIG register. If the Signature
does not match, the packet is unknown, set the SIGNATURE_FAIL bit, and forward the CBW to the Processor.
The Processor will stall that Endpoint.
2.
Check that the CBW length matches the value in the CBW_LENGTH in the CBW_LEN register. If length does
not match, the packet is unknown, set the CBW_PKT_LEN_FAIL bit, and forward the CBW to the Processor. The
Processor will stall that Endpoint.
3.
Check that the bCBWCBLength is equal to the length of the SCSI command. This check is only valid for Read10,
Read12, Write10, Write12, or Test Unit Ready. If the length does not match, set the CBWCB_LEN_FAIL bit, and
forward the CBW to the Processor. The Processor will stall that Endpoint.
4.
If the CHK_RSRV bit is set in the AUTO_CBW registers, check that all the reserved bits in the CBW are ‘0’. The
reserved bits are specified in the USB Mass Storage Class specification. If all the bits are not ‘0’ set the RSRV0_-
FAIL bit, and forward the CBW to the Processor. The Processor will stall that Endpoint.
5.
Check that the LUN number matches the MAX_LUN in the MAX_LUN register. If the LUN number is too large,
set the MAX_LU_FAIL bit and forward CBW to Processor. If the LUN is not enabled for AutoCBW processing,
set UNSUPPORTED_LUN interrupt and forward to the Processor.
6.
Now that the Mass Storage portion of the CBW has been validated, Check the SCSI command. If the command
is NOT Read10, Read12, Write10, Write12 or Test Unit Ready, pass the CBW to the Processor. If the SCSI com-
mand is one of those five commands, then process the SCSI command.
Process the SCSI Command:
1.
If dCBWDataTransferLength not equal to SCSI length, then forward the CBW to the processor with the
CB_LEN_FAIL bit set. For the actual calculation, the bCBWDataTransferLength is in bytes, while the SCSI length
is in blocks. The SCSI length must be multiplied by the LBA.
2.
Check that the SCSI command is one of the five supported by the ACBWP. If not, fire the SCSI_ERROR interrupt.
3.
Use the LUN in the CBW to index into the LUN_DESCRIPTOR table.
4.
If the start LBA address is larger than the Media Capacity in the LUN_DESCRIPTOR table, then set the
SCSI_ERROR forward the CBW to the Processor. The compare can be done using block counts or byte counts.
If the obsolete Relative address bit is set, set SCSI_ERROR and forward the CBW to the Processor.
5.
If the start LBA address plus the length is larger than the Media Capacity, then set the SCSI_ERROR and LEN_-
FAIL and forward the CBW to the Processor. The compare can be done using block counts or byte count.
6.
If the Direction in the SCSI command is opposite to the Direction in the Mass Storage header set the PHASE_ER-
ROR bit. Forward the CBW to the Processor.
7.
If the starting address plus length of the transfer exceeds the capacity of the media being addressed, then set
the DEV_CAP_FAIL bit and forward to the Processor.
8.
Calculate the Physical starting address by adding the LBA starting address to the Offset in the LUN_DESCRIP-
TOR table.
If the SCSI commands passes, the FMDU processes the command, If it is a read there are two possibilities.
1.
The CONT_RD bit is set for this LUN, and if the calculated physical start address matches the internal start
address. The next access to the media is started at starting address in the SCSI command. The FMDU command
is CONTINUE_READ.
2.
The CONT_RD bit is not set for this LUN, or the calculated physical start address does not match the internal
start address. The next access to the media is started at new calculated starting address. The FMDU command
is NEW_READ.



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